/* Estilos adicionais para melhorar a responsividade */

/* Ajustes para dispositivos móveis */
@media (max-width: 768px) {
    /* Ajustes gerais */
    .container {
        padding: 0 10px;
    }
    
    /* Header */
    .site-title {
        font-size: 1.5rem;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Quem Somos */
    .quem-somos-content {
        flex-direction: column;
    }
    
    .quem-somos-imagem {
        margin-top: 20px;
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Porções */
    .porcao-item img {
        height: 180px;
    }
    
    /* Formulários */
    .form-container {
        padding: 20px 15px;
    }
    
    .form-row-half {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Ajustes para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Quem Somos */
    .quem-somos-content {
        gap: 20px;
    }
    
    /* Porções */
    .itens-cardapio {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Melhorias visuais gerais */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(34, 34, 34, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Efeitos de hover e animações */
.main-menu a {
    position: relative;
    padding: 10px 0;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-menu a:hover::after,
.main-menu .current-menu-item a::after {
    width: 100%;
}

.cta-buttons a {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-buttons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-buttons a:hover::before {
    left: 0;
}

/* Melhorias para acessibilidade */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Melhorias para o carrossel de porções */
.porcoes-carousel .slick-prev,
.porcoes-carousel .slick-next {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: 10;
}

.porcoes-carousel .slick-prev:before,
.porcoes-carousel .slick-next:before {
    font-size: 20px;
    opacity: 1;
}

.porcoes-carousel .slick-prev {
    left: 10px;
}

.porcoes-carousel .slick-next {
    right: 10px;
}

.porcoes-carousel .slick-dots li button:before {
    font-size: 12px;
    color: var(--primary-color);
}

.porcoes-carousel .slick-dots li.slick-active button:before {
    color: var(--secondary-color);
}

/* Modal para imagens de porções */
.porcao-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.porcao-modal-content {
    margin: 5% auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.porcao-modal-caption {
    margin: 15px auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.porcao-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.porcao-modal-close:hover,
.porcao-modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Animações para elementos ao entrar na viewport */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Melhorias para formulários */
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

.form-submit {
    position: relative;
    overflow: hidden;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: 0;
}

.form-submit:hover::before {
    left: 0;
}

/* Melhorias para o mapa */
.map-container {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.map-container:hover {
    transform: scale(1.02);
}

/* Melhorias para o footer */
.footer-social a {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-5px) rotate(5deg);
}

/* Ajustes para impressão */
@media print {
    .site-header,
    .site-footer,
    .cta-buttons,
    .form-submit {
        display: none !important;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
    
    .section-title::after {
        background-color: black;
    }
}


@media (max-width: 768px) {
    .porcoes-carousel-container {
        max-width: 100%;
        padding: 0 10px;
    }

    .carousel-item-porcao {
        min-width: 140px; /* Further reduced width for mobile */
        margin-right: 10px;
        padding: 10px; /* Reduced padding */
    }

    .carousel-item-porcao img.porcao-imagem-clicavel {
        height: 100px; /* Further reduced height for better mobile viewing */
        object-fit: cover;
        border-radius: 4px; /* Slightly smaller border radius */
    }

    .carousel-item-porcao p {
        font-size: 0.85em; /* Slightly smaller text */
        margin-top: 8px;
    }

    .carousel-control-porcao {
        padding: 5px 8px;
        font-size: 16px;
    }
}


/* CORREÇÕES FORÇADAS PARA MOBILE - CARROSSEL DE PORÇÕES */

@media screen and (max-width: 768px) {
    /* Forçar dimensões específicas para o carrossel de porções */
    .porcoes-carousel-section .carousel-item-porcao {
        min-width: 125px !important;
        width: 125px !important;
        max-width: 125px !important;
        padding: 6px !important;
        margin-right: 6px !important;
    }
    
    .porcoes-carousel-section .carousel-item-porcao img.porcao-imagem-clicavel {
        height: 85px !important;
        max-height: 85px !important;
        width: 100% !important;
        object-fit: cover !important;
        border-radius: 3px !important;
    }
    
    .porcoes-carousel-section .carousel-item-porcao p {
        font-size: 0.75em !important;
        margin: 4px 0 0 0 !important;
        padding: 0 !important;
        line-height: 1.1 !important;
        text-align: center !important;
    }
    
    /* Ajustar container do carrossel */
    .porcoes-carousel-container {
        max-width: 100% !important;
        padding: 0 5px !important;
        overflow: hidden !important;
    }
    
    .porcoes-carousel {
        display: flex !important;
        gap: 0 !important;
    }
}

@media screen and (max-width: 480px) {
    .porcoes-carousel-section .carousel-item-porcao {
        min-width: 110px !important;
        width: 110px !important;
        max-width: 110px !important;
    }
    
    .porcoes-carousel-section .carousel-item-porcao img.porcao-imagem-clicavel {
        height: 75px !important;
        max-height: 75px !important;
    }
}

