:root {
    --primary-blue: #2065AE;
    --secondary-blue: #4592E3;
    --dark-blue: #154171;
    --white: #FFFFFF;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: linear-gradient(to right, var(--primary-blue), var(--secondary-blue));
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 16px;
    transition: opacity 0.3s;
}

.main-nav a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    position: relative;
    height: 800px;
    min-height: 600px;
    background-image: url('../img/bg_desktop.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    /* Alinha o bloco de conteúdo à direita */
    position: relative;
    z-index: 2;
}

/* --- CORREÇÃO DO BLOCO DE CONTEÚDO E SHAPE --- */

/* Animação de Entrada Fade-In */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    position: relative;
    /* "Âncora" para o shape */
    text-align: right;
    max-width: 600px;
    color: var(--dark-blue);
    /* Não definimos z-index aqui para deixar o fluxo natural, 
       mas controlamos os filhos abaixo */
    animation: fadeInUp 1s ease-out forwards;
}

.section-title {
    color: var(--dark-blue);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-blue);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* O Shape Blur */
.hero-shape {
    position: absolute;
    width: 600px;
    height: 400px;
    background-color: var(--primary-blue);
    opacity: 0.8;
    border-radius: 50%;
    filter: blur(130px);

    /* Centralização perfeita em relação ao texto */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    z-index: 0;
    /* Fica na base do .hero-content */
    pointer-events: none;
    /* Deixa clicar através dele */
}


.hero-content h1,
.hero-content h2,
.hero-content a {
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.hero-title {
    font-size: 60px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 30px;
}

.btn-cta {
    display: inline-block;
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-cta:hover {
    transform: scale(1.05);
    background-color: #0f3054;
}

/* --- ESTILO DO HAMBURGUER (Padrão: Escondido) --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
}

/* Animação suave de descida */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 768px) {
    .hero {
        background-image: url('../img/bg_mobile.webp');
        display: flex;
        align-items: flex-start;
        height: auto;
    }

    .hero-content {
        margin-top: 50px;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-container {
        justify-content: center;
    }

    .hero-content {
        text-align: center;

    }

    .hero-shape {

        width: 90vw;
        height: 300px;
    }

    .hero-title {
        font-size: 40px;
    }

    .header-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }


    .hamburger {
        display: flex;
    }


    .main-nav {
        width: 100%;
        display: none;
        margin-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 20px;
    }


    .main-nav.active {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }


    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

}

/* --- SEÇÃO NOSSOS PRODUTOS (Modernizada) --- */
.products-section {
    width: 100%;
    background-color: #F8FAFC;
    /* Fundo mais clean e moderno */
    position: relative;
    padding: 100px 0;
    /* Mais espaçamento */
    text-align: center;
    overflow: hidden;
}

/* Background suave */
.products-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/leite.webp');
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.05;
    /* Muito sutil */
    z-index: 0;
    pointer-events: none;
}

.product-card {
    /* Remover textura antiga */
    background-image: none;
    background-color: var(--white);
    border-radius: 24px;
    /* Bordas mais arredondadas */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Sombra ultra suave */
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Efeito 'spring' */
    height: auto;
    min-height: 420px;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--primary-blue), var(--secondary-blue));
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(32, 101, 174, 0.15);
    /* Sombra colorida suave */
}

.product-card:hover::before {
    opacity: 1;
}

.product-title {
    color: var(--dark-blue);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    width: 100%;
    letter-spacing: -0.5px;
}

.product-image-wrapper {
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px auto;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image-wrapper {
    transform: scale(1.05);
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.btn-product {
    background-color: transparent;
    color: var(--primary-blue);
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: auto;
    letter-spacing: 0.5px;
}

.btn-product:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(32, 101, 174, 0.3);
}

/* Customização da Paginação do Swiper */
.swiper-pagination-bullet-active {
    background-color: var(--dark-blue) !important;
}

/* Responsividade Produtos */
@media (max-width: 768px) {
    .products-section {
        padding: 50px 0 80px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
}

/* --- SEÇÃO DE BANNERS --- */
.banners-section {
    width: 100%;
    padding: 80px 0;
    background-color: var(--white);
}

.banner-card {
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 10px;
    /* Padding menor para banners */
    overflow: hidden;
    /* Arredondar a imagem junto com o card */
    height: auto;
    transition: transform 0.3s ease;
}

.banner-card:hover {
    transform: translateY(-5px);
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    /* Arredondar imagem interna */
    object-fit: cover;
}

/* Remover estilos antigos de imagem full-width */
.bannerSwiper .swiper-slide img {
    /* Resetando estilos anteriores se necessário, mas a classe .banner-image já cuida */
}

/* Ajustar paginação para ficar abaixo dos cards, igual produtos */
.bannerSwiper .swiper-pagination {
    position: relative;
    margin-top: 30px;
    bottom: auto;
}

.bannerSwiper .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}

.bannerSwiper .swiper-pagination-bullet-active {
    background: var(--dark-blue) !important;
}

/* --- SEÇÃO CTA --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cta-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-white {
    background-color: var(--white);
    color: var(--dark-blue);
}

.btn-white:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

/* --- FOOTER --- */
.main-footer {
    background-color: #0f3054;
    /* Um azul mais escuro que o dark-blue padrão */
    color: #e0e0e0;
    padding: 60px 0 20px 0;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;

}

.footer-brand p {
    line-height: 1.6;
    max-width: 300px;
}

.main-footer h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.main-footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-blue);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-blue);
    padding-left: 5px;
    /* Efeitinho de movimento */
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .footer-contact p {
        justify-content: center;
    }
}

