.perigo-section {
    position: relative;
    background: url('https://www.arckdantech.com.br/comunidademayday/src/assets/fundo_section_problema_animate.gif') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 150px 0px 0px 0px;
    color: white;
    text-align: center;
}

.texto-container {
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9));
    padding: 265px 30px 50px 30px;
    border-radius: 8px;
    max-width: auto;
    width: 100%;
}

.perigo-section h1 {
    font-size: 4.8rem;
    font-weight: bold;
    margin: 0;
    line-height: 4.7rem;
}

.perigo-section h2 {
    font-size: 4.8rem;
    font-weight: bold;
    margin: 0px 0 30px;
    line-height: 4.7rem;
    color: #00aaff;
}

.perigo-section p {
    font-size: 3.9rem;
    font-weight: bold;
}

.texto-sub {
    margin-top: 0px;
    font-weight: 500;
    color: white;
}

.perigo-linha-azul {
    height: 20px;
    width: 100%;
    max-width: 780px;
    margin: 0 auto 0px;
    background-color: #00aaff;
}

.realce {
    color: #00aaff;
}

@media (max-width: 768px) {

    .perigo-section {
        background: url('https://www.arckdantech.com.br/comunidademayday/src/assets/fundo_responsivo_section_problema.png') no-repeat center center/cover;
        height: 100vh;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding: 15px 0px 0px 0px;
        color: white;
        text-align: center;
    }

        .perigo-section h1 {
            font-size: 2.9rem;
            font-weight: bold;
            margin: 0px;
            line-height: 2.5rem;
        }

        .perigo-section h2 {
            font-size: 2.9rem;
            font-weight: bold;
            margin: 0px 0px 4px 0px;
            line-height: 2.8rem;
            color: #00aaff;
        }

    .perigo-linha-azul {
        height: 15px;
        width: 100%;
        max-width: 780px;
        margin: 20px auto 8px;
        background-color: #00aaff;
    }

        .perigo-section p {
            font-size: 1.4rem;
            font-weight: bold;
        }
}

/* Tablets landscape (769px–1024px) */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {

    .perigo-section {
        background-image: url('https://www.arckdantech.com.br/comunidademayday/src/assets/fundo_section_problema.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
        background-color: #000;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        height: 111dvh;
        overflow: hidden;
        padding: 20px;
        box-sizing: border-box;
    }

    .texto-container {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
        padding: 30px 20px;
        text-align: center;
        width: 100%;
        max-width: 720px;
        box-sizing: border-box;
        border-radius: 8px;
        margin-bottom: 0;
    }

    .perigo-section h1, .perigo-section h2 {
        margin: 0;
        line-height: 1.2;
    }

    .perigo-section h1 {
        font-size: 2rem;
        font-weight: bold;
    }

    .perigo-section h2 {
        font-size: 2rem;
        font-weight: 700;
        color: #00aaff;
        margin-top: -10px;
    }

    .perigo-section p {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 2.5rem;
    }

    .perigo-linha-azul {
        width: 60%;
        height: 6px;
        background-color: #00aaff;
        margin: 5px auto;
    }

    .texto-sub {
        font-size: 1.4rem;
        font-weight: bold;
        color: white;
    }

    .realce {
        color: #00aaff;
    }
}

/* Celulares landscape (até 768px) */
@media (max-width: 915px) and (orientation: landscape) {

    .perigo-section {
        background-image: url('https://www.arckdantech.com.br/comunidademayday/src/assets/fundo_section_problema.png');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        min-height: 100vh;
        padding: 0;
        box-sizing: border-box;
    }

    .texto-container {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.90), transparent);
        padding: 40px 20px 20px 20px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        border-radius: 0;
        margin-bottom: 0;
    }

    .perigo-section h1 {
        font-size: 1.7rem;
        font-weight: bold;
        margin: 0;
        line-height: 1.8rem;
    }

    .perigo-section h2 {
        font-size: 1.7rem;
        font-weight: bold;
        margin: 0 0 8px 0;
        line-height: 1.8rem;
        color: #00aaff;
    }

    .perigo-section p {
        font-size: 1.2rem;
        font-weight: bold;
        margin-bottom: 1rem;
    }

    .perigo-linha-azul {
        width: 60%;
        height: 6px;
        background-color: #00aaff;
        margin: 5px auto;
    }

    .texto-sub {
        font-size: 1.1rem;
        font-weight: bold;
        color: white;
    }

    .realce {
        color: #00aaff;
    }
}
