/* =====================================================
   CSS ESPECÍFICO PARA A PÁGINA MICROTORREFAÇÃO
   Atualizado: 08/11/2025 - Responsivo otimizado
   ===================================================== */

/* FORÇAR IMAGEM DE FUNDO NO HERO */
body #main section#microtorrefacao-hero {
    background-image: linear-gradient(rgba(91, 29, 8, 0.7), rgba(150, 57, 25, 0.7)), url('/images/graos-cafe.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

/* Hero Microtorrefação */
section#microtorrefacao-hero {
    position: relative !important;
    background: linear-gradient(rgba(91, 29, 8, 0.7), rgba(150, 57, 25, 0.7)), url('/images/graos-cafe.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    min-height: 70vh !important;
    padding: 6em 0 4em 0;
    text-align: center;
    color: white;
    overflow: hidden;
}

#microtorrefacao-hero h1 {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 0.3em;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.6);
    letter-spacing: 3px;
}

#microtorrefacao-hero .hero-subtitle {
    color: #ffe186;
    font-style: normal;
    margin-bottom: 1.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#microtorrefacao-hero .hero-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2em;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Seção Microtorrefação Completa */
#microtorrefacao {
    background: linear-gradient(135deg, #d69063 0%, #963919 100%);
    padding: 4em 0;
    text-align: center;
}

#microtorrefacao .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2em;
}

#microtorrefacao .major h2 {
    color: #5b1d08;
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

#microtorrefacao .major p {
    color: #e7d7c0;
    font-size: 1.4em;
    font-style: italic;
    margin-bottom: 3em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

#microtorrefacao .features {
    margin-bottom: 3em;
}

#microtorrefacao .feature-main {
    background: rgba(91, 29, 8, 0.15);
    border-radius: 20px;
    padding: 2.5em 2em;
    margin-bottom: 2.5em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 225, 134, 0.3);
    display: flex;
    align-items: center;
    gap: 2.5em;
    text-align: left;
}

#microtorrefacao .feature-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: rgba(255, 225, 134, 0.5);
}

#microtorrefacao .feature-main .icon {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    line-height: 90px;
    font-size: 2.5em;
    background: linear-gradient(135deg, #ffe186, #ffd700);
    color: #5b1d08;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(255, 225, 134, 0.4);
}

#microtorrefacao .feature-main .content h3 {
    font-size: 1.5em;
    margin-bottom: 0.8em;
    color: #5b1d08;
    font-weight: 700;
}

#microtorrefacao .feature-main .content p {
    color: #f5e6d3;
    font-size: 1.1em;
    line-height: 1.7;
    margin: 0;
}

#microtorrefacao .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5em;
}

#microtorrefacao .features-grid article {
    background: rgba(91, 29, 8, 0.1);
    border-radius: 15px;
    padding: 2em 1.5em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(231, 215, 192, 0.3);
}

#microtorrefacao .features-grid article:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
    border-color: rgba(231, 215, 192, 0.5);
}

#microtorrefacao .features .icon {
    display: inline-block;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e7d7c0, #d4c4a8);
    color: #5b1d08;
    font-size: 1.8em;
    margin-bottom: 1.2em;
    box-shadow: 0 6px 15px rgba(231, 215, 192, 0.3);
}

#microtorrefacao .features h3 {
    color: #5b1d08;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0;
}

#microtorrefacao .actions {
    margin-top: 3em;
    text-align: center;
}

#microtorrefacao .button.primary {
    background: linear-gradient(135deg, #ffe186, #ffd700);
    color: #5b1d08 !important;
    border: 2px solid rgba(255, 225, 134, 0.8);
    padding: 1.3em 3.5em;
    font-weight: 700;
    font-size: 1.1em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 225, 134, 0.4);
    display: inline-block;
    text-decoration: none;
}

#microtorrefacao .button.primary:hover {
    background: linear-gradient(135deg, #5b1d08, #ffcc00) !important;
    color: #5b1d08 !important;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(255, 225, 134, 0.6);
    border-color: rgba(255, 225, 134, 1);
    text-decoration: none;
}

/* Seção Spotlight - Sustentabilidade */
.wrapper.alt.style2 .spotlight {
    display: flex;
    align-items: center;
    gap: 2em;
    padding: 2em;
}

.wrapper.alt.style2 .spotlight .image {
    flex: 0 0 40%;
    max-width: 400px;
}

.wrapper.alt.style2 .spotlight .image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.wrapper.alt.style2 .spotlight .content {
    flex: 1;
}

.wrapper.alt.style2 .spotlight .content h2 {
    margin-bottom: 1em;
    color: #5b1d08;
}

/* Responsividade Microtorrefação */
@media (max-width: 980px) {
    #microtorrefacao-hero {
        padding: 2em 1.5em 1.5em 1.5em;
        background-attachment: scroll;
        min-height: auto !important;
        height: auto !important;
    }
    
    #microtorrefacao-hero h1 {
        font-size: 3em;
    }
    
    #microtorrefacao-hero .hero-subtitle {
        font-size: 1.4em;
    }
    
    #microtorrefacao-hero .hero-description {
        font-size: 1.1em;
        padding: 0 1.5em;
    }
    
    #microtorrefacao {
        padding: 3em 0;
    }
    
    #microtorrefacao .major h2 {
        font-size: 2.5em;
    }
    
    #microtorrefacao .major p {
        font-size: 1.2em;
    }
    
    #microtorrefacao .feature-main {
        flex-direction: column;
        text-align: center;
        padding: 2.5em 1.5em;
        gap: 1.5em;
    }
    
    #microtorrefacao .feature-main .icon {
        width: 80px;
        height: 80px;
        line-height: 80px;
        font-size: 2.2em;
    }
    
    #microtorrefacao .feature-main .content h3 {
        font-size: 1.3em;
        margin-bottom: 0.6em;
    }
    
    #microtorrefacao .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5em;
    }
}

