/* CSS */
:root {
    --primary-color: #2b184f;
    --secondary-color: #ff6600;
    --light-bg: #f4f4f4;
    --white: #fff;
    --text-color: #333;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), #2d1853);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

/* Hero */
#hero {
    background-color: #f4f4f4;
    padding: 100px 0;
    text-align: center;
}

#hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    background-color: #ff6600; /* Orange */
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e55a00;
}

/* Seções */
section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* Sobre */
#sobre ul {
    list-style: none;
    padding: 0;
}

#sobre li {
    background: #f4f4f4;
    margin: 10px 0;
    padding: 10px;
    border-left: 5px solid #ff6600;
}

/* Serviços */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.servico {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.servico:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Galeria */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.galeria-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.galeria-grid img:hover {
    transform: scale(1.05);
}

/* Vídeo */
.video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.video-container video {
    width: 40%;
    max-width: 300px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.video-container button {
    margin-top: 10px;
}

/* Contato */
.contato-info {
    text-align: center;
    margin-bottom: 30px;
}

.contato-info a {
    color: var(--primary-color);
    text-decoration: none;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#contact-form button {
    width: 100%;
}

/* Banner Carousel */
#banner {
    position: relative;
    overflow: hidden;
    height: 60vh;
    background-color: var(--light-bg); /* Fundo sólido para uniformizar */
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ocupa todo o espaço disponível, cortando se necessário para preencher */
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: scale(0.95);
    border-radius: 15px; /* Bordas mais arredondadas */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Sombra para suavizar */
    filter: brightness(1.1) contrast(0.9); /* Suaviza as cores */
}

.carousel img.active {
    opacity: 1;
    transform: scale(1);
}

/* Botões de navegação */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Indicadores (dots) */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color), #2b184f);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}

/* Animações */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsivo */
@media (max-width: 1024px) {
    #banner {
        height: 50vh;
    }

    .carousel-btn {
        padding: 12px;
        font-size: 20px;
    }

    .dot {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    #hero h2 {
        font-size: 2rem;
    }

    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #banner {
        height: 40vh; /* Altura maior em dispositivos móveis para melhor visibilidade */
    }

    .carousel-btn {
        padding: 8px;
        font-size: 16px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    #banner {
        height: 35vh;
    }

    .carousel-btn {
        padding: 6px;
        font-size: 14px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .carousel-dots {
        bottom: 10px;
        gap: 8px;
    }

    #hero {
        padding: 60px 0;
    }

    #hero h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 40px 0;
    }

    .galeria-grid {
        grid-template-columns: 1fr;
    }

    .video-container video {
        width: 100%;
        max-width: none;
    }
}
