/* CONFIGURAÇÕES GERAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    padding-top: 85px;
    background-color:#FFFFFF;
    color: #333;
}

/* CABEÇALHO */
header {
    background: linear-gradient(135deg, #ffffff, #ffffff);
    color: rgb(14, 13, 13);
    padding-bottom: 40px;
    position: relative;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

header nav div {
    display: flex;
    align-items: center;
    gap: 10px;
}

header nav img {
    width: 45px;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color:#f3f3f3;
}

header nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: .3s;
    font-size: 16px;
    border: none;
    outline: none;
}

header nav ul li a:focus {
    outline: none;
    border: none;
}

.icone {
    font-weight: bold;
}

#amigaIcone {
    color: #2E7D32;
}

.botao-1,
.botao-2,
.botao-3,
.botao-4 {
    background-color: transparent;
    color: #2E7D32;
    padding: 8px 16px;
    border-radius: 0;
    display: inline-block;
    border: none;
    outline: none;
}

.botao-1:hover,
.botao-2:hover,
.botao-3:hover,
.botao-4:hover {
    background-color: transparent;
    color: #808080;
}

header nav ul li a:hover {
    color: #808080;
    background-color: transparent;
}

header a {
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 6px;
    background-color: #fff;
    color: #2E7D32;
    font-weight: bold;
    margin: 0 10px;
    transition: .3s;
}

header a:hover {
    background-color: #c9c9c9;
    color: #333;
}


/* MENU HAMBÚRGUER */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 101;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #2E7D32;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

h1 {
    color: #2E7D32;
}

.cabecalho {
    margin: 2% 4%;

}