.footer-social .social-links-container {
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    .footer-social .social-links-container {
        justify-content: center;
    }
}

.footer-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 18px;
}

.footer-social .social-link:hover {
    background-color: var(--secondary-blue);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding-top: 20px;
    font-size: 12px;
    color: #888;
}

/* Responsividade Footer */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand,
    .footer-links,
    .footer-contact,
    .footer-social {
        text-align: center;
    }

    .main-footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-logo {
        margin: 0 auto 20px auto;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}

.section-padding {
    padding: 80px 0;
}

/* --- PÁGINA DE CONTATO --- */
.page-hero {
    position: relative;
    height: 400px;
    background-image: url('../img/bg_desktop.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(21, 65, 113, 0.8) 0%, rgba(21, 65, 113, 0.6) 100%);
    z-index: 1;
}

.page-hero .hero-container {
    z-index: 2;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    background-color: var(--white);
    padding: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: #F8FAFC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-blue);
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-item:hover .icon-box {
    background-color: var(--primary-blue);
    color: var(--white);
}

.info-text h3 {
    font-size: 18px;
    color: var(--dark-blue);
    margin-bottom: 5px;
    font-weight: 600;
}

.info-text p {
    color: #666;
    font-size: 15px;
}

.contact-form-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-blue);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #F8FAFC;
    font-family: var(--font-main);
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-blue);
    outline: none;
    box-shadow: 0 0 0 4px rgba(69, 146, 227, 0.1);
}

/* --- PÁGINA DE PRODUTOS (DETALHES) --- */
.products-detail-section {
    background-color: #F8FAFC;
}

.product-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

/* Zig-Zag layout: Inverte a ordem a cada linha par */
.product-row:nth-child(even) {
    flex-direction: row-reverse;
}

.product-img-col {
    flex: 1;
    display: flex;
    justify-content: center;
}

.product-img-col img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.product-row:hover .product-img-col img {
    transform: scale(1.02);
}

.product-text-col {
    flex: 1;
}

.product-detail-title {
    font-size: 32px;
    color: var(--dark-blue);
    margin-bottom: 20px;
    font-weight: 800;
}

.product-description {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Tabela Nutricional estilizada */
.nutritional-info {
    background-color: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--secondary-blue);
}

.nutritional-info h4 {
    font-size: 18px;
    color: var(--dark-blue);
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.nut-list {
    list-style: none;
}

.nut-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
    color: #666;
}

.nut-list li:last-child {
    border-bottom: none;
}

.nut-list li strong {
    color: var(--dark-blue);
}

/* Responsividade da Página de Produtos */
@media (max-width: 900px) {
    .product-row {
        flex-direction: column !important;
        /* Força coluna sempre em telas menores */
        gap: 40px;
        margin-bottom: 80px;
    }

    .product-detail-title {
        text-align: center;
    }

    .product-description {
        text-align: justify;
    }
}



@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }
}

/* --- QUEM SOMOS: Imagens da Fábrica --- */
.factory-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0 60px 0;
}

.factory-figure {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.factory-figure:hover {
    transform: translateY(-5px);
}

.factory-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.factory-figure:hover .factory-img {
    transform: scale(1.05);
}

.factory-figure figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.factory-figure:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .factory-images-grid {
        grid-template-columns: 1fr;
    }

    .factory-img {
        height: 250px;
    }

    /* No mobile, mostrar legenda sempre ou ajustar UX */
    .factory-figure figcaption {
        opacity: 1;
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.6);
        padding: 10px 15px;
    }
}

/* --- SEÇÃO MISSÃO --- */
.mission-section {
    background-color: var(--white);
    text-align: center;
    padding-top: 0;
    padding-bottom: 80px;
}

.mission-img-wrapper {
    margin-bottom: 40px;
    position: relative;
    border-radius: 0 0 50% 50% / 20px;
    overflow: hidden;
}

.mission-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(21, 65, 113, 0.15);
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
}

.mission-title {
    font-size: 48px;
    color: var(--primary-blue);
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.mission-text {
    font-size: 20px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.mission-highlight {
    font-size: 22px;
    color: var(--dark-blue);
    font-weight: 700;
    margin-top: 20px;
}

/* --- SEÇÃO DIRETORIA --- */
.board-section {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.board-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.board-img-col {
    flex: 1;
}

.board-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: -20px 20px 0 rgba(255, 255, 255, 0.05);
    /* Efeito visual sutil */
    border: 5px solid rgba(255, 255, 255, 0.1);
}

.board-info-col {
    flex: 1.2;
}

.board-title {
    font-size: 48px;
    color: #F0C48A;
    /* Um tom dourado/bege para destaque, ou use var(--secondary-blue) se preferir */
    font-weight: 800;
    margin-bottom: 20px;
}

.board-desc {
    font-size: 18px;
    margin-bottom: 40px;
    color: #e0e0e0;
    line-height: 1.6;
}

.board-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.board-member {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid var(--secondary-blue);
}

.board-member h4 {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 5px;
}

.board-member h4 span {
    color: var(--secondary-blue);
}

.board-member p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
}

.board-footer-text {
    margin-top: 40px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

@media (max-width: 900px) {
    .board-container {
        flex-direction: column;
    }

    .board-title,
    .mission-title {
        text-align: center;
        font-size: 36px;
    }
}