@font-face {
    font-family: 'Montserrat';
    src: url('../fonts//Montserrat/Montserrat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    margin: 0;
    padding: 0;
    color: #242424;
    line-height: 1.6;
    background: #c2c1c14a;
}

h1, h2 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 35px;
    margin: 15px 0;
}

.header-page1 {
    font-weight: 600;
    background-image: 
        linear-gradient(
            to top,
            rgba(0, 0, 0),
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0.9)
        ),
        url('images/123.jpg'); 
    background-size: cover;
    background-position: center;
    color: white;
    padding: 20px 0;
    text-align: center;
    z-index: 1;
    position: relative;
    height: 90vh;
}

.header-page2 {
    font-weight: 600;
    background-image: 
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.87),
            rgba(0, 0, 0, 0.10),
            rgba(0, 0, 0, 0.87)
        ),
        url('images/123.jpg'); 
    background-size: cover;
    background-position: center;
    color: white;
    padding: 20px 0;
    text-align: center;
    z-index: 1;
    position: relative;
    height: 45vh
}

/* Logo */

.logo {
    width: 370px;
    margin-left: 20px;
    margin-top: 8px;
}

@media (max-width: 991px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 30px;
    }

    .header-page1 {
        height: 55vh;
    }

    .header-page2 {
        height: 35vh;
    }

    .logo {
        width: 300px;
        margin-left: 0%;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 13px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 28px;
    }

    .header-page1 {
        height: 50vh;
    }

    .header-page2 {
        height: 30vh;
    }

    .logo {
        width: 250px;
        margin-left: 0%;
    }
}

@media (max-width: 575px) {
    body {
        font-size: 12px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 24px;
    }

    .header-page1 {
        height: 32vh;
    }

    .header-page2 {
        height: 27vh;
    }

    .logo {
        width: 200px;
        margin-left: -1%;    }
}

/* index - nav */
.header {
    display: flex;
    align-items: flex-start; 
    justify-content: space-between; 
}

.text-content {
    text-align: center; 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    color: white; 
}

.text-content h2 {
    font-size: 60px;
}

.text-content h6 {
    font-size: 20px;
    margin-top: 10px;
}

nav {
    margin-left: 30px; 
}

.nav-list {
    list-style: none;
    padding: 0;
    display: flex; 
    justify-content: flex-end; 
    margin-right: 80px
}

.nav-list a {
    color: white; 
    text-decoration: none; 
    font-size: 1rem; 
    position: relative; 
    overflow: hidden;
}

.nav-list a::after {
    content: ''; 
    position: absolute; 
    left: 50%; 
    bottom: 0; 
    width: 0; 
    height: 2px; 
    background-color: #a70505d8; 
    transition: width 0.6s ease, left 0.6s ease; 
}

.nav-list a:hover::after {
    width: 100%;
    left: 0; 
}

.nav-list a:hover {
    color: #a70505d8; 
}

.nav-list li {
    margin: 0 15px; 
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: #000000c0;
    backdrop-filter: blur(5px);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    transition: transform 0.3s ease; 
    transform: translateX(100%); 
}

.sidebar.show {
    display: flex;
    transform: translateX(0); 
}
.sidebar li{
    width: 100%;
    padding-bottom: 10px;

}

.sidebar a{
    width: 100%;
    color: white; 
    text-decoration: none; 
    font-size: 13px; 
    position: relative; 
    overflow: hidden;
}

.sidebar li a i.fa-xmark {
    font-size: 22px;
    padding-bottom: 10px;
    padding-top: 20px;
}

.sidebar a::after {
    content: ''; 
    position: absolute; 
    left: 50%; 
    bottom: 0; 
    width: 0; 
    height: 2px; 
    background-color: #a70505d8; 
    transition: width 0.6s ease, left 0.6s ease; 
}

.sidebar a:hover::after {
    width: 100%;
    left: 0; 
}

.sidebar a:hover {
    color: #a70505d8; 
}

.burgermenu {
    display: none;
    list-style-type: none;
    position: absolute; 
    top: 20px;
    right: 25px; 
}

.burgermenu li a {
    color: white; 
    font-size: 22px; 
}

