/* ===== VARIÁVEIS E RESET ===== */
:root {
    --primary-color: #007e94;
    --secondary-color: #005a6b;
    --accent-color: #b10900;
    --light-color: #f8f9fa;
    --dark-color: #202124;
    --closed-color: #b10900;
    --text-color: #333;
    --view-mode-bg: #e8f5e9;
    --border-radius: 12px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: white;
    color: var(--text-color);
    padding: 20px;
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== LAYOUT PRINCIPAL ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.main-content {
    padding: 30px;
}

/* ===== CABEÇALHO ===== */
.header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 300px;
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 3px solid var(--primary-color);
    flex-shrink: 0;
}

.title-container {
    flex: 1;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== BOTÕES ===== */
.button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    text-align: center;
    justify-content: center;
}

.button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.button.secondary {
    background-color: var(--secondary-color);
}

.button.accent {
    background-color: var(--accent-color);
}

.reserve-btn {
    background-color: #25D366;
}

.social-btn {
    background-color: #E1306C;
}

.whatsapp-group-btn {
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

/* ===== TÍTULOS DE SEÇÃO ===== */
.section-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    font-size: 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* ===== CALENDÁRIO ===== */
.calendar-section {
    margin-bottom: 30px;
}

.calendar-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 25px;
}

.month {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.month:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.month-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

/* ===== TABELAS E CÉLULAS ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

th {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

td {
    text-align: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
    position: relative;
    height: 45px;
    font-weight: 500;
}

/* ===== ESTILOS DE DIAS ===== */
.closed-day {
    background-color: rgba(234, 67, 53, 0.15);
    color: var(--closed-color);
    font-weight: 600;
}

.closed-day::after {
    content: "❌";
    position: absolute;
    top: 3px;
    right: 3px;
    font-size: 0.7rem;
}

.weekend {
    color: var(--primary-color);
    font-weight: 600;
}

.current-day {
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ===== NOTAS ===== */
.month-notes {
    margin-top: 15px;
    padding: 12px;
    background-color: #007e9417;
    border-radius: 8px;
    font-size: 0.95rem;
    border-left: 4px solid var(--secondary-color);
}

/* ===== SUMÁRIO ===== */
.summary-section {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.summary-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.summary-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.summary-card .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 10px 0;
}

.summary-list {
    list-style: none;
    margin-top: 15px;
    text-align: left;
}

.summary-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

/* ===== CARROSSEL DE BANNERS CORRIGIDO ===== */
.banner-carousel {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
     cursor: pointer;
}

.carousel-slide.active {
    display: block;
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Esconder mobile-banner por padrão */
.mobile-banner {
    display: none;
}

.desktop-banner {
    display: block;
}

.slide-content {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 80%;
    color: white;
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: #fff;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

/* ===== GALERIA ===== */
.gallery-section {
    margin: 40px 0;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 200px;
    position: relative;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    font-size: 0.9rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* ===== MAPA ===== */
.map-section {
    margin: 40px 0;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-top: 20px;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-content {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
}

.modal-caption {
    color: white;
    text-align: center;
    margin-top: 15px;
    font-size: 1.1rem;
    max-width: 80%;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: #ccc;
}

/* ===== RODAPÉ ===== */
footer {
    text-align: center;
    padding: 25px;
    background-color: var(--dark-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-message {
    flex: 1;
    text-align: left;
    min-width: 200px;
}

.footer-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social {
    display: flex;
    gap: 10px;
}

/* ===== UTILITÁRIOS ===== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1200px) {
    .calendar-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .banner-carousel {
        height: 350px;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-container {
        flex-direction: column;
        text-align: center;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-message {
        text-align: center;
    }
    
    .footer-actions, .footer-social {
        flex-direction: column;
        width: 100%;
    }
    
    .footer-actions .button, .footer-social .button {
        width: 100%;
    }
    
    .month {
        padding: 15px;
    }
    
    th, td {
        padding: 8px;
        font-size: 0.85rem;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .gallery-item {
        height: 150px;
    }
    
    .map-container iframe {
        height: 300px;
    }
    
    /* Mostrar imagem mobile e esconder desktop em dispositivos móveis */
    .mobile-banner {
        display: block !important;
    }
    
    .desktop-banner {
        display: none !important;
    }
    
    .banner-carousel {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .slide-content p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .container {
        border-radius: 10px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .calendar-container {
        grid-template-columns: 1fr;
    }
    
    .month-title {
        font-size: 1.3rem;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container iframe {
        height: 250px;
    }
    
    .banner-carousel {
        height: 250px;
    }
    
    .slide-content {
        padding: 15px;
        max-width: 90%;
    }
    
    .slide-content h2 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .carousel-nav {
        width: 30px;
        height: 30px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}