/* ! Generale */
*{font-family: 'Raleway', sans-serif;}
/* ! Reset */

/* a, a:hover{text-decoration: none; color: #000;} */
a, a:hover{color: #003554;}

/* ! Header */ 
.menu {height: 80px;}

.img-full {width: 100%; height: auto; vertical-align: middle; display: flexbox;}
.hero {
    /* height: 30vh; */
    /* min-height: 400px; */
    min-height: 45vh;
    /* background-image: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%), url(/images/copertina.jpg);  */
    background-image: url("/images/castello-aragonese.jpg");
    background-size: cover; background-position: center center;
    text-shadow: 1px 1px #000;
}
.hero_text {width: 100%;}
.hero_text h2{font-size: 60px; font-weight: bold;}
.hero_text p{font-size: 22px;}

@media (max-width: 768px) {
    .hero {height: 200px;}
    .hero_text h2{font-size: 36px;}
    .hero_text p{font-size: 18px;}
}

.card{margin-bottom:20px;}
.card:hover {box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);}

.card-category{width: fit-content; font-size: 16px; background-color: #003554; color: #FFF; margin: -30px 0 10px 0; padding: 0 10px; border-radius: 8px;}
.height-160{ height: 160px;} /* Altezza Cards fissa */

.card-img-top {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.img-home {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}


/* .card-text{
    font-family: 'Poppins', sans-serif;
} */

.card a{ text-decoration: none; color:#000}

.card-text{
    font-family: 'Poppins', sans-serif;
    line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* .card-text{
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

} */

.card-border-blue {border-color: #003554;}
.card-border-green {border-color: #0A8754;}
.card-border-orange {border-color: #FF934F;}
.card-border-lt-blue {border-color: #3FA7D6;}

.border-blue {border: 2px solid #003554;}
.border-green {border: 2px solid #0A8754;}
.border-orange {border: 2px solid #FF934F;}
.border-lt-blue {border: 2px solid #3FA7D6;}
.border-yellow {border: 2px solid #F5C400;}

/* ! Escursione */ 
.prezzo {
    border: 1px solid #e1e1e1;
    padding: 10px;
}

.prezzo .importo {
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
}
#descrizione hr {border-top: 6px solid;}
.category-label {width: fit-content; font-size: 16px; color: #FFF; padding: 0 10px; border-radius: 8px;}

/* ! Footer */
footer {
    background-color: #003554;
    color: #FFF;
    min-height: 15vh;
}

footer a {
    text-decoration: none;
}
footer .row {padding: 20px 0;}

/* ! Helpers */
.divider {height: 20px; margin-bottom: 40px; padding: 0;}
.bg-green {background-color: #0A8754;}
.bg-orange {background-color: #FF934F;}
.bg-lt-blue {background-color: #3FA7D6;}
.bg-yellow {background-color: #F5C400;}
.bg-blue {background-color: #003554;}

.bg-15-green {background-color: rgba(10,135,84,0.15);}
.bg-15-orange {background-color: rgba(255,147,79,0.15);}
.bg-15-lt-blue {background-color: rgba(63,167,214,0.15);}
.bg-15-yellow {background-color: rgba(245,196,0,0.15);}
.bg-15-blue {background-color: rgba(0,53,84,0.15);}

.c-green {color: #0A8754;}
.c-orange {color: #FF934F;}
.c-lt-blue {color: #3FA7D6;}
.c-yellow {color: #F5C400;}
.c-blue {color: #003554;}
/**.c-white {color: #FFF;}  text-white in Bootstrap **/


.bold { font-weight: 700;}
.bg-transp {background-color: rgba(30,30,30,0.4);}
.text-shadow {text-shadow: 1px 1px #000;}
.lin-gradient {background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%)}
.txt-poppins {font-family: 'Poppins', sans-serif;}
.txt-raleway {font-family: 'Raleway', sans-serif;}

.stepper-horizontal {
    list-style-type: none;
    padding: 0;
    position: relative;
}

.stepper-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.stepper-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px;
    font-weight: bold;
}

.stepper-item.active .stepper-circle {
    background-color: #003554;
    color: white;
}

.stepper-item::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -50%;
    right: 50%;
    height: 2px;
    background-color: #e0e0e0;
    z-index: -1;
}

.stepper-item:first-child::before {
    display: none;
}

.stepper-item.active::before {
    background-color: #003554;
}

.stepper-label {
    font-size: 14px;
    color: #333;
}

.sticky-top { top: 20px; }

.footer-responsive {
    position: relative;
    width: 100%;
    background-color: #003554;
    color: #FFF;
    min-height: 0;
}

@media (min-width: 992px) {
    .footer-responsive {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1030;
    }
    
    /* body {
        padding-bottom: 200px;
    } */
}

/* ! Sistema foto responsive per escursioni */
.photo-gallery {
    margin-bottom: 2rem;
}

/* Layout desktop: 1 foto orizzontale + 2 colonne verticali */
.desktop-gallery {
    justify-content: space-between;
    align-items: stretch;
    /*height: 400px; /* Altezza fissa per uniformità */
}

/* Foto orizzontale principale (50% dello spazio) */
.desktop-gallery .photo-horizontal {
    flex: 0 0 50%;
    max-width: calc(50% - 0.5rem);
    display: flex;
    flex-direction: column;
}

.desktop-gallery .photo-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Container per le due colonne verticali (50% dello spazio) */
.desktop-gallery .photo-columns {
    flex: 0 0 50%;
    max-width: calc(50% - 0.5rem);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Foto verticali (25% ciascuna dello spazio totale) */
.desktop-gallery .photo-vertical {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.desktop-gallery .photo-vertical img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Effetto hover per tutte le foto */
.desktop-gallery .photo-item:hover img {
    transform: scale(1.02);
}

/* Layout mobile: carousel ottimizzato */
.mobile-carousel .carousel-item img {
    height: 300px;
    object-fit: cover;
    object-position: center;
}

.mobile-carousel .carousel-control-prev,
.mobile-carousel .carousel-control-next {
    width: 8%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    margin: 0 1rem;
}

.mobile-carousel .carousel-indicators {
    margin-bottom: 1rem;
}

.mobile-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 4px;
}

.mobile-carousel .carousel-indicators button.active {
    background-color: #003554;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
    .desktop-gallery {
        height: 350px;
    }
}

@media (max-width: 991.98px) {
    .desktop-gallery {
        height: 300px;
    }
}

/* Gallery scheda attivita: carousel responsive desktop + mobile */
.activity-gallery .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}
@media (max-width: 767.98px) {
    .activity-gallery .carousel-item img {
        max-height: 280px;
    }
}
.activity-gallery .carousel-control-prev,
.activity-gallery .carousel-control-next {
    width: 8%;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 0.5rem;
    margin: 0 0.5rem;
}
.activity-gallery .carousel-indicators {
    margin-bottom: 0.75rem;
}
.activity-gallery .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    margin: 0 3px;
}
.activity-gallery .carousel-indicators button.active {
    background-color: #003554;
}