/* =========================
   VARIABILI
========================= */
:root {
    --primary: #d45f11;
    --bg-dark: #181411;
    --bg-card: #392f28;
    --bg-card-hover: #4a3f36;
    --border: #392f28;
    --muted: #b9a89d;
}

.bg-dark-custom {
    background-color: var(--bg-dark) !important;
}

/* =========================
   LOGO ANIMAZIONE ONDE
========================= */
@keyframes logo-wave {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-2px) rotate(-1deg);
    }

    50% {
        transform: translateY(2px) rotate(1deg);
    }

    75% {
        transform: translateY(-1px) rotate(-0.5deg);
    }
}

a span.fw-bold {
    display: inline-block; /* necessario per le trasformazioni */
    transition: color 0.3s ease-in-out;
}

a:hover span.fw-bold {
    animation: logo-wave 1.5s ease-in-out;
    color: var(--primary); /* cambia colore al passaggio del mouse */
}

/* =========================
   BASE / UTILITY
========================= */
.font-manrope {
    font-family: Manrope,"Noto Sans",sans-serif;
}

.bg-dark-custom {
    background-color: var(--bg-dark);
}

.border-custom {
    border-color: var(--border) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-muted-custom {
    color: var(--muted);
}

.icon-24 {
    width: 24px;
    height: 24px;
}

/* =========================
   NAVBAR
========================= */
.navbar-nav,
.navbar-nav-no-column {
    flex-direction: unset !important;
}

    .navbar-nav .nav-link,
    .padding {
        padding-left: 15px;
        padding-right: 15px;
    }

.nav-link-custom {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s;
}

    .nav-link-custom:hover {
        color: var(--primary) !important;
    }

/* NAVBAR FIXED */
#feNavbarWrapper.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030; /* più basso dell'offcanvas */
    background-color: var(--bg-dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* =========================
   BUTTONS
========================= */
.btn-primary-custom {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: .5rem;
    padding: 7px 14px;
}

    .btn-primary-custom:hover {
        background: #bf5510;
        color: #fff;
    }

.btn-secondary-custom {
    background: var(--bg-card);
    color: #fff;
    border: none;
    border-radius: .5rem;
    padding: 7px 14px;
}

    .btn-secondary-custom:hover {
        background: var(--bg-card-hover);
        color: #fff;
    }

/* =========================
   SEARCH
========================= */
/* =========================
   CAMPI DI RICERCA NUOVI
========================= */
.search-bar-flush {
    margin-left: -1rem;
    margin-right: -1rem;
}

.search-field-profiles {
    background: var(--bg-card); /* stesso colore delle select */
    color: #fff;
    border: none;
    border-radius: .5rem;
    padding: .75rem 1rem;
    min-width: 220px;
    transition: background 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

    .search-field-profiles:focus {
        background: var(--bg-card-hover);
        outline: none;
        box-shadow: 0 0 0 2px rgba(212, 95, 17, 0.3);
        color: #fff;
    }

    .search-field-profiles::placeholder {
        color: #b9a89d; /* colore testo placeholder */
    }

/* =========================
   SELECT2 FRONTEND (public)
========================= */

/* SELECT CHIUSA */
#locationSelect + .select2-container--bootstrap-5 .select2-selection--single {
    background: var(--bg-card);
    border: none;
    border-radius: .5rem;
    min-height: 46px;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0;
    transition: background 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* TESTO SELEZIONATO */
#locationSelect + .select2-container--bootstrap-5 .select2-selection__rendered {
    color: #fff;
    padding-left: 1rem;
    padding-right: 2.5rem;
    line-height: normal;
}

/* PLACEHOLDER */
#locationSelect + .select2-container--bootstrap-5 .select2-selection__placeholder {
    color: #b9a89d;
}

/* FRECCIA */
#locationSelect + .select2-container--bootstrap-5 .select2-selection__arrow {
    height: 100%;
    right: .75rem;
    color: #fff;
}

/* FOCUS / DROPDOWN APERTO */
#locationSelect + .select2-container--bootstrap-5.select2-container--open .select2-selection--single {
    background: var(--bg-card-hover);
    box-shadow: 0 0 0 2px rgba(212, 95, 17, 0.3);
}

/* CONTENITORE DROPDOWN */
.select2-container--bootstrap-5 .select2-dropdown {
    background: var(--bg-card);
    background-color: #392f28 !important;
    border: none;
    border-radius: .5rem;
}