@media (max-width: 991px) {
.burgermenu{
    display: block;
}

    .header {
        flex-direction: column;
        align-items: center; 
        text-align: center; 
    }

    .text-content {
        width: 100%; 
        left: 50%; 
        transform: translateX(-50%); 
    }

    .text-content h2 {
        font-size: 40px;
        margin-top: 0%;
    }

    .text-content h6 {
        font-size: 16px;
    }

    #indexpage {
        margin-top: -7%;
    }

    .nav {
        background-color: #d60000;
    }
    .nav-list {
        display: none; 
        flex-direction: column; 
        width: 100%; 
        background-color: rgba(0, 0, 0, 0.87); 
        position: absolute; 
        top: 90px; 
        left: 0; 
        z-index: 10; 
    }

    .nav-list.active {
        display: flex; 
        padding-top: 10px;
        padding-bottom: 10px;
        margin-top: 3px;
    }

    .nav-list li {
        margin: 3px 0; 
    }

    #buttonheader {
        margin-left: 0%;
    }
    .sidebar {
        display: flex; 
    }
}

@media (max-width: 767px) {
    .text-content h2 {
        font-size: 30px;
        margin-top: 1%;
    }

    .text-content h6 {
        font-size: 14px;
    }

    #indexpage {
        margin-top: -7%;
    }

    .nav-list a {
        font-size: 0.8rem;
    }

    #buttonheader {
        margin-left: 0%;
    }
}

@media (max-width: 575px) {
    .header {
        padding: 20px; 
    }

    .text-content {
        width: 100%; 
        left: 50%; 
        transform: translateX(-50%);
    }

    .text-content h2 {
        font-size: 21px;
        margin-top: 3%;
    }

    .text-content h6 {
        font-size: 12px;
        margin-top: -1%;
    }

    #indexpage {
        margin-top: -5%;
    }

    .nav-list {
        align-items: center; 
        width: 100%; 
        margin: 0; 
    }

    .nav-list.active {
        display: flex; 
        padding-top: 10px;
        padding-bottom: 0px;
        margin-top: 3px;
    }

    .nav-list a {
        font-size: 0.75rem;
        text-align: center;
        width: 100%; 
    }

    .burgermenu {
        top: 10px;
    }
}

/* contact page and buttons */
.section {
    padding: 40px 20px; 
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9); 
    margin: 20px auto; 
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(24, 24, 24, 0.1);
    width: calc(100% - 40px);
    max-width: 1200px;
}

.section a {
    text-decoration: none;
    color: #242424;
}

.section a:hover {
    color: #a70505d8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 505px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    resize: none;
    margin: 10px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 10px;
    width: 100%;
    font-size: 15px; 
    font-family: 'Montserrat', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #a70505d8; 
    outline: none; 
}

.contact-form textarea {
    height: 200px;
}

.buttonss {
    padding: 10px 25px;
    background-color: #161616;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
    font-size: 14px;
    min-width: 160px;
    margin: auto;
    border: 2px solid transparent;
    font-weight: 600;
    text-decoration: none;
}

.buttonss:hover {
    background-color: #a70505d8;
    color: #e4c9c9;
    border: 2px solid transparent;
}

#submitBtn {
    margin-top: 5px;
}
.contact-form input[type="checkbox"]:checked {
    accent-color: #a70505d8; 
}

.contact-form input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.contact-info i {
    font-size: 18px;               
    color: #a70505d8;              
    margin-right: 10px;            
    transition: transform 0.3s, color 0.3s; 
}

.contact-info i:hover {
    transform: scale(1.2);        
    color: #000000;                
}

table {
    margin: 0 auto;
    border-collapse: collapse;
}

table td {
    padding: 10px 72px;
    border: 1px solid #ddd;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.flex-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px; /* Increased for more spacing */
}

.contact-info, .opening-hours {
    flex: 1;
    min-width: 300px;
}

iframe {
    border-radius: 8px;
}

.opening-hours table {
    margin: 0;
    width: 100%;
}

/* Media Queries */