@media (max-width: 736px) {
    #microtorrefacao-hero {
        padding: 1.5em 2em 1em 2em;
        min-height: auto !important;
        height: auto !important;
    }
    
    #microtorrefacao-hero h1 {
        font-size: 3.4em;
        letter-spacing: 0.5px;
        margin-bottom: 0.2em;
    }
    
    #microtorrefacao-hero .hero-subtitle {
        font-size: 1.1em;
        margin-bottom: 1em;
    }
    
    #microtorrefacao-hero .hero-description {
        font-size: 1em;
        padding: 0;
        margin-bottom: 1em;
    }
    
    #microtorrefacao {
        padding: 2em 0;
    }
    
    #microtorrefacao .inner {
        padding: 0 1.5em;
    }
    
    #microtorrefacao .major h2 {
        font-size: 2em;
    }
    
    #microtorrefacao .major p {
        font-size: 1.1em;
    }
    
    #microtorrefacao .feature-main {
        padding: 2em 1.5em;
        gap: 1.2em;
    }
    
    #microtorrefacao .feature-main .content h3 {
        font-size: 1.25em;
    }
    
    #microtorrefacao .feature-main .content p {
        font-size: 1em;
    }
    
    #microtorrefacao .features-grid {
        grid-template-columns: 1fr;
        gap: 1.2em;
    }
    
    /* Responsividade spotlight no mobile */
    .wrapper.alt.style2 .spotlight {
        flex-direction: column;
        text-align: center;
        padding: 2em 1em;
    }
    
    .wrapper.alt.style2 .spotlight .image {
        margin-bottom: 1.5em;
        order: -1;
    }
    
    .wrapper.alt.style2 .spotlight .image img {
        max-width: 100%;
        height: auto;
        width: 100%;
        max-height: 250px;
        object-fit: cover;
        border-radius: 8px;
    }
    
    .wrapper.alt.style2 .spotlight .content {
        padding: 0 1em;
    }
    
    .wrapper.alt.style2 .spotlight .content h2 {
        font-size: 1.8em;
        margin-bottom: 1em;
    }
    
    /* Forçar altura automática no mobile */
    body #main section#microtorrefacao-hero {
        min-height: auto !important;
        height: auto !important;
    }
    
    #microtorrefacao .features-grid article {
        padding: 1.8em 1.2em;
    }
    
    #microtorrefacao .button.primary {
        padding: 1.1em 3em;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    #microtorrefacao-hero {
        min-height: auto !important;
        height: auto !important;
        padding: 1em 2.5em 0.5em 2.5em;
    }
    
    #microtorrefacao-hero h1 {
        font-size: 3.4em;
        letter-spacing: 0px;
        margin-bottom: 0.1em;
    }
    
    #microtorrefacao-hero .hero-subtitle {
        font-size: 1em;
        margin-bottom: 0.8em;
    }
    
    #microtorrefacao-hero .hero-description {
        font-size: 0.95em;
        line-height: 1.6;
        padding: 0;
        margin-bottom: 0.5em;
    }
    
    #microtorrefacao .major h2 {
        font-size: 1.8em;
        letter-spacing: 1px;
    }
    
    #microtorrefacao .major p {
        font-size: 1em;
        margin-bottom: 2em;
    }
    
    #microtorrefacao .feature-main {
        padding: 1.8em 1.2em;
        gap: 1em;
    }
    
    #microtorrefacao .feature-main .icon {
        width: 70px;
        height: 70px;
        line-height: 70px;
        font-size: 2em;
    }
    
    #microtorrefacao .feature-main .content h3 {
        font-size: 1.15em;
        margin-bottom: 0.5em;
    }
    
    #microtorrefacao .feature-main .content p {
        font-size: 0.95em;
        line-height: 1.6;
    }
    
    #microtorrefacao .features-grid .icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 1.6em;
        margin-bottom: 1em;
    }
    
    #microtorrefacao .features-grid h3 {
        font-size: 1.05em;
    }
    
    #microtorrefacao .features-grid article {
        padding: 1.5em 1em;
    }
    
    #microtorrefacao .button.primary {
        padding: 1em 2.5em;
        font-size: 0.95em;
        letter-spacing: 1px;
    }
    
    #microtorrefacao .actions {
        margin-top: 2.5em;
    }
    
    #microtorrefacao .button.primary {
        padding: 0.8em 1.8em;
        font-size: 1em;
    }
    
    /* Spotlight responsivo para telas muito pequenas */
    .wrapper.alt.style2 .spotlight {
        padding: 1.5em 1em;
    }
    
    .wrapper.alt.style2 .spotlight .image img {
        max-height: 200px;
    }
    
    .wrapper.alt.style2 .spotlight .content h2 {
        font-size: 1.5em;
    }
    
    .wrapper.alt.style2 .spotlight .content p,
    .wrapper.alt.style2 .spotlight .content li {
        font-size: 0.95em;
        text-align: justify;
    }
    
    /* Ajustar título MICROTORREFAÇÃO em telas pequenas */
    #microtorrefacao-hero h1 {
        font-size: 2.5em !important;
        letter-spacing: 1px !important;
        line-height: 1.1 !important;
    }
}

/* Media query adicional para telas muito pequenas */
@media (max-width: 480px) {
    #microtorrefacao-hero h1 {
        font-size: 2em !important;
        letter-spacing: 0px !important;
        line-height: 1 !important;
    }
}