@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700;800&display=swap");

body {
    font-family: "Roboto", sans-serif;
}

::selection {
    background-color: var(--main_color);
    color: #fff;
}

p:not(footer p) {
    margin-bottom: 0px !important;
}

.text-primary {
    color: var(--main_color) !important;
}

.form-check-input:checked {
    background-color: var(--main_color) !important;
    border-color: var(--main_color) !important;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 600;
    color: #000;
}

a {
    color: #000;
    text-decoration: none;
}

.w-25 {
    width: 25%;
}

.w-50 {
    width: 50%;
}

/* LIGHTBOX */
.lb-close {
    position: absolute;
    top: 0px;
    right: 60px;
}

.lightbox {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -30px;
}

.lightbox .lb-image {
    border: 0px !important;
}

/* FINE LIGHTBOX */

nav {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5em;
    transition: all 0.3s ease-in-out;
    height: 80px;
    border-bottom: 1px solid #b7b7b742;
}

nav .logo {
    transition: all 0.3s ease-in-out;
    height: 60px;
}

nav.scrolled {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    height: 60px;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

nav.scrolled .logo {
    height: 50px;
}

nav .nav-item,
nav .nav-item .nav-link {
    color: #000;
    font-size: 16px;
}

nav .nav-item.active a {
    color: var(--main_color);
    font-weight: 400;
}

nav .navbar-nav {
    margin-left: 20px;
}

nav .dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
}

nav .dropdown-menu a {
    color: #000;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
    padding: 5px 15px !important;
    text-wrap: nowrap;
}

nav .dropdown-menu a:hover {
    background-color: var(--main_color);
    color: #fff;
}

.animate-left,
.animate-right,
.animate-up,
.animate-down {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.animate-left {
    transform: translateX(-100px);
}

.animate-right {
    transform: translateX(100px);
}

.animate-up {
    transform: translateY(100px);
}

.animate-down {
    transform: translateY(-100px);
}

.animate-left.reached,
.animate-right.reached,
.animate-up.reached,
.animate-down.reached {
    opacity: 1;
    transform: translate(0, 0);
}

.site-btn {
    background-color: var(--main_color);
    color: #fff;
    padding: 10px 25px;
    transition: all 0.3s ease-in-out;
    border: 1px solid var(--main_color);
    cursor: pointer;
    border-radius: 10px;
}

.site-btn:hover {
    color: var(--main_color);
    background-color: #fff;
}

.site-btn-white {
    background-color: #fff;
    color: var(--main_color);
    padding: 10px 25px;
    transition: all 0.3s ease-in-out;
    border: 1px solid var(--main_color);
    cursor: pointer;
    border-radius: 10px;
}

.site-btn-white:hover {
    color: #fff;
    background-color: var(--main_color);
}

.contact-link {
    display: flex;
    align-items: center;
    margin-left: 30px;
    text-wrap: nowrap;
    gap: 8px;
    font-size: 16px;
}

.contact-link.phone {
    background-color: var(--main_color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 10px;
    border: 1px solid var(--main_color);
    transition: all ease-in-out 0.3s;
}

.contact-link.phone:hover {
    background-color: #fff;
    color: var(--main_color);
}

.main-box {
    position: relative;
}

.main-box img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 30px;
    overflow: hidden;
}

.main-box .box-form {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 900px;
}

.input-lg {
    height: 46px;
    border-radius: 0.5rem;
}

form button {
    border-radius: 0.5rem;
    font-weight: 500;
}

footer {
    background-color: #fefefe;
    padding: 80px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

footer h4 {
    font-size: 24px;
    line-height: 1.3em;
    color: var(--main_color);
}

footer .row p,
footer .row a,
footer .row span {
    color: #999999 !important;
    font-family: "Prompt", Sans-serif;
    font-size: 18px;
    font-weight: 200;
    line-height: 1.3em;
    display: flex;
    flex-direction: column;
    margin: 0px;
}

footer a.active {
    color: var(--main_color) !important;
}

footer .portale_img {
    height: 30px;
    vertical-align: middle;
    filter: grayscale(1);
    opacity: 0.5;
}

.how-box {
    position: relative;
    height: 350px;
}

.how-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
}

.how-box picture::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: color-mix(in srgb, var(--main_color) 70%, transparent);
}

.how-box .content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translate(0%, -50%);
    color: #fff !important;
    padding: 20px;
}

.how-box .content h3 {
    font-size: 28px;
    line-height: 1.2em;
    font-weight: 700;
    color: #fff;
}

.how-box .content div {
    margin-bottom: 20px;
}

.page-contattaci .box-form,
.page-lo-studio .box-image {
    padding: 0px 0px 0px 80px;
}

.page-lo-studio .box-content img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    border-radius: 30px;
    overflow: hidden;
}

.llm {
    border-radius: 30px;
    overflow: hidden;
}

.leaflet-container .leaflet-marker-pane img {
    border-radius: 10px !important;
}

