﻿iframe {
    width: 100%;
    height: 500px;
    border: none;
    margin: 0;
}


.action-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-color);
}

#header .dropdown .dropdown-menu {
    background-color: var(--nav-topheader-background-color);
}

#header > * .dropdown-toggle::after {
    display: none;
}

.card-img-top {
    width: 100%;
    height: 15vw;
    object-fit: cover;
}

.c1 {
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    height: auto !important;
}

.c2 {
    background-image: url(../img/sfondo_home.jpg);
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    height: auto !important;
}

.c3 {
    background-image: url(https://saintstour.blob.core.windows.net/strapi-upload/assets/Galleria_Borghese_Esterne_4_0e778819a0.png);
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    height: auto !important;
}

.icon-100 {
    font-size: 100px;
}

.icon-200 {
    font-size: 200px;
}

.icon-300 {
    font-size: 200px;
}

.image-container {
    overflow: hidden; /* [1.2] Hide the overflowing of child elements */
}

    .image-container img {
        transition: transform 1s, filter .80s ease-in-out;
    }

    .image-container:hover img {
        transform: scale(1.2);
    }

.search-sec .container {
    background-color: #1a2b49;
    padding: 20px 20px 20px 20px;
    border-radius: 25px;
    margin-bottom: 100px;
}

.search-sec .input-group {
    background-color: white;
    border-radius: 25px;
}

.search-sec input[type=text] {
    background-color: white;
    border-radius: 25px;
}

.search-sec select {
    background-color: white;
    border-radius: 25px;
}



.flat {
    border: 0;
    background: none;
    box-shadow: none;
    border-radius: 0px;
}

.cart_summary {
    position: relative;
    border: 1px solid var(--bs-gray-500);
    border-top: 4px solid var(--nav-topheader-background-color);
    border-radius: 8px;
    margin-bottom: 16px
}

.price-day {
    /*line-height: 6px;*/
    /*font-size: 10px;*/
}

/* Whislist icon */
.wishlist {
    position: absolute;
    left: 7px;
    top: 5px;
    z-index: 1;
    overflow: hidden;
    color: white;
    transition: color 0.5s ease;
    cursor: pointer;
}

    .wishlist:hover {
        color: red;
    }


.ribbon {
    position: absolute;
    right: -5px;
    top: -5px;
    z-index: 1;
    overflow: hidden;
    width: 75px;
    height: 75px;
    text-align: right;
}

    .ribbon span {
        font-size: 10px;
        font-weight: bold;
        color: #FFF;
        text-transform: uppercase;
        text-align: center;
        line-height: 20px;
        transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
        width: 100px;
        display: block;
        background: #79A70A;
        background: linear-gradient(#F70505 0%, #8F0808 100%);
        box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
        position: absolute;
        top: 19px;
        right: -21px;
    }

        .ribbon span::before {
            content: "";
            position: absolute;
            left: 0px;
            top: 100%;
            z-index: -1;
            border-left: 3px solid #8F0808;
            border-right: 3px solid transparent;
            border-bottom: 3px solid transparent;
            border-top: 3px solid #8F0808;
        }

        .ribbon span::after {
            content: "";
            position: absolute;
            right: 0px;
            top: 100%;
            z-index: -1;
            border-left: 3px solid transparent;
            border-right: 3px solid #8F0808;
            border-bottom: 3px solid transparent;
            border-top: 3px solid #8F0808;
        }


/*SCHEDA PRODOTTO HOME */
.product-card {
    width: 315px;
    position: relative;
    box-shadow: 0 2px 7px #dfdfdf;
    background: #fff;
}


.product-tumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

    .product-tumb img {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: calc(var(--vh, 1vh) * 25);
        object-fit: cover;
    }

.product-details {
    padding: 30px;
}

.product-catagory {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ccc;
    margin-bottom: 18px;
}

.product-details h4 a {
    font-weight: 500;
    display: block;
    margin-bottom: 12px;
    text-transform: uppercase;
    color: #363636;
    text-decoration: none;
    transition: 0.3s;
}

    .product-details h4 a:hover {
        color: #fbb72c;
    }

.product-details p {
    font-size: 15px;
    /*line-height: 22px;*/
    margin-bottom: 18px;
    color: #999;
}

.product-bottom-details {
    overflow: hidden;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

    .product-bottom-details div {
        float: left;
        width: 50%;
    }

.product-price {
    font-size: 18px;
    color: #fbb72c;
    font-weight: 600;
}

    .product-price small {
        font-size: 80%;
        font-weight: 400;
        text-decoration: line-through;
        display: inline-block;
        margin-right: 5px;
    }

.product-links {
    text-align: right;
}

    .product-links a {
        display: inline-block;
        margin-left: 5px;
        color: #e1e1e1;
        transition: 0.3s;
        font-size: 17px;
    }

        .product-links a:hover {
            color: #fbb72c;
        }


.cart-sidebar {
    font-size: 14px;
}

    .cart-sidebar title {
        font-size: 15px;
        font-weight: 500;
    }


/*Gallery style*/
@media (max-width: 1199px) {
    #gallery a {
        display: none;

    }

        #gallery a:first-child {
            display: block;
        }
}

.img-responsive {
    display: block;
    height: auto;
    width: 100%;
}

.gallery__item .img-responsive {
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    transition: all 0.5s ease-in;
}

.gallery__item:first-child img {
    border-radius: 10px 0 0 10px;
}

.gallery-wrapper {
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 0.4166666667rem;
}

    .gallery:not(:first-child) {
        margin-top: 0.4166666667rem;
    }

@media (min-width: 768px) {
    .gallery {
        grid-template-columns: repeat(5, 1fr);
    }
}

.gallery.-block {
    display: grid;
}

.gallery__item {
    background-color: #333;
    color: #fff;
    cursor: pointer;
    display: flex;
    border-radius: 10px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


    .gallery__item:nth-child(13n+1) {
        grid-column: 1/-1;
    }

.show-ar .gallery__item:nth-child(13n+1):before {
    content: "2:3";
}

@media (min-width: 768px) {
    .gallery__item:nth-child(13n+1) {
        grid-column: 1/span 2;
        grid-row: 1/span 3;
    }
}

.gallery__item:nth-child(13n+8) {
    grid-column: 1/-1;
}

.show-ar .gallery__item:nth-child(13n+8):before {
    content: "4:2";
}

.gallery__item:nth-child(13n+13) {
    grid-column: 1/-1;
}

.show-ar .gallery__item:nth-child(13n+13):before {
    content: "2:2";
}

@media (min-width: 768px) {
    .gallery__item:nth-child(13n+13) {
        grid-column: 3/span 2;
        grid-row: 5/span 2;
    }
}

.-absolute .gallery__item {
    position: relative;
}

.card-title {
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    color: var(--secondary-color);
}

/*TEAM OVERRIDE */
.team {
    --background-color: #f4f4f4;
}

    .team .member {
        position: relative;
    }

        .team .member .member-img {
            margin: 0 40px;
            border-radius: 0;
            overflow: hidden;
            position: relative;
            border: 3px solid var(--background-color);
            box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.2);
        }


li .link {
    color: black;
}

/* Rating piccolo usato nelle card esperienza */
.experience-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f2b01e; /* colore stellina/giallo */
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
}

    .experience-rating .fa-star {
        font-size: 14px;
        color: #f2b01e;
        margin-left: 2px;
        /* piccola ombra per leggibilità su sfondi chiari */
        text-shadow: 0 0 0 rgba(0,0,0,0.02);
    }

    .experience-rating .rating-value {
        color: #333;
        font-weight: 600;
    }

    .experience-rating .reviews-count {
        color: rgba(var(--default-color-rgb), 0.6);
        font-weight: 400;
        font-size: 13px;
    }

