/* Carousel Item Enhancements */
.carousel-item {
    position: relative;
    text-align: center;
    color: white; /* Adjust text color for better visibility */
}
.carousel-item-container {
    display: flex; /* Enables Flexbox */
    width: 100%; /* Makes the container fill its parent's width */
}

.carousel-item-container img {
    flex: 0 0 80%; /* Assigns 80% of the width to the image */
    object-fit: cover; /* Optional: Adjusts the image to cover the allocated space without distortion */
}

.carousel-item-container > div {
    flex: 1; /* Takes the remaining space (20%) */
    padding: 10px; /* Optional: Adds some padding inside the text container */
}
.carousel-item p {
    position: absolute;
    bottom: 6%; /* Adjust as needed */
    left: 50%;
    font-size: 1.5em; /* Larger text for better readability */
    z-index: 2; /* Ensure text is above the overlay */
    color: #fefefe;

}
.carousel-item a {
    position: absolute;
    bottom: 75%; /* Adjust as needed */
    left: 70%;
    font-size: 4.5em; /* Larger text for better readability */
    z-index: 2; /* Ensure text is above the overlay */
    color: #fefefe;
}

.carousel-item h2, .carousel-item  h3 {
    position: absolute;
    bottom: 5%; /* Adjust as needed */
    left: 7%;
    font-size: 4.5em; /* Larger text for better readability */
    z-index: 2; /* Ensure text is above the overlay */
    font-family: 'Philosopher', serif;
    color: #f3f3f3;
}

/* Custom Navigation Buttons */
.carousel-control-prev, .carousel-control-next {
    filter: invert(100%); /* Makes the arrows white, adjust as needed */
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-size: 50%; /* Adjust the size of the arrows */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .carousel-item p {
        font-size: 1em;
    }
}

.video-container {
  position: relative;
  /* Ensure it has a defined width and height */
}

.overlay-video-text {
  background-color: rgba(0, 97, 161, 0.2);
  backdrop-filter: blur(3.0px);
  -webkit-backdrop-filter: blur(3.0px);
  border-radius: 300px;
  display: inline-block;
  text-align: center;
  padding: 8px;
  box-sizing: border-box;
  position: absolute;
  top: 50%; /* Adjust as necessary */
  left: 0%;
  transform: translate(-50%, -50%); /* Centers the text block */
  max-width: 80%; /* Adjust as necessary */
}

/* Smooth Transition for Carousel */
.carousel-item {
    transition: transform 0.5s ease-in-out;
}
.outer-carousel {
    background-color: #cecece;    
}
.video-container {
    overflow: hidden;
    }


.max-height-video {
    height: auto;  /* This maintains the aspect ratio */
}

.review-card {
    width: 300px;
    padding: 20px;
    background-color: #fefefa;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin: 20px;
}

.stars {
    text-align: left;
    font-size: 18px;
    color: #0060a2;
}

.review-content {
    margin: 10px 0;
    color: #0060a2;

    text-align: left;
}

.line {
    border-top: 0.3px solid #0060a2;
    margin: 10px 0;
}

.reviewer-name {
    color: #0060a2;
    text-align: left;
    font-weight: bold;
}

.line-white {
    border-top: 0.3px solid #fefefe;
    margin: 10px 0;
}

.overlay-text {
    position: absolute;
    padding: 20px;
    color: #fefefe; /* Text color */
    text-align: center;
}

.logobanner {
    max-width: 100px;
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.3;
}

@keyframes highlight-image {
    0%,25%,100% { transform: scale(1); z-index: 1; }
    1%, 24%{z-index: 2;}
    12.5% { transform: scale(1.8); z-index: 20; }

}
/*.image-section {
    flex-grow: 0.5;
    background-size: cover;
    background-position: center;
    /*animation: highlight-image 20s infinite; /* Apply the animation to all, but use delay to stagger */
    /*transition: transform 0.5s ease-in-out; /* Add this line for transition */
/*}*/

/*.image-section:hover {
    transform: scale(2); /* Updated from scale(1.5) to scale(2) as you requested */
    /*z-index: 2;
    transition: transform 0.5s ease-in-out; /* Ensure smooth transition back */
/*}*/

.servizi-container {
    display: flex;
    width: 100%;
    height: 50vh;
    overflow: hidden;
}

.servizi-text {
  position: absolute; 
  color: white; /* Choose a color that stands out */
  background-color: rgba(0, 97, 161, 0.3); /* Optional: Adds a semi-transparent background */
  padding: 5px;
  border-radius: 5px;
  
  }
.servizi-text:hover {
    display: block;
}

.servizi-photo-section {
  display: flex;
  width: 100%;
  height: 600px; /* Adjust based on your preference */
  overflow: hidden;
}

.servizi-photo {
  flex: 1;
  transition: flex-grow 0.5s ease;
  background-repeat: no-repeat;
  background-position: center; /* Center the background image */
  background-size: cover; /* Cover the entire area of the div */
  overflow: hidden;
}

.servizi-photo:hover {
  flex-grow: 2;
}

.img1 {
    background-image: url('../media/servizi/resize/biglietteria.jpg'); 
}
.img2 { 
    background-image: url('../media/servizi/patetnte_large.png'); 
}
.img3 { 
    background-image: url('../media/servizi/noleggio_party_interno-01.png'); 
}
.img4 { 
    background-image: url('../media/servizi/turismo_esperienziale_home.png'); 
}
@media screen and (max-width: 999px) {
    .servizi-photo {
        position: relative; /* Establishes a positioning context */
        overflow: hidden; /* Keeps absolutely positioned elements within the container */
    }

    .servizi-text {
        position: absolute;
        left: 10%; /* Adjust as needed */
        /* Remove transform properties */
    }

    #servizio-text-1 {
        top: 40px;
    }
    #servizio-text-2 {
        top: 80px;
    }
    #servizio-text-3 {
        top: 120px;
    }
    #servizio-text-4 {
        top: 160px;
    }
}

@media screen and (min-width: 1000px) {

#servizio-text-1{
    transform:translate(10%) translateY(40px); 
}
#servizio-text-2{
    transform:translate(10%) translateY(80px);
}
#servizio-text-3{
    transform:translate(10%) translateY(120px);
}
#servizio-text-4{
    transform:translate(10%) translateY(160px);
    overflow: hidden;
}

}
/* MODEAL*/
.modal-center {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Increased z-index to ensure it's on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%; /* Adjust based on preference */
    text-align: center;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}
.modal-content p {
    font-size: 20px; /* Larger font size */
}

.close-modal {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.confirm-btn {
    font-size: 18px; /* Bigger font for the button */
    background-color: #007bff; /* Bootstrap primary blue */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px; /* Space from the text */
}

.confirm-btn:hover {
    background-color: #0056b3; /* Darker shade for hover effect */
}
