﻿
.hero-content .hero-subtitle:after {
    content: "";
    position: absolute;
    width: 255px;
    height: 217px;
    background-image: url("../images/dots-light.svg");
    background-size: contain;
    background-repeat: no-repeat;
    right: 50px;
}



:root {
    --primary-color: #3b5d50;
    --secondary-color: #dce5e2;
    --accent-color: #f9bf29;
    --dark-color: #2f2f2f;
    --light-color: #ffffff;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}



.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2f4a41 100%);
    min-height: 80vh; /* 100vh */

    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}



    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('../images/hero_sfondo.svg');
        background-size: cover;
        background-size: cover;
    }



.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}



.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}



.navbar-nav .nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
}



    .navbar-nav .nav-link:hover {
        color: var(--primary-color) !important;
    }



.btn-primary {
    background: var(--primary-color);
    border: 4px solid var(--bs-btn-border-color) !important;
    /*border: none;*/

    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}



    .btn-primary:hover {
        color: var(--primary-color);
        background: var(--light-color);
        transform: translateY(-2px);
    }



.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}



    .btn-outline-primary:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
    }



.hero-content {
    position: relative;
    z-index: 2;
}



.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0px;
    line-height: 1.2;
    white-space: nowrap;
}



.hero-subtitle {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-text {
    font-size: 1.3rem;
    color: wheat;
    margin-bottom: 30px;
    max-width: 600px;
}



.hero-image {
    position: relative;
    z-index: 2;
}



    .hero-image img {
        width: 100%;
        height: auto;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }



.section-padding {
    padding: 80px 0;
}



.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
    text-align: center;
    text-decoration: underline;
    text-decoration-thickness: 5px; /* spessore della linea */

    text-underline-offset: 10px; /* distanza dal testo */

    text-decoration-color: var(--accent-color);
}



    .section-title::after {
        content: '';
        position: absolute;
        bottom: -70px; /* bottom: -10px; */

        right: 15%; /* left: 50%; */

        transform: translateX(-50%);
        width: 200px; /* width: 80px; */

        height: 200px; /* height: 3px; */
        /*background-image: url("../images/dots-yellow.svg"); /* background: var(--accent-color); */

        background-size: contain;
        background-repeat: no-repeat;
    }





.service-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}



    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }



.service-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--primary-color);
}



.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}



.service-description {
    color: #666;
    line-height: 1.6;
}



.about-section {
    background: var(--secondary-color);
}



.about-image {
    border-radius: 20px;
    overflow: hidden;
}


    .about-image img {
        width: 100%;
        height: 400px;
        object-fit: cover;
    }

.img-wrap {
    position: relative;
}

    .img-wrap:before {
        position: absolute;
        content: "";
        width: 255px;
        height: 217px;
        background-image: url("../images/dots-yellow.svg");
        background-repeat: no-repeat;
        background-size: contain;
        -webkit-transform: translate(-40%, -40%);
        -ms-transform: translate(-40%, -40%);
        transform: translate(-40%, -40%);
        /*z-index: -1;*/
    }

.why-choose-section .img-wrap img {
    border-radius: 20px;
}


.about-content {
    padding: 40px;
}



.about-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}



.about-text {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
}



.feature-list {
    list-style: none;
    padding: 0;
}



    .feature-list li {
        padding: 10px 0;
        position: relative;
        padding-left: 30px;
    }



        .feature-list li::before {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            left: 0;
            color: var(--accent-color);
        }



.contact-section {
    background: var(--primary-color);
    color: white;
}



.contact-info {
    background-color: #eff2f1; /* background: rgba(255, 255, 255, 0.1); */

    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}



    .contact-info h5 {
        color: var(--primary-color);
        margin-bottom: 20px;
        font-weight: 600;
    }



    .contact-info p {
        color: var(--primary-color);
        margin-bottom: 10px;
        opacity: 0.9;
    }



    .contact-info i {
        color: var(--primary-color);
        margin-right: 10px;
        color: var(--accent-color);
    }



.form-control {
    border: none;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
}



    .form-control:focus {
        box-shadow: 0 0 0 0.2rem rgba(59, 93, 80, 0.25);
        border-color: var(--primary-color);
    }



.footer {
    background: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}



.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}



.footer-link {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}



    .footer-link:hover {
        color: var(--accent-color);
    }



.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}



    .social-links a {
        width: 40px;
        height: 40px;
        background: var(--primary-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
        transition: all 0.3s ease;
    }



        .social-links a:hover {
            background: var(--accent-color);
            transform: translateY(-2px);
        }



@media (max-width: 768px) {

    .hero-title {
        font-size: 2.5rem;
        white-space: normal; /* Permette il wrapping controllato su mobile */

        margin-bottom: 30px;
        line-height: 1.1;
        text-align: center;
    }



    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
    }

    .hero-text {
        font-size: 1.1rem;
        text-align: center;
    }



    .section-title {
        font-size: 2rem;
    }



    .service-card {
        margin-bottom: 30px;
    }
}



.underline-hover {
    display: inline-block;
    position: relative;
    color: #333;
    text-decoration: none;
    transition: color 0.4s ease;
}



    .underline-hover::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        left: 0;
        bottom: 0;
        background-color: #ff5733;
        transition: width 0.4s ease-out, height 0.4s ease-out;
    }



    .underline-hover:hover {
        color: #ff5733;
    }



        .underline-hover:hover::after {
            width: 100%;
            height: 4px; /* spessore crescente */
        }



@keyframes avanti_indietro {

    0% {
        transform: translateX(0) translateY(-50%);
    }

    40% {
        transform: translateX(300px) translateY(-50%);
    }

    60% {
        transform: translateX(250px) translateY(-50%);
    }

    70% {
        transform: translateX(300px) translateY(-50%);
    }

    100% {
        transform: translateX(0) translateY(-50%);
    }
}
