/**
 * RESPONSIVE SOBRE CSS - ATLANTIDA DMC
 * Estilos responsivos específicos para sobre.html e about-en.html
 * Inclui: Seções de conteúdo, equipe, missão, valores
 */

/* ===== HERO SOBRE ===== */
@media (max-width: 767px) {
    .about-hero, .sobre-hero,
    .hero-about,
    section[class*="hero"] {
        min-height: 100vh !important;
        padding: 0 15px !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .about-hero > div, .sobre-hero > div {
        width: 100% !important;
        max-width: 900px !important;
        margin: 0 auto !important;
    }
    
    .about-hero-title, .sobre-hero-title {
        font-size: 2rem !important;
        line-height: 1.1 !important;
        margin-bottom: 15px !important;
        padding-top: 0 !important;
    }
    
    .about-hero-subtitle, .sobre-hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
        opacity: 0.9 !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .about-hero, .sobre-hero,
    .hero-about,
    section[class*="hero"] {
        min-height: 100vh !important;
        padding: 0 30px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .about-hero > div, .sobre-hero > div {
        width: 100% !important;
        max-width: 900px !important;
        margin: 0 auto !important;
    }
    
    .about-hero-title, .sobre-hero-title {
        font-size: 2.5rem !important;
    }
}

/* Desktop - centralizar títulos também */
@media (min-width: 1024px) {
    .about-hero, .sobre-hero,
    .hero-about,
    section[class*="hero"] {
        min-height: 100vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .about-hero > div, .sobre-hero > div {
        width: 100% !important;
        max-width: 900px !important;
        margin: 0 auto !important;
    }
}

/* ===== SEÇÕES DE CONTEÚDO - FORÇA MÁXIMA ===== */
@media (max-width: 767px) {
    /* Seletores mais específicos para garantir aplicação */
    main section, 
    section,
    .content-section, 
    .conteudo-section {
        padding: 50px 15px !important;
        display: block !important;
    }
    
    /* Grid forçado */
    main section > div,
    .content-grid, 
    .conteudo-grid,
    div[style*="display: grid"],
    div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        grid-template-columns: none !important;
    }
    
    /* Texto primeiro */
    main section > div > div:first-child,
    .content-text, 
    .conteudo-texto {
        order: 1 !important;
        text-align: justify !important;
        margin-bottom: 30px !important;
    }
    
    /* Imagem por baixo e GRANDE */
    main section > div > div:last-child,
    .content-image, 
    .conteudo-imagem {
        order: 2 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* IMAGEM DA SEÇÃO "Como parte do grupo" - FULLSCREEN em mobile */
    .about-image img,
    img[src*="Porto"],
    img[alt*="Porto"],
    section div[style*="height: 700px"] img,
    .porto-image img {
        border-radius: 0 !important;
        height: 100vh !important;
        max-height: 100vh !important;
        min-height: 100vh !important;
        object-fit: cover !important;
        width: 100vw !important;
        display: block !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
    }
    
    /* Container da imagem também fullscreen */
    .about-image,
    div[style*="height: 700px"],
    .porto-image {
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        padding: 0 !important;
        height: 100vh !important;
        overflow: hidden !important;
    }
    
    /* Seção que contém a imagem - remover padding */
    section:has(.about-image),
    section:has(.porto-image) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    
    .content-description, 
    .conteudo-descricao {
        font-size: 14px !important;
        line-height: 1.6 !important;
        text-align: justify !important;
        margin-bottom: 20px !important;
    }
}

/* ===== GALERIA DE DESTINOS ===== */
@media (max-width: 767px) {
    /* Grid de destinos - 1 coluna em mobile */
    main section div[style*="grid-template-columns: repeat(3, 1fr)"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
    }
    
    /* Itens de destino */
    .destination-item {
        height: 250px !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        margin-bottom: 15px !important;
    }
    
    .destination-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }
    
  
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* Grid de destinos - 2 colunas em tablet */
    main section div[style*="grid-template-columns: repeat(3, 1fr)"] {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .destination-item {
        height: 350px !important;
        border-radius: 8px !important;
    }
    
   
}

@media (min-width: 768px) and (max-width: 1023px) {
    .content-section, .conteudo-section {
        padding: 50px 30px !important;
    }
    
    .content-grid, .conteudo-grid {
        gap: 40px !important;
    }
    
    .content-image img, .conteudo-imagem img {
        max-height: 450px !important;
        min-height: 350px !important;
    }
}

/* ===== SEÇÃO MISSÃO/VISÃO/VALORES ===== */
@media (max-width: 767px) {
    .mission-section, .missao-section {
        padding: 40px 15px !important;
    }
    
    .mission-grid, .missao-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    .mission-card, .missao-card {
        padding: 25px 20px !important;
        text-align: center !important;
        border-radius: 8px !important;
        background: #f8f9fa !important;
    }
    
    .mission-icon, .missao-icon {
        font-size: 2.5rem !important;
        margin-bottom: 15px !important;
        color: var(--primary-color) !important;
    }
    
    .mission-title, .missao-titulo {
        font-size: 18px !important;
        margin-bottom: 12px !important;
        font-weight: 600 !important;
    }
    
    .mission-description, .missao-descricao {
        font-size: 14px !important;
        line-height: 1.5 !important;
        color: #666 !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .mission-grid, .missao-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
    
    .mission-card, .missao-card {
        padding: 30px 25px !important;
    }
}

/* ===== SEÇÃO EQUIPE/TEAM ===== */
@media (max-width: 767px) {
    .team-section, .equipe-section {
        padding: 40px 15px !important;
    }
    
    .team-grid, .equipe-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }
    
    .team-member, .equipe-membro {
        text-align: center !important;
        padding: 20px !important;
        border-radius: 8px !important;
        background: #fff !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }
    
    .team-photo, .equipe-foto {
        width: 120px !important;
        height: 120px !important;
        border-radius: 50% !important;
        margin: 0 auto 15px !important;
        object-fit: cover !important;
    }
    
    .team-name, .equipe-nome {
        font-size: 16px !important;
        font-weight: 600 !important;
        margin-bottom: 5px !important;
    }
    
    .team-position, .equipe-cargo {
        font-size: 13px !important;
        color: var(--primary-color) !important;
        margin-bottom: 10px !important;
    }
    
    .team-description, .equipe-descricao {
        font-size: 12px !important;
        line-height: 1.4 !important;
        color: #666 !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .team-grid, .equipe-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
    
    .team-photo, .equipe-foto {
        width: 150px !important;
        height: 150px !important;
    }
}

/* ===== SEÇÃO HISTÓRIA/HISTORY ===== */
@media (max-width: 767px) {
    .history-section, .historia-section {
        padding: 40px 15px !important;
    }
    
    .timeline, .linha-tempo {
        position: relative !important;
        padding-left: 30px !important;
    }
    
    .timeline-item, .linha-tempo-item {
        margin-bottom: 30px !important;
        position: relative !important;
    }
    
    .timeline-year, .linha-tempo-ano {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: var(--primary-color) !important;
        margin-bottom: 8px !important;
    }
    
    .timeline-title, .linha-tempo-titulo {
        font-size: 14px !important;
        font-weight: 500 !important;
        margin-bottom: 5px !important;
    }
    
    .timeline-description, .linha-tempo-descricao {
        font-size: 13px !important;
        line-height: 1.4 !important;
        color: #666 !important;
    }
    
    .timeline::before, .linha-tempo::before {
        content: '' !important;
        position: absolute !important;
        left: 10px !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 2px !important;
        background: var(--primary-color) !important;
    }
    
    .timeline-item::before, .linha-tempo-item::before {
        content: '' !important;
        position: absolute !important;
        left: -25px !important;
        top: 5px !important;
        width: 10px !important;
        height: 10px !important;
        border-radius: 50% !important;
        background: var(--primary-color) !important;
    }
}

/* ===== SEÇÃO CERTIFICAÇÕES ===== */
@media (max-width: 767px) {
    .certifications-section, .certificacoes-section {
        padding: 40px 15px !important;
    }
    
    .certifications-grid, .certificacoes-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .certification-item, .certificacao-item {
        text-align: center !important;
        padding: 20px 10px !important;
        border-radius: 8px !important;
        background: #f8f9fa !important;
    }
    
    .certification-logo, .certificacao-logo {
        max-width: 80px !important;
        height: auto !important;
        margin-bottom: 10px !important;
    }
    
    .certification-name, .certificacao-nome {
        font-size: 12px !important;
        font-weight: 500 !important;
        text-align: center !important;
    }
}

/* ===== CORREÇÕES ADICIONAIS PARA IMAGENS ===== */
@media (max-width: 767px) {
    /* Todas as imagens da página */
    img {
        max-width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
    }
    
    /* Seções principais */
    main section {
        padding: 30px 15px !important;
        margin-bottom: 20px !important;
    }
    
    /* Container principal */
    .container {
        padding: 0 15px !important;
        max-width: 100% !important;
    }
    
    /* Ajustes para seções com background */
    section[style*="background"] {
        padding: 40px 15px !important;
        margin: 20px 0 !important;
    }
    
    /* Textos em seções */
    section h2, section h3 {
        font-size: 1.5rem !important;
        text-align: center !important;
        margin-bottom: 20px !important;
        line-height: 1.2 !important;
    }
    
    section p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        text-align: center !important;
        margin-bottom: 15px !important;
    }
    
    /* Espaçamentos entre seções */
    main > section + section {
        margin-top: 30px !important;
    }
}

@media (max-width: 480px) {
    /* Telas muito pequenas */
    .destination-item {
        height: 200px !important;
        margin-bottom: 10px !important;
    }
    
    .porto-image {
        height: 250px !important;
        margin-bottom: 15px !important;
    }
    
    main section {
        padding: 20px 10px !important;
    }
    
    section h2, section h3 {
        font-size: 1.3rem !important;
    }
    
    section p {
        font-size: 13px !important;
    }
    
    /* Ajustes para seção de conteúdo em telas muito pequenas - FULLSCREEN mantido */
    .about-image img,
    img[src*="Porto"],
    img[alt*="Porto"],
    section div[style*="height: 700px"] img,
    .porto-image img {
        height: 100vh !important;
        max-height: 100vh !important;
        min-height: 100vh !important;
        width: 100vw !important;
        border-radius: 0 !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
    }
    
    .about-image,
    div[style*="height: 700px"],
    .porto-image {
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        padding: 0 !important;
        height: 100vh !important;
        overflow: hidden !important;
    }
    
    .content-section, .conteudo-section {
        padding: 30px 10px !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .certifications-grid, .certificacoes-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 25px !important;
    }
    
    .certification-logo, .certificacao-logo {
        max-width: 100px !important;
    }
}
