/* ===================================
   FRONT PAGE - PÁGINA INICIAL
   =================================== */

/* Hero Section (Banner Original) */
.hero-section {
    position: relative;
    margin-top: 76px;
    width: 100%;
    height: auto;
    max-height: 70vh;
    overflow: hidden;
}

.hero-content {
    position: relative;
    display: block;
    width: 100%;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 70vh;
    object-fit: cover;
    object-position: center;
}

/* Spaces Gallery */
.spaces-gallery {
    padding: 3rem 0 4rem;
    background: #fff3d8;
}

.spaces-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.space-item-home {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: grid;
    grid-template-rows: 220px 1fr;
    height: 500px;
}

.space-item-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.space-image-home {
    width: 100%;
    height: 220px;
    background: #ecba78;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.space-image-logo {
    background: white;
}

.space-logo-img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.space-content-home {
    padding: 2rem;
    display: grid;
    grid-template-rows: 3.5rem 4.8rem 1fr auto;
    gap: 0;
    align-content: start;
    row-gap: 0;
}

.space-content-home h3 {
    font-size: 1.25rem;
    color: #523827;
    margin: 0 0 1rem 0;
    font-weight: 600;
    line-height: 1.4;
    height: 3.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.space-content-home p {
    color: #634b43;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    font-size: 0.95rem;
    height: 4.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-space-more {
    display: inline-block;
    width: fit-content;
    padding: 0.75rem 2rem;
    background: #9f643d;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin: 1.5rem auto 0;
    align-self: center;
    justify-self: center;
}

.btn-space-more:hover {
    background: #cb8659;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(159, 100, 61, 0.3);
}

/* ===================================
   LATEST NEWS SECTION
   =================================== */

.latest-news-section {
    padding: 3rem 0 4rem;
    background: white;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.news-section-title {
    font-size: 2rem;
    color: #873b4b;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.news-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 2rem;
    background: #9f643d;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.news-view-all:hover {
    background: #cb8659;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(159, 100, 61, 0.3);
}

.news-view-all svg {
    transition: transform 0.3s ease;
}

.news-view-all:hover svg {
    transform: translateX(4px);
}

/* Botão Ver Todas na parte inferior */
.news-view-all-bottom {
    text-align: center;
    margin-top: 3rem;
}

/* Grid de Cards */
.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Estilo dos Cards */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(135, 59, 75, 0.1);
    transition: all 0.3s ease;
    height: 380px !important;
    min-height: 380px !important;
    max-height: 380px !important;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(135, 59, 75, 0.15);
}

.news-card-link {
    display: grid;
    grid-template-rows: 220px 1fr;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Imagem do Card */
.news-card-image {
    position: relative;
    width: 100%;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    overflow: hidden;
    background: #ecba78;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ecba78 0%, #cb8659 100%);
}

/* Conteúdo do Card */
.news-card-content {
    padding: 1.5rem;
    display: grid;
    grid-template-rows: 1.2rem 4.2rem;
    gap: 0.8rem;
    align-content: start;
}

.news-date {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #8b7355;
    letter-spacing: 0.03em;
    margin: 0;
    height: 1.2rem;
}

.news-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #523827;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
    min-height: 3.2rem;
    display: block;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.news-card:hover .news-card-title {
    color: #873b4b;
}

/* Estado Vazio */
.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    border: 2px dashed #e8d4b8;
}

.news-empty p {
    font-size: 1rem;
    color: #8b7355;
    margin: 0;
    font-weight: 500;
}

/* Info Section */
.info-section {
    padding: 3rem 0 6rem;
    background: #fff3d8;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.info-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 12px;
    overflow: hidden !important;
    transition: all 0.3s ease;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    height: 420px !important;
    min-height: 420px !important;
    max-height: 420px !important;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-card i {
    font-size: 3.5rem;
    color: #873b4b;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
    height: 3.5rem !important;
    min-height: 3.5rem !important;
    max-height: 3.5rem !important;
    line-height: 3.5rem !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.info-card:hover i {
    transform: scale(1.1);
    color: #cb8659;
}

.info-card h3 {
    font-size: 1.5rem;
    color: #523827;
    margin: 1rem 0 0 0;
    padding: 0;
    line-height: 1.3;
    height: 4rem !important;
    min-height: 4rem !important;
    max-height: 4rem !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    text-overflow: ellipsis;
    flex-shrink: 0 !important;
}

.info-card p {
    color: #634b43;
    line-height: 1.6;
    margin: 1rem 0 0 0;
    padding: 0;
    font-size: 0.95rem;
    height: 4.8rem !important;
    min-height: 4.8rem !important;
    max-height: 4.8rem !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    text-overflow: ellipsis;
    flex-shrink: 0 !important;
}

.btn-info {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #9f643d;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: auto 0 0 0;
    flex-shrink: 0 !important;
}

.btn-info:hover {
    background: #cb8659;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(159, 100, 61, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Tablet - 1 coluna igual mobile para melhor visualização */
    .spaces-carousel {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .space-item-home {
        height: 500px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .space-image-home {
        height: 220px;
    }
    
    /* News Section - Tablet - 1 coluna */
    .news-cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .news-card {
        height: 380px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .news-card-image {
        height: 220px;
    }
    
    /* Info Grid - Tablet - 1 coluna */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .info-card {
        height: 420px !important;
        min-height: 420px !important;
        max-height: 420px !important;
        max-width: 600px;
        margin: 0 auto;
    }
    
    /* Ajuste de tipografia para tablet */
    .section-title {
        font-size: 1.9rem;
    }
    
    .space-content-home h3 {
        font-size: 1.25rem;
    }
    
    .news-card-title {
        font-size: 1.15rem;
    }
    
    .info-card h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Mobile - 1 coluna */
    .spaces-carousel {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .space-item-home {
        height: 480px;
        max-width: 100%;
    }
    
    .space-image-home {
        height: 200px;
    }
    
    .space-content-home {
        padding: 1.75rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .info-card {
        height: 400px !important;
        min-height: 400px !important;
        max-height: 400px !important;
    }
    
    /* News Section - Mobile */
    .latest-news-section {
        padding: 3rem 0;
    }
    
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .news-section-title {
        font-size: 1.8rem;
    }
    
    .news-view-all {
        font-size: 0.9rem;
    }
    
    .news-cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .news-card {
        height: 360px !important;
        min-height: 360px !important;
        max-height: 360px !important;
        max-width: 100%;
    }
    
    .news-card-link {
        grid-template-rows: 200px 1fr;
    }
    
    .news-card-image {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    .news-card-content {
        padding: 1.5rem;
    }
    
    .news-card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    /* Remover espaçamento do hero-section em telas pequenas */
    .hero-section {
        margin-top: 0 !important;
    }

    .space-item-home {
        height: 460px;
    }
    
    .space-image-home {
        height: 180px;
    }

    .space-content-home {
        padding: 1.5rem;
    }

    .space-content-home h3 {
        font-size: 1.15rem;
    }
    
    .space-content-home p {
        font-size: 0.9rem;
    }

    .info-card {
        height: 380px !important;
        min-height: 380px !important;
        max-height: 380px !important;
        padding: 2rem 1.5rem;
    }
    
    .info-card h3 {
        font-size: 1.35rem;
    }
    
    /* News Section - Mobile Pequeno */
    .news-section-title {
        font-size: 1.5rem;
    }
    
    .news-card {
        height: 340px !important;
        min-height: 340px !important;
        max-height: 340px !important;
    }
    
    .news-card-link {
        grid-template-rows: 180px 1fr;
    }
    
    .news-card-image {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
    }
    
    .news-card-title {
        font-size: 1.05rem;
    }
    
    .news-date {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}