@media (max-width: 576px) {
    .experience-rating {
        font-size: 13px;
        gap: 4px;
    }

        .experience-rating .fa-star {
            font-size: 13px;
        }
}

/* Messaggio trust sotto la search-bar nel hero */
.hero-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    margin-top: 16px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}

    .hero-note .note-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        background: rgba(255,255,255,0.08);
        border-radius: 6px;
        color: #fff;
        font-size: 14px;
    }

        .hero-note .note-icon i {
            line-height: 0;
        }

@media (max-width: 576px) {
    .hero-note {
        font-size: 13px;
        margin-top: 12px;
    }

        .hero-note .note-icon {
            width: 24px;
            height: 24px;
            font-size: 12px;
        }
}

/* Forza visibilità del burger anche su desktop e migliora allineamento */
.mobile-nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 24px; /* regola a piacere per desktop */
    color: var(--nav-color);
    cursor: pointer;
    margin-right: 12px;
    line-height: 0;
    /*z-index: 9999;*/
}



.flag-icon {
    display: block;
    width: 20px;
    height: auto;
    animation: wave 2s infinite linear;
    transform-origin: left center;
    box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.5);
}

/* Profile dropdown card-like styles */
#header .profile-dropdown-menu {
    min-width: 300px;
    padding: 0;
    border: 0;
    background: transparent;
}

#header .profile-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(35, 47, 63, 0.12);
    background: #ffffff;
    color: #0f1724;
    width: 100%;
}

