@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --gradient-bg: linear-gradient(90deg, #FF9056, #FFAC68);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 400; /* Regular text */
    background-color: white;
    overflow-x: hidden;
    cursor: default;
}

h1 {
    margin: 0;
    font-size: 300%;
    font-weight: 700;
}

h2 {
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    margin: 0;
    font-size: 200%;
    font-weight: 700;
}

h3, h4 {
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    margin: 0;
    font-weight: 600;
}


#logotipo{
    width: 11.25rem;
}

.topsection {
    background: url('src/bg.png') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 0.625rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    flex-direction: column;
}

.topsection_work {
    background: url('src/bg.png') no-repeat center center;
    background-size: cover;
    color: #000000;
    padding: 0.625rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    flex-direction: column;
    filter: invert(1);
}

.bodysection {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.reviews {
    background-color: #efefef;
    padding: 6%;
}

.servicessection {
    background: #00568e;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Altura mínima em vez de fixa, para não “cortar” conteúdo */
    min-height: 50vh;
    padding: 3.75rem 0;

    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible; /* permite que o carrossel seja exibido por completo */
}

#nossos_produtos_div {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 4.375rem;
    margin-top: 0;   /* remover margens negativas que causavam corte */
    margin-bottom: 1.25rem;

    position: relative;
    z-index: 2;
}

#nossos_produtos_div h2{
    font-size: 5rem; 
    color: white;
}

#nossos_produtos_div img {
    width: 50rem;
}

.servicessectionwork {
    background-color: #fff;
    padding-top: 3%;
    padding-bottom: 2%;
    width: 70%;
    display: flex;
    flex-direction: column;
}


nav {
    display: flex;
    position: fixed;
    width: 100vw;
    top: 0;
    z-index: 1000;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    padding: 2.1875rem 3.125rem;
    transition: background-color 0.3s ease;
}

nav.sticky {
    background-color: white;
}

nav .logo h4 {
    color: #fff;
    margin: 0;
}
nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.625rem;
    margin-right: 0.625rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.625rem;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #363e63;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-size: small;
    z-index: 1000;
}

.nav-links li:nth-child(3) {
    margin-right: 5vw;
    padding: 0.9375rem 1.25rem;
    background-color: #363e63;
    border-radius: 25px;
}

.nav-links li:nth-child(3) a {
    color: white;
    margin-right: 0;
    font-size: small;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.nav-links li:nth-child(3) a:hover {
    background-color: transparent;
    font-weight: 800;
}
.nav-links li {
    margin: 0 0.625rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001; /* Garantindo que o hambúrguer esteja sobre os outros elementos */
}


.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.3s;
}

/* Mobile styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #333;
        z-index: 1000;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
}

.card {
    background: #fff;
    border: #FF9056 1px solid;
    border-radius: 0.625rem;
    padding: 2.5rem;
    margin: 1.25rem;
    width: 50%;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden; 
}

#card-numeros {
    padding-top: 4.375rem;
    width: 60%;
}

.card p{
   color: grey;
   letter-spacing: 0.1em;
   font-size: small;
}

.card h3, .card i {
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-size: medium;
}

.card:hover h3, .card:hover i, .card:hover p {
    background: var(--gradient-bg);
    color: white;
    -webkit-text-fill-color: white;
    background: transparent;
}

.card-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .card-container {
        flex-direction: column;
        align-items: center;
    }
}

.historia {
    display: flex;
    flex-direction: row;  
    justify-content: center;
    align-items: center;
}

.historia img {
    margin: 3.75rem;
    width: 45%;
    border-radius: 0.625rem;
}

.historia-texto {
    width: 50%;
    margin: 2.5rem;
    font-weight: 400;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.historia-texto h2 {
    margin: 0;
    font-size: 300%;
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    letter-spacing: 0.1em;
    font-weight: bolder;
    margin-bottom: 5%;

}

.historia-texto p {
    color: #363e63;
    font-size: medium;
    text-align: justify;
    line-height: 1.6rem;
}

@media screen and (max-width: 1940px) and (max-height: 900px) {
    .historia {
        flex-direction: row;
        justify-content: center;
        align-items: center;
      }
      .historia img {
        margin: 2rem;
        width: 35%; /* Adjust as needed for balance */
      }
      .historia-texto {
        width: 45%;
        margin: 1.5rem;
      }
      .historia-texto h2 {
        font-size: 250%;
        margin-bottom: 3%;
      }
      .historia-texto p {
        font-size: 1rem;
        line-height: 1.4rem;
      }
  }

