@media (max-width: 799px) { 


/* ======= TUTTE LE PAGINE ======= */

/* Fa in modo che i campi di input non facciano zoom automatico */
input, textarea, select { font-size: 16px !important; }

/* Disabilita highlight tap globale */
a, button, input, textarea, * { -webkit-tap-highlight-color: rgba(0,0,0,0); }

/* Titoli delle pagine */
#buddypress h1.entry-title.settings-title { margin: 15px 0 0 0 !important; }


/* ======= HEADER ======= */

/* Allinea bene i margini laterali del blocco dell'header */
.site-header { padding: 0 5px !important; }

/* Ingrandisce simbolo del menù */
.bb-left-panel-icon-wrap .bb-icon-bars { font-size: 47px; }

/* Centra il logo */
.site-title { margin: 0 auto !important; }

/* Nasconde icona messaggi */
#header-messages-dropdown-elem { display: none !important; }

/* Nasconde separatore tra Cerca e Notifiche */
.search-separator { display: none !important; }

/* Fixa spazio tra icona notifiche e fine schermo */
.bb-mobile-header .header-aside { padding-right: 30px !important; }

/* Fixa visualizzazione del Cerca */
.header-search-wrap { padding-right: 1px; box-sizing: border-box; }
.header-search-wrap .search-form { margin: 0; }
.header-search-wrap .search-form label { display: block; }
.header-search-wrap .search-field-top { display: block; width: 100%; max-width: 100%; box-sizing: border-box; }
.header-search-wrap .container { display: flex; align-items: center; gap: 8px; }
.header-search-wrap .search-form { flex: 1; padding-left: 10px; }
.header-search-wrap .close-search { position: static !important; display: flex; align-items: center; justify-content: center; }


/* ======= MENU LATERALE ======= */

/* Altezza piena meno altezza bottom bar (70px) e un po' di margine */
.bb-mobile-panel-inner { min-height: calc(100vh - 120px) !important; }

/* Voci menù */
.bb-mobile-panel-inner .side-panel-menu { margin-top: 20px !important; }
.bb-template-v2 .bb-mobile-panel-inner .side-panel-menu .menu-item>a { font-size: 16px; width: calc( 100% - 15px ) !important; }
.bb-template-v2 .side-panel-menu>.current-menu-item>a:hover { background-color: #227aee !important; color: #fff !important; }

/* Riduce lo spazio tra una voce e l'altra (Mobile) */
.bb-template-v2 .side-panel-menu li { min-height: 45px; }

/* Rende "Crea gruppo", "Crea gruppo Premium" e "Le mie discussioni" visivamente un sottogruppo (Mobile) */
#menu-item-285, #menu-item-286, #menu-item-288 { margin: -5px 0 0 20px;  }


/* ======= FEED HOME ======= */

.content-area { padding-top: 20px !important; }

/* POST */

/* Spazio tra i post */
.activity-list.bp-list .activity-item { margin-top: -13px !important; }

/* Full width, senza bordi e arrotondamenti */
#buddypress .activity-list.bp-list .activity-item { padding: 15px 0 !important; margin-left: -21px; margin-right: -21px; border: none !important; border-radius: 0 !important; }
.bp-activity-head, .activity-title { padding: 0 15px; }
.activity-inner p { padding-left: 15px !important; padding-right: 15px !important; }

/* Immagine a schermo pieno, senza arrotondamenti */
.bb-activity-media-wrap { width: 100% !important; max-width: 100% !important; margin: 0 !important; }
.bb-activity-media-elem { padding: 0 !important; }
.bb-template-v2 .bb-activity-media-elem .entry-img { border-radius: 0 !important; }
.bb-media-length-1 .bb-activity-media-elem.media-activity { width: 100% !important; aspect-ratio: 3 / 4; overflow: hidden; }
.bb-media-length-1 .bb-activity-media-elem .entry-img img { width: 100% !important; height: auto; object-fit: cover; object-position: center top; }
.bb-media-length-1 .bb-activity-media-elem img.photo { width: 100% !important; height: auto; object-fit: cover; object-position: center top; }

/* Immagine senza apertura modale e senza overlay scuro al passaggio o al tap */
.bb-open-media-theatre { pointer-events: none; }
.bb-open-media-theatre.entry-img::before { background: none !important; opacity: 0 !important; }
.bb-open-media-theatre.entry-img:hover::before { background: none !important; opacity: 0 !important; }

/* Video a tutto schermo */
.bb-activity-video-wrap .bb-activity-video-elem { padding: 0; }
.bb-template-v2 .bb-activity-video-elem .video-js, .bb-activity-video-elem .video-js video { border-radius: 0 !important; }

/* Toglie separatore tra contenuto e icone delle azioni */
.activity-list .activity-item>.bp-generic-meta.activity-meta { border: none; padding: 0; margin-top: -15px !important; }

/* Scritte dei like e dei commenti quando presenti */
.has-likes, .has-comments { padding: 0 15px 10px 15px; }

/* Senza descrizioni sulle icone delle azioni */
#buddypress .activity-list .activity-item > .bp-generic-meta.action .button > .like-count { display: none; }
#buddypress .activity-list .activity-item > .bp-generic-meta.action .button > .comment-count { display: none; }
#buddypress .activity-list .activity-item > .bp-generic-meta.action .button > .share-btn-label { display: none; }

/* Form dei commenti */
form.ac-form .bp-ac-form-container { padding: 0 15px; }
.ac-reply-avatar { display: none; }
.ac-reply-content { margin-left: 0 !important; }
form.ac-form { margin: 0 !important; }
.activity-list .activity-item.has-comments>.bp-generic-meta.activity-meta { border: none !important; }

/* Sposta i simboli degli allegati nei commenti per visualizzare bene Gif e Emoticons */
.ac-form.not-initialized .ac-reply-content .ac-textarea .ac-reply-toolbar { right: 0 !important; }
.ac-form.events-initiated .ac-reply-content .ac-textarea .ac-reply-toolbar { left: 120px !important; }

/* Modale dei commenti */
#buddypress.bb-activity-model-wrapper .activity-modal { border-top: 1px solid #d6d9dd; border-left: 1px solid #d6d9dd; border-right: 1px solid #d6d9dd;  border-bottom: none !important; border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; box-shadow: 0 -6px 24px 0 rgba(18,43,70,.08) !important; }
.bb-activity-model-wrapper.bb-internal-model>.activity-modal { position: fixed; bottom: 0; width: 100%; max-width: 100%; height: 70%; }
.activity-modal .activity-list .bp-activity-head, .activity-modal .activity-list .activity-title, .activity-modal .activity-list .activity-content, .activity-modal .activity-list .bp-generic-meta { display: none !important; }

/* Popup delle condivisioni */
#buddyboss-share-dropdown { left: auto !important; right: 15px !important; }
.bb-share-modal-search .share-group-search-input { width: calc( 100% - 50px ) !important; }
.bb-share-modal-search .share-message-search-input { width: calc( 100% - 50px ) !important; }
.buddyboss-share-message-modal .share-message-textarea-wrapper .share-message-textarea { width: calc( 100% - 20px ) !important; }

/* Popup dei sondaggi */
.bbm-model-wrap input { width: calc( 100% - 25px ) !important; }
#activity-form-submit-wrapper .bb-poll-form .bb-poll_duration { width: calc( 100% - 50px ) !important; }


/* ======= CAROSELLO IMMAGINI ======= */

/* Nasconde le azioni sull'immagine SOLO se il carosello è attivo */
.bb-activity-media-wrap .bb-media-carousel .bb-media-slide .media-action-wrap { display: none; }

/* Carosello full width, 3:4, background nero, centratura verticale */
.bb-activity-media-wrap .bb-media-carousel { width: 100%; }
.bb-activity-media-wrap .bb-media-carousel-window { width: 100%; overflow: hidden; aspect-ratio: 3 / 4; background: #000; display: flex; align-items: center; }

/* Track */
.bb-activity-media-wrap .bb-media-carousel-track { display: flex; width: 100%; transition: transform 0.25s ease; will-change: transform; }

/* Slide */
.bb-activity-media-wrap .bb-media-slide { min-width: 100%; width: 100%; box-sizing: border-box; display: flex; align-items: center; }

/* Link e immagine sempre full width */
.bb-activity-media-wrap .bb-media-slide a.entry-img, .bb-activity-media-wrap .bb-media-slide img.photo { display: block; width: 100%; }

/* Immagine: se più alta del 3:4 → taglio SOLO sotto - se più bassa → bande nere sopra/sotto */
.bb-activity-media-wrap .bb-media-slide img.photo { height: auto; object-fit: cover; object-position: center top; }

/* Dots non cliccabili */
.bb-activity-media-wrap .bb-media-carousel-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 0; }
.bb-activity-media-wrap .bb-media-carousel-dot { appearance: none; -webkit-appearance: none; border: 0 !important; padding: 0 !important; margin: 0 !important; min-width: 0 !important; width: 6px !important; height: 6px !important; border-radius: 999px !important; background: rgba(0, 0, 0, 0.25) !important; box-shadow: none !important; line-height: 0 !important; font-size: 0 !important; }

/* Dot attivo */
.bb-activity-media-wrap .bb-media-carousel-dot.is-active { background: rgba(0, 0, 0, 0.75) !important; }


/* ======= PAGINA PROFILO E GRUPPO ======= */

/* Copertina e profilo */
#item-header { margin: 0 -20px !important; }
.bb-template-v2 #cover-image-container { border: none; border-radius: 0 !important; }

/* Spazio alla fine della testata del profilo (sotto a follower e seguiti) */
body #buddypress #item-header-cover-image { padding-bottom: 10px !important; }

/* Sidebar profilo utente in cima rispetto al content */
.bp-user #secondary { order: -1; }

/* Form per pubblicazione post */
#whats-new-form:not(.focus-in).activity-form .whats-new-form-header { height: 77px !important; }
.home-page .activity-update-form #whats-new { padding: 0 15px 10px 0 !important; }
#whats-new-form:not(.focus-in) { border: none !important; border-radius: 0 !important; width: 100vw !important; margin-left: -20px !important; }
#whats-new-form:not(.focus-in) #whats-new-toolbar { border-color: #f7f7f7 !important; }
#whats-new-toolbar { background-color: #fff !important; }
.whats-new-form-footer { background-color: #fff !important; }
/* Rimuove l'hover che scuriva la parte del textbox */
html body form#whats-new-form.activity-form .whats-new-form-header,
html body form#whats-new-form.activity-form:hover .whats-new-form-header,
html body form#whats-new-form.activity-form.focus-in--empty .whats-new-form-header,
html body form#whats-new-form.activity-form.focus-in--empty:hover .whats-new-form-header { background-color: #fff !important; background-image: none !important; box-shadow: none !important; filter: none !important; }

/* Fa in modo che la tendina del post programmato non vada sotto alla tendina del post con scadenza */
.bb-schedule-post_dropdown_section .bb-schedule-post_dropdown_list.is_open { z-index: 7; }

/* Modale badge gamification (toglie il margin esterno e il paddin interno) */
.bb-gm-single-profile--modal { max-width: calc(100vw - 30px - 48px) !important; }
.bb-gm-single-profile--modal_open { left: 15px !important; }
.bb-gm-single-profile--modal-header { margin-bottom: 0 !important; }
.bb-gm-single-profile--modal-footer { display: none !important; }

/* Campi profilo: Allinea centralmente gli elementi */
.campi-profilo-sotto-follower .glsr-summary { justify-content: center !important; text-align: center !important; flex-wrap: nowrap !important; max-width: none !important; }
.campi-profilo-sotto-follower .glsr-summary-rating,
.campi-profilo-sotto-follower .glsr-summary-stars,
.campi-profilo-sotto-follower .glsr-summary-text { display: inline-flex !important; align-items: center !important; justify-content: center !important; white-space: nowrap !important; }
.glsr-summary-text { flex: 0 0 auto !important; }

/* Profili: Trasforma in bottoni le voci del sottomenù "Timeline" "Profilo" ecc. */
nav#object-nav { margin: 0 0 10px 0 !important; } /* Dovrebbe andare anche per i gruppi */
#object-nav ul { display: flex; justify-content: center; flex-wrap: wrap; } /* Dovrebbe andare anche per i gruppi */
li.bp-personal-tab { padding: 0 10px 10px 0 !important; }
li.bp-personal-tab a { padding: 0 15px !important; border-radius: 6px; background-color: #e7e7e7; margin: 0; }
li.bp-personal-tab a:hover { background-color: #227aee !important; color: #fff !important; }
li.bp-personal-tab.current.selected a { background-color: #227aee !important; color: #fff !important; }
li.bp-personal-tab.current.selected a div.bb-single-nav-item-point { border-bottom: none !important; }

/* Profili: Sottomenu di MemberPress in versione menù a tendina */
.bp-navs ul { display: none; }
.bp-navs .bp-navs__dropdown { display: block; }
.buddypress-wrap select.bp-navs__dropdown { width: 100%; }

/* Profili: Fix errore visualizzazione header quando sottomenu di MemberPress è Abbonamenti o Pagamenti */
.site-header { display: block !important; }

/* Gruppi: Trasforma in bottoni le voci del sottomenù "Membri" "Bacheca" ecc. */
li.bp-groups-tab { padding: 0 10px 10px 0 !important; }
li.bp-groups-tab a { padding: 0 15px !important; border-radius: 6px; background-color: #e7e7e7; margin: 0; }
li.bp-groups-tab a:hover { background-color: #227aee !important; color: #fff !important; }
li.bp-groups-tab.current.selected a { background-color: #227aee !important; color: #fff !important; }
li.bp-groups-tab.current.selected a div.bb-single-nav-item-point { border-bottom: none !important; }


/* ======= PAGINA DIRECTORY GRUPPI ======= */

/* Fixa visualizzazione menu tendina filtro gruppi */
body .buddypress-wrap .subnav-filters .component-filters select, body .buddypress-wrap .subnav-filters .last select { max-width: calc( 100% - 35px ) !important; }


/* ======= PAGINA IMPOSTAZIONI PROFILO ======= */

.settings .content-area { padding-left: 20px !important; padding-right: 20px !important; }

/* Nasconde bottone "Vedi profilo" in alto a destra */
#buddypress a.button.outline { display: none; }


/* ======= FORM CF7 ======= */

.wpcf7-form-control-wrap input, .wpcf7-form-control-wrap textarea { width: calc( 100% - 25px ) !important; }
.wpcf7-form-control-wrap select { width: calc( 100% - 55px ) !important; }


/* ======= BOTTOM BAR ======= */

/* STRUTTURA */

.tz-mobile-bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; height: 70px; background: #fff; border-top: 1px solid #e4e4e4; display: flex; align-items: center; justify-content: space-around; z-index: 9998; }

/* Crea lo spazio in basso per la bottom bar */
.site-content { padding-bottom: 70px !important; }

/* Icone menu */
.tz-bottom-item { flex: 1; text-align: center; display: flex; justify-content: center; align-items: center; }
.tz-bottom-icon i { font-size: 30px; color: #333; }
/* Icone menu - attive */
.tz-mobile-bottom-bar .tz-bottom-item.is-active .tz-bottom-icon i { color: #227aee !important; }

/* Badge con numero messaggi non letti */
.tz-mobile-bottom-bar .tz-bottom-icon { position: relative; }
.tz-mobile-bottom-bar .tz-bottom-icon .tz-badge { position: absolute; top: -5px; right: -6px; width: 18px; height: 18px; line-height: 18px; background: #227aee; color: #fff; font-size: 10px; font-weight: 700; text-align: center; border-radius: 50%; box-shadow: 0 0 0 2px #fff; padding: 0; }

/* Avatar utente */
.tz-avatar-wrapper { display: flex; justify-content: center; align-items: center; margin-bottom: 3px; }
.tz-avatar-icon { border-radius: 50%; width: 26px !important; height: 26px !important; object-fit: cover; padding: 2px; }
/* Avatar utente - attivo */
.tz-mobile-bottom-bar .tz-bottom-item.is-active .tz-avatar-wrapper img.tz-avatar-icon { border-color: #227aee !important; box-shadow: 0 0 0 2px #227aee !important; }


/* ======= FOOTER ======= */

/* Nasconde Privacy e Cookie Policy nel footer */
.footer-bottom { display: none; }


}



/* ======= VERSIONE DESKTOP ======= */

/* Bottom Bar nascosta */
@media (min-width: 800px) { .tz-mobile-bottom-bar { display: none; } }
