:root {
    --colorPrimary: #fafafa; /*#ffffff:*/
    --colorSecondary: #383838;
    --colorAccent: var(--colorBlueMedium);

    --colorBackgroundPage: var(--colorPrimary);
    --colorBackgroundNav: var(--colorPrimary);
    --colorBackgroundFooter: rgba(202,221, 238, 0.5);
    
    --colorGray: #E7ECEF;
    --colorGrayDark: #8B8C89;
    --colorBlueDark: #2d3865;/* #274C77;*/
    --colorBlueMedium: #6786AA;
    /*-#6096BA;-*/
    --colorBlueLight: #CADDEE;
        /*-#A3CEF1-*/
    --dimenLineHeightParagraph: 2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 16px;
}

body {
    font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    padding: 0;
    color: var(--colorBlueDark);
    background-color: var(--colorBackgroundPage);
}

h1 {
    margin-top: 10px;
}

a {
    color: var(--colorAccent);
    text-decoration: none;
}


a:hover {
    text-decoration: underline;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.text-justify {
    text-align: justify;
    text-justify: inter-word;
}

/* HTML marker styles */
.marker-tag {
    background-color: var(--colorAccent);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 14px;
    padding: 10px 15px;
    position: relative;
}

.marker-tag::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, 0);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--colorAccent);
}

@keyframes scale-image-down {
    0% {
        transform: scale(1.25);
    }

    /* 50% {
        transform: scale(1.5);
    } */

    100% {
        transform: scale(1);
    }
}

@keyframes scale-image-up {
    0% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.image-scale-down {
    animation: scale-image-down 1s;
    /* infinite; /* Ripeti l'animazione indefinitamente */
}

.image-scale-up {
    animation: scale-image-up 3s;
}

/* ==== NAVBAR ====== */
.navbar,
.navbar-default {
    border-color: transparent;
    background-color: var(--colorBackgroundNav);
}

.navbar-default .navbar-brand {
    font-family: "Kaushan Script", "Helvetica Neue", Helvetica, Arial, cursive;
    color: #1ee2e7;
}

/* ================ */

.main-title-container {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.main-title {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: normal;
    font-size: 4rem;
    line-height: 4.4rem;
    margin-top: 1rem;
}

.main-subtitle {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: italic;
    font-size: 3rem;
    line-height: 3.4rem;
    letter-spacing: 2px;
}

.action-button {
    background-color: var(--colorAccent);
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    /* Transizione fluida per il cambio colore */
}

.action-button:hover {
    background-color: darken(var(--colorAccent), 10%);
    /* Scuro il colore di fondo quando il mouse passa sopra */
}

/* ==== ABOUT ====== */
#chisono {
    padding-top: 5rem;
    /* padding-bottom: 5rem; */
    background-color: rgba(202,221, 238, 0.5);
    /* background-color: var(--colorBlueLight); */
    margin: 0;
    /* margin-left: -20px;
    margin-right: -20px; */
    border-top-left-radius: 50% 4vw;
    border-top-right-radius: 50% 4vw;
}

#chisono .section-title {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 2.5rem;
}

#chisono p {
    text-align: justify;
    text-justify: inter-word;
    line-height: var(--dimenLineHeightParagraph);
}

/* ================ */

/* ==== MI OCCUPO ====== */
#mioccupo {
    padding-top: 5rem;
    padding-bottom: 3rem;
    /* background-color: rgba(202,221, 238, 0.3); */
    /* background-image: linear-gradient(to top, var(--colorPrimary), rgba(202, 221, 238, 0.5), var(--colorBlueLight)); */
    margin: 0;
}

#mioccupo .section-title {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 2.5rem;
    text-align: left;
}

#mioccupo p {
    text-align: justify;
    text-justify: inter-word;
    line-height: var(--dimenLineHeightParagraph);
}

#mioccupo .emphasis {
    background-color: var(--colorBackgroundFooter);
    color:var(--colorBlueDark);
    border-radius: 0rem;
    padding: 2rem;
    font-style: italic;
}

/* ================ */
/* ==== OSTEOPATIA ====== */
#osteopatia {
    padding-top: 2rem;
    background-color: var(--colorPrimary);
    margin: 0;
}

#osteopatia .section-title {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 4rem;
    text-align: center;
}

#osteopatia .item-title {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: normal;
    font-size: 3rem;
}

#osteopatia .img-cover {
    width: 70%;
    height: auto;
}

#osteopatia p {
    text-align: justify;
    text-justify: inter-word;
    line-height: var(--dimenLineHeightParagraph);
}
/* ================ */
/* ==== COLLABORO ====== */
#collaboro {
    padding-top: 2rem;
}

#collaboro .section-title {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 4rem;
}

#map {
    height: 400px;
    /* The height is 400 pixels */
    width: 100%;
    /* The width is the width of the web page */
}

/* ================ */

/* ==== CONTATTI ====== */

#contatti .section-title {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 4rem;
}

#contatti {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* ================ */

footer {
    /* text-align: center; */
    margin-top: 20px;
    color: var(--colorBlueDark);
    /* margin-left: -20px;
    margin-right: -20px; */
    height: auto;
    /* border-radius: 20% 20% 0px 0px; */
    border-top-left-radius: 50% 3vw;
    border-top-right-radius: 50% 3vw;
    background-color: var(--colorBackgroundFooter);
}

.profile-img {
    width: 150px;
    height: auto;
    border-radius: 50%;
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--colorBackgroundFooter); 
    color: white; 
    border: none;
    border-radius: 50%;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    z-index: 1000; 
}

.scroll-to-top:hover {
    background-color: var(--colorBackgroundFooter);
}

@media (min-width: 800px) {

    * {
        font-size: 20px;
    }

    .main-title-container {
        margin-top: 3rem;
        margin-bottom: 5rem;
    }

    .main-title {
        font-size: 5rem;
        line-height: 5.4rem;
    }

    .main-subtitle {
        font-size: 4rem;
        line-height: 4.4rem;
        letter-spacing: 4px;
    }

    /* ==== ABOUT ====== */
    #chisono {
        padding-top: 5rem;
        /* padding-bottom: 5rem; */
        border-top-left-radius: 50% 3vw;
        border-top-right-radius: 50% 3vw;
    }

    #chisono .section-title {
        font-size: 3rem;
    }

    #mioccupo .emphasis {
        border-radius: 1rem;
        padding: 4rem;
    }
    /* ================ */

    /* ==== OSTEOPATIA ====== */
    #osteopatia .section-title{
        text-align: left;
    }
    #osteopatia .img-cover {
        width: 50%;
        height: auto;
    }

    /* ===================== */
}