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

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

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: -1;
}

h1 {
    font-weight: 900;
    font-size: 4rem;
}

h2 {
    font-weight: 700;
    position: relative;
    z-index: 1;
    font-size: 2rem;
    text-transform: uppercase;
    color: #fff;
}

h2::after {
    width: 100px;
    height: 2px;
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--main_color);
}

h2::before {
    content: attr(data-text);
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -10%);
    font-size: 5rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
}

h4 {
    font-size: 2rem;
    font-weight: 500;
}

.bg-secondary {
    background-color: #cbcccb !important;
}

.site-btn {
    background-color: var(--main_color) !important;
    padding: 15px 30px;
    border-radius: 20px;
    color: #fff;
    text-align: center;
    font-size: 14px;
    border: 1px solid var(--main_color) !important;
    transition: all 0.3s ease-in-out;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.site-btn span {
    transition: all 0.3s ease-in-out;
}

.site-btn:hover span {
    color: var(--main_color) !important;
}

.site-btn:hover {
    color: var(--main_color) !important;
    background-color: transparent !important;
}

.site-btn.disabled {
    pointer-events: none;
    background-color: #ccc !important;
    color: #999;
    border-color: #ccc !important;
    cursor: not-allowed;
}

.site-btn.btn-xl {
    padding: 20x 40px;
    font-size: 22px;
}

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

nav {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5em;
    transition: all 0.3s ease-in-out;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 0px !important;
}

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

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

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

nav a.nav-item {
    color: #fff;
    text-transform: uppercase;
}

nav .navbar-nav {
    gap: 20px;
}

.box-main {
    position: relative;
    height: 100vh;
    z-index: 1;
}

.box-main img.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.box-main > picture::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}
.box-main > picture {
    position: relative;
    display: block;
}

.box-main .box-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    max-width: 800px;
}

.box-main .box-content img {
    max-width: 120px;
    margin-bottom: 20px;
}

.box-about,
.box-impasti,
.box-menu,
.box-attestati,
.box-gallery,
.box-contatti {
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    z-index: 2;
    color: #fff;
}

.box-gallery {
    padding-top: 0px;
}

.box-impasti {
    text-align: center;
}

.box-impasti .card-impasti {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    border-radius: 10px;
    padding: 20px;
    background-color: color-mix(in srgb, var(--main_color) 60%, transparent);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
}

.box-impasti .list-impasti {
    padding-top: 50px;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
}

.box-impasti .card-impasti p {
    line-height: 16px;
    font-size: 14px;
}

p {
    margin-bottom: 0px !important;
}

.box-impasti .card-impasti:hover {
    transform: translateY(-5px);
}

.box-impasti .card-impasti .icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.box-impasti .card-impasti h5 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    height: 50px;
}

.box-impasti .card-impasti.w-1\/4 {
    width: 100%;
}

.box-about .image img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.box-about .content {
    padding-left: 40px;
}

footer {
    background-color: #000;
    padding: 80px 0;
}

footer .contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px !important;
}

footer h3 {
    font-size: 36px;
    line-height: 1.3em;
    color: #fff;
    font-weight: 600;
}

footer .contact-info span,
footer .contact-info a,
footer .contact-info {
    color: #999999;
    font-size: 18px;
    font-weight: 200;
    line-height: 1.3em;
    display: flex;
    flex-direction: column;
}

footer .contact-info,
footer .social-links {
    margin-top: 20px;
}

footer a,
footer .text-gray {
    color: #999999;
    font-weight: 200;
}

footer .social-links a {
    color: #999999;
    font-weight: 200;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 18px;
}

footer a.active {
    color: var(--main_color);
    font-weight: 300;
}

footer img {
    width: 150px;
    filter: brightness(0) invert(1);
}

.slider-attestati {
    margin: 0px auto;
}

.slider-attestati .slick-slide {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.slider-attestati img {
    max-height: 80px;
    margin: 0 15px;
    object-fit: contain;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 5px;
    background: #fff;
}

.box-gallery .grid-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.box-gallery .grid-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1/1;
}

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

.box-contatti .text-lg {
    font-size: 24px;
    line-height: 1.3em;
}

.box-contatti h6 {
    color: var(--main_color);
    font-size: 18px;
    font-weight: 200;
}

.box-contatti .content p {
    color: #999999 !important;
    font-size: 25px;
    font-weight: 200;
    line-height: 1.3em;
}

form .form-floating label {
    color: #000;
}

.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);
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    z-index: 999;
    background-color: var(--main_color);
    color: #fff;
    border: 1px solid var(--main_color);
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop:hover {
    background-color: #fff;
    color: var(--main_color);
    transform: scale(1.1);
}

@media (max-width: 900px) {
    .text-4xl {
        font-size: 2.5rem !important;
    }

    .w-25,
    .w-50,
    .w-1\/2,
    .w-2\/4 {
        width: 100% !important;
    }

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

    nav .logo {
        height: 60px;
    }

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

    nav .offcanvas img {
        height: 60px;
    }

    .offcanvas {
        width: 80% !important;
        height: 100vh !important;
        background-color: #000;
    }

    .offcanvas .btn-close {
        position: absolute;
        right: 20px;
        top: 20px;
        filter: invert(1);
    }

    footer h3 {
        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;
    }

    nav .navbar-nav {
        gap: 0px;
        margin-top: 20px;
    }

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

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

    .box-about .content {
        padding-left: 0px;
        padding-top: 20px;
    }

    .box-impasti .list-impasti {
        grid-template-columns: repeat(1, 1fr);
    }

    h2::before {
        font-size: 2.5rem;
    }

    .box-gallery .grid-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
