/* Stile per la sezione profilo */
.profile-section {
    padding: 70px 0;
    background-color: var(--color-white);
}

/* Stile per la card del professionista */
.profile-card {
    /* position: relative;
     !*background: white;*!
    !* border-radius: 30px;*!
     padding: 30px;
     margin-bottom: 40px;
     box-shadow: inset 0px 0px 15px rgba(0, 0, 0, 0.2);
     transition: all 0.3s ease-in-out;
     border-right: 1px solid #f0f0f0;
     border-radius: 3px;
     color: var(--color-gray);
     background-repeat: no-repeat, no-repeat;
     background-color: var(--color-white);
     background-image: url('../images/bg-block-top.png'), url('../images/bg-block-bottom.png');
     background-position: top right, bottom left;
     -webkit-box-shadow: 0px 15px 40px -5px rgb(0 0 0 / 10%);
     box-shadow: 0px 15px 40px -5px rgb(0 0 0 / 10%);*/
    padding: 40px 60px;
    position: relative;
    box-shadow: inset 0px 0px 15px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    margin-bottom: 40px;
    color: var(--color-gray);
    background-color: var(--color-white);
    background-image: url('../images/bg-block-top.png'), url('../images/bg-block-bottom.png');
    background-repeat: no-repeat, no-repeat;
    background-position: top right, bottom left;
    -webkit-box-shadow: 0px 15px 40px -5px rgb(0 0 0 / 10%);
    box-shadow: 0px 15px 40px -5px rgb(0 0 0 / 10%);
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-card .img-container {
    position: relative;
    margin-bottom: 20px;
}

.profile-card .img-container img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 50% 50% 50% 50%;
    display: block;
    margin: 0 auto;
    border: 5px solid rgba(240, 240, 240, 0.7);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.profile-card .profile-name {
    font-weight: 600;
    font-size: 24px;
    line-height: 30px;
    color: var(--color-dark);
    margin-bottom: 5px;
    text-align: center;
}
.profile-card .profile-title {
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 20px;
    font-style: italic;
}

.profile-card .profile-description {
    font-weight: 400;
    font-size: 16px;
    line-height: 25px;
    color: var(--color-grey-dark);
    margin-bottom: 20px;
    text-align: justify;
}

.profile-card .profile-social {
    text-align: center;
    margin: 20px 0;
}

.profile-card .profile-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: var(--color-dark);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 22px;
    transition: all 0.3s ease-in-out;
}

.profile-card .profile-social a:hover {
    /*background: var(--color-primary);*/
    background: darkmagenta;
    transform: translateY(-3px);
}

.profile-card .profile-link-container {
    margin-top: 10px;
}

.profile-card .profile-link {
    display: inline-block;
    font-weight: 500;
    font-size: 16px;
    color: var(--color-primary);
    transition: all 0.3s ease-in-out;
}

.profile-card .profile-link:hover {
    color: var(--color-dark);
    text-decoration: underline;
}

/* ? Start Section 2 */

/* ===== Stili per la sezione trattamenti ===== */
.treatments-section {
    padding: 50px 0 70px;
    background-color: var(--color-white);
    position: relative;
}

.treatments-content {
    position: relative;
    padding: 40px 60px;
    margin: 0 auto;
    max-width: 800px;
    /*box-shadow: inset 0px 0px 15px rgba(0, 0, 0, 0.2);*/
    text-align: center;
    transition: all 0.3s ease-in-out;

    border-radius: 3px;
    color: var(--color-gray);
    background-color: var(--color-white);
    background-image: url('../images/bg-block-top.png'), url('../images/bg-block-bottom.png');
    background-repeat: no-repeat, no-repeat;
    background-position: top right, bottom left;
    -webkit-box-shadow: 0px 15px 40px -5px rgb(0 0 0 / 10%);
    box-shadow: 0px 15px 40px -5px rgb(0 0 0 / 10%);
}

.treatments-content:hover {
    transform: translateY(-5px);
}

.treatments-main-title {
    font-weight: 600;
    font-size: 28px;
    line-height: 38px;
    color: var(--color-grey-dark);
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.treatments-category {
    margin-bottom: 30px;
    text-align: left;
}

.category-title {
    font-weight: 600;
    font-size: 22px;
    line-height: 30px;
    color: var(--color-dark);
    margin-bottom: 20px;
    text-align: left;
}

.treatments-list {
    margin-left: 0;
    text-align: left;
}

.treatment-item {
    width: 100%;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-grey);
}

.treatment-name {
    font-weight: 500;
    color: var(--color-grey-dark);
}

.treatment-desc {
    font-weight: 400;
    font-style: italic;
    color: var(--color-grey);
}

.treatments-gallery {
    margin-top: 40px;
}

.gallery-title {
    font-weight: 600;
    font-size: 22px;
    line-height: 30px;
    text-align: center;
    color: var(--color-dark);
    margin-bottom: 30px;
}

.gallery-item {
    margin-bottom: 30px;
    padding: 0 10px;
}

/* Per le immagini che verranno gestite tramite array in Java Spring Thymeleaf */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.before-after-container {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    height: 280px; /* Altezza fissa per tutte le immagini */
    position: relative;
}

.before-after-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.full-width-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene le proporzioni riempiendo il contenitore */
    display: block;
    border-radius: 10px;
}

.before-image, .after-image {
    position: relative;
}

.before-image img, .after-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.before-image .label, .after-image .label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--color-primary);
    color: white;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
}

.treatments-footer {
    margin-top: 40px;
    text-align: center;
}

.instagram-link-text {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 15px;
    color: var(--color-grey-dark);
}

.instagram-link-text a {
    color: var(--color-primary);
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

.instagram-link-text a:hover {
    color: var(--color-dark);
}

.copyright-notice {
    font-size: 14px;
    color: var(--color-grey);
    margin-top: 20px;
}

/* Media queries per responsività */
@media only screen and (max-width: 768px) {
    .treatments-content {
        padding: 30px;
    }

    .treatments-main-title {
        font-size: 24px;
    }

    .category-title {
        font-size: 20px;
    }

    .treatment-item {
        font-size: 15px;
    }
}

@media only screen and (max-width: 576px) {
    .treatments-content {
        padding: 25px 20px;
    }

    .treatments-main-title {
        font-size: 22px;
    }

    .category-title {
        font-size: 18px;
    }

    .treatment-item {
        font-size: 14px;
    }
}

/*! End Section 2*/

/* Responsive */
@media only screen and (max-width: 768px) {
    .profile-card {
        padding: 25px 20px;
    }

    .profile-card .img-container img {
        max-width: 220px;
    }

    .profile-card .profile-name {
        font-size: 22px;
    }

    .profile-card .profile-title {
        font-size: 16px;
    }

    .profile-card .profile-description {
        font-size: 14px;
        line-height: 22px;
    }
}

/* Media query per dispositivi mobili */
@media only screen and (max-width: 768px) {
    .gallery-item {
        padding: 0 5px;
        margin-bottom: 20px;
    }
}