/* style.css */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #3b5998;
    --secondary-color: #e6b22c;
    --text-color: #333;
    --bg-light: #f9f9f9;
    --bg-dark: #222;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: #fff;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    /* Evita a rolagem horizontal */
}

main {
    flex-grow: 1;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/capa.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 150px 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: #d19f1e;
    transform: translateY(-3px);
}

/* General Sections */
.section {
    padding: 80px 0;
    border-bottom: 1px solid #eee;
}

.section.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

.feature {
    text-align: center;
    padding: 25px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* About Us */
.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Gallery */
.galeria {
    background: #222222;
    padding: 40px;
    column-count: 3;
}

.galeria img {
    border: solid 2px #fff;
    max-width: 100%;
    margin-bottom: 10px;
}

/* Testimonials */
.testimonial {
    text-align: center;
    padding: 35px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.testimonial p {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

.testimonial span {
    font-weight: bold;
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Contact */
.contact-info a {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 50px;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

.contact-info img {
    width: 30px;
    height: 30px;
    margin-right: 15px;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: #ddd;
    padding: 60px 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: auto;
    /* Pushes footer to the bottom */
}

.footer .section-title {
    color: #fff;
}

.footer .copyright {
    margin-top: 40px;
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .cta-section {
        padding: 60px 20px;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

/* Adiciona estilos para a galeria em tela cheia em dispositivos móveis */
@media (max-width: 600px) {
    .fancybox__slide {
        padding: 10px;
    }
}

@media (max-width: 900px) {
    .galeria {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .galeria {
        column-count: 1;
    }
}