/* 1. RESET E DEFINIÇÕES GERAIS */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Open+Sans:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
}

body,
html {
    height: 100%;
    width: 100%;
    background-color: transparent;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #fff;
    color: #333;
}

/* 2. Corrigir o Cabeçalho da Página */
.page-header {
    text-align: center;
    padding: 20px 20px 20px;
    background-color: #fff;
    margin-top: 0px;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: rgb(91, 47, 20);
    margin-bottom: 20px;
    line-height: 1.2;
}


.content-section {
    padding: 60px 20px;
    text-align: center;
}

.content-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: rgb(91, 47, 20);
    margin-bottom: 30px;
}

main {
    margin-top: 0 !important;
}

/* 2. CARROSSEL */
.hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7.7;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

.bg-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
    pointer-events: none;
}

/* 3. CONTROLOS DO CARROSSEL */
.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: clamp(18px, 3vw, 30px);
    padding: 15px 10px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, transform 0.2s;
    border-radius: 5px;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 4. SECÇÃO DE CONTEÚDO */
.content-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #fff;
    color: #333;
    width: 100%;
}

.content-section h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 20px;

    inline-size: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

#btnTopo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background-color: #000;
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    transition: 0.3s;
}

#btnTopo:hover {
    background-color: #333;
}

/* 5. RESPONSIVIDADE (MEDIA QUERIES) */

@media (max-width: 1024px) {
    .hero-slider {
        /* margin-top: 75px; */
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        aspect-ratio: 16 / 9;
        /* margin-top: 75px; */
    }

    .prev-btn,
    .next-btn {
        padding: 10px 8px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        aspect-ratio: 1 / 1;
    }
}