/* RISULTATI NORMALI */
.select2-container--bootstrap-5 .select2-results__option {
    color: #fff;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__message {
    color: #fff !important;
}

/* RISULTATO HOVER */
.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background: var(--bg-card-hover);
    color: #fff;
}

/* INPUT RICERCA DROPDOWN */
.select2-container--bootstrap-5 .select2-search__field {
    background: rgb(57 47 40) !important;
    color: #fff !important;
    border: none;
    border-radius: .5rem;
    padding: .5rem .75rem;
    outline: none;
}

    .select2-container--bootstrap-5 .select2-search__field:focus {
        background: var(--bg-card-hover);
        box-shadow: 0 0 0 2px rgba(212, 95, 17, 0.3);
        color: #fff;
    }

    .select2-container--bootstrap-5 .select2-search__field::placeholder {
        color: #b9a89d;
    }

.btn-search {
    border-radius: .5rem;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 9px;
}

/* TOGGLE MAPPA/LISTA */
.map-list-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.toggle-btn {
    flex: 1;
    border: none;
    background: rgba(212,95,17,0.2);
    color: var(--primary);
    border-radius: 0.5rem;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
    cursor: pointer;
}

    .toggle-btn .material-symbols-outlined {
        font-size: 18px;
    }

    /* Hover */
    .toggle-btn:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

    /* Stato attivo */
    .toggle-btn.active {
        background: var(--primary);
        color: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }

    /* Rimuove outline brutto */
    .toggle-btn:focus {
        outline: none;
    }

/* =========================
   HERO
========================= */
.hero-section {
    min-height: 480px;
    border-radius: .5rem;
    background: linear-gradient(rgba(0,0,0,.4),rgba(0,0,0,.7)), url("https://lh3.googleusercontent.com/aida-public/AB6AXuABtasDRRw6Wbch-7we5W9awA3FoS56XfzPafR3TCMHhwCcUbvp33nB-aVX36wfkGoayDn-xnt-rD3aOoDFClZFtF_OSf7NKAQ2nlqMftnhCbwEf1QQLZ7Ficcxygligx5R_TCHAzG1cVrgdGkmvjErtQ-sW15hlqv-QJFxL_AcWK6fdikpmv3VD2fHw2oZw4ZHEzrq74JXu_Y7yecfgGDq6aCClTIF-J_hYQPo_EiiwSaVbumgq2BZSojSaEL6Xsm_XRJUiPG1PvtX");
    background-size: cover;
    background-position: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.033em;
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }
}

.hero-subtitle {
    color: #e5e5e5;
    font-size: 1.125rem;
}

@media (max-width: 576px) {
    .hero-subtitle {
        font-size: 1rem;
    }
}

.badge.rounded-pill.bg-black.bg-opacity-50.border.border-custom.text-decoration-none:hover {
    color: var(--primary) !important;
}

/* =========================
   SEARCH HERO
========================= */
.search-hero-home {
    background: linear-gradient( 135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02) );
    backdrop-filter: blur(10px);
    border-radius: .5rem;
    padding: 2.5rem;
    border: 1px solid var(--primary);
}

/* Header */
.search-hero-header-home {
    text-align: center;
}

.search-title-home {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.search-subtitle-home {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
}

/* Labels */
.search-label-home {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6);
}

/* Inputs */
.search-input-home {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.6rem;
    padding: 0.75rem 1rem;
    color: #fff !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

    .search-input-home::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }

    .search-input-home:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(212, 95, 17, 0.25);
        background-color: rgba(0, 0, 0, 0.55);
    }

    .search-input-home:hover {
        border-color: rgba(255, 255, 255, 0.25);
    }

/* Button */
.search-btn-home {
    height: 49px;
    border-radius: .5rem;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .search-btn-home:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(212, 95, 17, 0.35);
    }

@media (max-width: 576px) {
    .esplora-btn-home {
        padding: 0.25rem 0.5rem; /* dimensioni ridotte tipo btn-sm */
        font-size: 0.875rem;
    }

    .vediTutti-btn-home {
        padding: 0.25rem 0.5rem; /* dimensioni ridotte tipo btn-sm */
        font-size: 0.875rem;
    }
}

.category-btn-home {
    padding: 0.5rem;
    border-radius: .5rem !important;
}