/* MAIN */
.bntVoltar button {
    display: flex;
    align-items: center;
    gap: 1%;
    background-color: #2e7d3291;
    border: none;
    margin: 3%;
    padding: 5px 20px;
    border-radius: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.bntVoltar button:hover {
    background-color: #2e7d32bd;
}

.bntVoltar {
    text-decoration: none;
}

.bntVoltar img {
    width: 15px;
}

.informacoesOng {
    width: 60%;
}

h2 {
    margin-left: 4%;
}

.necessidades {
    display: flex;
    flex-wrap: wrap;
    padding: 15px 15px;
    margin-left: 3%;
    margin-bottom: 4%;
    gap: 8px;
}

.necessidades p {
    background: #2E7D32;
    color: #FFFFFF;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.informacoes {
    background-color: #2e7d3291;
    border-radius: 10px;
    width: 60%;
    margin: 4%;
    padding: 3%;
}

.informacoes div {
    display: flex;
    justify-content: start;
    align-items: center;
}

.informacoes img {
    width: 30px;
}

.informacoes div ul {
    display: block;    
    list-style: none;
    margin: 5%;
}

.informacoes ul li {
    display: flex;
    justify-content: start;
    align-items: center;
    font-weight: bold;
    margin: 5%;
    gap: 5%;
}
.formulario {
    background-color: #f8f8f8;
    padding: 40px;
    margin: 4%;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.formulario h2 {
    color: #2E7D32;
    font-size: 1.8rem;
    margin-bottom: 10px;
    margin-left: 0;
}

.formulario > p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 30px;
}

.form-container {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: Arial, Helvetica, sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-enviar {
    width: 100%;
    background-color: #2E7D32;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.btn-enviar:hover {
    background-color: #1b5e20;
    transform: translateY(-2px);
}

.btn-enviar:active {
    transform: translateY(0);
}

.informacoesOng,
.informacoes {
    transition: width 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}

.cabecalho {
    transition: margin 0.3s ease;
}

.necessidades {
    transition: margin 0.3s ease, padding 0.3s ease;
}

.bntVoltar button {
    transition: all 0.3s ease;
}

/* FOOTER */
footer {
    font-size: 14px;
    font-weight: 550;
    background-color: #d4d4d4;
    color: 000;
    padding: 50px 50px;
}

.icone{
    display: flex;
    align-items: center;
}

footer .icone {
    gap: 10px;
    margin-bottom: 4%;
}

.icone img{
    width: 45px;
}

footer h2 {
    color: #2E7D32;
}

.contatos p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contatos img{
    width: 22px;
}

footer ul li a {
    position: relative;
    text-decoration: none;
    color: #000;
    padding-bottom: 3px;
    transition: color 0.3s ease;
}

footer ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0%;
    background-color: #2E7D32;
    transition: width 0.3s ease;
}

footer ul li a:hover::after {
    width: 100%;
}

footer > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

footer ul {
    list-style: none;
    margin: 2%;
}

footer li {
    margin-bottom:3%;
}

.contatos p {
    margin: 2%;
}

footer ul li a {
    text-decoration: none;
    color: #000;
}

@media (min-width: 1200px) {
    .formulario {
        max-width: 1200px;
        margin: 4% auto;
    }

    .informacoesOng,
    .informacoes {
        max-width: 60%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Tablets e telas médias (768px - 1024px) */
@media (max-width: 1024px) {
    header nav {
        padding: 15px 30px;
    }

    header nav ul {
        gap: 15px;
    }

    header nav ul li a {
        font-size: 14px;
        padding: 6px 12px;
    }

    header h1 {
        font-size: 2rem;
    }

    header > div {
        padding: 80px 20px;
    }

    .comoFunciona .cards {
        gap: 20px;
    }

    footer {
        padding: 40px 30px;
    }

    .formulario {
        padding: 35px 30px;
        margin: 4%;
    }

    .formulario h2 {
        font-size: 1.7rem;
    }

    .informacoesOng,
    .informacoes {
        width: 70%;
        margin-left: auto;
        margin-right: auto;
    }

    .form-group input,
    .form-group textarea {
        padding: 11px 14px;
    }

    .btn-enviar {
        padding: 14px 28px;
    }

    .cabecalho {
        margin: 3% 4%;
    }

    h2 {
        margin-left: 4%;
    }

    .necessidades {
        margin-left: 3%;
    }
}

/* Tablets pequenos (600px - 768px) */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    /* Menu hambúrguer visível */
    .menu-toggle {
        display: flex;
    }

    /* Navegação mobile */
    header nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 20px;
    }

    header nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #f3f3f3;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        padding-top: 30px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }

    header nav ul.active {
        left: 0;
    }

    header nav ul li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid #e0e0e0;
    }

    header nav ul li a {
        font-size: 16px;
        padding: 10px 20px;
        display: block;
        width: 100%;
    }

    /* Hero responsivo */
    header h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    header p {
        font-size: 1rem;
        padding: 0 15px;
    }

    header > div {
        padding: 60px 15px;
        margin-top: 0;
    }

    header a {
        padding: 10px 20px;
        font-size: 14px;
        margin: 5px 5px;
    }

    /* Cards em coluna */
    .comoFunciona .cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .comoFunciona .card {
        width: 90%;
        max-width: 400px;
    }

    /* Seções */
    section h2 {
        font-size: 1.5rem;
    }

    main section:nth-of-type(1) {
        padding: 40px 15px;
    }

    main section:nth-of-type(2) {
        padding: 60px 20px;
    }

    main section:nth-of-type(2) div div a {
        display: block;
        margin: 10px auto;
        max-width: 250px;
    }

    /* Footer */
    footer {
        padding: 30px 20px;
    }

    footer > div {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .formulario {
        padding: 30px 20px;
        margin: 4% 2%;
    }

    .formulario h2 {
        font-size: 1.5rem;
    }

    .formulario > p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    
    .informacoesOng,
    .informacoes {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .form-container {
        max-width: 100%;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 7px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .btn-enviar {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .cabecalho {
        margin: 2% 3%;
    }

    .cabecalho h1 {
        font-size: 1.7rem;
    }

    .cabecalho p {
        font-size: 0.95rem;
    }

    h2 {
        margin-left: 3%;
        font-size: 1.4rem;
    }

    .necessidades {
        margin-left: 2%;
        padding: 12px;
    }

    .necessidades p {
        font-size: 0.85rem;
    }

    .bntVoltar button {
        margin: 3%;
        padding: 10px 18px;
        font-size: 0.95rem;
    }

    .informacoes ul li {
        font-size: 0.95rem;
    }
}

/* Smartphones (até 480px) */
@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }

    /* Menu hambúrguer visível */
    .menu-toggle {
        display: flex;
    }

    /* Navegação mobile compacta */
    header nav {
        padding: 10px 15px;
        flex-direction: row;
        justify-content: space-between;
    }

    header nav ul {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #f3f3f3;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        padding-top: 20px;
        transition: left 0.3s ease;
    }

    header nav ul.active {
        left: 0;
    }

    header nav ul li {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid #e0e0e0;
    }

    header nav ul li a {
        font-size: 15px;
        padding: 8px 16px;
        display: block;
    }

    header nav img {
        width: 35px;
    }

    header nav div span {
        font-size: 14px;
    }

    /* Hero mobile */
    header h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    header p {
        font-size: 0.9rem;
    }

    header > div {
        padding: 40px 10px;
    }

    header a {
        padding: 10px 18px;
        font-size: 13px;
        width: 90%;
        max-width: 250px;
        display: block;
        margin: 8px auto;
    }

    /* Cards */
    .comoFunciona .card {
        width: 95%;
        padding: 20px;
    }

    .comoFunciona .card h2 {
        font-size: 1.1rem;
    }

    .fundoIcone {
        width: 70px;
        height: 60px;
    }

    .fundoIcone img {
        width: 30px;
    }

    /* Seções */
    section h2 {
        font-size: 1.3rem;
    }

    main section:nth-of-type(1) {
        padding: 30px 10px;
    }

    main section:nth-of-type(1) .intro p {
        font-size: 0.95rem;
    }

    main section:nth-of-type(2) {
        padding: 40px 15px;
    }

    main section:nth-of-type(2) h2 {
        font-size: 1.3rem;
    }

    main section:nth-of-type(2) p {
        font-size: 0.95rem;
    }

    /* Footer */
    footer {
        padding: 25px 15px;
        font-size: 13px;
    }

    footer h2 {
        font-size: 1.1rem;
    }

    footer .icone img {
        width: 35px;
    }

    .contatos img {
        width: 18px;
    }

    
}

/* Telas muito pequenas (até 360px) */
@media (max-width: 360px) {
    header nav ul li a {
        font-size: 10px;
        padding: 4px 6px;
    }

    header h1 {
        font-size: 1.3rem;
    }

    header p {
        font-size: 0.85rem;
    }

    .comoFunciona .card {
        padding: 15px;
    }

    section h2 {
        font-size: 1.2rem;
    }
}

/* Landscape mobile (altura pequena) */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding-top: 50px;
    }

    header > div {
        padding: 30px 20px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    main section:nth-of-type(1),
    main section:nth-of-type(2) {
        padding: 30px 20px;
    }

    .formulario {
        padding: 25px 15px;
        margin: 4% 3%;
    }

    .formulario h2 {
        font-size: 1.3rem;
    }

    .formulario > p {
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    .btn-enviar {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