@media screen and (max-width: 1360px) and (max-height: 768px) {
    .historia {
      /* Optionally switch to column layout if needed */
      flex-direction: row; /* Keep side by side if preferred */
      justify-content: space-around;
      align-items: center;
    }
    .historia img {
      margin: 2rem;
      /* Adjust width so both images look balanced on a 1360x768 screen */
      width: 45%;
    }
    .historia-texto {
      width: 45%;
      margin: 1.5rem;
    }
    .historia-texto h2 {
      font-size: 250%;
      margin-bottom: 3%;
    }
    .historia-texto p {
      font-size: 1rem;
      line-height: 1.4rem;
    }
  }
  
  @media screen and (max-width: 1024px) and (max-height: 768px) {
    .historia {
      /* Switch to column layout on smaller screens */
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }
    .historia img {
      margin: 1.5rem;
      width: 80%;
    }
    .historia-texto {
      width: 90%;
      margin: 1rem;
    }
    .historia-texto h2 {
      font-size: 200%;
      margin-bottom: 2%;
    }
    .historia-texto p {
      font-size: 0.9rem;
      line-height: 1.4rem;
    }
  }

@media (max-width: 768px) {
    .historia {
        flex-direction: column;
    }

    .historia img {
        width: 80%;
        margin: 1.25rem 0;
    }
    
    .historia-texto {
        width: 90%;
        margin: 1.25rem 0;
    }

    .historia-texto h2 {
        font-size: 200%;
        margin-bottom: 10%;
    }

    .historia-texto p {
        font-size: small;
        line-height: 1.4rem;
    }

    .card-container {
        flex-direction: column;
        align-items: center;
        order: 1; /* Move card-container to the first position */
    }

    #imagem_idosos {
        display: none !important; /* Força a imagem a desaparecer */
    }

    #services {
        width: 100% !important; /* Garante que a div azul ocupa toda a largura */
    }
}

footer {
    background-color: #363e63;
    font-weight: bold;
    font-size: small;
    color: white;
    padding: 1.25rem;
    font-size: 8px;
    color: #5d6cb0;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100vw); /* Adjust based on content */
    }
}


.review-list {
    display: flex;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

.review-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    background-color: white;
    border-radius: 0.625rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    margin-right: 1.25rem;
    min-width: 510px;
    max-width: 510px;
}

.review-card h3 {
    margin: 0 0 0.625rem;
    font-size: 18px;
    color: #333;
}

.review-card p {
    margin: 0;
    font-size: 16px;
    color: #666;
    white-space: normal;
}

.review-card .rating {
    margin-top: 0.625rem;
    font-size: 1.25rem;
}

.review-card .rating span {
    color: #f4c542;
}

.bassansection {
    position: relative; 
    overflow: hidden; 
    padding: 10% 10%;
    z-index: 0;
}

.bassansection::before,
.bassansection::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 18%;              
    height: 68%;
    z-index: -1;
}

.bassansection::before {
    left: -8%;  
}

.bassansection::after {
    right: -8%; 
    transform: translateY(-50%) rotate(180deg); 
}

@media (max-width: 768px) {
    .bassansection::before,
    .bassansection::after {
        display: none;
    }
}


.smallerfooter {
    font-size: 8px;
    color: #5d6cb0;
    padding: 0% 15%;
}

@media (max-width: 768px) {
    .bassanstory,
    .bassanstory-historia {
        flex-direction: column !important; /* Empilha os elementos */
        align-items: center;
        text-align: center;
        padding: 1.25rem;
    }

    /* Garante que a imagem da segunda div fique no topo */
    #segunda_imagem {
        flex-direction: column-reverse !important;
    }

    .bassanstory img,
    .bassanstory-historia img {
        width: 80% !important;
        margin: 0 auto 1.25rem auto; /* Centraliza e adiciona espaço abaixo */
        display: block;
    }

    .bassanstory-texto {
        width: 90% !important;
        margin: 0.625rem 0;
    }

    .bassanstory-texto h2 {
        font-size: 1.2rem;
    }

    .bassanstory-texto h3 {
        font-size: 1.8rem;
    }

    .bassanstory-texto p {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    #services {
    width: 100% !important;
    }

    #nossos_produtos {
    max-width: 100% !important;
    height: auto !important;
    }
}