@media (max-width: 991px) {
    .section {
        padding: 40px 20px;
    }

    .contact-form {
        padding: 0 10px;
    }

    .contact-info {
        font-size: 16px;
        width: 80%;
        max-width: 500px;
        margin: 0 auto; 
    }

    .buttonss {
        min-width: 140px;
        margin-left: -121%;

    }

    .flex-container {
        flex-direction: column;
        gap: 20px;
        align-items: center; 
    }

    iframe {
        width: 80%;
        height: 300px;
        margin: 0 auto;
    }

    .opening-hours {
        flex: 1;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 30px 15px;
    }

    .contact-form {
        padding: 0 10px;
    }

    .contact-info {
        font-size: 16px;
        width: 90%;
        margin: 0 auto; 
    }

    .buttonss {
        min-width: 140px;

    }

    table td {
        padding: 10px 20px;
    }

    iframe {
        width: 100%;
        height: 250px;
        margin: 0 auto;
    }

    .opening-hours {
        flex: 1;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .section {
        padding: 20px 10px;
    }

    .contact-form {
        padding: 0 30px;
    }

    .contact-info {
        font-size: 16px;
        width: 100%;
        margin: 0 auto; 
    }

    .buttonss {
        margin-left: 0%;
    }

    table td {
        padding: 10px 15px;
    }

    iframe {
        width: 100%;
        height: 200px;
        margin: 0 auto;
    }

    .opening-hours {
        flex: 1;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* footer */

footer {
    background: #161616;
    color: white;
    padding: 25px 0;
    text-align: center;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.scroll-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    background-color: #a70505d8;
    border-radius: 0.5rem;
    padding: 0.5rem;
    text-decoration: none;
    transition: 0.2s ease-in-out;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 20px;
    z-index: 3;
    font-size: 20px;
}

.scroll-to-top span {
    color: #ffbdbd;
    font-size: 1.5rem;
    transition: 0.2s ease-out;
}

.scroll-to-top:hover {
    background-color: #000000;
    color: #ffffff;
    border: 1.5px solid #000000;
    text-decoration: none;
}

.scroll-to-top:hover span {
    color: #000000;
    transform: translateY(-4px);
}

/* cookies */

.subcontainer {
    width: 85%;
    margin: auto;
}

#cookies { 
    width: 100%;
    position: fixed;
    bottom: 0;
    color: white;
    background-color: rgba(40, 40, 40, 0.76);
    z-index: 1;
    display: none;  
    padding: 20px 10px;
}

.cookie-content { 
    min-height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.cookie-content a { 
    color: #d60000;
    font-weight: 500;
    text-decoration: none;
    font-weight: 600;

}

.cookie-content p {
    margin: 0;
    flex-grow: 1; 
    font-weight: 600;
}

.cookie-content a:hover { 
    color: #ffb2b2;
}

@media(max-width:1600px){
    .container {
        width: 100%;
    }
}

@media(max-width:768px){
    .cookie-content { 
        flex-direction: column;
        text-align: center;
    }
}

/* icons */
.icon{
    width: 20px;
}

.arrowup{
    width: 16px;
}

/* Add CSS styles for modal */
.modal-container {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.69); 
    backdrop-filter: blur(5px);
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 1000; 
    display: none; 
    font-size: 14px;
    font-weight: 550;
    text-align: justify;
    align-content: center;
    text-decoration: none;
}

.modal {
    width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: white;
    border: 3px solid #b9b9b9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 20px;
    padding-bottom: 20px;
    letter-spacing: normal;
}

.modal-title {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.modal-content {
    margin-top: 16px; 
}

.modal-container p{
    line-height: normal;
    text-decoration: none;
    letter-spacing: normal;
}

.modal-container h4, h3 {
    font-weight: 800;
}

/* SERVICIOS */

.widget-section {
    padding: 60px 0;
}

.heading-big {
    color: #161616;
    margin-bottom: 20px;
}

.widget-section p {
    font-size: 1.1rem;
    color: #666;
}

/* Estilo para os ícones e caixas de serviço */
.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    margin-bottom: -20px;
}

.col-lg-4, .col-sm-6 {
    flex: 0 0 calc(33.33% - 20px); /* 3 boxes/line */
    margin: 10px; /* space between boxes */
    display: flex;
}

.icon-box {
    text-align: center;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(24, 24, 24, 0.1);
    transition: transform 0.6s, background-color 0.6s, color 0.6s; 
    margin-bottom: 10px;
}

.icon-box:hover {
    transform: translateY(-5px);
    background-color: #a70505d8;
    color: #fff; 
}

.icon-box:hover .title,
.icon-box:hover .iconWidget { 
    color: #fff;
}

.widget-section .icon-box:hover p {
    color: #fff; 
}

.iconWidget {
    font-size: 40px;
    color: #a70505d8; 
    margin-bottom: 15px;
    transition: transform 0.3s, color 0.3s; 
}

.iconWidget:hover{
    font-size: 40px;
    color: #000000d8; 
    margin-bottom: 15px;
    transform: scale(1.2);
}

.title {
    font-size: 1.5rem;
    color: #161616; 
    margin-bottom: 10px;
}

.sectionservicios {

    padding: -1px 20px; 
    text-align: center;
    margin: 20px auto; 
    border-radius: 8px;
    width: calc(100% - 40px);
    max-width: 1200px;
    margin-bottom: 20px;
}

.servicep {
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 20px;
    max-width: 800px;
    text-align: center;
}

/* FAQ */ 
#faq {
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.faq-heading {
    display: flex;
    flex-direction: column;
    align-items: center; 
    margin-bottom: 24px;
}

.faq-heading h2 {
    font-weight: 600;
    line-height: 20px;
}

.faq-heading p {
    font-weight: 400;
    line-height: 20px;
    max-width: 800px;
    text-align: center;
}

.faq-box-container {
    display: flex;
    flex-direction: column;
    align-items: center; 
    width: 100%;
}

.faq-box {
    padding: 20px; 
    background: #c2c1c14a;
    box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.058);
    border-radius: 20px;
    width: 100%; 
    max-width: 900px; 
    margin-bottom: 15px;
}

.faq-box:last-child {
    margin-bottom: 0px;
}

.faq-box-question {
    display: grid;
    grid-template-columns: 1fr 25px; 
    justify-content: flex-start; 
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-box-question h4 {
    font-weight: 600;
    font-size: 20px;
    line-height: 31px;
    color: #a70505d8;
}

.faq-box-icon {
    display: flex;
    position: relative;
    height: 3px;
    width: 25px;
    margin-left: auto;
}

.faq-box-icon::before,
.faq-box-icon::after {
    background: #a70505d8;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    transition: all ease-out 0.2s;
}

.faq-box-icon::before {
    top: 0px;
}

.faq-box-icon::after {
    top: 0px;
    transform: rotate(0deg);
}

.faq-box-question.active .faq-box-icon::after {
    transform: rotate(90deg);
}

.faq-box-question.active h4 {
    color: #000000d8;
}

.faq-box-answer p {
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #242424;
    padding-top: 20px;
}

.faq-box-answer {
    max-height: 0px;
    overflow: hidden;
    transition: all ease-in-out 0.5s;
}

/* Estilo para ecrãs médios (tablets) */
@media (max-width: 992px) {
    .widget-section {
        padding: 40px 0;
    }
    
    .col-lg-4, .col-sm-6 {
        flex: 0 0 calc(50% - 20px); /* 2 caixas por fila */
    }

    .heading-big {
        font-size: 1.8rem;
    }

    .widget-section p {
        font-size: 1rem;
    }

    .iconWidget {
        font-size: 35px;
    }

    #faq {
        padding: 30px 15px;
    }

    .faq-box-answer p {
        margin-top: -20px;
    }
}

/* Estilo para ecrãs pequenos (telefones) */
@media (max-width: 576px) {
    .widget-section {
        padding: 20px 0;
    }

    .col-lg-4, .col-sm-6 {
        flex: 0 0 100%; /* 1 caixa por fila */
    }

    .heading-big {
        font-size: 1.6rem;
    }

    .widget-section p {
        font-size: 0.9rem;
    }

    .iconWidget {
        font-size: 30px;
    }

    .servicep {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    #faq {
        padding: 30px 15px;
    }

    .faq-heading h2 {
        font-size: 1.4rem;
    }

    .faq-box {
        padding: 15px;
    }

    .faq-box-question h4 {
        font-size: 18px;
    }

    .faq-box-answer p {
        font-size: 14px;
        margin-top: -20px;
    }
}

/* Gallery */ 
.gallery-section {
    padding: 20px;
    display: flex; 
    justify-content: center;
}

.image-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
    gap: 15px;
    max-width: 2000px; 
    margin: 0 auto; 
    padding: 0; 
}
.image-item {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.image-item:hover img {
    transform: scale(1.1);
}

.effect-sadie figcaption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
}

