* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'BritannicBold';
    src: url('fonts/Britannic/britannic-bold-regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat/static/Montserrat-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'MontserratBold';
    src: url('fonts/Montserrat/static/Montserrat-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'MontserratSemiBold';
    src: url('fonts/Montserrat/static/Montserrat-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'MontserratLight';
    src: url('fonts/Montserrat/static/Montserrat-Light.ttf') format('truetype');
}

@media (max-width: 768px) {

    #about, #services, #gallery, #video-gallery, #contact {
        width: auto;
        background: #f4f4f4!important;
        border-radius: 10px!important;
        text-align: center!important;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    }
    
    /* General adjustments */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    main {
        padding: 10px 7px;
        width: 100%;
        box-sizing: border-box;
    }

    h2 {
        font-size: 28px;
    }

    p {
        font-size: 15px;
    }

    /* Header adjustments */
    header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    header img {
        width: 160px !important;
        display: block;
        margin: 0 auto 15px auto !important;
    }

    header nav ul {
        display: flex;
        justify-content: center;
        align-items: center;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    header nav ul li a {
        font-size: 16px;
        text-decoration: none;
        color: inherit;
    }

    /* Carousel adjustments */
    .carousel {
        height: 325px !important;
    }
    
    .carousel-item img {
        height: 325px !important;
        object-fit: cover;
        width: 100%;
    }
    
    .carousel-item-active img {
        height: 325px !important;
        object-fit: cover;
        width: 100%;
    }

    .carousel-caption,
    .carousel-caption-1 {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90%;
        padding: 0;
        margin: 0;
    }

    .company-name,
    .company-name-2,
    .slogan {
        text-align: center;
        width: 100%;
        margin: 0;
        padding: 2px 0;
        line-height: 1.2;
    }

    .carousel-caption-1 {
        top: 50% !important;
    }

    .company-name {
        font-size: 28px !important;
    }

    .company-name-2 {
        font-size: 20px !important;
    }

    .slogan {
        font-size: 16px !important;
    }

    /* About section */
    #about{
        margin-top: -15px;;
    }

    #about p {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    #about p strong {
        display: block;
        margin-bottom: 15px;
    }

    #about p br {
        display: none;
    }

    /* Services section */
    #services {
        margin-top: 0px !important;
        padding: 0 5px !important;
    }

    #services h2 {
        margin-top: 0 !important;
        margin-bottom: 30px !important;
        padding-top: 5px !important;
    }

    .service-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .service-item.above,
    .service-item.below {
        transform: none !important;
        margin: 0 0 5px 0 !important;
        width: 100%;
        text-align: center;
    }

    .service-image {
        width: 150px !important;
        height: 150px !important;
        margin-bottom: 10px;
    }

    .service-item p1 {
        font-size: 18px !important;
        display: block;
        width: 100%;
    }

    /* Gallery adjustments */
    #gallery {
        margin-bottom: 0px !important;
    }
    
    #video-gallery {
        margin-top: 0px !important;
    }

    .gallery-container {
        max-width: 100% !important;
        height: 100% !important;
    }

    .gallery-item {
        flex: 0 0 100% !important;
        scroll-snap-align: start;
    }

    .gallery-button {
        top: 45% !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px !important;
        height: 40px !important;
        background-color: rgba(0, 0, 0, 0.7) !important;
        border-radius: 50% !important;
    }

    .prev-button {
        left: 15px !important;
    }

    .next-button {
        right: 15px !important;
    }

    /* Video section */
    .video-container {
        margin-top: 0 !important;
        padding: 10px 0;
        flex-direction: column;
    }

    .video-item {
        flex: 0 0 100%;
        margin: 5px 0;
    }

    /* Contact section */
    #contact {
        padding: 0 15px;
        text-align: center;
    }

    #contact h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    #contact p1 {
        display: block;
        font-size: 20px;
        margin: 20px 0;
    }

    #contact p {
        font-size: 16px;
        line-height: 1.5;
        margin: 20px 0;
    }

    .contact-info {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        margin: 30px 0;
    }

    .contact-item {
        margin: 0;
    }

    .contact-item img {
        width: 45px;
        height: 45px;
        transition: transform 0.3s ease;
    }

    /* Optional: Add hover effect */
    .contact-item:hover img {
        transform: scale(1.1);
    }

    .footer-logo img {
        width: 180px;
        margin: 30px auto;
        display: block;
    }

    /* Last slogan text */
    #contact > p1:last-of-type {
        display: block;
        margin-top: 30px;
        font-size: 18px;
        line-height: 1.4;
    }

    .footer-logo img {
        width: 100px;
    }

    /* Footer section */
    footer p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {

    #about, #services, #gallery, #video-gallery, #contact {
        width: auto;
        background: #f4f4f4!important;
        border-radius: 10px!important;
        text-align: center!important;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    }

    /* Ajustes no texto */
    #about p, #about strong, #about b {
        text-align: justify !important;
        word-wrap: break-word!important;
    }
    
    /* Navigation adjustments */
    nav ul li {
        margin-left: 10px;
    }

    nav ul li a {
        font-size: 14px;
    }

    /* Search icon adjustments */
    .search-icon {
        display: none;
    }

    /* Carousel indicators */
   .carousel-caption,
    .carousel-caption-1 {
        gap: 3px;
    }
    
    .company-name {
        font-size: 22px !important;
    }
    
    .company-name-2 {
        font-size: 16px !important;
    }
    
    .slogan {
        font-size: 14px !important;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::before {
    content: "";
    display: block;
    height: 60px;
    margin-top: -60px;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
    padding: 20px;
}

h2 {
    font-family: 'MontserratBold', sans-serif;
    color: #333E3F;
    font-size: 35px;
}

p {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
}

p1 {
    font-family: 'MontserratSemiBold', sans-serif;
    color: #333E3F;
    font-size: 20px;
}

strong {
    display: inline;
}

/* Header section */
header {
    background-color: white;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
}

header img {
    width: 150px;
    height: auto;
    display: flex;
    align-items: center;
    margin-left: 300px;    
}

nav ul {
    list-style-type: none;
    margin-right: 300px;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 20px; 
}

nav ul li a {
    font-family: 'MontserratLight', sans-serif;
    text-decoration: none;
    color: black;
}

nav ul li.search-icon {
    display: flex;
    align-items: center;
}

nav ul li.search-icon input[type="text"] {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

nav ul li a:hover {
    background-color: #8d8888;
}

/* Corousel section*/
.carousel {
    position: relative;
    width: 100%;
    max-height: 1070px;
    margin: 20px auto;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    position: relative;
}

.carousel-item {
    position: relative;
    min-width: 100%;
    box-sizing: border-box;
    height: 100%;
}

.carousel-item-active {
    position: relative;
    min-width: 100%;
    box-sizing: border-box;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    height: 100%;
}

.carousel-item-active img {
    width: 100%;
    display: block;
    object-fit: cover;
    height: 100%;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-caption {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
}

.carousel-caption-1 {
    position: absolute;
    top: 39%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
}

.company-name {
    font-family: 'BritannicBold', sans-serif;
    font-size: 60px;
    font-weight: bold;
}

.company-name-2 {
    font-family: 'BritannicBold', sans-serif;
    font-size: 40px;
    font-weight: bold;
}

.slogan {
    font-family: 'MontserratLight', sans-serif;
    font-size: 30px;
}

.carousel-caption .company-name,
.carousel-caption .slogan {
    padding: 10px;
}

.indicator {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.indicator.active {
    background-color: rgba(255, 255, 255, 1);
}

#about, #services, #gallery, #video-gallery, #contact {
    width: 100%;
    margin: 40px auto;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* About section */
#about p {
    text-align: justify;
    margin: 20px 0;
}

#about strong {
    display: block;
    margin-top: 20px;
    font-size: 1.2em;
}

/* Section Service*/
#services {
    text-align: center;
    padding: 50px 0;
}

#services h2 {
    margin-bottom: 75px;
}