.bassanstory {
    padding: 30px;
    display: flex;
    flex-direction: row;  
    justify-content: center;
    align-items: center;
    border-radius: 30px;
}


.bassanstory-historia {
    padding: 3.75rem;
    display: flex;
    flex-direction: row;  
    justify-content: center;
    align-items: center;
    border-radius: 30px;
}

.bassanstory-historia img {
    width: 40%;
    margin: 30px;
    border-radius: 0.625rem;
    box-shadow: #c0c0c0 0px 0px 0.625rem;
}

.bassanstory img {
    margin: 3.75rem;
    width: 40%;
    border-radius: 0.625rem;
    box-shadow: #c0c0c0 0px 0px 0.625rem;
}

.bassanstory-texto {
    width: 65%;
    margin: 2.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bassanstory-texto h2 {
    margin: 0;
    font-size: 1.0rem;
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    letter-spacing: 0.1em;
    font-weight: bolder;
    margin-bottom: 1%;
}

.bassanstory-texto h3 {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 900;
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-weight: bolder;
    margin-bottom: 5%;
}

.bassanstory-texto p {
    font-size: 1rem;
    font-weight: 400;
    color: #363e63;
    text-align: justify;
    line-height: 1.6rem;
}

.bassanstorywork {
    display: flex;
    flex-direction: row;  
    justify-content: center;
    align-items: center;
}

.bassanstorywork img {
    margin: 3.75rem;
    width: 30%;
    border-radius: 0.625rem;
}

.work-texto {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #666;
}

.work-texto h2 {
    margin: 0;
    font-size: 200%;
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    letter-spacing: 0.1em;
    font-weight: bolder;
    margin-bottom: 5%;
    filter: invert(1);
}



button {
    background: transparent;
    color: #5d6cb0;
    border: 1px solid #5d6cb0;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}



.servicostexto {
    display: flex;
    flex-direction: row;  
    justify-content: center;
    align-items: center;
    padding: 1.25rem;
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    margin-bottom: 2%;
}


.servicostexto_work {
    display: flex;
    flex-direction: row;  
    justify-content: left;
    align-items: left;
    padding-left: 1.25rem;
    font-size: 2.5rem;
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    margin-left: 10%;
    filter: invert(1);
}

.servicostextosmall_work {
    display: flex;
    flex-direction: row;  
    justify-content: left;
    align-items: left;
    padding-left: 1.25rem;
    font-family: 'Arial', sans-serif;
    font-weight: 300;
    color: grey;
    font-size: 18px;
    margin-bottom: 2%;
    margin-left: 10%;
}

.explicacao {
    display: flex;
    flex-direction: row;  
    justify-content: left;
    align-items: left;
    padding-left: 1.25rem;
    font-family: 'Arial', sans-serif;
    font-weight: 300;
    color: rgb(86, 86, 86);
    font-size: 18px;
    margin-bottom: 2%;
    margin-left: 10%;
}




.form-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: transparent;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.form-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    padding: 0 0.5rem;
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
    top: 0;
    font-size: 14px;
    color: #007BFF;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    width: 100%;
    background-size: 1em;
}

.file-upload {
    position: relative;
    width: 100%;
    min-height: 200px;
    margin-bottom: 1.25rem;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all 0.3s ease;
}

.file-upload.dragover {
    border-color: #007BFF;
    background-color: rgba(0, 123, 255, 0.05);
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 1rem;
}

.file-upload-text {
    color: #666;
    text-align: center;
}

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

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 0.75rem rgba(0, 123, 255, 0.15);
}