.image-item:hover figcaption {
    opacity: 1;
}

@media (max-width: 992px) {
    .gallery-section {
        padding: 15px;
    }

    .image-list {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); 
        gap: 10px;
        max-width: 100%; 
    }

    .image-item {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .gallery-section {
        padding: 10px;
    }

    .image-list {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); 
        gap: 8px;
    }

    .image-item {
        height: 250px;
    }

    .effect-sadie figcaption {
        font-size: 0.9rem; 
    }
}

/* Index About Section */
.about-section .row {
    display: flex; 
    align-items: flex-start; 
}

.about-section .col-lg-6 {
    flex: 1; 
    padding: 40px;
}

.about-section .img-flex {
    background-image: url('images/certificados.png'); 
    background-size: contain; 
    height: 158px;
    width: 477px;
    max-width: 600px;
    border-radius: 8px;
    margin-top: 40px;
}

.about-section .img2 {
    background-image: url('images/stock.jpg'); 
    background-size: contain; 
    height: 508px;
    width: 392px;
    border-radius: 8px; 
    float: left; 
    margin-left: 4px;
    margin-top: 34px;
    transition: transform 0.3s ease;
}

.about-section .img2:hover {
    transform: scale(1.05)
}

/* About section */
.about-section h4 {
    font-size: 20px; 
    font-weight: 900;
    color: #a70505d8; 
    margin-bottom: 15px; 
    text-align: left;
}