@media (max-width: 576px) {
    .search-hero-header-home {
        padding: 1.75rem 1.5rem;
    }

    .search-title-home {
        font-size: 1.4rem;
    }

    .search-subtitle-home {
        font-size: .9rem;
    }

    .search-btn-home {
        height: 52px;
        font-size: 1.05rem;
    }
}

/* =========================
   EXPLORE HERO
========================= */
.explore-hero-home {
    background: linear-gradient( 135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02) );
    backdrop-filter: blur(10px);
    border-radius: .5rem;
    padding: 2.5rem;
    border: 1px solid var(--primary);
}

/* Header */
.explore-hero-header-home {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    flex-wrap: wrap;
}

.explore-title-home {
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.explore-subtitle-home {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
}

/* =========================
   REGION CARD
========================= */
.explore-region-card-home {
    padding: 1.2rem;
    border-radius: .5rem;
    background-color: #392f28;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .explore-region-card-home:hover {
        color: inherit;
        transform: translateY(-3px);
        border-color: var(--primary);
        box-shadow: 0 10px 25px rgba(212, 95, 17, 0.25);
    }

.explore-region-name-home {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.explore-region-count-home {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {

    .explore-hero-header-home {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.3rem;
    }

        .explore-hero-header-home .btn {
            align-self: center;
        }
}

/* =========================
   INFO CARDS
========================= */
.info-card-home {
    background-color: #392f28;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: .5rem;
    padding: 1.8rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .info-card-home:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    }

.info-title-home {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.info-text-home {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
}

@media (max-width: 768px) {

    .info-card-home {
        padding: 1rem;
        text-align: center;
    }

    .info-title-home {
        font-size: 0.95rem;
    }

    .info-text-home {
        font-size: 0.85rem;
    }
}

/* =========================
   MOBILE TUNING
========================= */
@media (max-width: 576px) {
    .explore-hero-home {
        padding: 1.75rem 1.5rem;
    }

    .explore-title-home {
        font-size: 1.4rem;
    }
}

/* =========================
   PROFILE CARDS
========================= */

.profileCard {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    aspect-ratio: 3 / 4;
    border-radius: .75rem;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform .7s ease, box-shadow .7s ease, border .3s ease;
}

    .profileCard:hover {
        transform: translateY(-10px);
        box-shadow: 0 12px 30px rgba(0,0,0,.4);
        border: 2px solid var(--primary);
    }

@media (max-width: 576px) {
    .profileCard {
        margin-bottom: 5rem;
    }
}

.profileCard-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-indent: -9999px;
}

/* Sfumatura overlay — disattivata per scelta UX (12/02/2026) */
/*.profileOverlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15));
    pointer-events: none;
    z-index: 1;
    border-radius: 0.75rem;
}*/

/* testo sopra la sfumatura */
.profile-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    color: #fff;
    z-index: 2;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.25));
    backdrop-filter: blur(3px);
    border-top: 1px solid rgba(255,255,255,0.15);
    transition: none; /* niente transizioni sui testi o bottone */
}

.profile-footer-inner {
    padding: 1rem;
    color: #fff;
}

.profile-footer h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.profile-location {
    font-size: .85rem;
    opacity: .8;
    margin-bottom: .5rem;
}

.profile-headline {
    font-size: .9rem;
    line-height: 1.3;
    margin-bottom: .5rem;
}

.profile-rating {
    font-size: .85rem;
    opacity: .9;
}

.profile-footer button {
    transition: none; /* se ci sono bottoni dentro */
}

.profile-link {
    display: block;
    text-decoration: none;
    color: #fff !important;
    transition: transform 0.7s;
}

    .profile-link:hover {
        transform: translateY(-10px);
        color: inherit !important;
    }

        .profile-link:hover .profile-card {
            box-shadow: 0 12px 30px rgba(0,0,0,.4);
        }

    /* forza ereditariet� colori (anti-blu definitivo) */
    .profile-link h3,
    .profile-link p,
    .profile-link span,
    .profile-link div {
        color: inherit !important;
    }

.btn-profile {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.4rem 0.8rem;
    background-color: var(--primary); /* stesso arancione degli altri button */
    color: #fff;
    border-radius: .5rem;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
}

    .btn-profile:hover {
        background-color: rgb(212,95,17,0.8);
        text-decoration: none;
        color: #fff !important;
    }