.box-servizi {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.box-servizi .w-1\/2 {
    width: 100% !important;
}

.box-servizi .servizio-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    background-color: #fff;
    padding: 30px;
}

.card_tipologia {
    height: 300px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: block;
}

.card_tipologia img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: all 0.3s ease-in-out;
}

.card_tipologia:hover img {
    transform: scale(1.05);
    filter: brightness(70%);
}

.card_tipologia .content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    z-index: 2;
}

.card_tipologia picture {
    overflow: hidden;
    border-radius: 20px;
}

.card_tipologia picture::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        color-mix(in srgb, var(--main_color) 85%, transparent) 0%,
        color-mix(in srgb, var(--main_color) 40%, transparent) 30%,
        transparent 50%,
        transparent 100%
    );
    border-radius: 20px;
}

.bg-gray {
    background-color: #ededed;
}

.card_immobile {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
}

.card_immobile .image {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.card_immobile:hover .image img {
    transform: scale(1.05);
}

.card_immobile .image .badge_tipologia,
.page-immobile .badge_tipologia {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #000;
    padding: 5px 15px;
    border-radius: 10px;
    font-size: 14px;
    text-transform: capitalize;
}

.page-immobile .immobile_description {
    font-size: 16px;
}

.card_immobile .image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    transition: all 0.3s ease-in-out;
    filter: brightness(90%);
}

.card_immobile .content {
    padding: 30px 20px;
    background-color: #fff;
    border-radius: 0 0 20px 20px;

    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.card_immobile .content .title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000;
    overflow: hidden;
    text-overflow: ellipsis;
    text-wrap: nowrap;
}

.card_immobile .content .price {
    font-size: 24px;
    font-weight: 500;
    color: var(--main_color);
    margin-bottom: 10px !important;
}

