:root {
    --tp-theme-1: #1fb714;
}

.tp-header-logo a img {
    padding: 10px 0;
    max-height: 70px;
}

.tp-slider-3-bg {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.tp-team-item {
    flex-direction: column;
}

.tp-team-style-3 .tp-team-big-text {
    top: 45%;
}

.tp-team-details-title {
    font-size: 35px;
}

.tp-product-2-style-3 .tp-product-2-content {
    border-bottom: 5px solid var(--tp-theme-1);
    height: 120px;
}

.tp-hero-2-funfact h5 span,
h6.tp-funfact-number span {
    font-size: 2rem;
    padding-left: 5px;
}

.tp-funfact-item {
    width: 217px;
}

.tp-brand-item img {
    height: 60px;
}

.swiper-slide {
    /*height: 55px;*/
}

.breadcrumb__height {
    background-position: center;
    height: 270px;
    align-items: flex-end;
}

.breadcrumb__content {
    padding-bottom: 15px;
}

.tp-slider-3-overlay::after {
    background-color: rgba(0, 0, 0, 0.3);
}

.tp-slider-3-title-box {
    transform: translateY(-200px);
    opacity: 1;
    position: relative;
    z-index: 99;
}

.tp-slider-3-title-box a.tp-btn-theme {
    position: relative;
    z-index: 100;
}

.tp-slider-dots {
    pointer-events: none;
}

.tp-slider-dots .swiper-pagination-bullet {
    pointer-events: auto;
}

.tp-slider-3-height {
    padding-top: 0;
    padding-bottom: 50px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

/* CTA */
.cta-area5 {
    padding: 173.5px 0;
    background-attachment: fixed;
    background-position: right;
    position: relative;
}

.cta-title-area {
    padding-right: 70px;
}

.background-image,
[data-bg-src] {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.title-area {
    margin-bottom: 15px;
    display: block;
    position: relative;
    z-index: 9;
}

.cta-area5:after {
    content: '';
    position: absolute;
    background: -webkit-linear-gradient(315deg, rgba(104, 77, 244, 0) -24.45%, rgb(35, 31, 32) 165.8%);
    background: linear-gradient(135deg, rgba(104, 77, 244, 0) -24.45%, rgb(35, 31, 32) 165.8%);
    -webkit-backdrop-filter: blur(10.5px);
    backdrop-filter: blur(10.5px);
    left: 0;
    top: 0;
    width: 60%;
    height: 100%;
    -webkit-clip-path: polygon(0 0, 100% 0, 70% 100%, 0% 100%);
    clip-path: polygon(0 0, 100% 0, 70% 100%, 0% 100%);
}

.tp-header-2-area {
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

.breadcrumb__pt {
    padding-top: 0;
}

.tp-slider-3-title {
    font-size: 80px;
    line-height: 1;
    text-shadow: -1px 1px 7px rgba(0, 0, 0, .7);
}

.tp-slider-3-content p {
    font-size: 1.4rem;
}

.tp-slider-3-height .tp-hero-2-funfact h5 {
    margin-bottom: 0;
    line-height: 1;
}


/* Pages */
.tp-sv-details-left-box p {
    margin-right: 0;
}

.tp-service-thumb {
    border-radius: 5px;
    height: 170px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.tp-service-thumb img {
    width: 77%;
}

.tp-service-item {
    border: 1px solid var(--tp-theme-1);
    border-radius: 5px;
    height: 100%;
    background-color: var(--tp-common-white);
    overflow: hidden;
}

.tp-service-content {
    border-radius: 5px;
    height: 100%;
}
.tp-sv-details-thumb img {
    width: auto;
    height: auto;
}

/* =============================================
   GALLERIA DINAMICA — Stili e Animazioni
   PERCHÉ: Hover overlay elegante con transizioni fluide
           e icona lightbox con effetto pulsante.
   UTILIZZO: Applicato a partials/gallery.php
   ============================================= */

/* Contenitore singolo item */
.hom-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.hom-gallery-item:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

/* Thumb: zoom progressivo su hover */
.hom-gallery-thumb {
    overflow: hidden;
    line-height: 0;
}

.hom-gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.4s ease;
    will-change: transform;
}

.hom-gallery-item:hover .hom-gallery-img {
    transform: scale(1.08);
    filter: brightness(0.7);
}

/* Overlay scuro con gradiente dal basso */
.hom-gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    background: linear-gradient(0deg,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.25) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.hom-gallery-item:hover .hom-gallery-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Contenuto testuale nell'overlay */
.hom-gallery-overlay-content {
    text-align: center;
    padding: 0 20px 55px;
    transform: translateY(20px);
    transition: transform 0.45s ease 0.05s, opacity 0.45s ease 0.05s;
    opacity: 0;
}

.hom-gallery-item:hover .hom-gallery-overlay-content {
    transform: translateY(0);
    opacity: 1;
}

.hom-gallery-caption {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hom-gallery-cat {
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Icona lente lightbox — posizionata al centro */
.hom-gallery-lightbox-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--tp-theme-1, #1fb714);
    color: #fff;
    font-size: 20px;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        background 0.3s ease;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(31, 183, 20, 0.4);
}

.hom-gallery-item:hover .hom-gallery-lightbox-btn {
    transform: translate(-50%, -50%) scale(1);
}

.hom-gallery-lightbox-btn:hover {
    background: #fff;
    color: var(--tp-theme-1, #1fb714);
    box-shadow: 0 4px 25px rgba(255, 255, 255, 0.3);
}

/* Effetto pulse sottile sull'icona quando visibile */
@keyframes homGalleryPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(31, 183, 20, 0.4);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(31, 183, 20, 0);
    }
}

.hom-gallery-item:hover .hom-gallery-lightbox-btn {
    animation: homGalleryPulse 2s ease-in-out infinite 0.4s;
}

.tpoffcanvas__contact-info ul li {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Responsive: 2 colonne tablet, 1 mobile */

@media only screen and (min-width: 1200px) and (max-width: 1599px) {
    .tp-header-style-5 .tp-header-menu {
        padding-left: 0;
    }

    .tp-header-menu>nav>ul>li {
        margin: 0px 12px;
    }
}

@media (max-width: 991px) {
    .hom-gallery-img {
        height: 250px;
    }

    .tp-header-tranparent {
        background-color: rgba(0, 0, 0, .2) !important;
        padding: 7px 4px;
    }

    .tp-header-area.tp-header-sticky-cloned {
        background-color: rgba(255, 255, 255, .9) !important;
    }

    .tp-brand-item {
        margin-bottom: 30px;
    }

    .tp-sv-details-thumb img {
        height: auto;
        width: auto;
    }

    .tp-sv-details-thumb {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tp-sv-details-sidebar {
        display: none;
    }
}

@media (max-width: 767px) {
    .tp-slider-3-title {
        font-size: 50px;
        text-align: center;
    }

    .tp-header-logo a img {
        padding: 0 0 0 15px !important;
        min-width: 235px !important;
    }

    .tp-brand-wrappe {
        flex-direction: column !important
    }

    .row-gap-3 {
        row-gap: 1rem !important;
    }

    .tpoffcanvas__close-btn button {
        right: 10px;
        top: 5px;
    }

    .cta-title-area {
        padding-right: 15px;
    }

    .th-container5 {
        background: rgba(0, 0, 0, .7);
        padding: 30px 8px;
    }

    .tp-slider-3-title-box {
        transform: translateY(20px);
        text-align: center;
    }

    .pt-150,
    .pt-145,
    .pt-140 {
        padding-top: 70px !important;
    }

    .pb-150,
    .pb-120 {
        padding-bottom: 70px !important;
    }

    .tp-team-details-inner-style .tp-section-title {
        font-size: 26px;
        padding-bottom: 0;
    }

    .tp-team-details-title,
    .tp-section-title {
        font-size: 26px;
    }

}

@media (max-width: 575px) {
    .hom-gallery-img {
        height: 220px;
    }

    .hom-gallery-lightbox-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .hom-gallery-caption {
        font-size: 14px;
    }

    .tp-slider-3-wrap {
        top: -50px !important;
    }
}

@media (max-width: 480px) {
    .tpoffcanvas {
        width: 100% !important;
        padding: 40px 35px;
    }


    .tp-slider-3-title {
        font-size: 27px;
        font-weight: 500;
    }

    .swiper-pagination-bullets.swiper-pagination-horizontal {
        z-index: 1;
    }

}