/* Navbar */

.navbar-mostra {
    top: 0;
    transition: top 0.3s;
}

.navbar-toggler {
    background-color: #fff;
}

.navbar-esconde {
    top: -160px;
    transition: top 0.6s ease-in-out;
}

.scrolled {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.8);
}

.navbar-brand img{
    width: 150px;
}

.scrolled .nav-link {
    color: white !important;
}

.navbar li {
    list-style: none;
}

.navbar li .nav-link {
    position: relative;
    margin-inline: 15px;
    margin-block: 8px;
    color: #fff;
}

.navbar li .nav-link::before {
    position: absolute;
    content: "";
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0%;
    background: #fff;
    border-radius: 5px 5px 0 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.navbar li .nav-link:hover::before {
    width: 100%;
    opacity: 1;
    visibility: visible;
}

@media screen and (max-width:992px) {
    .navbar-esconde {
        top: -120px;
    }
}

/* Banner */

.banner {
    position: relative;
    overflow: hidden;
    height: 100vh;
    background: linear-gradient(120deg, #2f62d7, #8d0101);
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 0;
    border: none;
}

.banner h1,
.banner p,
.banner a {
    position: relative;
    z-index: 1;
}

.banner h1 {
    font-size: 3rem;
    margin: 0;
}

.banner p {
    font-size: 1.5rem;
}

.banner a {
    margin-top: 1rem;
    font-size: 1rem;
    transition: all .3s linear;
}

.banner a:hover {
    scale: 1.04;
    margin-top: 8px;
    transform: translate(-4px);
}

@media screen and (max-width: 992px) {
    .banner {
        height: 70vh;
    }
}

/* Sobre nos */

.section-missao {
    border-top: 5px solid #fff;
}

.missao {
    display: flex;
    justify-content: space-around;
}

.box-missao {
    text-align: center;
    margin-bottom: 20px;
    height: auto;
    border-radius: 10px 10px 40px 10px;
    transition: all 0.2s linear;
    padding-bottom: 5px;
    background-color: #fff;
}

.box-missao:hover {
    background-color: rgba(25, 25, 25, 0.8);
    color: #fff;
}

.box-missao i {
    border-radius: 10px 10px 40px 10px;
    padding: 10px;
    font-size: 50px;
    background-color: rgba(25, 25, 25, 0.08);
    transition: background-color 0.3s ease;
}

.box-missao:hover i {
    background-color: rgba(25, 25, 25, 0);
    color: #2f62d7;
}

.box-missao h3 {
    color: #2f62d7;
    margin-block: 10px;
}

.box-missao:hover h3 {
    color: #fff;
}

.title-sobre {
    text-align: center;
}

.text-sobre {
    margin-top: 50px;
}

.text-sobre h3 {
    margin-block: 20px;
}

@media screen and (max-width:992px) {
    .title-sobre {
        margin-top: 40px;
    }
}

/* Serviços */
.serv {
    margin-top: 50px;
}

.servicos {
    margin-block: 50px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.box-servicos {
    height: 350px;
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
    background-color: #2f62d7;
    padding: 15px;
    padding-bottom: none;
    position: relative;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.5s ease;
}

.box-servicos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #8d0101;
    transition: width 0.5s ease;
    border-radius: 10px;
    z-index: 1;
}

.box-servicos:hover::before {
    width: 100%;
}

.box-servicos:hover {
    border-radius: 10px;
    background-color: #a87ccd;
}

.title-servicos,
.info-servicos {
    color: #fff;
    position: relative;
    z-index: 2;
}

.title-servicos {
    text-align: center;
}

.title-servicos i {
    font-size: 50px;
    margin-bottom: 20px;
}

.info-servicos {
    text-align: justify;
    margin-bottom: 40px;
    padding: 15px;
}

.box-servicos .btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: -35px;
    border: 1px solid #8d0101;
    background-color: #8d0101;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 3;
}

.box-servicos:hover .btn {
    border: 1px solid #2f62d7;
    background-color: #2f62d7;
}

/* Avaliação */
.avaliacao {
    margin-block: 70px;
}

.slider {
    position: relative;
    width: 100%;
    height: 370px;
    overflow: hidden;
}

.item {
    position: absolute;
    width: 400px;
    height: 320px;
    text-align: justify;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    transition: 0.5s;
    left: calc(50% - 200px);
    top: 0;
}

.img-item,
.item h1 {
    text-align: center !important;
}

.img-item img {
    width: 50px;
}

#prev,
#next {
    position: absolute;
    top: 40%;
    color: #060000;
    background-color: transparent;
    border: none;
    font-size: xxx-large;
    font-family: monospace;
    font-weight: bold;
    z-index: 2;
}

#prev {
    left: 350px;
}

#next {
    right: 350px;
}

@media screen and (max-width: 992px) {
    #prev {
        font-size: xx-large;
        left: 150px;
        bottom: -50%;
    }

    #next {
        font-size: xx-large;
        bottom: -50%;
        right: 150px;
    }
}


/* Galeria */

.galeria {
    margin-block: 50px;
    display: flex;
    flex-wrap: wrap;
}

.item-galeria {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.item-galeria img {
    object-position: center;
    object-fit: cover;
    width: 400px;
    height: 250px;
    display: block;
}

.fosco {
    background-color: rgba(0, 0, 0, 0.55);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}


/* Map */
.location-section {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    box-sizing: border-box;
    text-align: center;
}

.map-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.location-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 80%;
}

.location-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
}

.location-info p {
    font-size: 18px;
    margin: 5px 0;
    color: #fff;
}

/* Footer */

.footer {
    background: linear-gradient(135deg, #343a40, #495057);
    color: #ffffff;
    padding: 40px 100px;
    border-top: 5px solid #f8f9fa;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.footer h5 {
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 10px;
}

.footer .nav-link {
    color: #ffffff;
    text-decoration: none;
}

.footer .nav-link:hover {
    color: #d1d1d1;
}

.footer .contact-item a {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.footer .contact-item a:hover {
    color: #d1d1d1;
}

.footer .contact-item i {
    margin-right: 10px;
}

.footer .social-icons a {
    color: #ffffff;
    margin-right: 20px;
    text-decoration: none;
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

.footer .social-icons a:hover {
    color: #d1d1d1;
}

.footer .social-icons a i {
    margin-right: 0;
}

.footer .social-icons a:last-child {
    margin-right: 0;
}