@media (max-width: 768px) {
    .form-container {
        padding: 1rem;
    }
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
    padding-top: 3.75rem; 
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 1.25rem;
    border: 1px solid #888;
    width: 80%; 
    max-width: 500px;
    text-align: center;
    border-radius: 0.625rem;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.footersection {
    padding: 10% 10%;
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
}
.footersection .col {
    flex: 1; 
}

.footersection .footer-div {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    gap: 0.5rem; 
    color: #fff;
}

.footersection .footer-div h3 {
    font-size: 1.25rem; 
    margin-bottom: 0.5rem;
}

.footersection .footer-div a {
    margin-right: 1rem;
}

.footersection .footer-div i {
    font-size: 1.5rem; 
    color: #fff;       
}

.footersection .footer-div p {
    font-size: 1rem; 
    color: #fff;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    background-color: #363e63;
    color: #f0f0f0;
    padding: 2rem;
    gap: 1.25rem;
}

.footer-section {
    flex: 1 1 300px;
    min-width: 280px;
}

.footer-contact address {
    margin: 1rem 0;
    font-style: normal;
    font-size: 0.625rem;
    line-height: 1.2;
}

.footer-logo {
    width: 180px;
    margin-bottom: 1rem;
}

.footer-social a {
    margin-right: 1rem;
    font-size: 1.5rem;
    color: #f0f0f0;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #ff9056;
}

.footer-map iframe {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 8px;
}

.footer-contact-info h3 {
    margin-bottom: 1rem;
}

.footer-contact-info p {
    margin: 0.5rem 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact-info i {
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: justify;
    padding: 0.6rem;
    font-size: 0.9rem;
    color: #ccc;
}

.partners-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 1.25rem 0;
}

.partner-logo-circle {
    width: 230px;
    height: 230px;
    border-radius: 20%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.partner-logo-circle:hover {
    transform: scale(1.05);
}

.partner-logo-circle img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .partner-logo-circle {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        padding-left: 0px;
        align-items: center;
    }
    .footer-section {
        text-align: left;
    }
}

.carousel-container {
    position: relative;
    max-width: 100%; /* Or any value relative to the blue section */
    margin: 0 auto; /* Center the carousel within its parent */
    overflow: hidden; /* Hide any overflowing content */
    padding: 1.25rem 0;
}

.carousel-track,
.carousel-card {
    position: relative;
    z-index: 1;
}

.carousel-track {
    display: flex;
    /* Animação de “rolagem” horizontal. Ajuste ou remova se preferir */
    animation: cardScroll 40s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    position: relative;
}

:root {
    --card-width: 550px;
    --card-gap: 1.25rem;
    --card-step: calc(var(--card-width) + var(--card-gap));
  }
  
  @keyframes cardScroll {
    /* Card 1 (pause) */
    0% { transform: translateX(0); }
    6.25% { transform: translateX(0); }
    /* Transition to Card 2 */
    12.5% { transform: translateX(calc(-1 * var(--card-step))); }
    18.75% { transform: translateX(calc(-1 * var(--card-step))); }
    /* Transition to Card 3 */
    25% { transform: translateX(calc(-2 * var(--card-step))); }
    31.25% { transform: translateX(calc(-2 * var(--card-step))); }
    /* Transition to Card 4 */
    37.5% { transform: translateX(calc(-3 * var(--card-step))); }
    43.75% { transform: translateX(calc(-3 * var(--card-step))); }
    /* Transition to Card 5 */
    50% { transform: translateX(calc(-4 * var(--card-step))); }
    56.25% { transform: translateX(calc(-4 * var(--card-step))); }
    /* Transition to Card 6 */
    62.5% { transform: translateX(calc(-5 * var(--card-step))); }
    68.75% { transform: translateX(calc(-5 * var(--card-step))); }
    /* Transition to Card 7 */
    75% { transform: translateX(calc(-6 * var(--card-step))); }
    81.25% { transform: translateX(calc(-6 * var(--card-step))); }
    /* Transition to Card 8 */
    87.5% { transform: translateX(calc(-7 * var(--card-step))); }
    /* Return to first card (reset loop) */
    100% { transform: translateX(0); }
  }

.carousel-card {
    position: relative;

    min-width: 498px;
    height: 180px;
    background: white;
    margin: 0 0.9375rem;
    border-radius: 0.625rem;
    box-shadow: 0 4px 0.9375rem rgba(0, 0, 0, 0.1);
    padding: 1.25rem;

    display: flex;
    flex-direction: column;
    justify-content: center;

    transition: transform 0.3s ease;
    /* flex: 1 pode atrapalhar a disposição, caso queira fixar 
       o tamanho das cartas. Ajuste conforme necessário. */
}

.carousel-card:hover {
    background: var(--gradient-bg);
    color: white;
    transform: translateY(-0.625rem);
}

.carousel-card h3, .carousel-card i {
    background: radial-gradient(#00568e, #363e63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-size: medium;
}

#carousel_icon {
    font-size: 160%; 
    margin-bottom: 1.25rem;
}

.carousel-card p {
    font-size: 16px;
    color: #666;
}

.carousel-card:hover h3, .carousel-card:hover i, .carousel-card:hover p {
    background: var(--gradient-bg);
    color: white;
    -webkit-text-fill-color: white;
    background: transparent;
}

/* Pause animation on hover */
.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(1200px * 20 - 30px * 20));
    }
}