/* =========================
   PAGINAZIONE
========================= */
.pagination-custom {
    gap: 0.5rem;
}

    .pagination-custom .page-item {
        border-radius: .5rem;
    }

    .pagination-custom .page-link {
        background-color: transparent;
        border: 1px solid rgba(255,255,255,0.1);
        color: var(--primary);
        border-radius: .5rem;
        padding: 0.55rem 0.9rem;
        font-weight: 500;
        transition: all 0.25s ease;
    }

        .pagination-custom .page-link:hover {
            background-color: rgba(255,255,255,0.08);
            color: var(--primary);
            transform: translateY(-2px);
        }

    .pagination-custom .page-item.active .page-link {
        background-color: var(--primary);
        color: #fff;
        border-color: var(--primary);
        font-weight: 600;
        border-radius: 50%;
        width: 2.7rem;
        height: 2.7rem;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pagination-custom .page-item.disabled .page-link {
        opacity: 0.6;
        pointer-events: none;
        font-weight: bold !important;
    }

/* Versione compatta solo su mobile */
@media (max-width: 768px) {
    .pagination {
        font-size: 0.85rem;
    }

        .pagination .page-link {
            padding: 0.3rem 0.55rem;
        }

        .pagination .page-item {
            margin: 0 2px;
        }

    .pagination-custom .page-item.active .page-link {
        width: 2rem;
        height: 2rem;
    }
}

/* =========================
   CATEGORIES
========================= */
.category-card {
    aspect-ratio: 3 / 4;
    border-radius: .5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.category-spacer {
    flex-grow: 1;
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.category-card p {
    font-size: .875rem;
    color: #e5e5e5;
}

@media (max-width: 576px) {
    .myPadXCardMobile {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .text-center-mobile {
        text-align: center;
    }
}

.category-link {
    display: block;
    text-decoration: none;
    color: inherit !important; /* forza il colore del testo, anche in hover */
    transition: transform 0.7s;
}

    .category-link:hover {
        transform: translateY(-10px);
        color: inherit !important; /* forza ancora in hover */
    }

    /* Assicura che h3 e p ereditino il colore */
    .category-link h3,
    .category-link p {
        color: inherit !important;
    }

/* Background images — now managed via ImageUrl field in DB, rendered inline */

/* =========================
   PREMIUM
========================= */
.premium-section {
    background: #27201c;
    border-radius: .5rem !important;
}

.premium-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.033em;
}

@media (max-width: 576px) {
    .premium-title {
        font-size: 1.5rem;
    }

    .premium-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .premium-feature-title {
        font-size: 1rem;
    }

    .premium-feature-subtitle {
        font-size: .8rem;
    }
}

@media (max-width: 768px) {
    .premium-feature-title {
        font-size: 1.25rem;
    }

    .premium-feature-subtitle {
        font-size: .85rem;
    }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid #54453b;
    border-radius: .5rem;
    padding: 1rem;
}

.premium-section h3 {
    margin-top: .5rem;
}

@media (max-width: 768px) {

    /* Centra titolo e sottotitolo */
    .premium-title,
    .premium-subtitle {
        text-align: center;
        margin-top: 1.5rem;
    }

    /* Centra eventuali bottoni link */
    .premium-section .d-flex {
        justify-content: center !important;
    }

    /* Spazio verticale più equilibrato su mobile */
    .premium-section .btn,
    .premium-section a.text-primary {
        margin: 0.5rem auto;
    }

    .feature-card {
        text-align: center;
    }
}

/* =========================
   FOOTER
========================= */
.footer-link {
    color: #9ca3af;
    font-size: .875rem;
    text-decoration: none;
}

    .footer-link:hover {
        color: #fff;
    }

/* =========================
   FILIPPO
========================= */
.rating-stars {
    display: flex;
    gap: 6px;
}

    .rating-stars .star {
        border: 0;
        background: transparent;
        padding: 0;
        line-height: 1;
        font-size: 28px;
        color: rgba(255,255,255,0.25);
        cursor: pointer;
    }

        .rating-stars .star.on {
            color: rgba(255,255,255,1);
        }

        .rating-stars .star:focus {
            outline: none;
        }

/* ============================
   CSS DI DETAILS DI PROFILES
============================ */

/* =========================
   HERO / PROFILE
========================= */
.hero-profile-details {
    min-height: 480px;
    position: relative;
    border-radius: .5rem;
    background-size: cover;
    background-position: center;
}

.hero-overlay-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    border-radius: .5rem;
}

.hero-name-details {
    font-family: "Playfair Display", serif;
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
}

.badge-premium-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: .5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Badge "Identità Verificata" — posizionato in alto a destra nell'hero */
.badge-verified {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: .35rem;
    background: var(--primary);
    color: #fff;
    padding: .35rem .75rem;
    border-radius: 2rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.badge-verified .material-symbols-outlined {
    font-size: 16px;
}

/* Badge "Verificata" inline nelle card profilo */
.badge-verified-inline {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    background: var(--primary);
    color: #fff;
    padding: .1rem .4rem;
    border-radius: 1rem;
    font-size: .6em;
    font-weight: 600;
    vertical-align: middle;
    line-height: 1;
}
.badge-verified-inline .material-symbols-outlined {
    font-size: 11px;
}

/* Badge "Foto Naturale" overlay nella gallery */
.badge-natural-photo {
    position: absolute;
    top: .4rem;
    left: .4rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .25rem;
    background: var(--primary);
    color: #fff;
    padding: .2rem .5rem;
    border-radius: 1rem;
    font-size: .65rem;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.badge-natural-photo .material-symbols-outlined {
    font-size: 12px;
}

.gallery-wrapper {
    position: relative;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    opacity: 0.6;
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.gallery-wrapper:hover .gallery-nav {
    opacity: 1;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.55);
    transform: translateY(-50%) scale(1.05);
}

.gallery-viewport {
    overflow: hidden;
    width: 100%;
}

.gallery-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.35s ease;
}

.gallery-item {
    flex: 0 0 calc(25% - 0.75rem); /* 4 immagini */
}

.gallery-img {
    position: relative;
    width: 100%;
    padding-top: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

    .gallery-img:hover {
        transform: scale(1.05);
    }

/* Posizione */
.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

/* =========================
   REVISIONS / REVIEWS
========================= */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-item {
    padding: 1rem;
    border-radius: .5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    transition: transform .2s ease, box-shadow .2s ease;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 0.5rem;
}

.review-author {
    font-weight: 600;
    font-size: 0.95rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--muted);
}

.review-rating {
    font-size: .85rem;
    letter-spacing: .1em;
    color: #f5c16c;
}

.review-stars {
    display: flex;
    gap: 2px;
    color: #ffd700;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .7rem;
    color: rgba(255,255,255,0.5);
}

.review-body {
    font-size: .85rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
}

/* Review summary (average rating) */
.review-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: .5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
}

.review-summary-number {
    font-size: 2rem;
    font-weight: 700;
    color: #f5c16c;
}

.review-summary-max {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
}

.review-summary-stars {
    font-size: 1.25rem;
    letter-spacing: .15em;
    color: #f5c16c;
}

.review-summary-count {
    font-size: .85rem;
    color: rgba(255,255,255,0.5);
}

/* Review form */
.review-form-wrap {
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
}

.review-form-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Star rating picker */
.star-rating-picker {
    display: flex;
    gap: 4px;
}

.star-pick {
    font-size: 1.75rem;
    cursor: pointer;
    color: #f5c16c;
    transition: transform .15s ease;
    user-select: none;
    line-height: 1;
}

    .star-pick.star-hover {
        transform: scale(1.15);
    }

/* Already reviewed / login prompt */
.review-already-done,
.review-login-prompt {
    font-size: .9rem;
    color: rgba(255,255,255,0.6);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
}

/* Report button */
.btn-report {
    padding: .2rem .45rem;
    font-size: .75rem;
    line-height: 1;
    opacity: 0.35;
    transition: opacity .2s ease;
    border-color: rgba(255,255,255,.15);
    color: rgba(255,255,255,.6);
}

    .btn-report:hover {
        opacity: 1;
        color: #fff;
        background-color: var(--bs-danger);
        border-color: var(--bs-danger);
    }

/* Report overlay su immagini gallery */
.btn-report-overlay {
    position: absolute;
    bottom: 6px;
    right: 6px;
    z-index: 5;
    background: rgba(0,0,0,.5);
    border-radius: .35rem;
    border: none;
    padding: .25rem .35rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity .25s ease;
}

.btn-report-img {
    padding: .2rem .45rem;
    font-size: .75rem;
    line-height: 1;
    opacity: 0.35;
    transition: opacity .2s ease;
    border-color: rgba(255,255,255,.15);
    color: #fff;
}

.gallery-img:hover .btn-report-overlay,
.carousel-item:hover .btn-report-overlay,
.btn-report-overlay:focus {
    opacity: .7;
}

.btn-report-overlay:hover {
    opacity: 1 !important;
    color: var(--bs-danger);
}

.pfp-category-badge {
    padding: .35rem .75rem;
    font-size: .75rem;
    border-radius: .5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    transition: all .25s ease;
}

    .pfp-category-badge:hover {
        background: rgba(212,95,17,0.15);
        border-color: rgba(212,95,17,0.5);
        color: #fff;
    }

/* =========================
   TARIFFE
========================= */

.pfp-pricing-table {
    width: 100%;
    border-collapse: collapse;
}

    .pfp-pricing-table th {
        font-size: .75rem;
        text-transform: uppercase;
        letter-spacing: .08em;
        font-weight: 600;
        color: rgba(255,255,255,0.6);
        padding: .75rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .pfp-pricing-table td {
        padding: .85rem .75rem;
        font-size: .85rem;
        color: rgba(255,255,255,0.85);
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    .pfp-pricing-table tr:last-child td {
        border-bottom: none;
    }

/* =========================
   TAB CONTENT VISIBILITY
========================= */

.profile-detail-tab-content {
    display: none;
}

    .profile-detail-tab-content.active {
        display: block;
    }

/* =========================
   CONTACTS
========================= */

.contacts-toggle {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: .25rem;
    display: flex;
    align-items: center;
    transition: transform .25s ease, opacity .2s ease;
    opacity: .75;
}

    .contacts-toggle:hover {
        opacity: 1;
    }

    .contacts-toggle span {
        font-size: 1.5rem;
        transition: transform .25s ease;
    }

    /* Stato aperto */
    .contacts-toggle.is-open span {
        transform: rotate(180deg);
    }

/* Contatti nascosti */
.pfp-contact-hidden {
    display: none !important;
}

/* Quando aperto */
.pfp-contacts.is-expanded .pfp-contact-hidden {
    display: flex !important;
}

.pfp-contacts {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.pfp-contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: .5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pfp-contact-label {
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
}

/* ===========================
   BUTTONS VARIE PIATTAFORME
=========================== */

.pfp-contact-link-btn {
    padding: 7px 10px;
    border: none;
    border-radius: .5rem;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .pfp-contact-link-btn i {
        line-height: 1;
        font-size: 1rem;
    }

/* WhatsApp */
.pfp-contact-btn-whatsapp {
    background-color: #25D366;
}

    .pfp-contact-btn-whatsapp:hover {
        background-color: #1ebe5d;
    }

/* Telegram */
.pfp-contact-btn-telegram {
    background-color: #0088cc;
}

    .pfp-contact-btn-telegram:hover {
        background-color: #007ab8;
    }

/* Telefono */
.pfp-contact-btn-phone {
    background-color: #198754;
}

    .pfp-contact-btn-phone:hover {
        background-color: #157347;
    }

/* Email */
.pfp-contact-btn-email {
    background-color: #6c757d;
}

    .pfp-contact-btn-email:hover {
        background-color: #5c636a;
    }

/* Website */
.pfp-contact-btn-website {
    background-color: #0d6efd;
}

    .pfp-contact-btn-website:hover {
        background-color: #0b5ed7;
    }

.pfp-contact-meta {
    font-size: .7rem;
    color: rgba(255,255,255,0.5);
}

.pfp-contact-actions {
    display: flex;
    gap: .5rem;
}

.pfp-contact-type {
    font-weight: 600;
}

.pfp-contact-value {
    font-size: 0.875rem;
}

.profile-content-box {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.2));
    border-radius: .5rem;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.06);
}

/* =========================
   PROFILE TABS
========================= */
.profile-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

    .profile-tabs a {
        padding: 0.5rem 1rem;
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        border-radius: .5rem .5rem 0 0;
        transition: background 0.2s ease;
    }

        .profile-tabs a.active {
            background: var(--primary);
        }

    .profile-tabs .tab-link {
        cursor: pointer;
    }

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

    .tab-content.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

.profile-section {
    padding: 1.75rem;
    border-radius: .5rem;
    background: #27201c;
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 1.5rem;
}

.profile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.profile-section-title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
}

.profile-description-flow {
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Immagine flottante */
.profile-description-img {
    float: left;
    width: 180px;
    max-width: 40%;
    margin: 0.25rem 1.25rem 1rem 0;
    border-radius: 0.75rem;
    object-fit: cover;
}

/* Evita collassi del layout */
.profile-description-flow::after {
    content: "";
    display: block;
    clear: both;
}

/* ============================================================
   MEDIA QUERY RESPONSIVE — PROFILE DETAILS da 992px in giù
============================================================ */
@media (max-width: 992px) {

    /* HERO */
    .hero-profile-details {
        min-height: 280px;
        border-radius: 0.5rem;
        background-position: center top;
    }

    .hero-overlay-details {
        padding: 1rem 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        border-radius: 0.5rem;
    }

    .hero-name-details {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .badge-premium-details {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    .badge-verified {
        top: .5rem;
        right: .5rem;
        font-size: .7rem;
        padding: .25rem .55rem;
    }

    /* GALLERY */
    .gallery-track {
        gap: 0.5rem;
    }

    .gallery-item {
        flex: 0 0 calc(50% - 0.25rem); /* 2 immagini per riga */
    }

    .gallery-img {
        padding-top: 100%;
        border-radius: 0.5rem;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    /* PROFILE CONTENT BOX & SECTIONS */
    .profile-content-box {
        padding: 1rem;
    }

    .profile-section {
        padding: 1rem;
    }

    /* TABS */
    .profile-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

        .profile-tabs a {
            flex: 1 1 calc(33% - 0.33rem);
            text-align: center;
            padding: 0.5rem 0.25rem;
            font-size: 0.85rem;
        }

    /* DESCRIPTION + CONTACTS — full width stacked */
    .profile-section.col-7,
    .profile-section.col-5 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .profile-description-img {
        float: none;
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0 0 1rem 0;
        border-radius: 0.5rem;
    }

    .profile-description-flow {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* CONTACTS */
    .pfp-contact-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .pfp-contact-actions {
        width: 100%;
        justify-content: flex-start;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .btn-primary-custom {
        padding: 0.25rem 0.5rem; /* dimensioni ridotte tipo btn-sm */
        font-size: 0.875rem;
    }

    .btn-secondary-custom {
        padding: 0.25rem 0.5rem; /* dimensioni ridotte tipo btn-sm */
        font-size: 0.875rem;
    }

    /* RECENSIONI */
    .review-summary-mobile {
        display: block;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .review-meta {
        flex-wrap: wrap;
        gap: 0.25rem;
        font-size: 0.7rem;
    }

    .review-body {
        font-size: 0.85rem;
    }

    /* DETTAGLI CARATTERISTICHE FISICHE */
    .pfp-stat-card {
        padding: 0.25rem 0.5rem !important; /* dimensioni ridotte tipo btn-sm */
    }

    /*.pfp-stat-card-weight-mobile {
        margin: auto;
    }*/

    /* CATEGORIE / SERVIZI / LINGUE */
    .profile-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .pfp-category-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    /* TABELLE PREZZI */
    .pfp-pricing-table th,
    .pfp-pricing-table td {
        font-size: 0.75rem;
        padding: 0.5rem 0.5rem;
    }

    .backToProfilesWrapper {
        justify-content: space-around !important;
    }

    .backToProfilesBtn {
        padding: 0.25rem 0.5rem !important; /* dimensioni ridotte tipo btn-sm */
        font-size: 0.875rem !important;
    }

    /* MODAL GALLERY — immagini più piccole */
    .gallery-modal .carousel-item img,
    .gallery-fullscreen-img {
        max-width: 100%;
        max-height: 70vh;
        border-radius: 0.5rem;
    }
}

/* ============================================================
   MEDIA QUERY RESPONSIVE — PROFILE DETAILS da 576px in giù
============================================================ */
@media (max-width: 576px) {
    .review-author {
        font-size: .8rem;
    }

    .review-body {
        font-size: .8rem;
    }

    .review-response {
        font-size: .8rem;
    }
}

/* =========================
   MODAL GALLERY
========================= */
.gallery-modal .carousel-item img {
    border-radius: 0.75rem;
}

/* =========================
   GALLERY FULLSCREEN MODAL
========================= */

.gallery-close-btn {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 9999;
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
}

    .gallery-close-btn:hover {
        background: rgba(0,0,0,0.85);
    }

.gallery-fullscreen-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* =========================
   BREADCRUMBS (FRONTEND)
========================= */
.fe-breadcrumbs {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .85rem;
}

.fe-breadcrumb-link {
    color: var(--muted);
    text-decoration: none;
    transition: color .15s;
}

    .fe-breadcrumb-link:hover {
        color: var(--primary);
    }

.fe-breadcrumb-sep {
    color: rgba(255,255,255,.25);
}

.fe-breadcrumb-active {
    color: var(--primary);
    font-weight: 500;
}

/* =========================
   NAVBAR FRONTEND — SEARCH
========================= */
.fe-search-input {
    background: var(--bg-card);
    color: #fff;
    border: none;
    border-radius: .5rem;
    padding: .5rem .75rem .5rem 2.2rem;
    font-size: .85rem;
    width: 100%;
    transition: background .2s, box-shadow .2s;
}

    .fe-search-input:focus {
        background: var(--bg-card-hover);
        outline: none;
        box-shadow: 0 0 0 2px rgba(212,95,17,.3);
        color: #fff;
    }

    .fe-search-input::placeholder {
        color: var(--muted);
    }

.fe-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: .5rem;
    max-height: 340px;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .15s, transform .15s;
}

    .fe-search-results.show {
        opacity: 1;
        transform: translateY(0);
    }

.fe-search-result {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .85rem;
    color: #fff;
    text-decoration: none;
    transition: background .12s;
    font-size: .85rem;
}

    .fe-search-result:hover,
    .fe-search-result.active {
        background: var(--bg-card-hover);
        color: #fff;
    }

.fe-search-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .75rem;
    flex-shrink: 0;
}

.fe-search-empty {
    padding: .85rem;
    color: var(--muted);
    font-size: .85rem;
    text-align: center;
}

/* =========================
   NAVBAR FRONTEND — AVATAR
========================= */
.fe-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    border: none;
    cursor: pointer;
    transition: opacity .15s;
}

    .fe-avatar:hover {
        opacity: .85;
    }

/* Hide BS caret on avatar dropdowns */
.dropdown-toggle-no-caret::after {
    display: none !important;
}

/* =========================
   NAVBAR FRONTEND — OFFCANVAS
========================= */
.fe-offcanvas {
    background: var(--bg-card) !important;
    width: 16rem !important;
}

    .fe-offcanvas .nav-link-custom {
        padding: .5rem 0;
        font-size: .95rem;
    }

/* =========================
   PROFILE STAT CARDS
========================= */
.pfp-stat-card {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: .5rem;
    padding: .65rem 1rem;
}

.pfp-stat-icon {
    font-size: 1.25rem;
    color: var(--primary);
    opacity: .8;
}

.pfp-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.pfp-stat-label {
    font-size: .85rem;
    color: var(--muted);
}

/* =========================
   ERROR PAGES (400–503)
========================= */
.error-page {
    min-height: 60vh;
}

.error-code-wrapper {
    position: relative;
    display: inline-block;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), #ff8a3d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: error-float 3s ease-in-out infinite;
    display: inline-block;
}

.error-code-wrapper::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
    animation: error-glow 3s ease-in-out infinite;
}

.error-icon {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.8;
}

.error-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

.error-description {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 480px;
}

.error-request-id {
    color: var(--muted);
    opacity: 0.5;
}

    .error-request-id code {
        color: var(--primary);
        opacity: 0.7;
        font-size: 0.75rem;
    }

@keyframes error-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes error-glow {
    0%, 100% {
        opacity: 0.3;
        width: 100px;
    }

    50% {
        opacity: 0.7;
        width: 140px;
    }
}

@media (max-width: 576px) {
    .error-code {
        font-size: 5rem;
    }

    .error-icon {
        font-size: 2.5rem;
    }

    .error-title {
        font-size: 1.35rem;
    }

    .error-description {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
}

/* =========================
   BACK TO TOP BUTTON
========================= */

#feBackToTop {
    position: fixed;
    bottom: 24px;
    right: 24px; /* sempre uguale, nessuna media query */
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1020; /* sotto navbar fixed ma sopra contenuto */
}

    #feBackToTop.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #feBackToTop:hover {
        background-color: #b94f0e;
    }