.about-section h1 {
    font-size: 31px; 
    font-weight: 700; 
    color: #000; 
    margin-bottom: 20px; 
    text-align: left;
}

.about-section p {
    font-size: 16px; 
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
}

.services-section {
    text-align: left;
    margin-bottom: 50px;
    padding: 125px 0;
}

.services-section h1 {
    font-size: 28px;
    margin-bottom: 20px;
    margin-left: 37px;
    margin-top: -60px;
}

.services-section p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: justify;
    margin-left: 37px;
}

.services-section ul {
    list-style: none;
    padding: 0;
    margin-left: 37px;
}

.services-section ul li {
    margin-bottom: 10px;
    font-weight: 600;
    position: relative;
    padding-left: 30px;
}

.services-section ul li i {
    position: relative;
    left: 0;
    color: #a70505d8;
}

.services-image img {
    width: 476px;
    border-radius: 8px;
    float: right;
    margin-top: -273px;
    margin-right: 40px;
    height: 410px;
    transition: transform 0.3s ease;
}

.services-image img:hover {
    transform: scale(1.05)
}

#homeservicebutton {
    color: #fff;
    margin-left: 130px;
    position: relative;
    top: 25px;
}

#homeservicebutton:hover {
    background-color: #a70505d8;
    color: #e4c9c9;
    border: 2px solid transparent;
}

@media (max-width: 991px) {
    .about-section .row {
        flex-direction: column;
        align-items: center;
    }

    .about-section .col-lg-6 {
        padding: 20px;
        max-width: 90%;
    }

    .about-section .img-flex { 
        max-width: 500px;
        margin: 20px auto;
        float: none;
    }

    .about-section .img2 { 
        max-width: 500px;
        margin: 20px auto;
        float: none;
    }

    .services-section {
        padding: 50px 0;
        margin-bottom: 30px;
        text-align: center;
    }

    .services-section h1, 
    .services-section p, 
    .services-section ul {
        margin-left: 0;
        padding: 0 20px;
    }

    .services-image img {
        width: 90%;
        max-width: 400px;
        margin: 20px auto;
        float: none;
    }

    #homeservicebutton {
        margin: 20px 270px;
        display: block;
        text-align: center;
    }
}