.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .carousel-card {
      min-width: 88%;
    }
  
    .carousel-track {
      animation: none; /* Desativa a animação */
      overflow-x: auto; /* Permite rolagem horizontal manual */
      flex-wrap: nowrap; /* Garante que os cards não quebrem a linha */
      scroll-snap-type: x mandatory; /* Opcional: para encaixe suave dos cards */
    }
  
    .carousel-card {
      scroll-snap-align: center; /* Opcional: centraliza o card no "snap" */
    }
  }
  

/* Mission, Vision, Values Section */

/* Mission, Vision, Values Section */
.mvv-section {
    background-color: #eeeeee;
    padding: 3.75rem 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden; /* Prevent content from spilling out */
}

.mvv-section h2.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: bold;
}

.mvv-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    max-width: 1800px; /* Reduced from 1800px for better readability */
    margin: 0 auto;
    padding: 0.625rem;
    box-sizing: border-box;
    /* Remove the fixed height to let content determine height */
}

.mvv-card {
    flex: 1 1 400px;
    background-color: white;
    border-radius: 10px;
    border-top-left-radius: 7.5rem;
    border-bottom-right-radius: 7.5rem;
    font-size: 16px;
    padding: 25px;
    color: #363e63;
    max-width: 480px;
    margin-bottom: 1.25rem; /* Add space between cards when they wrap */
    box-sizing: border-box; /* Include padding in the width calculation */
}

.mvv-card:nth-child(2) {
    border-top-right-radius: 7.5rem;
    border-bottom-left-radius: 7.5rem;
    border-bottom-right-radius: 7.5rem;
    border-top-left-radius: 7.5rem;
}


.mvv-card:nth-child(3) {
    border-radius: 10px;
    border-top-right-radius: 7.5rem;
    border-bottom-left-radius: 7.5rem;
}

.mvv-card:hover {
    transform: translateY(-0.625rem);
    box-shadow: 0 0.9375rem 30px rgba(0,0,0,0.15);
}

.mvv-card p {
    font-weight: 400;
    text-align: center;
    margin: 0.9375rem 0; /* Reduced from 2.5rem to prevent overflow */
    padding: 30px 1.25rem;
    line-height: 25px;
}

.mvv-card h2 {
    position: relative;
    font-size: 24px;
    padding-top: 2.5rem;
    padding-bottom: 5px;
    margin-top: 0;
    text-align: center;
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.values-header {
    font-weight: 600;
    margin-bottom: 0.9375rem;
    padding: 0 0.625rem;
}

.values-list {
    list-style: none;
    padding: 0 0.625rem;
    margin: 0;
}

.values-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.value-check {
    margin-right: 8px;
    flex-shrink: 0;
    color: #28a745;
}

/* Improved responsive breakpoints */
/* Mobile responsive fixes */
@media (max-width: 1200px) {
    .mvv-card {
        flex: 1 1 45%;
        max-width: 45%;
    }
}

@media (max-width: 768px) {
    .mvv-container {
        padding: 0.9375rem;
    }
    
    .mvv-card {
        flex: 1 1 100%;
        max-width: 95%;
        margin: 0 auto 1.25rem auto;
    }
}

@media (max-width: 480px) {
    .mvv-section {
        padding: 3.125rem 0.625rem;
    }
    
    .mvv-card {
        padding: 1.25rem;
    }
    
    .mvv-card p {
        margin: 0.625rem 0;
        padding: 0 5px;
    }
}

@media (max-width: 720px) {
    h1 {
        margin: 180px;
    }

    mvv-card {
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        margin: 180px;
    }
}

/* ======================================================
   CSS TRANSFERIDO DO HTML (Inline Styles)
   ====================================================== */

/* -- Seção Missão, Visão e Valores (mvv-section) -- */
/* Para os títulos (h2) dentro de cada .mvv-card */
.mvv-container .mvv-card:nth-child(1) h2,
.mvv-container .mvv-card:nth-child(2) h2,
.mvv-container .mvv-card:nth-child(3) h2 {
    font-size: 34px;
}

/* Para os ícones (i) dentro dos h2 das .mvv-card */
.mvv-container .mvv-card:nth-child(1) h2 i,
.mvv-container .mvv-card:nth-child(2) h2 i,
.mvv-container .mvv-card:nth-child(3) h2 i {
    font-size: 34px;
    padding: 1.25rem;
}
/* Especificamente para o primeiro ícone, adiciona cor branca */
.mvv-container .mvv-card:nth-child(1) h2 i {
    color: white;
}

/* -- Carrossel: Text transform em h3 de alguns cards -- */
.carousel-card h3[style*="text-transform: uppercase"] {
    text-transform: uppercase;
}

/* -- Seção “Nossos Números” -- */
/* Título centralizado com margin-top e font-size definidos inline */
#historia center > h4 {
    margin-top: 130px;
    font-size: 34px;
}

