/* Reset e configurações básicas */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
    text-align: center;
    background-color: #f9f9f9;
    color: #333;
    transition: all 0.3s ease;
}

/* Modo escuro */
body.modo-escuro {
    background-color: #333;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

body.modo-escuro a {
    color: white;
    font-weight: bold;
}

body.modo-escuro header {
    background-color: #333 !important;
    color: white !important;
}

body.modo-escuro .produtos-container,
body.modo-escuro .produto,
body.modo-escuro .evento {
    background-color: #444 !important;
    color: white !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

body.modo-escuro .cabecalho2 {
    background-color: #444;
    color: white;
}

body.modo-escuro h3 {
    color: white;
    font-weight: bold;
}

/* Header */
header {
    background: #ffffff;
    color: #070707;
    padding: 20px;
    text-align: center;
    width: 100%;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Layout principal */
.alinhamento {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
}

/* Títulos */
h1, h2, h3 {
    margin: 20px auto;
    text-align: center;
    display: block;
    width: 100%;
    transition: all 0.3s ease;
}

h1 {
    font-family: fantasy;
    color: orangered;
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

h2 {
    font-family: fantasy;
    color: rgb(192, 66, 66);
    font-size: 1.7rem;
    margin: 25px auto;
}

h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
}

body.modo-escuro h3 {
    color: #f0f0f0;
}

/* Seção de produtos/eventos */
.produtos-container, .produtos-container2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 30px auto;
    text-align: center;
    width: 100%;
}

.produto, .produto2, .evento {
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    background-color: white;
    border-radius: 12px;
    flex: 1 1 300px;
    max-width: 100%;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.produto2 {
    background-color: #cc7722;
    color: white;
}

.produto:hover, .evento:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Carrossel Padronizado */
.carrossel, .carrossel-2 {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    perspective: 1000px;
    transform-style: preserve-3d;
}

.carrossel img, .carrossel-2 img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: none;
    padding: 0;
    margin: 0 auto;
    border-radius: 15px;
    transition: transform 0.5s ease;
}

.carrossel img.active, .carrossel-2 img.active {
    display: block;
    margin: 0 auto;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

.carrossel button, .carrossel-2 button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(145deg, rgba(255, 165, 0, 0.9), rgba(255, 140, 0, 0.9));
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.carrossel button:hover, .carrossel-2 button:hover {
    background: linear-gradient(145deg, rgba(255, 140, 0, 1), rgba(255, 115, 0, 1));
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
}

.carrossel button.prev, .carrossel-2 button.prev {
    left: 20px;
}

.carrossel button.next, .carrossel-2 button.next {
    right: 20px;
}

/* Indicadores para carrosséis */
.carrossel-indicators, .carrossel-2-indicators {
    text-align: center;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carrossel-indicator, .carrossel-2-indicator {
    cursor: pointer;
    height: 12px;
    width: 12px;
    background-color: #ddd;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carrossel-indicator:hover, .carrossel-2-indicator:hover {
    background-color: #ff8c00;
    transform: scale(1.2);
}

.carrossel-indicator.active, .carrossel-2-indicator.active {
    background-color: #ff8c00;
    transform: scale(1.3);
    border-color: white;
}

/* Linha divisória */
.linha {
    width: 80%;
    height: 3px;
    background: linear-gradient(to right, transparent, #e0720a, transparent);
    margin: 40px auto;
    border: none;
}

/* Seção de eventos */
.eventos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 30px auto;
    text-align: center;
    width: 100%;
}

.evento img, .evento video {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 auto 15px auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.evento h2 {
    padding: 12px;
    background: linear-gradient(to right, #ff7b00, #ff9500);
    color: white;
    border-radius: 8px;
    margin: 15px auto;
    text-align: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(255, 123, 0, 0.3);
}

.evento p {
    padding: 0 15px 15px;
    text-align: center;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Botões */
button {
    padding: 12px 25px;
    background: linear-gradient(to right, #ff7b00, #ff9500);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: auto;
    margin: 15px auto;
    display: block;
    box-shadow: 0 4px 10px rgba(255, 123, 0, 0.3);
    font-weight: bold;
    letter-spacing: 0.5px;
}

button:hover {
    background: linear-gradient(to right, #e06c0a, #e0840a);
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(255, 123, 0, 0.4);
}

button:active {
    transform: translateY(1px);
}

/* Detalhes dos eventos */
.detalhes {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.detalhes-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

body.modo-escuro .detalhes-content {
    background-color: #444;
    color: white;
}

#infoDetalhes {
    font-size: 1.2rem;
    margin-top: 20px;
    text-align: center;
}

#infoDetalhes img {
    max-height: 400px;
    width: auto;
    margin-bottom: 20px;
}

#detalhes button {
    background: linear-gradient(to right, #ff3d3d, #ff6b6b);
    margin: 20px auto 0 auto;
    width: auto;
    position: sticky;
    bottom: 10px;
}

/* Tabela */
.tabela {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    border-collapse: collapse;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.celula {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
    transition: all 0.3s ease;
}

.cabecalho2 {
    background: linear-gradient(to right, #ff7b00, #ff9500);
    font-weight: bold;
    color: white;
    font-size: 1.1rem;
}

td {
    text-align: center;
    color: #333;
    font-size: 1rem;
    background-color: white;
    transition: all 0.3s ease;
}

body.modo-escuro td {
    background-color: #555;
    color: white;
}

td:hover {
    background-color: #f5f5f5;
}

body.modo-escuro td:hover {
    background-color: #666;
}

/* Textos e parágrafos */
p {
    margin: 15px auto;
    text-align: center;
    display: block;
    max-width: 800px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.data {
    color: #d66d0b;
    text-align: center;
    font-weight: bold;
    margin: 15px auto;
    font-size: 1.1rem;
    padding: 8px 15px;
    background-color: rgba(214, 109, 11, 0.1);
    border-radius: 20px;
    display: inline-block;
}

body.modo-escuro .data {
    background-color: rgba(214, 109, 11, 0.3);
}

/* Containers de imagens */
.imagens-container {
    text-align: center;
    margin: 30px auto;
    width: 100%;
}

.imagens-container img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Video containers */
.video-container {
    text-align: center;
    margin: 20px auto;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    display: block;
    margin: 0 auto;
    width: 100%;
    min-height: 400px;
    border: none;
    border-radius: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 25px 0;
    background: linear-gradient(to right, #dd6f08, #e0840a);
    color: white;
    width: 100%;
    margin-top: 50px;
    font-size: 1.1rem;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsividade */
@media (max-width: 1024px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .produto, .produto2, .evento {
        flex: 1 1 45%;
    }
    
    .video-container iframe {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .produto, .produto2, .evento {
        flex: 1 1 100%;
        padding: 15px;
    }
    
    .carrossel, .carrossel-2 {
        margin: 20px auto;
    }
    
    .carrossel button, .carrossel-2 button {
        padding: 10px;
        font-size: 20px;
        width: 45px;
        height: 45px;
    }
    
    .video-container iframe {
        min-height: 300px;
    }
    
    .detalhes-content {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .produtos-container, .produtos-container2 {
        gap: 20px;
    }
    
    .produto, .produto2, .evento {
        padding: 12px;
    }
    
    .carrossel button, .carrossel-2 button {
        padding: 8px;
        font-size: 18px;
        width: 40px;
        height: 40px;
    }
    
    .video-container iframe {
        min-height: 250px;
    }
    
    button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .data {
        font-size: 1rem;
    }
    
    p {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    h1 {
        font-size: 1.4rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .carrossel button, .carrossel-2 button {
        padding: 6px;
        font-size: 16px;
        width: 35px;
        height: 35px;
    }
    
    .video-container iframe {
        min-height: 200px;
    }
    
    .detalhes-content {
        padding: 15px;
    }
}

/* Slideshow principal */
.slideshow-container {
    max-width: 900px;
    position: relative;
    margin: 40px auto;
    text-align: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: #000;
    perspective: 1000px;
    transform-style: preserve-3d;
    min-height: 500px;
}

.mySlides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.mySlides.active {
    opacity: 1;
    z-index: 2;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.mySlides:hover img {
    transform: scale(1.02);
}

/* Controles do slideshow */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 60px;
    height: 60px;
    margin-top: -30px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 50%;
    user-select: none;
    background: linear-gradient(145deg, rgba(255, 165, 0, 0.9), rgba(255, 140, 0, 0.9));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.3);
    transform: translateY(-50%);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover, .next:hover {
    background: linear-gradient(145deg, rgba(255, 140, 0, 1), rgba(255, 115, 0, 1));
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 30px rgba(255, 165, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

.prev:active, .next:active {
    transform: translateY(-50%) scale(0.95);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.4);
}

/* Indicadores de slide */
.dot-container {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.05));
    border-radius: 0 0 20px 20px;
    margin-top: -5px;
}

.dot {
    cursor: pointer;
    height: 16px;
    width: 16px;
    margin: 0 8px;
    background: linear-gradient(145deg, #ddd, #bbb);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(145deg, #ff8c00, #ff6600);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.dot:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
    background: linear-gradient(145deg, #ffcc80, #ffb74d);
}

.dot.active, .dot:hover {
    background: linear-gradient(145deg, #ff8c00, #ff6600);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5);
    transform: scale(1.3);
    border-color: rgba(255, 255, 255, 1);
}

.dot.active::before {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.9);
}

/* Overlay com informações do slide */
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.mySlides:hover .slide-overlay {
    transform: translateY(0);
}

/* Responsividade do slideshow */
@media (max-width: 1024px) {
    .slideshow-container {
        max-width: 95%;
        margin: 35px auto;
    }
    
    .mySlides {
        height: 450px;
    }
    
    .prev, .next {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-top: -25px;
    }
    
    .prev {
        left: 15px;
    }
    
    .next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .slideshow-container {
        max-width: 95%;
        margin: 30px auto;
        border-radius: 15px;
    }
    
    .mySlides {
        height: 350px;
        border-radius: 15px;
    }
    
    .prev, .next {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin-top: -22px;
    }
    
    .prev {
        left: 10px;
    }
    
    .next {
        right: 10px;
    }
    
    .dot {
        height: 14px;
        width: 14px;
        margin: 0 6px;
    }
    
    .dot-container {
        padding: 15px 0;
    }
}

@media (max-width: 576px) {
    .slideshow-container {
        margin: 25px auto;
        border-radius: 12px;
    }
    
    .mySlides {
        height: 280px;
        border-radius: 12px;
    }
    
    .prev, .next {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-top: -20px;
    }
    
    .prev {
        left: 8px;
    }
    
    .next {
        right: 8px;
    }
    
    .dot {
        height: 12px;
        width: 12px;
        margin: 0 5px;
    }
    
    .dot-container {
        padding: 12px 0;
    }
}

@media (max-width: 400px) {
    .slideshow-container {
        margin: 20px auto;
        border-radius: 10px;
    }
    
    .mySlides {
        height: 220px;
        border-radius: 10px;
    }
    
    .prev, .next {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin-top: -17px;
    }
    
    .prev {
        left: 5px;
    }
    
    .next {
        right: 5px;
    }
    
    .dot {
        height: 10px;
        width: 10px;
        margin: 0 4px;
    }
}