@media (min-width: 791px) and (max-width: 885px) {
    .about-section .row {
        flex-direction: column;
        align-items: center;
    }

    .about-section .col-lg-6 {
        padding: 15px;
        max-width: 85%;
    }

    .about-section .img-flex {
        width: 484px;
        height: 160px;
        margin-left: 67px;
        margin-bottom: 40px;
    }

    .about-section .img2 {
        width: 349px;
        height: 452px;
        margin-left: -8px;
        margin-top: -3px;
        margin-bottom: -35px;
    }

    .services-section {
        padding: 40px 0;
        text-align: center;
    }

    .services-section h1,
    .services-section p,
    .services-section ul {
        margin-left: 0;
        padding: 0 15px;
    }

    .services-image img {
        width: 380px;
        height: 369px;
    }

    #homeservicebutton {
        margin: 20px 270px;
        display: block;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .about-section h4, 
    .about-section h1 {
        text-align: center;
    }

    .about-section p,
    .services-section p,
    .services-section ul li {
        text-align: justify;
        font-size: 15px;
    }

    .about-section .img-flex {
        width: 349px;
        height: 116px;
        margin-left: 45px;
        margin-bottom: 40px;
    }

    .about-section .img2 {
        width: 300px;
        height: 389px;
        margin-left: -8px;
        margin-top: -3px;
        margin-bottom: -35px;
    }

    .services-section h1 {
        font-size: 24px;
        text-align: center;
    }

    .services-image img {
        width: 324px;
        height: 317px;
    }

    #homeservicebutton {
        margin: 20px 195px;
        padding: 10px 20px;
    }
}

@media (max-width: 575px) {
    .about-section, .services-section {
        padding: 15px;
    }

    .services-section h1 {
        font-size: 22px;
        text-align: center;
    }

    .about-section h1 {
        font-size: 24px;
        text-align: center;
    }

    .about-section .img-flex {
        width: 300px;
        height: 99px;
        margin-left: -8px;    
        margin-bottom: 40px;
    }

    .about-section .img2 {
        width: 300px;
        height: 389px;
        margin-left: -8px;
        margin-top: -3px;
        margin-bottom: -35px;
    }

    .services-section ul li i {
        left: 5px;
    }

    .services-image img {
        width: 292px;
        height: 300px;
    }

    #homeservicebutton {
        font-size: 14px;
        padding: 8px 15px;
        margin: 20px 110px;
    }
}



/* thumnail producst */

.thumbnails-section {
    margin-top: 30px;
    padding: 20px 0;
    background-color: #f9f9f9; /* Cor de fundo opcional */
    text-align: center; /* Centraliza as miniaturas */
}

.thumbnails-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center; /* Centraliza os itens da lista */
    gap: 15px;
    flex-wrap: wrap; /* Para garantir que as miniaturas se alinhem bem em dispositivos menores */
}

.thumbnail-item {
    position: relative;
    display: flex;
    justify-content: center; /* Centraliza as imagens */
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f0f0f0; /* Fundo para as bordas */
    width: 250px; /* Largura aumentada das miniaturas */
    height: 250px; /* Altura aumentada das miniaturas */
    text-align: center;
}

.thumbnail-item img {
    width: 100%; /* Ajusta a imagem para a largura do contêiner */
    height: 100%; /* Ajusta a altura da imagem para o contêiner */
    object-fit: contain; /* Garante que a imagem cubra todo o contêiner */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail-item img:hover {
    transform: scale(1.1);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.thumbnail-caption {
    position: absolute;
    bottom: 0; /* Ajusta a legenda para ficar na parte inferior */
    left: 50%; /* Centraliza o texto horizontalmente */
    transform: translateX(-50%); /* Ajuste para garantir que o texto esteja exatamente no centro */
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    font-size: 14px;
    opacity: 0;
    border-radius: 0 0 8px 8px; /* Arredonda os cantos inferiores */
    transition: opacity 0.3s ease;
    width: 100%; /* Largura total da miniatura */
    text-align: center; /* Garante que o texto esteja centralizado */
}

.thumbnail-item:hover .thumbnail-caption {
    opacity: 1; /* Mostra a legenda no hover */
}


/* Full size img */
/* Estilo para a exibição da imagem em tamanho grande */
.full-size-image {
    display: none; /* Inicialmente escondido */
    text-align: center;
    margin-top: 20px;
}

.full-size-image img {
    max-width: 45%; /* Ajuste para 70% do tamanho da tela */
    height: auto;
    border: 3px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.full-size-image h3 {
    margin-top: 10px;
    font-size: 24px;
    color: #333;
}

.closebuttonimg {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #a70505d8;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    color: #333;
    border-radius: 50%;
    z-index: 1010; /
}

.closebuttonimg:hover {
    background-color: rgba(255, 255, 255, 1);
}