/* Ajustes nos containers com classe .historia que possuem margin-top inline */
/* Caso existam duas instâncias na seção #historia, a primeira com margin-top: 100px e a segunda com 330px */
#historia .historia:nth-of-type(1) {
    margin-top: 100px;
}
#historia .historia:nth-of-type(2) {
    margin-top: 330px;
}

/* Ícones dentro das .card com id "card-numeros" */
.card#card-numeros i {
    font-size: 160%;
    margin-bottom: 1.25rem;
}

/* Em “POR QUE ESCOLHER A RDC?” há um h3 com margin-top inline */
.historia-texto h3[style*="margin-top: 1.25rem"] {
    margin-top: 1.25rem;
}

/* -- Seção “Nossos Parceiros” -- */
/* O container que envolve os parceiros (div com padding inline) */
.bodysection[style*="background-color: #eeeeee"][style*="margin-top: 130px"] > div[style*="padding: 130px"] {
    padding: 130px;
}

/* -- Footer -- */
/* Override do padding inline definido no footer */
footer {
    padding: 140px;
    padding-bottom: 90px;
}
/* O container interno do footer com margin-top inline */
.footer-container {
    margin-top: 160px;
}

/* Para os parágrafos dentro de .footer-contact-info que foram definidos com font-size inline */
.footer-contact-info p {
    font-size: 0.75rem;
}
/* Se houver um parágrafo que deva ter font-size maior (ex.: "ENTRE EM CONTATO!") */
.footer-section.footer-contact-info:nth-of-type(3) p:first-of-type {
    font-size: 14px;
}

/* Footer bottom: parágrafo com padding-top, font-size e cor definidos inline */
.footer-bottom p {
    padding-top: 90px;
    font-size: 11px;
    color: #828bb1;
}

/* Título da área de redes sociais no footer */
.footer-social h3 {
    color: white !important;
}

/* -- Outros elementos inline -- */
/* Div com padding de 8% (na seção História) */
#historia > div[style*="padding: 8%"] {
    padding: 8%;
}

/* Hr no footer com border inline */
footer hr {
    border: 1px solid #424e81;
}

/* Para dispositivos com largura máxima de 480px (ex.: smartphones menores) */
@media (max-width: 480px) {
    html, body {
        max-width: 375px;
        margin: 0 auto;
        overflow-x: hidden;
    }
}

footer {
    padding: 8.75rem;
    padding-bottom: 5.625rem;
}

/* Para dispositivos com largura máxima de 768px (ex.: smartphones maiores e tablets pequenos) */
@media (max-width: 768px) {
    html, body {
        max-width: 600px;
        margin: 0 auto;
        overflow-x: hidden;
    }

    footer {
        padding: 0.5rem;
    }
    
    .footer-container {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1 1 auto;
        /* Remove the large fixed min-width and allow the sections to shrink */
        min-width: 200px;
        padding: 1rem;
    }

    .partners-container {
        margin: -30px;
    }
}

/* Para dispositivos com largura máxima de 992px (ex.: tablets maiores e telas pequenas de laptops) */
@media (max-width: 992px) {
    html, body {
        max-width: 800px;
        margin: 0 auto;
        overflow-x: hidden;
    }
}