#header .profile-card-header {
    border-bottom: 1px solid rgba(15,23,36,0.06);
    background: linear-gradient(0deg, rgba(255,255,255,0.9), rgba(255,255,255,0.9));
}

#header .profile-card-header h6 {
    font-weight: 700;
    margin: 0;
    color: #0b2540;
}

#header .profile-card-body {
    padding: 0.25rem 0;
}

#header .profile-action {
    color: #0b2540;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background .12s ease, color .12s ease;
}

#header .profile-action:hover,
#header .profile-action:focus {
    background: rgba(11,37,64,0.03);
    color: #0b2540;
    text-decoration: none;
}

/* ICONS: semplici, senza bordo né sfondo */
#header .profile-action i.bi,
#header .profile-card .bi {
    font-size: 1.05rem;
    color: #0b2540;
    background: transparent !important;
    border-radius: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* eventuale dimensione uniforme per l'icona iniziale */
#header .profile-action i.bi.me-3 {
    width: 28px;
    text-align: center;
}

/* Pulsanti all'interno della card */
#header .profile-card .btn {
    border-radius: 8px;
}

/* remove default dropdown padding on small screens to keep native look */
@media (max-width: 991.98px) {
    #header .profile-dropdown-menu {
        min-width: 220px;
    }
}

/* Lang dropdown card-like (stile coerente con profile-card) */
#header .lang-dropdown-menu {
    min-width: 70px;
    padding: 0;
    border: 0;
    background: transparent;
}

#header .lang-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(35, 47, 63, 0.08);
    background: #ffffff;
    color: #0f1724;
    width: 100%;
}

#header .lang-card-header {
    border-bottom: 1px solid rgba(15,23,36,0.06);
    background: linear-gradient(0deg, rgba(255,255,255,0.9), rgba(255,255,255,0.9));
}

    #header .lang-card-header h6 {
        font-weight: 700;
        margin: 0;
        color: #0b2540;
    }

#header .lang-card-body {
    padding: 0.25rem 0;
}

/* Riusa profile-action per riga: icone semplici senza sfondo */
#header .lang-card .profile-action {
    color: #0b2540;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background .12s ease, color .12s ease;
}

    #header .lang-card .profile-action:hover,
    #header .lang-card .profile-action:focus {
        background: rgba(11,37,64,0.03);
        color: #0b2540;
    }



/* adattamento responsive */
@media (max-width: 991.98px) {
    #header .lang-dropdown-menu {
        min-width: 220px;
    }
}

/* Mobile single-item swipeable gallery */
@media (max-width: 767.98px) {
    .gallery {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 0.5rem; /* spazio per lo scroll */
    }

    .gallery__item {
        flex: 0 0 100%;
        width: 100%;
        scroll-snap-align: center;
        box-sizing: border-box;
        padding-right: 0; /* evita overflow aggiuntivo */
    }

    .gallery__item img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        border-radius: 8px;
    }

    /* rimuove eventuali margin/padding delle colonne che interferiscono */
    .gallery-wrapper .container,
    .gallery {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* nasconde overflow verticale indesiderato */
    .gallery::-webkit-scrollbar { height: 8px; }
    .gallery::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.15);
        border-radius: 6px;
    }

    /* Aggiunte per la navigazione mobile della gallery: frecce e override per mostrare un elemento alla volta */
    #gallery a,
    .gallery__item {
        display: block !important;
    }

    .mobile-gallery-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 50;
        width: 44px;
        height: 44px;
        border-radius: 22px;
        background: rgba(0,0,0,0.45);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        border: 0;
        cursor: pointer;
        line-height: 1;
        box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    }

    .mobile-gallery-nav.prev {
        left: 0.6rem;
    }

    .mobile-gallery-nav.next {
        right: 0.6rem;
    }

    .mobile-gallery-nav.disabled {
        opacity: 0.35;
        pointer-events: none;
    }

    /* piccolo aggiustamento per evitare che le frecce si sovrappongano alle immagini con bordi arrotondati */
    .gallery-wrapper {
        position: relative;
    }
}

/* Aggiunte per ricerca hero (pill white search) */
.search-hero {
    width: 100%;
    max-width: 900px; /* regola la larghezza massima come nell'immagine */
    margin-top: 18px;
}

.search-hero__group {
    background: #ffffff;
    border-radius: 999px; /* pill */
    padding: 6px 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.28);
    align-items: center;
    border: 0;
}

.search-hero__icon {
    background: transparent;
    border: 0;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0d6efd; /* colore icona primario */
    font-size: 1.05rem;
    margin-left: 6px;
}

.search-hero__input {
    border: 0;
    box-shadow: none;
    padding-left: 10px;
    height: 56px;
    font-size: 1.05rem;
    border-radius: 999px;
    background: transparent;
    color: #34495e;
}

