*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CABEÇALHO */
header {
    width: 100%;
    background-color: #162741;
    color: white;
    text-align: center;
    padding: 15px 10px;
}

header h1{
    font-family: Verdana, sans-serif;
    font-size: 32px;
    margin-bottom: 5px;
}

header h2{
    font-family: Verdana, sans-serif;
    font-size: 18px;
    margin-bottom: 5px;
}

h3{
    font-family: Verdana, sans-serif;
    font-size: 18px;
    font-weight: normal;
}

h4{
    text-align:center;
}

/* TEXTO */
section{
    background-color:#FFFFFF;
    font-family:arial;
    padding:10px;
}

/* SLIDESHOW */
.slideshow-container {
    max-width: 800px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin: 20px auto;
}

.slides-wrapper {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
}

.mySlides {
    flex: 0 0 100%;
}

.mySlides img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.counter-text {
    color: #f2f2f2;
    background-color: rgba(0,0,0,0.6);
    font-size: 14px;
    padding: 6px 10px;
    position: absolute;
    bottom: 10px;
    right: 10px;
    border-radius: 4px;
    z-index: 10;
    font-family: sans-serif;
}

/* BOTÕES */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 28px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 8px;
    z-index: 20;
    user-select: none;
}

/* Botão da direita */
.next {
    right: 10px;
}

/* Botão da esquerda */
.prev {
    left: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* RESPONSIVIDADE DO TEXTO – CELULAR */
/* AGORA APLICADO A TODOS OS TEXTOS CENTRAIS */
@media only screen and (max-width: 600px) {

    section p,
    section h4,
    body > p[align="center"] {
        font-size: 14px;
        line-height: 1.5;
        overflow-wrap: break-word;
        word-break: normal;
        max-width: 100%;
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
    }

     .slideshow-container {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10; 
        overflow: hidden;
    }

    .slides-wrapper,
    .mySlides {
        width: 100%;
        height: 100%;
    }

    .mySlides img {
        width: 100%;
        height: 100%;
        object-fit: cover;       /* cobre área sem barras pretas */
        object-position: center; /* centraliza */
        display: block;
        background: #000;        /* segurança: esconde possíveis falhas */
    }

    .prev, .next {
        padding: 12px;
        font-size: 16px;
        margin-top: 0;
    }

}

/* LIMITA LARGURA DO TEXTO – DESKTOP */
/* AGORA TAMBÉM PARA LAZER, CONDIÇÕES E LOCALIZAÇÃO */
@media only screen and (min-width: 768px) {

    section p,
    section h4,
    body > p[align="center"] {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

}

/* RODAPÉ */
footer{
    background:#162741;
    color:#FFFFFF;
    font-family:Verdana;
    font-size:12px;
    text-align:center;
    padding:10px;
    margin:inherit;
}

/* TABELAS RESPONSIVAS */
@media (max-width: 1023px){
    tbody td{
        display:block;
    }
}

/* IMAGENS */
@media (max-width: 479px){
    img{
        max-width:100%;
    }
}