.card_immobile .content .location,
.immobile_info .location {
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card_immobile .content .list-info {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
    align-items: center;
}

.card_immobile .content .list-info .single,
.immobile_caratteristiche .single {
    display: flex;
    align-items: center;
    gap: 1px 10px;
    flex-wrap: nowrap;
}

.immobile_caratteristiche .single {
    gap: 1px 0px;
}

.card_immobile .image .badge_counter {
    display: flex;
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #fff;
    gap: 5px;
    font-size: 18px;
}

.py-50 {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}

.py-80 {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

.py-100 {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
}

.form-switch .form-check-input {
    cursor: pointer;
}

.form-switch .form-check-input:checked {
    background-color: var(--main_color);
    border-color: var(--main_color);
}

.form-switch .form-check-input:focus {
    box-shadow: none;
}

.pagination__option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.pagination__option a {
    border: 1px solid var(--main_color);
    color: var(--main_color);
    border-radius: 50px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination__option a.active,
.pagination__option a:hover {
    color: #fff;
    background-color: var(--main_color);
}

.pagination__option a.disabled {
    color: #fff;
    background-color: #e1e1e1;
    border-color: #e1e1e1;
    cursor: not-allowed;
}

.form_immobili {
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.page-immobile .immobile_slider {
    height: 600px;
    border-radius: 30px;
    overflow: hidden;
}

.page-immobile .immobile_slider img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    overflow: hidden;
}

.page-immobile .immobile_slider img.noimage {
    object-fit: contain;
}

.page-immobile .immobile_slider_wrapper .badge_espandi {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 3px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 14px;
    text-transform: uppercase;
    transition: all ease-in-out 0.2s;
}

.page-immobile .immobile_slider_wrapper .badge_espandi:hover {
    background-color: var(--main_color);
    color: #fff;
}

.slider-counter {
    font-weight: 400;
    font-size: 16px;
    z-index: 10;
    position: absolute;
    bottom: 10px;
    right: 20px;
    color: #fff;
}

.slick-dots {
    bottom: 20px;
    right: 20px;
    display: inline-block;
    width: initial;
}

.slick-dots li button::before {
    font-size: 50px !important;
}

.slick-dots li.slick-active button::before {
    color: var(--main_color) !important;
}

.arrow_left,
.arrow_right {
    position: absolute;
    z-index: 100;
    background-color: #fff;
    color: var(--main_color);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0px 5px #999;
    top: 48%;
}

.arrow_left:hover,
.arrow_right:hover {
    background-color: var(--main_color);
    color: #fff;
}

.arrow_left {
    left: 20px;
}

.arrow_right {
    right: 20px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.header .price {
    font-size: 32px;
    color: #000;
    font-weight: 400;
}

.energy-scale {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.energy-box {
    --color: #999;
    display: flex;
    gap: 1em;
    align-items: center;
}

.energy-label {
    background-color: var(--color);
    color: white;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
    min-width: 50px;
}

.sm-gray {
    color: #999;
    font-weight: 300;
}

.page-immobile .card-left {
    background-color: #f5f6f7;
    border: 1px solid #bfbfbf;
    padding: 20px;
    border-radius: 20px;
}

.custom-sticky {
    position: sticky;
    top: 80px;
}

.btn-share {
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    background-color: #fff;
    padding: 8px 10px;
    border-radius: 10px;
    border: 0px !important;
    gap: 5px;
    font-weight: 400;
}

.btn-share:hover {
    background-color: var(--main_color);
    color: #fff;
}

.page-immobile .dropdown-menu {
    border: 0px !important;
    width: 100%;
}

.page-immobile .btn-share.dropdown-toggle::after {
    content: none !important;
}

.page-immobile textarea {
    min-height: 120px !important;
}

.form-control:focus,
.form-check-input:focus {
    border-color: var(--main_color);
    box-shadow: 0 0 0 0.25rem rgba(207, 46, 46, 0.25);
}

.evidenza_slider .slick-slide {
    padding-left: 10px;
    padding-right: 10px;
}

/* CSS VETRINA */

.vetrina-slider h1 {
    font-size: 55px;
    font-weight: 700;
    line-height: 1.2em;
}

.vetrina-left {
    position: relative;
    overflow: hidden;
    padding: 0px !important;
    padding-right: 1.5em !important;
}

.vetrina-left .end-container {
    position: absolute;
    bottom: 0px;
    height: auto;
    width: 98%;
}

.immobile_description {
    padding-bottom: 1.5rem;
    text-align: justify;
    font-size: 22px;
}

.vetrina-slider {
    height: 100vh;
    overflow: hidden;
    width: 100vw;
}

.vetrina-item {
    height: 100vh;
    display: flex;
    align-items: stretch;
    padding: 3em;
}

.vetrina-item .row {
    height: 100%;
}

.vetrina-item .flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.vetrina-item .div-servizi {
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vetrina-item .div-servizi h1 {
    font-size: 70px;
    margin-bottom: 20px;
}

.vetrina-item .div-servizi p {
    font-size: 30px;
    line-height: 1.5em;
}

.vetrina-images {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0.75rem;
    padding: 0px !important;
    padding-left: 1.5em !important;
}

.vetrina-images .main-image {
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.vetrina-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.vetrina-item.slide-custom-1 img {
    height: 600px;
}

.vetrina-item.slide-custom-2 img {
    height: 450px;
}

.vetrina-slider .location {
    font-size: 25px;
}

.vetrina-slider .location span {
    font-size: 35px;
}

.vetrina-slider .price {
    font-size: 40px;
    line-height: 40px;
    font-weight: 600;
}

.end-container .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
}

.end-container .content .codice {
    font-size: 34px;
    font-weight: 600;
}

.end-container .qrcode-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.vetrina-slider .immobile_caratteristiche .single span,
.vetrina-slider .energy-box span,
.vetrina-slider .fs-18 {
    font-size: 18px;
}

.vetrina-slider .main-image {
    position: relative;
}

.vetrina-slider .main-image:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    opacity: 0.2;
    z-index: -1;
    background: url("/immagini/full/logo2studioruzzanet.png") no-repeat center
        center;
    background-size: contain;
}

.vetrina-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1000;
    overflow: hidden;
}

.vetrina-progress-fill {
    height: 100%;
    width: 0;
    background: var(--main_color);
    transition: width 10s linear;
}

.absolute-datetime {
    position: absolute;
    bottom: 2.3em;
    right: 3em;
    font-size: 12px;
    color: #cdcdcd;
}

/* FINE CSS VETRINA */

@media (max-width: 900px) {
    .page-immobile .immobile_slider {
        height: 300px;
    }

    .page-immobile .immobile_slider img {
        height: 300px;
    }

    nav .dropdown-menu {
        box-shadow: none;
        border-radius: 0px;
    }

    nav .dropdown-menu a {
        padding: 3px 10px;
    }

    footer h2 {
        font-size: 26px;
        line-height: 1em;
    }

    footer .row > div {
        margin-bottom: 20px;
    }

    footer .contact-info span,
    footer .contact-info a,
    footer .contact-info,
    footer .social-links a {
        font-size: 16px;
        line-height: 1.3em;
    }

    .animate-left,
    .animate-right,
    .animate-up,
    .animate-down {
        opacity: 1;
    }

    .animate-left,
    .animate-right,
    .animate-up,
    .animate-down {
        transform: none;
    }

    .how-box .content {
        left: 0%;
    }

    .page-contattaci .box-form {
        padding: 30px 10px;
    }

    nav .w-25 {
        width: auto !important;
    }

    nav .logo {
        height: 50px;
    }

    nav.scrolled .logo {
        height: 40px;
    }

    nav .offcanvas img {
        width: 100px;
    }

    .offcanvas {
        width: 80% !important;
    }

    .offcanvas .btn-close {
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .arrow_left {
        left: 10px;
    }

    .arrow_right {
        right: 10px;
    }

    .w-70 {
        width: 100%;
    }

    .box-servizi {
        grid-template-columns: repeat(1, 1fr);
        gap: 30px;
    }
}
