.nav-link:hover {
    color: blue !important;
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.foto {
 margin-left: 12%;
}

.social-icon:hover {
    color: #0d6efd;
}

.project-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0d6efd;
}

.navbar {
    background-color: #1a1a1a !important;
    padding: 1rem 0;
}

.navbar-brand,
.nav-link {
    color: white !important;
}

.nav-link:hover {
    color: #0d6efd !important;
}

.hero-section {
    background-color: #1a1a1a;
    color: white;
    padding: 6rem 0;
}

.hero-section .text-primary {
    color: #0d6efd !important;
}

.hero-subtitle {
    color: #a0a0a0;
}

.custom-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-toggler {
    background-color: white;
}

.gradient-overlay {
    background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
}

.achievement-card:hover {
    transform: translateX(10px);
}

.testimonial-card {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
}

.footer-link {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #0d6efd;
}

.stats-card {
    border-radius: 15px;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    color: white;
}

.gallery-img {
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
}

.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
}

.project-card img {
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .overlay {
    opacity: 1;
}

.view-project {
    color: white;
    font-size: 1.1rem;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 5px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-card:hover .view-project {
    transform: translateY(0);
}

.badge {
    font-size: 0.85rem;
    padding: 8px 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.project-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image-wrapper img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .overlay {
    opacity: 1;
}

.view-project {
    color: white;
    font-weight: 500;
    background-color: rgba(13, 110, 253, 0.8);
    padding: 8px 16px;
    border-radius: 4px;
}

.filter-btn {
    border-radius: 50px;
    padding: 8px 20px;
    margin-right: 8px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.filter-btn.active {
    background-color: #0d6efd;
    color: white;
}


.piccole {
    margin-left: 24.2%;
}

.image-mask-container {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.carousel-img {
    width: 100%;
    object-fit: cover;
    object-position: top;
}

.large-image-container {
    max-height: 95vh;
    max-width: 95vw;
    overflow: auto;
}

.large-image {
    width: auto;
    height: auto;
    min-width: 50%;
    max-width: 100%; 
}

#piuomenoCarousel .carousel-control-prev,
#piuomenoCarousel .carousel-control-next {
    top: 40%;
    bottom: auto;
    width: 10%;
    opacity: 0.5;
    height: 50px;
}


#piuomenoCarousel:not(:hover) .carousel-control-prev,
#piuomenoCarousel:not(:hover) .carousel-control-next {
    opacity: 0.2;
}


#piuomenoCarousel .carousel-control-prev-icon,
#piuomenoCarousel .carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 10px;
}


#piuomenoCarousel .carousel-indicators {
    bottom: -40px;
}


#piuomenoCarousel .carousel-item {
    padding: 0 30px;
}


#piuomenoCarousel {
    margin-bottom: 50px;
}

.carousel-container {
    position: relative;
    padding: 0 50px; 
}


.carousel-container .carousel-control-prev {
    left: 0;
    width: 40px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 0 4px 4px 0;
}

.carousel-container .carousel-control-next {
    right: 0;
    width: 40px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px 0 0 4px;
}


.carousel-container .carousel-control-prev-icon,
.carousel-container .carousel-control-next-icon {
    width: 24px;
    height: 24px;
}


.carousel-container .carousel-indicators {
    bottom: -40px;
}


#marchesiCarousel {
    margin-bottom: 45px;
}

.carousel-container {
    position: relative;
    width: 100%;
    padding: 0 50px; 
}


.carousel-inner-container {
    width: 33%;
    margin: 0 auto;
    position: relative;
}


.carousel-container .carousel-control-prev {
    left: 0;
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 0 4px 4px 0;
    position: absolute;
}

.carousel-container .carousel-control-next {
    right: 0;
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 4px 0 0 4px;
    position: absolute;
}


.carousel-container .carousel-control-prev-icon,
.carousel-container .carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

.carousel-indicators {
    bottom: -40px;
}


.carousel-slide {
    margin-bottom: 45px;
}


.carousel-container {
    position: relative;
    width: 100%;
    padding: 0 50px; /* Spazio per le frecce esterne */
}

/* Carousel centrato all'interno del container */
.carousel-inner-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

/* Posizionamento delle frecce all'esterno del carousel */
.carousel-container .carousel-control-prev {
    left: 0;
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 0 4px 4px 0;
    position: absolute;
}

.carousel-container .carousel-control-next {
    right: 0;
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 4px 0 0 4px;
    position: absolute;
}

/* Stile delle icone delle frecce */
.carousel-container .carousel-control-prev-icon,
.carousel-container .carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* Indicatori in basso per non sovrapporsi alle immagini */
.carousel-container .carousel-indicators {
    bottom: -40px;
}

/* Margine inferiore per fare spazio agli indicatori */
#marchesiCarousel {
    margin-bottom: 45px;
}

.carousel-container {
    width: 40%;
    margin: 0 auto;
    position: relative;
}


.carousel-outer-container .carousel-control-prev {
    position: absolute;
    left: 25%;
    top: 33%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 0 4px 4px 0;
    z-index: 10;
}

.carousel-outer-container .carousel-control-next {
    position: absolute;
    right: 25%;
    top: 33%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 4px 0 0 4px;
    z-index: 10;
}

/* Stile delle icone delle frecce */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* Indicatori in basso per non sovrapporsi alle immagini */
.carousel-indicators {
    bottom: -40px;
}
