/* ==================================================
   VARIÁVEIS GLOBAIS
================================================== */
:root {
    --primary: #770623;
    --dark: #1a1a1a;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* ==================================================
   RESET GLOBAL
================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================================================
   CONTAINER
================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    padding-inline: clamp(15px, 4vw, 40px);
    margin-inline: auto;
}

/* ==================================================
   TIPOGRAFIA FLUIDA
================================================== */
h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.1;
}

h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
}

h3 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
}

p, li {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.6;
}

/* ==================================================
   HERO
================================================== */
.hero {
    min-height: 100vh;
    padding: clamp(80px, 15vh, 140px) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, var(--primary) 0%, var(--dark) 85%);
}

.hero-content {
    padding-inline: 15px;
}

.subtitle {
    text-transform: uppercase;
    letter-spacing: clamp(3px, 1vw, 6px);
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 10px;
}

.hero-btns {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================================================
   BOTÕES
================================================== */
.btn-hero,
.btn-outline-white,
.btn-instagram {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-hero,
.btn-outline-white {
    border: 1px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-hero:hover,
.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-instagram {
    background: var(--primary);
    color: var(--white);
}

.btn-instagram:hover {
    background: #5a041a;
    transform: translateY(-3px);
}

/* ==================================================
   GRID PADRÃO
================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(30px, 6vw, 80px);
    align-items: center;
}

/* ==================================================
   DEGUSTAÇÃO
================================================== */
.degustacao {
    padding: 120px 0;
    background: #25030b;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ==================================================
   VITRINE
================================================== */
.vitrine-light {
    background: var(--white);
    padding: 120px 0;
    color: var(--dark);
}

.titulo-categoria {
    text-align: center;
    color: var(--primary);
    margin: clamp(50px, 10vw, 90px) 0 clamp(30px, 6vw, 50px);
    letter-spacing: 2px;
}

.titulo-categoria::after {
    content: '';
    display: block;
    width: clamp(60px, 15vw, 90px);
    height: 3px;
    background: var(--primary);
    margin: 18px auto 0;
    border-radius: 2px;
    opacity: 0.8;
}

/* GRID DA VITRINE */
.vitrine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(16px, 4vw, 36px);
}

/* CARD DO DOCE */
.doce-card {
    background: #fff;
    border: 1px solid rgba(119, 6, 35, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.doce-card:hover {
    box-shadow: 0 15px 40px rgba(119, 6, 35, 0.1);
}

.doce-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.doce-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doce-info {
    padding: 20px;
    flex: 1;
}

.doce-nome {
    color: var(--primary);
    margin-bottom: 5px;
}

.doce-desc {
    color: #555;
    font-size: 0.9rem;
}

.doce-preco {
    color: var(--primary);
    font-weight: 700;
    margin: 15px 0;
}

.doce-footer {
    padding: 20px;
}

/* ==================================================
   GUIA DO EVENTO
================================================== */
.guia-evento {
    padding: 120px 0;
    text-align: center;
}

.guia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.guia-item {
    padding: 50px 30px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.guia-item:hover {
    background: rgba(255,255,255,0.03);
    transform: translateY(-10px);
}

/* ==================================================
   SOCIAL BOX
================================================== */
.social-box {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.social-content {
    padding: 60px;
}

.social-stats {
    background: #fafafa;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ==================================================
   RESPONSIVO
================================================== */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 100px 20px 80px;
    }

    .hero-btns {
        flex-direction: column;
    }

    .social-box {
        grid-template-columns: 1fr;
    }

    .social-content,
    .social-stats {
        padding: 30px 20px;
    }
}

@media (max-width: 600px) {
    .vitrine-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===============================
   BASE RESPONSIVA GERAL
================================ */

html, body {
    width: 100%;
    overflow-x: hidden;
}


/* ===============================
   HERO PRINCIPAL
================================ */
.hero {
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
}
@media (max-width: 768px) {
    .hero {
        min-height: 85vh;
        padding: 40px 20px;
        background-position: center top;
    }
}
/* ===============================
   SEÇÕES COM IMAGEM
================================ */

.bloco-imagem,
.imagem-destaque {
    width: 100%;
}

.section-imagem img,

.imagem-destaque img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 600px) {
    .section-imagem img,
    .bloco-imagem img,
    .imagem-destaque img {
        height: auto;
        object-fit: contain;
    }
}
/* ===============================
   VITRINE DE DOCES
================================ */
.vitrine {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 1024px) {
    .vitrine {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .vitrine {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}
/* ===============================
   CARD
================================ */
.card {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}
@media (max-width: 600px) {
    .card img {
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }
}
figure {
    margin: 0;
}

/* ===============================
   CORREÇÃO REAL DAS IMAGENS NO CELULAR
================================ */
@media (max-width: 600px) {
    .doce-img-wrapper {
        aspect-ratio: auto;
    }

    .doce-img-wrapper img {
        height: auto;
        max-height: 280px;
        object-fit: contain;
    }
}

/* =========================================
   PADRONIZA TODAS AS IMAGENS DO INDEX NO CEL
========================================= */
@media (max-width: 600px) {

    /* Wrapper da imagem do doce */
    .doce-img-wrapper {
        width: 100%;
        height: 220px;          /* TODAS IGUAIS */
        aspect-ratio: unset;
        overflow: hidden;
        background: #f8f8f8;    /* evita “buraco” */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Imagem */
    .doce-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;      /* padroniza visual */
    }
}


