/* ###### SEPARATIRE ARANCIO ####### */
.separatore-arancione-home{
    width: 100%;
    height: 5px;
    background-color: var( --colore-testo-hover-secondario)
}
/* ###### SEPARATIRE ARANCIO ####### */
.linea-sotto-titolo{
    width: 100px;
    height: 5px;
    background-color: var( --colore-testo-hover-secondario);
    margin: 20px auto;
}
/* ###### SHORTCODE HERO HOME ####### */
.hero-home-wrapper {
    position: relative;
    margin-bottom: 3rem;
    margin-top: 0;
    overflow: hidden;
    background-color: #000;
    height:100vh;
}

/* Cornice fotografica con linee */
.photo-frame-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50 !important;
    pointer-events: none;
}

.line-horizontal, .line-vertical {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.3);
}

.line-horizontal {
    height: 1px;
    left: 30px;
    right: 30px;
    animation: pulse-line-horizontal 4s infinite alternate;
}

.line-vertical {
    width: 1px;
    top: 30px;
    bottom: 30px;
    animation: pulse-line-vertical 4s infinite alternate;
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: rgba(255, 255, 255, 0.5);
    z-index: 6;
    animation: pulse-corner 3s infinite alternate;
}

.corner-tl {
    top: 20px;
    left: 20px;
    border-top: 2px solid;
    border-left: 2px solid;
}

.corner-tr {
    top: 20px;
    right: 20px;
    border-top: 2px solid;
    border-right: 2px solid;
}

.corner-bl {
    bottom: 20px;
    left: 20px;
    border-bottom: 2px solid;
    border-left: 2px solid;
}

.corner-br {
    bottom: 20px;
    right: 20px;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

/* Logo posizionato in alto al centro */
.hero-logo-container {
    position: absolute;
    top: 24%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.hero-logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

/* Contenitore del testo principale */
.hero-main-text-container {
    position: absolute;
 top: 40%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    margin-top: 150px;
    text-align: center;
    color: #fff;
    font-size: 22px;
    font-weight: 300;
}

/* Carousel principale con stile fotografico */
.hero-banner-carousel {
    position: relative;
    overflow: hidden;   
}

/* Overlay gradiente per migliorare la leggibilità del testo */
.photo-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

/* Immagini del carousel */
.hero-banner-carousel .carousel-item {
    height: 100vh;
    position: absolute; /* Cambia da relative ad absolute */
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    z-index: 0;
    /* Assicura che tutte le slide siano sovrapposte */
}

.hero-banner-carousel .carousel-item.active {
    opacity: 1;
    z-index: 1;
    position: relative; /* L'item attivo può essere relative per compatibilità Bootstrap */
}

.hero-banner-carousel .carousel-item img {
    object-fit: cover; 
    height: 100vh !important; 
    width: 100%; 
    opacity: 0.9;
    position: relative;
    transition: transform 5s ease, opacity 0.8s ease, filter 0.8s ease;
    filter: blur(0);
}

.hero-banner-carousel .carousel-item.active img {
    /* height: 100%!important; */ /* REMOVE this redundant line */
    transform: scale(1.05);
    filter: blur(0);
}

/* Effetto di transizione per le slide */
.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
    transform: translateZ(-100px);
   
}

.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
    transform: translateZ(-100px);
   
}

/* Effetto 3D per il contenitore del carousel */
 .hero-banner-carousel {
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

.carousel-inner {
    transform-style: preserve-3d;
} 

/* Indicatori del carousel personalizzati */
.photo-indicators {
    margin-bottom: 1rem;
    z-index: 15;
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
}

.photo-indicators button {
    width: 40px;
    height: 4px;
    border-radius: 0;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    transition: all 0.3s ease;
    opacity: 1;
}

.photo-indicators button.active {
    background-color: #fff;
    width: 60px;
}

/* Controlli del carousel personalizzati */
.photo-control {
    width: 10%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 10;
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
}

.carousel-control-prev.photo-control {
    left: 0;
}

.carousel-control-next.photo-control {
    right: 0;
}

.hero-banner-carousel:hover .photo-control {
    opacity: 1;
}

.photo-control .carousel-control-prev-icon,
.photo-control .carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    background-size: 50%;
}


/* Caption del carousel personalizzata */
.photo-caption {
    position: absolute;
    bottom: 35%;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0;
    background-color: transparent;
    z-index: 3;
}

/* Contenitore per l'effetto obiettivo e il sottotitolo */
.photo-lens-container {
    position: relative;
    display: inline-block;
    padding: 40px;
}

/* Sottotitolo nella caption */
.hero-subtitle {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
   font-family: var(--font-titoloHomeHero);
    text-align: center;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 1.2s ease, opacity 1.2s ease;
    position: relative;
    z-index: 3;    
}

.carousel-item.active .hero-subtitle {
    transform: scale(1);
    opacity: 1;
}

.item-servizi {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: opacity, transform;
}

.item-servizi.visible {
    opacity: 1;
    transform: translateY(0);
}

