@charset "UTF-8";

@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,600,400italic,600italic,700,700italic,800,800italic');

* {
    margin: 0;
    padding: 0;
}

:root {
    --viola: #504770;

}




body {
    min-height: 100vh;
    /* background-color: rgba(186, 185, 189, 0.537); */
    background-color: white;
    font-family: 'Open Sans', sans-serif !important;
    color: #333333;
    overflow-x: hidden;
    /* Hide horizontal scrollbar */
    display: flex;
    flex-direction: column;
    font-size: 1rem;

}

a {

    color: #333333;
}

header {
    width: 100%;
    position: fixed;
    background-color: rgb(255, 255, 255);
    z-index: 10;
    margin: 0 auto;
}


main {
    width: 100%;
    flex: 1;
    margin: 0 auto;
}


footer {
    width: 100%;
    margin-top: 100px;
    background-color: rgba(186, 185, 189, 0.537);
    margin: 0 auto;
}






/* DETAIL PAGE */


.detail_title_out {
    margin-top: 100px;
    padding: 30px 75px;
}

.ditail_title {
    padding: 30px 75px;
}


.detail_title h1 {
    font-weight: 400;
    font-size: 3rem;
}

.detail_title h2 {
    font-weight: 400;
    font-size: 2rem;
}



.detail_content {
    min-height: 100vh;
    width: 80%;
    background-color: white;
    margin: 0 auto;
    padding: 50px 40px;
    margin-bottom: 80px;
    border-collapse: collapse;
    overflow: hidden; 

    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}
.detail_content p {
    font-size: 1rem; 
}

.detail_content_notitle {
    margin-top: 150px;
}

.detail_content h1 {
    font-weight: 300;
    font-size: 3rem;
}

.detail_content h2 {
    font-weight: 200;
    font-size: 2rem;
}


.detail_content p {
    line-height: 1.7rem;
    font-size: 1rem;
    word-wrap: break-word;
 }

.flex_container {
    display: flex;
    gap: 20px;

}





/* SERVIZIO_DETAIL TAB MENU */

.tabs {
    display: flex;
    position: relative;
    justify-content: center;
}

.tab {
    width: 10%;
    padding: 10px;
    margin: 5px;
    margin-bottom: 0px;
    cursor: pointer;
    border-top: 2px solid #504770;
    transition: margin-top 0.3s;
    text-align: center;

}

.tab:hover {
    margin-top: -5px;
    /* Set the desired increased negative margin */
    background-color: #6d6298;
    color: white;
    z-index: 1;
    /* Ensures that the hovered tab appears above others */
}


.tab.selected {

    background-color: white;
    color: rgb(8, 8, 8);
    z-index: 1;
}


.tab-contents {
    display: flex;
    flex-direction: column;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}










/* DETAIL TABLES */

.page_content td,
.page_content th {
    border: 1px solid #ddd;
    padding: 8px;
}

.page_content tr:nth-child(even) {
    background-color: #f2f2f2;
}

.page_content tr:hover {
    background-color: #ddd;
}

.page_content th {
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: left;
    background-color: #b1b1b1f7;
    color: rgb(9, 0, 0);
}







@media screen and (max-width: 640px) {
    .tabs {
        flex-direction: column;
        /* Stack tabs vertically */
        align-items: center;
        /* Center-align tabs in the column */

        .tab {
            width: 100%;
            /* Take full width on smaller screens */
        }

        .tab:hover {
            transition: none;
            /* Set the desired increased negative margin */
            background-color: #6d6298;
            color: white;
            gap: 15px;

        }

    }
}






















/* XS 475 */
@media (min-width: 475px) {}

/* S 640 */
@media (min-width: 640px) {}

/* M 768 */
@media (min-width: 768px) {}

/* L 1024 */
@media (min-width: 1024px) {}

/* XL 1280 */
@media (min-width: 1280px) {}

/* 2XL 1536 */
@media (min-width: 1536px) {}













/* CALCULATOR */


.detail_content input,
select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}


.detail_content button {
    width: 100%;
    background-color: #f7e25d;
    color: rgb(14, 1, 1);
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.detail_content button:hover {
    background-color: #d0bb32;
}



.input {
    border-radius: 5px;
    background-color: #f2f2f2;
    padding: 8px;
    margin: 0;
    padding-bottom: 0;
}


.cancella button {
    background: #a9a9a9;
    width: 30%;
}

.cancella button:hover {
    background-color: #868686;

}


.flex_container_professionisti {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}



.field_label_small p {
    font-size: medium;
}




/* PROFESSIONISTI LIST_DETAIL */


.professionisti {
    display: flex;
    flex-wrap:wrap;
    gap: 50px;
    margin-top: 50px;
    margin-bottom: 50px;
}


.cardprofessionista {
    position: relative;
    width: 200px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.image-wrapper-professionista {
    overflow: hidden;
    width: 100%;
    height: 250px;
}

.image-wrapper-professionista img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.cardprofessionista:hover {
    transform: scale(1.1);
    background-color: #f0f0f0;
    /* Set background color for the entire card on hover */
}

.cardprofessionista-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    /* Adjust padding as needed */
    background-color: #f0f0f0;
    /* Set background color for card content */
}

.cardprofessionista-content h2,
.cardprofessionista-content p {
    margin: 0;
    font-size: small;
    color: #000000;
}


@media (max-width: 768px) {
   .flex_container_professionisti {
       flex-wrap:wrap;
}
.professionisti {
   
flex-wrap:wrap;
}
.input {
    width:100%;
}


}
