html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: #222;
    line-height: 1.7;
}

.section-padding {
    padding: 100px 0;
}

.custom-navbar {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.navbar-brand {
    letter-spacing: 1px;
}

.nav-link {
    color: #000 !important;
    margin-left: 15px;
}

.nav-link:hover {
    color: #0d6efd !important;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    /*background-image: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?q=80&w=1400&auto=format&fit=crop');*/
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-section.uno {background-image: url('../img/Consulenti-Davide-SPEZIA-004-2880w.jpg');}
.hero-section.due {background-image: url('../img/Consulenti-Davide-SPEZIA-006-2880w.jpg');}
.hero-section.tre {background-image: url('../img/Consulenti-Davide-SPEZIA-008-2880w.jpg');}
.hero-section.quattro {background-image: url('../img/Consulenti-Davide-SPEZIA-010-bd812713-2880w.jpg');}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.section-subtitle {
    color: #666;
    max-width: 700px;
    margin: auto;
}

.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: #0d6efd;
    color: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
}

.stats-section {
    background: #0d6efd;
    color: white;
    padding: 80px 0;
}

.stat-box h3 {
    font-size: 3rem;
    font-weight: 700;
}

.team-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.team-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-control {
    padding: 14px;
    border-radius: 10px;
}

.footer {
    background: #333;
    color: white;
    padding: 30px 0;
}

/* ANIMAZIONI */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media(max-width: 991px) {

    .hero-section {
        text-align: center;
        padding: 120px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-collapse {
        /*background: rgba(0,0,0,0.95);*/
        padding: 20px;
        margin-top: 15px;
		text-align: right;
        /*border-radius: 10px;*/
    }

}

.hero-slide {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
}

.carousel-item {
    height: 100vh;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
}

.carousel-item .container {
    min-height: 100vh;
}

@media(max-width: 991px) {

    .hero-slide {
        text-align: center;
        padding: 120px 0;
    }

    .hero-slide h1 {
        font-size: 2.5rem;
    }

}

.custom-navbar {
    background: rgba(255,255,255,1);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    padding-top: 18px;
    padding-bottom: 18px;
}

.navbar-logo {
    height: 64px;
    width: auto;
    transition: all 0.4s ease;
}

.mobile-brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* MOBILE */

@media(max-width: 991px) {

    .custom-navbar .container {
        justify-content: flex-start;
    }

    .mobile-brand-wrapper {
        width: 100%;
    }

    .navbar-toggler {
        margin-left: auto;
    }

}

/* NAVBAR DURANTE SCROLL */

.custom-navbar.scrolled {
    padding-top: 8px;
    padding-bottom: 8px;
    background: rgba(255,255,255,1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}

.custom-navbar.scrolled .navbar-logo {
    /*height: 55px;*/
}

/* MOBILE */

@media(max-width: 991px) {

    .navbar-logo {
        /*height: 65px;*/
		max-width:90%;
		height:auto;
    }

    .custom-navbar.scrolled .navbar-logo {
        /*height: 50px;*/
    }

}

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 55px;
    height: 55px;

    border: none;
    border-radius: 50%;

    background: #0d6efd;
    color: white;

    font-size: 1.4rem;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(20px);

    transition: all 0.3s ease;

    z-index: 9999;

    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.small-title {
    display: inline-block;
    margin-bottom: 15px;

    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;

    color: #0d6efd;
}

.section-padding img {
    transition: transform 0.5s ease;
}

.section-padding img:hover {
    transform: scale(1.03);
}

@media(max-width: 991px) {

    .section-padding .row {
        text-align: center;
    }

    .section-padding img {
        margin-bottom: 20px;
    }
	
	.icon-box {margin: 0 auto 25px;}

}

/* SERVIZI OVERLAY */

.services-overlay-section {
    background: #f8f9fa;
}

.overlay-card {
    position: relative;
    overflow: hidden;

    border-radius: 24px;

    height: 550px;

    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.overlay-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.7s ease;
}

.overlay-card:hover .overlay-image {
    transform: scale(1.05);
}

.overlay-card::before {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.80) 10%,
        rgba(0,0,0,0.35) 55%,
        rgba(0,0,0,0.10) 100%
    );

    z-index: 1;
}

.overlay-content {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;

    padding: 40px;

    color: white;

    z-index: 2;
}

.overlay-small-title {
    display: inline-block;

    margin-bottom: 15px;

    font-size: 0.85rem;
    font-weight: 700;

    letter-spacing: 2px;

    color: #8ec5ff;
}

.overlay-content h3 {
    font-size: 2rem;
    font-weight: 700;

    margin-bottom: 20px;
}

.overlay-content p {
    margin-bottom: 25px;

    color: rgba(255,255,255,0.92);
}

/* MOBILE */

@media(max-width: 991px) {

    .overlay-card {
        height: 450px;
    }

    .overlay-content {
        padding: 30px;
    }

    .overlay-content h3 {
        font-size: 1.6rem;
    }

}

/* CARD SERVIZI IMPILATE */

.services-cards-section {
    background: #f8f9fa;
}

.service-stacked-card {
    /*background: white;*/
    border-radius: 24px;
    overflow: hidden;
    /*box-shadow: 0 15px 40px rgba(0,0,0,0.08);*/
    transition: all 0.4s ease;
}

/*
.service-stacked-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
*/

.service-card-image-wrapper {
    overflow: hidden;
}

.service-card-image {
    width: 100%;
    height: 400px;

    object-fit: cover;

    transition: transform 0.7s ease;
}

.service-stacked-card:hover .service-card-image {
    transform: scale(1.05);
}

.service-card-content {
    padding: 40px;
}

.service-card-small-title {
    display: inline-block;

    margin-bottom: 15px;

    color: #0d6efd;

    font-size: 0.85rem;
    font-weight: 700;

    letter-spacing: 2px;
}

.service-card-content h3 {
    font-size: 2rem;
    font-weight: 700;

    margin-bottom: 20px;

    line-height: 1.2;
}

.service-card-content p {
    margin-bottom: 30px;

    color: #666;
}

/* MOBILE */

@media(max-width: 991px) {

    .service-card-image {
        height: 260px;
    }

    .service-card-content {
        padding: 30px;
        text-align: center;
    }

    .service-card-content h3 {
        font-size: 1.6rem;
    }

}

.section-divider {
    width: 50%;
    height: 1px;
    margin: 100px auto -100px;
    background: rgba(0,0,0,0.15);
}

/* CTA BANNER */

.cta-banner-section {
    position: relative;
    width: 100%;
    padding: 140px 0;
    overflow: hidden;
    background-image: url('../img/Consulenti-Davide-SPEZIA-003-2880w.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.cta-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,0.68);

    z-index: 1;
}

.cta-banner-section .container {
    position: relative;
    z-index: 2;
}

.cta-small-title {
    display: inline-block;

    margin-bottom: 20px;

    font-size: 0.9rem;
    font-weight: 700;

    letter-spacing: 3px;

    color: #8ec5ff;
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;

    margin-bottom: 25px;

    line-height: 1.2;
}

.cta-text {
    font-size: 1.1rem;

    margin-bottom: 35px;

    color: rgba(255,255,255,0.92);
}

.cta-phone {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-bottom: 35px;

    font-size: 1.5rem;
    font-weight: 700;
}

.cta-phone a {
    color: white;
    text-decoration: none;
}

.cta-phone a:hover {
    color: #8ec5ff;
}

.cta-button {
    padding: 15px 35px;

    border-radius: 12px;

    font-weight: 600;
}

/* MOBILE */

@media(max-width: 991px) {

    .cta-banner-section {
        padding: 100px 0;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-phone {
        font-size: 1.2rem;
        flex-direction: column;
    }

}

/* GOOGLE MAPS */

.map-section {
    width: 100%;

    overflow: hidden;

    line-height: 0;
}

.map-section iframe {
    width: 100%;
    height: 500px;

    border: 0;

    display: block;

    filter: grayscale(10%);
}

/* MOBILE */

@media(max-width: 991px) {

    .map-section iframe {
        height: 400px;
    }

}

/* POLICY PAGE */

.policy-hero {
    padding: 220px 0 120px;

    background: #111;

    color: white;
}

.policy-small-title {
    display: inline-block;

    margin-bottom: 20px;

    font-size: 0.9rem;
    font-weight: 700;

    letter-spacing: 3px;

    color: #8ec5ff;
}

.policy-title {
    font-size: 3.5rem;
    font-weight: 700;

    line-height: 1.2;
}

.policy-section {
    padding: 100px 0;

    background: #f8f9fa;
}

.policy-wrapper {
    background: white;

    padding: 70px;

    border-radius: 24px;

    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.policy-wrapper h2 {
    margin-bottom: 30px;

    font-size: 2rem;
    font-weight: 700;
}

.policy-wrapper h3 {
    margin-top: 50px;
    margin-bottom: 20px;

    font-size: 1.4rem;
    font-weight: 700;
}

.policy-wrapper p,
.policy-wrapper li {
    color: #555;

    line-height: 1.9;
}

.policy-wrapper ul {
    padding-left: 20px;
}

.policy-divider {
    width: 100%;
    height: 1px;

    margin: 60px 0;

    background: rgba(0,0,0,0.1);
}

/* MOBILE */

@media(max-width: 991px) {

    .policy-hero {
        padding: 180px 0 90px;
    }

    .policy-title {
        font-size: 2.3rem;
    }

    .policy-wrapper {
        padding: 35px;
    }

}


ul.mb-4 {text-align:left;}
.navbar-toggler {border:0px; border-radius:0px;}
.centrato {text-align:center !important;}
#contatti a {font-weight:bold; text-decoration:none;}
a.active {color: #0d6efd !important;}
.footer a {
	color: #999;
  text-decoration: none;
  font-weight: bold;
}
.footer .footer-box {text-align:center;}