.footer {
    background-color: var(--white-green);
    padding: 20px;
    font-family: var(--font-primary);
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    margin-top: 60px;
}

.footer-feature-wrapper {
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.feature-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    z-index: 2;
    background: transparent;
}

.footer-feature::before {
    content: "";
    display: block;
    height: 4px;
    width: 100%;
    background-color: var(--light-green);
    position: absolute;
    top: 0;
    left: 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.footer-feature p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.footer-feature-wrapper {
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 250px;
    margin-bottom: 40px;
}

.footer-feature {
    background: var(--white);
    padding: 30px 20px 20px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    width: 100%;
    margin-top: -10px;
    padding-top: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.footer-col {
    flex: 1 1 200px;
    min-width: 250px;
}

.footer-social {
    flex: 0 1 170px;
    max-width: 150px;
    text-align: center;
}

.footer-social .social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social .social-icons a {
    margin-right: 0;
}

.social-icons a {
    margin-right: 10px;
    color: #333;
    font-size: 18px;
    text-decoration: none;
}

.social-icons img {
    height: 24px;
}

.footer-copy {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
}

.feature-icon {
    width: 32px;
    height: auto;
    margin-bottom: 8px;
}

.feature-header h4 {
    text-transform: uppercase;
    color: var(--secondary-grey);
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    text-align: center;
}

/* Newsletter Form Styles */
.newsletter-button {
    display: flex;
    width: 100%;
    border-radius: 100px;
    overflow: hidden;
    background-color: var(--secondary-green);
}

.newsletter-input {
    flex: 1;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    color: white;
    background-color: var(--secondary-green);
    outline: none;
    font-family: inherit;
}

.newsletter-input::placeholder {
    color: white;
}

.newsletter-submit {
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: bold;
    color: white;
    background-color: var(--light-green);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

form small {
    display: block;
    margin-top: 8px;
}

/* Validation Styles */
.newsletter-input.error {
    border: 1px solid red;
}

.error-message {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

.success-message {
    color: green;
    font-size: 12px;
    margin-top: 5px;
}

/* Media */
@media (max-width: 1410px) {

    .footer-top,
    .footer-bottom {
        display: block;
        text-align: center;
        margin-bottom: 0;
    }

    .footer-feature,
    .footer-col,
    .footer-social {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .footer-social {
        text-align: center;
    }

    .footer-social .social-icons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 10px;
    }

    .footer-copy {
        margin-top: 30px;
    }

    form small {
        display: block;
        margin-top: 8px;
    }
}

.footer-col:last-child {
    position: relative;
}

/* Botão arrow-up */
.footer-col .arrow-up-btn {
    position: absolute;
    right: 0;
    top: 0;
    transform: translateY(-50%);
    z-index: 10;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    opacity: 0.95;
    padding-bottom: 20px;
    animation: pingpong 1.2s infinite;
}

.footer-col .arrow-up-btn img {
    width: 45px;
    height: 100%;
}

.footer-col .arrow-up-btn:hover {
    opacity: 0.8;
}

@keyframes pingpong {
    0% {
        transform: translateY(-50%) translateY(0);
    }

    50% {
        transform: translateY(-50%) translateY(-18px);
    }

    100% {
        transform: translateY(-50%) translateY(0);
    }
}

/* Media newsletter*/
@media (max-width: 500px) {
    .newsletter-submit {
        padding: 0 22px;
        font-size: 12px;
    }

    .newsletter-input {
        font-size: 12px;
        padding: 12px 0 12px 16px
    }
}

/* --- Footer Top Responsivo --- */
.footer-top.container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

@media (min-width: 1200px) {
  .footer-top.container {
    flex-wrap: nowrap;
    overflow-x: visible;
  }
  .footer-feature-wrapper {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 1024px) and (min-width: 601px) {
  .footer-top.container {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .footer-feature-wrapper {
    flex: 1 1 45%;
    min-width: 250px;
    max-width: 48%;
  }
}

@media (max-width: 600px) {
  .footer-top.container {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 8px;
    justify-content: flex-start;
    align-items: center;
    scrollbar-width: none;         
    -ms-overflow-style: none;      
  }

  .footer-top.container::-webkit-scrollbar {
    display: none;                 
  }

  .footer-feature-wrapper {
    flex: 0 0 80vw;
    min-width: 80vw;
    max-width: 80vw;
    height: 260px;
    min-height: 260px;
    max-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
  
  .footer-feature-wrapper {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    background: #fff;
    border-radius: 16px;
    z-index: 2;
  }
}

.footer-top.container {
  scrollbar-width: none;         
  -ms-overflow-style: none;      
}

.footer-top.container::-webkit-scrollbar {
  display: none;                 
}

.footer-top.container::-webkit-scrollbar-thumb {
    background-color: var(--light-grey);
    border-radius: 4px;
}

.footer-col p a,
.footer-col p a:link,
.footer-col p a:visited,
.footer-col p a:hover,
.footer-col p a:active,
.footer-col p a:focus {
    color: inherit;
    text-decoration: none;
    font: inherit;
    font-weight: inherit;
}

/* Animações para o footer */
.footer-top.fade-in-up {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: opacity 0.6s ease, transform 0.6s ease !important;
}

.footer-top.fade-in-up.animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.footer.fade-in-up {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: opacity 0.6s ease, transform 0.6s ease !important;
}

.footer.fade-in-up.animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
}