/* page-ambulatorio :: about-style3 — CSS di sezione (estratto) */

/* --- from modules/about-section.css --- */
/*** 
=============================================
    About Style3 Area Css   
=============================================
***/
.about-style3-area {
    position: relative;
    display: block;
    background: #ffffff;
    padding: 120px 0px 120px;
}


.about-style3-img-box {
    position: relative;
    display: block;
    margin-right: -10px;
    z-index: 1;
}


.about-style3-img-box .shape1 {
    position: absolute;
    top: 60px;
    left: -200px;
    width: 430px;
    height: 430px;
    bottom: 60px;
    border-radius: 50%;
    background: #edf3f2;
    z-index: -1;
}


.about-style3-img-box .shape2 {
    position: absolute;
    top: -200px;
    right: -150px;
    width: 430px;
    height: 430px;
    bottom: 60px;
    border-radius: 50%;
    background: #edf3f2;
    z-index: -1;
}


.about-style3-img-box .main-img-box {
    position: relative;
    display: block;
}


.about-style3-img-box .main-img-box ul {
    position: relative;
    display: block;
    overflow: hidden;
    margin-left: -10px;
    margin-right: -10px;
}


.about-style3-img-box .main-img-box ul li {
    position: relative;
    display: block;
    float: left;
    width: 50%;
    padding: 0 10px;
}


.about-style3-img-box .main-img-box ul li .single-box {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 5px;
    aspect-ratio: 280 / 550;
}


/* Variante con una sola foto: occupa tutta la colonna con un rapporto più equilibrato */
.about-style3-img-box .main-img-box.main-img-box--single ul li {
    float: none;
    width: 100%;
}


.about-style3-img-box .main-img-box.main-img-box--single ul li .single-box {
    aspect-ratio: 5 / 6;
}


.about-style3-img-box .main-img-box ul li .single-box::before {
    position: absolute;
    top: 0;
    left: -50%;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    opacity: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .7) 150%);
    transform: skewX(-5deg);
    z-index: 2;
}


.about-style3-img-box .main-img-box ul li:hover .single-box::before {
    opacity: 1;
    -webkit-animation: shine 1.4s;
    animation: shine 1.4s;
}


.about-style3-img-box .main-img-box ul li .single-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.0);
    transition: all 1700ms ease;
}


.about-style3-img-box .main-img-box ul li .single-box img.img-pos-right {
    object-position: right center;
}


.about-style3-img-box .main-img-box ul li:hover .single-box img {
    transform: scale(1.2);
}



.about-style3-img-box .overlay-content {
    position: absolute;
    top: 215px;
    left: -80px;
    width: 220px;
    padding: 32px 0px 21px;
    background: var(--thm-base);
    text-align: center;
    border-radius: 5px;
    border-bottom-left-radius: 0px;
    z-index: 3;
    animation: float-bob-yy 3s infinite;
}


.about-style3-img-box .overlay-content:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -30px;
    width: 35px;
    height: 30px;
    border-top: 30px solid var(--thm-base);
    border-right: 35px solid transparent;
}


.about-style3-img-box .overlay-content h2 {
    color: #ffffff;
    font-size: 50px;
    line-height: 1em;
    font-weight: 400;
    margin-bottom: 14px;
}


.about-style3-img-box .overlay-content p {
    color: #ffffff;
    line-height: 25px;
    font-weight: 500;
}



.about-style3-content {
    position: relative;
    display: block;
    margin-left: 40px;
    /* .about-style3-img-box ha z-index: 1 e crea un contesto di impilamento:
       shape1/shape2, pur avendo z-index: -1, restano dentro quel contesto e
       finiscono sopra il testo. Alzando la colonna di contenuto a 2 il testo
       torna davanti ai cerchi decorativi. */
    z-index: 2;
}


.about-style3-content .sec-title {
    padding-bottom: 29px;
}


.about-style3-content .text {
    position: relative;
    display: block;
    margin-bottom: 19px;
}


.about-style3-content .text p {
    margin: 0;
}


.about-style3-content-bottom {
    position: relative;
    display: block;
}


.about-style3-content-bottom .single-item {
    position: relative;
    display: block;
}


.about-style3-content-bottom .single-item h4 {
    position: relative;
    font-size: 18px;
    line-height: 34px;
    font-family: var(--thm-font);
    font-weight: 700;
    padding-left: 18px;
}


.about-style3-content-bottom .single-item h4::before {
    position: absolute;
    top: 14px;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--thm-base);
    border-radius: 50%;
    content: "";
}


.about-style3-content-bottom .single-item p {
    font-weight: 500;
    margin: 0;
}



.about-style3-content-client-info {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 50px;
    margin-left: 7px;
}


.about-style3-content-client-info .img-box {
    position: relative;
    display: block;
}


.about-style3-content-client-info .img-box::before {
    position: absolute;
    top: -7px;
    left: -7px;
    bottom: -7px;
    right: -7px;
    border-radius: 50%;
    border: 2px solid var(--thm-base);
    content: "";
}


.about-style3-content-client-info .img-box img {
    width: 100%;
    border-radius: 50%;
}


.about-style3-content-client-info .signature {
    position: relative;
    top: 11px;
    display: block;
    padding-left: 25px;
}



.about-style3-bottom {
    position: relative;
    display: block;
    border-top: 1px solid#d4dcdb;
    margin-top: 50px;
    padding-top: 42px;
}


.about-style3-bottom-inner {
    position: relative;
    display: block;
}


.about-style3-bottom-inner p {
    font-size: 20px;
    line-height: 30px;
    font-weight: 500;
    margin: 0;
}


.about-style3-bottom-inner p a {
    color: var(--thm-black);
    transition: all 200ms linear;
    transition-delay: 0.1s;
}


.about-style3-bottom-inner p a:hover {
    color: var(--thm-base);
}


.about-style3-bottom-inner p a span {
    position: relative;
    display: inline-block;
    z-index: 1;
}


.about-style3-bottom-inner p a span::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    height: 2px;
    background: var(--thm-base);
    z-index: -1;
}

/* --- from responsive.css --- */
@media only screen and (min-width: 992px) and (max-width: 1199px) {


    /*** About Style3 Area Css ***/
    .about-style3-content {
        margin-top: 60px;
        margin-left: 0px;
    }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {


    /*** About Style3 Area Css ***/
    .about-style3-content {
        margin-top: 60px;
        margin-left: 0px;
    }
}
@media only screen and (max-width: 767px) {


    /*** About Style3 Area Css ***/
    .about-style3-img-box {
        margin-right: 0px;
    }

    .about-style3-img-box .main-img-box ul {
        margin-left: 0px;
        margin-right: 0px;
    }

    .about-style3-img-box .main-img-box ul li {
        float: none;
        width: 100%;
        padding: 0 0px;
    }

    .about-style3-img-box .main-img-box ul li+li {
        margin-top: 30px;
    }

    .about-style3-img-box .overlay-content {
        top: 50px;
        left: 20px;
    }

    .about-style3-content {
        margin-top: 50px;
        margin-left: 0px;
    }
}

/* Su mobile e tablet le due foto affiancate si impilano una sotto l'altra e
   allungano molto la sezione: ne resta una sola, con lo stesso trattamento
   della variante --single (larghezza piena e rapporto piu' equilibrato). */
@media only screen and (max-width: 991px) {
    .about-style3-img-box .main-img-box ul li + li {
        display: none;
    }

    .about-style3-img-box .main-img-box ul li {
        float: none;
        width: 100%;
    }

    .about-style3-img-box .main-img-box ul li .single-box {
        aspect-ratio: 5 / 6;
    }
}
