/* --- Reset Básico e Padrões Globais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #a40034; /* Cor de fundo principal */
    color: #ffffff;
    overflow-x: hidden;
}

img { max-width: 100%; }

/* --- Estilo do Componente Hero (Curso de Formação) --- */
.ag-formacao-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
    position: relative;
    gap: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.ag-formacao-content {
    max-width: 650px;
    z-index: 2;
}

.ag-formacao-logo img {
    display: block;
    width: 280px;
    height: auto;
    margin-bottom: 1.5rem;
}

.ag-formacao-subtitle {
    font-size: 1.2rem;
    letter-spacing: 1px;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

.ag-formacao-title {
    font-size: clamp(2.5rem, 6vw, 4.2rem); 
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.ag-formacao-image-wrapper {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
}

.ag-formacao-image-wrapper img {
    display: block;
    max-width: 40vw; 
    height: auto;
}

/* --- Seções Adicionais (Reaproveitadas do projeto base) --- */
.ag-corp-wrapper {
    width: 100%;
    padding: 4rem 0;
}

.ag-corp-bg-gray {
    background-color: #888888; /* Fundo cinza escuro */
    color: #ffffff;
}

.ag-footer-bg-light {
    background-color: #e0e0e0; /* Fundo cinza claro para o rodapé */
    color: #a40034;
}

/* Separador de seções com linha branca */
.ag-corp-section-separator {
    border-top: 1px solid #ffffff;
}

.ag-corp-container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

.ag-corp-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ag-corp-section-title {
    color: #a40034;
    font-size: clamp(1.5rem, 4vw, 2.2rem); 
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.ag-corp-intro-text {
    font-size: 1.6rem;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto 1rem auto;
}

.ag-corp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start; /* Alinhamento ao topo */
}

.ag-corp-grid-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.ag-corp-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ag-corp-grid-item p {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

/* Botão Pílula Padrão */
.ag-corp-cta-button {
    background-color: #a40034;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    border: 2px solid #a40034;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ag-corp-cta-button:hover {
    background-color: transparent;
    color: #a40034;
    border-color: #a40034;
}

/* Botão Retangular (Para Inscrições e Agendar Visita) */
.ag-btn-rect {
    background-color: #a40034;
    color: #ffffff;
    padding: 1rem 3.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    display: inline-block;
    border: 2px solid #a40034;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ag-btn-rect:hover {
    background-color: transparent;
    color: #a40034;
    border-color: #a40034;
}

/* --- Grid de Cards (Público-Alvo) --- */
.ag-formacao-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.ag-formacao-card {
    background-color: #ffffff;
    border-radius: 25px; /* Arredondamento conforme o print */
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #a40034; /* Cor de texto vinho padrão */
}

.ag-formacao-card-icon {
    height: 70px;
    width: auto;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.ag-formacao-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.ag-formacao-card-text {
    font-size: 1rem;
    line-height: 1.4;
    color: #a40034;
}

/* --- Grid de Diferenciais (3 colunas) --- */
.ag-diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.ag-diferenciais-card {
    background-color: #ffffff;
    border-radius: 25px;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    color: #a40034;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ag-diferenciais-card img {
    width: 100%;
    height: 300px; 
    object-fit: cover;
}

.ag-diferenciais-card-body {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.ag-diferenciais-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ag-diferenciais-card-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #a40034;
}

/* --- Seção de Espaços Equipados --- */
.ag-espacos-panoramic {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
    margin-bottom: 3rem;
    object-position: bottom;
}

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

.ag-espacos-card {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.ag-espacos-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 25px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ag-espacos-card-title {
    color: #a40034;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ag-espacos-card-text {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
}

/* --- Seção "O Que Vamos Ensinar" (Caixas Vermelhas) --- */
.ag-ensinar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.ag-ensinar-card {
    background-color: #a40034;
    color: #ffffff;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: left;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ag-ensinar-card p {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
}

/* --- Seção "Como é o Curso" (Acordeão) --- */
.ag-curso-intro {
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.ag-text-red {
    color: #a40034;
}

.ag-accordion-container {
    max-width: 900px;
    margin: 0 auto;
}

.ag-accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Linha sutil separando os módulos */
}

/* Botão do Cabeçalho do Acordeão */
.ag-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    padding: 1.5rem 0;
    cursor: pointer;
    color: #ffffff;
    text-align: left;
    transition: background-color 0.3s ease;
}

/* Badge (A seta vermelha com o número) */
.ag-accordion-badge {
    background-color: #a40034;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    width: 60px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 10px; /* Compensa o corte do clip-path */
    clip-path: polygon(0 0, 80% 0, 100% 50%, 80% 100%, 0 100%); /* Formato de seta para a direita */
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.ag-accordion-title {
    font-size: 1.3rem;
    font-weight: 700;
    flex-grow: 1;
}

/* Ícone de abrir/fechar (+) e (-) */
.ag-accordion-icon {
    font-size: 1.8rem;
    font-weight: 300;
    color: #a40034;
    margin-left: 1rem;
}
.ag-accordion-icon::after {
    content: '+';
}
.ag-accordion-header.active .ag-accordion-icon::after {
    content: '-';
}

/* Conteúdo Expansível */
.ag-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding-left: calc(60px + 1.5rem); /* Alinha o texto com o título, ignorando a largura da seta vermelha */
}

.ag-accordion-inner {
    padding-bottom: 2rem;
}

.ag-accordion-inner p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

/* Colunas de Aulas dentro do Acordeão */
.ag-accordion-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 3rem;
}

.ag-accordion-columns ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ag-accordion-columns li {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
    color: rgba(255,255,255,0.9);
}

/* --- Wrapper Responsivo para Vídeos (16:9) --- */
.ag-depoimentos-videos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.ag-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ag-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Seção: Satisfação Garantida --- */
.ag-satisfacao-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.ag-satisfacao-icon-wrapper img {
    width: 130px;
    height: auto;
}

/* --- Seção: Sobre o Chef --- */
.ag-sobre-chef-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: stretch;
}

.ag-sobre-chef-foto {
    height: 100%;
}

.ag-sobre-chef-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.ag-sobre-chef-conteudo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ag-sobre-chef-conteudo p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 2rem;
}

.ag-sobre-chef-fotos-menores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.ag-sobre-chef-fotos-menores img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* --- Seção: FAQ (Perguntas Frequentes) --- */
.ag-faq-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.ag-faq-item {
    margin-bottom: 2.5rem;
}

.ag-faq-question {
    color: #a40034;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-transform: none;
}

.ag-faq-answer {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Seção: Parceiros --- */
.ag-parceiros-placeholder {
    /*border: 2px dashed rgba(255,255,255,0.3);*/
    border-radius: 15px;
    /*padding: 3rem;*/
    margin: 0 auto;
    max-width: 800px;
}

/* --- Seção: Dúvidas e Rodapé --- */
.ag-duvidas-botoes-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.ag-btn-duvidas {
    background-color: #a40034;
    color: #ffffff;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    line-height: 1.4;
    min-width: 350px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.ag-btn-duvidas:hover {
    transform: scale(1.02);
    background-color: #8c002c;
    color: #ffffff;
}

.ag-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.ag-footer-icons {
    flex-grow: 1;
    text-align: left;
}

.ag-footer-logo {
    flex-shrink: 0;
    margin-left: 2rem;
}

.ag-footer-logo img {
    width: 100px;
    height: auto;
}

/* --- Seção: Galeria de Fotos (NOVO) --- */
.ag-galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ag-galeria-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.ag-galeria-grid img:hover {
    transform: scale(1.03);
}

/* --- Ajuste Inserido Pelo Utilizador --- */
.ag-sobre-chef-fotos-menores img {
    min-height: 380px;
}

/* --- Media Queries para Responsividade --- */
@media (max-width: 1024px) {
    .ag-formacao-hero { padding: 2rem 4%; }
    .ag-formacao-image-wrapper img { max-width: 45vw; }
    .ag-formacao-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .ag-diferenciais-grid { grid-template-columns: repeat(2, 1fr); }
    .ag-espacos-grid { grid-template-columns: repeat(2, 1fr); }
    
    .ag-ensinar-grid { grid-template-columns: repeat(2, 1fr); }
    .ag-sobre-chef-grid { grid-template-columns: 1fr; }
    .ag-sobre-chef-foto { height: 400px; }
    
    .ag-galeria-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .ag-formacao-hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 4rem 1.5rem;
    }
    .ag-formacao-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
    }
    .ag-formacao-logo img { width: 200px; }
    .ag-formacao-image-wrapper {
        width: 100%;
        justify-content: center;
    }
    .ag-formacao-image-wrapper img {
        max-width: 75%;
        margin: auto;
    }
    .ag-corp-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    .ag-corp-text-content {
        align-items: center;
        text-align: center;
    }
    .ag-formacao-cards-grid { grid-template-columns: 1fr; }
    .ag-diferenciais-grid { grid-template-columns: 1fr; }
    .ag-espacos-grid { grid-template-columns: 1fr; }
    
    .ag-ensinar-grid { grid-template-columns: 1fr; }
    .ag-accordion-columns { grid-template-columns: 1fr; gap: 0; }
    .ag-accordion-content { padding-left: 0; } /* Remove recuo em telas pequenas */
    .ag-accordion-title { font-size: 1.1rem; }
    
    .ag-depoimentos-videos { grid-template-columns: 1fr; } /* Vídeos empilhados no telemóvel */
    
    .ag-satisfacao-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .ag-satisfacao-icon-wrapper img { margin: 0 auto; }
    .ag-satisfacao-text-wrapper h2 { text-align: center !important; }
    .ag-sobre-chef-fotos-menores { grid-template-columns: 1fr; }
    
    .ag-faq-item { margin-bottom: 2rem; }
    .ag-faq-question { font-size: 1.15rem; }
    .ag-faq-answer { font-size: 1rem; }

    .ag-btn-duvidas { width: 100%; min-width: unset; }
    .ag-footer-bottom { flex-direction: column; align-items: center; gap: 2rem; }
    .ag-footer-logo { margin-left: 0; }
    
    .ag-galeria-grid { grid-template-columns: 1fr; }
}


/* --- Correção botões "Ainda Tem Dúvidas" em telas pequenas --- */
@media (max-width: 390px) {
    .ag-duvidas-botoes-container {
        width: 100%;
        padding: 0 1rem;
        align-items: stretch;
    }

    .ag-btn-duvidas {
        min-width: unset;
        width: 100%;
        padding: 1rem 1.5rem;
        box-sizing: border-box;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

@media (min-width: 900px) {
.ag-depoimentos-instagram {
    display: flex;
    gap: 30px;
}}