.search-hero__input::placeholder {
    color: #7a8b9a;
}

.search-hero__input:focus,
.search-hero__group:focus-within {
    outline: none;
    box-shadow: none;
}

/* rimuove bordi predefiniti di bootstrap per input-group-text */
.input-group .input-group-text {
    border: 0;
    background: transparent;
}

/* Miglioramento layout risultati ricerca hero */
.search-hero #search-results .list-group-item {
    display: flex !important;
    align-items: flex-start !important; /* allinea in alto */
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    overflow: hidden;
    white-space: normal; /* consente wrap */
    box-shadow: none;
}

/* thumbnail */
.search-hero #search-results .list-group-item img,
.search-hero #search-results .list-group-item .search-thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    margin-right: 0.75rem;
    border-radius: 6px;
    object-fit: cover;
    display: block;
}

/* contenuto a fianco dell'immagine, permette ellipsis */
.search-hero #search-results .search-result-content {
    flex: 1 1 auto;
    min-width: 0; /* fondamentale per text-overflow in flex */
    overflow: hidden;
}

/* titolo: massimo 2 righe con ellipsis */
.search-hero #search-results .search-result-content .title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.15;
    margin-bottom: 0.25rem;
}

/* meta (categoria + prezzo) */
.search-hero #search-results .search-result-content .meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: #6c757d;
    font-size: 0.85rem;
}

/* piccolo polish: rendi più leggibile il badge prezzo */
.search-hero #search-results .search-result-content .meta .badge {
    font-size: 0.78rem;
    padding: 0.35rem 0.5rem;
}

/* Fix definitivo risultati ricerca hero: evita sovrapposizione immagine/testo */
.search-hero #search-results,
.search-hero #search-results .list-group-item {
    box-sizing: border-box;
}

/* Forza layout flex per ogni risultato */
.search-hero #search-results .list-group-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    padding: 0.5rem 0.75rem !important;
    white-space: normal !important; /* permette wrapping */
    overflow: hidden !important;
}

/* Specifica rigida per la thumbnail dentro i risultati (override regole globali) */
.search-hero #search-results .list-group-item img.search-thumb,
.search-hero #search-results .list-group-item img {
    flex: 0 0 56px !important;
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    object-fit: cover !important;
    margin-right: 0.75rem !important;
    border-radius: 6px !important;
    display: block !important;
}

/* Contenitore testo a fianco dell'immagine */
.search-hero #search-results .search-result-content {
    flex: 1 1 auto !important;
    min-width: 0 !important; /* fondamentale per text-overflow/ellipsis in flex */
    overflow: hidden !important;
}

/* Titolo: fino a 2 righe con ellipsis */
.search-hero #search-results .search-result-content .title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.15;
    margin-bottom: 0.25rem;
}

/* Meta (categoria + prezzo) */
.search-hero #search-results .search-result-content .meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: #6c757d;
    font-size: 0.85rem;
}

/* Se Bootstrap impone width:100% su immagini generiche, questo specifico selector sovrascrive */
.search-hero #search-results img {
    max-width: none !important;
}

/* invece di ".hero img" usa solo l'immagine diretta figlia */
.hero > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 190%;
    -o-object-fit: cover;
    object-fit: cover;
    z-index: 1;
}

/* Override per le thumbnail dei risultati di ricerca */
.search-hero #search-results img {
    position: static !important;
    width: 56px !important;
    height: 56px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
}

.accordion-button:not(.collapsed) {
    background-color: transparent; /* Removes background color */
    color: inherit; /* Ensures text color remains consistent */
    box-shadow: none; /* Removes any shadow effect */
}

.tour-info .accordion-button {
    font-size: 1.125rem;
    font-weight: 700;
    padding: var(--bs-accordion-btn-padding-y) 1.4rem 1.8rem 0
}

.inclusioni {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
}

    .inclusioni h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .inclusioni ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .inclusioni li {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.4rem 0;
        border-top: 1px solid #eee;
    }

        .inclusioni li:first-child {
            border-top: none;
        }

    .inclusioni div:first-child li::before {
        content: "✓";
        color: #16794D; /* verde */
        font-weight: bold;
    }

    .inclusioni div:last-child li::before {
        content: "X";
        color: red; /* grigio */
        font-weight: bold;
    }


.sticky-bottom-avail {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 1rem;
    background: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.05);
}

    .sticky-bottom-avail .prezzo span {
        font-size: 1.25rem;
        font-weight: 600;
        color: #222;
    }

    .sticky-bottom-avail .azione a {
        border: none;
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 4px;
        cursor: pointer;
    }

        /*.sticky-bottom-avail .azione a:hover {
            background: #0f5c39;
        }*/