.service-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.service-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #000;
}

.service-item p {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.service-item.above {
    transform: translateY(-50px);
}

.service-item.below {
    transform: translateY(50px);
}

/* Gallery section */
#gallery {
    padding: 20px;
}

#gallery h2 {
    text-align: center;
    margin-bottom: 20px;
}

.gallery-container {
    position: relative;
    height: 800px;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.gallery-inner {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
}

.gallery-item {
    flex: 0 0 100%;
    box-sizing: border-box;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.gallery-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.gallery-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

#video-gallery {
    padding: 20px;
}

#video-gallery h2 {
    text-align: center;
    margin-bottom: 20px;
}

.video-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.video-item {
    flex: 0 1 calc(50% - 20px);
    box-sizing: border-box;
    border-radius: 10px;
    overflow: hidden;
}

.video {
    width: 100%;
    height: auto;
    display: block;
}

/* Contact section */
#contact {
    margin-bottom: 50px;
}

.contact-info {
    margin-top: 50px;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.contact-item {
    display: inline-block;
    text-decoration: none;
    padding: 0 25px;
}

.contact-item img {
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease;
    fill: #053354;
}

.contact-item:hover img {
    transform: scale(1.4);
}

/* Estilos para o mapa do Google */
.google-map iframe {
    border: 0;
    padding-bottom: 20px;
    padding-top: 20px;
    width: 100%;
    /* Para o mapa ser responsivo */
    height: 450px;
    /* Você pode ajustar a altura conforme necessário */
    max-width: 600px;
    /* Limita a largura máxima */
}

/* Se necessário, ajuste o contêiner do mapa para centralizar */
.google-map {
    text-align: center;
}

/* Footer section */
footer {
    background-color: #333E3F;; 
    color: #fff;
    text-align: center;
    padding: 5px 0;
    position: relative;
    width: 100%;
    margin-top: -40px;
}

.footer-logo {
    display: block;
    margin: 30px auto;
    text-align: center;
}

.footer-logo:hover img {
    transform: scale(1.2);
}

.footer-logo img {
    width: 250px;
    height: auto;
}
