@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
	padding: 0;
    /*font-family: calibri, sans-serif;*/
    /*font-family: monospace, sans-serif;*/
    font-family: 'Poppins', Calibri, sans-serif;
    font-size: 0.875rem;
    line-height: normal;
    font-weight: 400;
	color: #333;
	background-color: #fff;
	word-break: break-word;
    
	/*
    background-image: url("../img/sfondo-rdl.png");
	background-repeat: repeat;
    */

	overflow-y: scroll;
	overflow-x: hidden;
	-ms-overflow-style: none;
	scrollbar-width: none;

}

::-webkit-scrollbar {
  display: none;
}

/*###################### linee di separazione*/

.linea-1px {
    width: 100%;
    height: 1px;
    background-color: #ddd;
    margin: 10px 0;
}

.linea-5px {
    width: 100%;
    height: 1px;
    background-color: #ddd;
    margin: 5px 0;
}

/*###################### css per text*/

p {
    margin: 0;
}

a {
    color: #333;
    font-weight: 700;
	margin: 0;
}

h1 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

h2 {
    font-size: 1.2rem;
    font-weight: 700;
	margin: 0;
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
	margin: 0;
}

/**/

pre {
    margin: 0;
    padding: 0;
    white-space: pre-wrap;
    overflow-x: auto;
    word-break: break-word;
}

/*######################*/

.cont-namecategory {
    margin: 0 0 20px;
    text-align: center;
}

.namecategoryh2 {
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 2px solid #f9423a;
    text-transform: uppercase;
}

/*###################### contenitori principali*/

.first-container {
    position: relative;
    width: 100%;
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    /*background-color: #f2f2f1;*/
}

/**/

.second-container {
    width: 100%;
    max-width: 1170px;/*1170*/
    min-height: 100vh;
    margin: 0 auto;
    padding: 15px;
    background-color: #f2f2f1;
    box-shadow: 6px 0 8px -2px rgba(0, 0, 0, 0.18), -6px 0 8px -2px rgba(0, 0, 0, 0.18);
    /*box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 8px;*/
}

/**/

main {
    flex: 1;
    width: 100%;
    padding-top: 65px;
}

footer {
    width: 100%;
    height: 50px;
    background-color: #333;
}

/*###################### navbar*/

.navbarfix {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 99;
    background-color: #fff;
    width: 100%;
    height: auto;
    margin: 0 auto;
    /*box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 4px 0px;*/
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 1px;
}

/**/

.first-bar {
    width: 100%;
    max-width: 1170px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 15px;
}

.first-bar .contact {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.first-bar .contact > div {
    margin-right: 10px;
    display: grid;
    /*border: 1px solid #ddd;*/
    border-radius: 5px;
    padding: 5px 10px;
}

.first-bar .contact .navbar-logo {
    display: block;
    width: auto;
    max-width: 160px;
    height: 35px;
    object-fit: contain;
}

/**/

.first-bar .account {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    /*margin-left: auto;*/
    flex: 1;
}

.first-bar .account > div {
    margin-left: 10px;
    display: grid;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px 10px;
}

/**/

.first-bar a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-weight: normal;
}

/*##########*/

.second-bar {
    width: 100%;
    max-width: 1170px;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 15px;
}

/**/

.second-bar .btn_registrati,
.second-bar .btn_accedi {
    max-width: 100%;
    height: 34px;
    background-color: #111;
    border-radius: 5px;
    padding: 5px 10px;
    display: grid;
    align-items: center;
    justify-content: center;
}

.second-bar .btn_registrati a,
.second-bar .btn_accedi a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.second-bar .btn_registrati a:hover,
.second-bar .btn_accedi a:hover {
    color: #fff;
    text-decoration: underline;
}

/**/

.second-bar .logo-left {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/**/

.second-bar .icon-right {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.second-bar .icon-right > div {
    margin-left: 10px;
    display: grid;
}

/**/

.image-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.image-btn img {
    display: block;
}

/*##########*/

.third-bar {
    width: 100%;
    max-width: 1170px;
    height: auto;
    padding: 0;
    margin: 0 auto;
    /*
    display: flex; 
    justify-content: center; 
    align-items: center;  
    */
}

/*
.third-bar > div {
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.third-bar > div:hover {
    border: 1px solid #eee;
}

.third-bar > div.categoria-attiva {
    border: 2px solid #f9423a;
}

.third-bar a {
    text-decoration: none;
    font-weight: 600;
}

.third-bar a:hover {
    text-decoration: none;
}
*/

/*##########*/

.quart-bar {
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 15px;
    background-color: aliceblue;
    /*
    max-width: 1170px;
    height: auto;
    border: 1px solid #eee;
    border-radius: 5px;
    margin: 0 auto 15px;
    padding: 10px;
    background-color: aliceblue;
    */
}

/*######################*/

.nav-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.nav-scroll::-webkit-scrollbar {
    display: none;
}

.nav-pill {
    flex: 0 0 auto;
    min-height: 39px;
    border: 1px solid #ddd;
    /*border: 2px solid transparent;*/
    border-radius: 5px;
    white-space: nowrap;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    background-color: #fff;
}

.nav-pill:hover {
    /*border-color: #eee;*/
    background-color: #f9f9f9;
}

.nav-pill a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    font-weight: 600;
    color: inherit;
}

.nav-pill.categoria-attiva,
.nav-pill.sottocategoria-attiva,
.nav-pill.adminbar-attiva {
    border: 1px dashed #f9423a;
    background-color: #d9fdd3;/*#eee*/
}

/* style per le foto */
.foto-pill {
  flex: 0 0 auto;
  width: 120px;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  display: block;
}

/*###################### infinite scroll*/

.no-more {
    width: 100%;
    max-width: 680px;
    height: auto;
	background-color: #fff;
    text-align: center;
    margin: 20px auto 0;
	padding: 10px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    display: none; /* Nascondi inizialmente */
}

/**/

.load-more {
    text-align: center;
    margin: 20px 0;
    display: none; /* Nascondi inizialmente */
}

.load-more button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.load-more button:hover {
    background-color: #0056b3;
}

/*###################### inizio css post infinite in index */

/* contenitore dove vengono inserite le card, si trova nelle pagine principali */
#posts-container {
    width: 100%;
    max-width: 602px;/*680*/
    height: 100%;
    margin: 0 auto;
    /*padding: 10px;*/
}

/* singola card prodotto */
.feed-card {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #ddd;/*e5e5e5*/
    border-radius: 8px;/*14*/
    margin-bottom: 8px;/*15*/
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ############################################################ */
/* HEADER CARD */
/* ############################################################ */

.feed-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px;
}

.feed-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f1f1f1;
    margin-right: 10px;
}

.feed-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/**/

.feed-header-text { 
    flex: 1; 
    min-width: 0; 
} 
 
.feed-header-text h3 { 
    margin: 0; 
    padding: 0; 
    font-size: 1rem; 
    line-height: 20px; 
    font-weight: 700; 
    color: #111111; 
} 
 
.feed-header-text > a { 
    text-decoration: none; 
    font-size: 1rem;
    line-height: 20px;
    font-weight: 700;
    color: #111111;
} 
 
.feed-header-text > a:hover { 
    text-decoration: underline; 
} 

/**/
 
.feed-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.feed-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    line-height: 15px;
    color: #000;
    background-color: #d9fdd3;
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: normal;
}

.feed-meta span img {
    display: block;
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.feed-meta > a {
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

/**/

.feed-menu {
    width: 50px;
    height: 55px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #ddd;
    cursor: pointer;
}

.feed-menu-dots {
    color: #555;
    font-size: 20px;
    font-weight: 700;
}

.share-button,
.login-required-button {
    width: 100%;
    height: 100%;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0;
    border: 0;
    background: transparent;
}

.share-button {
    cursor: pointer;
}

.login-required-button {
    opacity: 0.5;
    cursor: not-allowed;
}

.share-button img,
.login-required-button img {
    display: block;
}

/* ############################################################ */
/* TESTO PRODOTTO */
/* ############################################################ */

.feed-body {
    width: 100%;
    padding: 0 12px 12px 12px;
}

/**/

.feed-body p {
    padding: 0;
    color: #222222;
    white-space: pre-wrap;
}

.feed-price {
    display: inline-block;
    margin-top: 8px;
    font-size: 1rem;
    line-height: 22px;
    font-weight: 700;
    color: #111111;
}

/**/

.feed-residenza {
    display: flex;
    align-items: center;
    gap: 6px;
}

.feed-residenza img {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/**/

.vedi-altro-pubblica {
    cursor: pointer;
    color: blue;/*#5786e4*/
    text-decoration: none;
}

.vedi-altro-pubblica:active {
    text-decoration: underline;
}

/* ############################################################ */
/* BLOCCO FOTO FEED - UNA SOLA IMMAGINE */
/* ############################################################ */

.feed-photo-box {
    position: relative;
    width: 100%;
    background-color: pink; /* #f5f5f5 */
    border-top: 1px solid #eeeeee;
}

/* overlay sopra il carosello */
.feed-photo-box .cont-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    width: 100%;
    height: 100%;
    padding: 8px;

    pointer-events: none;
}

/* ############################################################ */
/* OVERLAY SINISTRA - CONTATORE FOTO */
/* ############################################################ */

.feed-photo-box .cont-icone-overlay-left {
    display: flex;
    flex-direction: column;
    gap: 15px;

    pointer-events: auto;
    z-index: 10;
}

.feed-photo-box .cont-icone-overlay-left > div {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 80px;
    height: 36px;

    /*background-color: #111111;*/
    background-color: rgba(0, 0, 0, 0.65);
    padding: 6px 10px;
    border-radius: 20px;

    cursor: default;
    overflow: hidden;
}

.feed-photo-box .cont-text-left {
    width: 100%;
    display: grid;
    justify-content: center;
    align-items: center;
}

.feed-photo-box .cont-text-left p {
    margin: 0;
    font-size: 0.85rem;
    color: #ffffff;
    text-align: center;
}

/* ############################################################ */
/* OVERLAY DESTRA - ICONE AZIONI */
/* ############################################################ */

.feed-photo-box .cont-icone-overlay-right {
    flex: 0 0 auto;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;

    max-height: 100%;

    pointer-events: none;
    z-index: 10;
}

.feed-photo-box .cont-icone-overlay-right > .feed-icon-link {
    flex: 0 0 auto;

    width: 50px;
    min-width: 50px;
    min-height: 55px;

    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;

    background-color: yellow;
    padding: 6px;
    border: 1px solid #eeeeee;
    border-radius: 10px;

    color: inherit;
    font: inherit;
    text-decoration: none;

    appearance: none;
    cursor: pointer;
    pointer-events: auto;
}

.feed-photo-box .cont-icone-overlay-right > .feed-icon-link img {
    display: block;
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    object-fit: contain;
    border: 0;
}

.feed-photo-box .cont-icone-overlay-right > .feed-icon-link span {
    display: block;
    margin: 0;
    color: #333333;
    font-size: 0.75rem;
    line-height: 1;
    text-align: center;
}

.feed-photo-box .feed-icon-link .icona-link {
    transform: rotate(-45deg);
}

/* css per copia link*/
.copy-notification-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(216, 195, 165, 0.65);
    z-index: 999999;
    pointer-events: none;
}

.copy-notification {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 16px;
    color: #fff;
    background-color: #222;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* contenitore esterno foto + overlay */
.feed-photo-box .cont-foto-post {
    width: 100%;
    min-height: 300px;
    max-height: 450px;

    display: grid;
    justify-content: center;
    align-items: center;

    overflow: hidden;
    cursor: pointer;
}

/* ############################################################ */
/* IMMAGINE SINGOLA NEL FEED */
/* ############################################################ */

.feed-photo-box .feed-single-image-link {
    width: 100%;
    /*min-height: 300px;*/

    display: flex;
    justify-content: center;
    align-items: center;

    text-decoration: none;
}

.feed-photo-box .feed-single-image {
    display: block;

    width: auto;
    max-width: 100%;

    height: auto;
    max-height: 450px;

    object-fit: contain;
    margin: 0 auto;
}

.feed-photo-box .feed-single-image-fallback {
    max-width: 160px;
    opacity: 0.6;
}

/* ############################################################ */
/* SE NON CI SONO FOTO */
/* ############################################################ */

.feed-photo-empty {
    width: 100%;
    min-height: 260px;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #eeeeee;
}

.feed-photo-empty img {
    display: block;
    max-width: 160px;
    height: auto;
    opacity: 0.6;
}

/* ############################################################ */
/* PULSANTI SOTTO FOTO */
/* ############################################################ */

.feed-actions {
    display: flex;
    width: 100%;
    gap: 8px;
    padding: 8px;
    border-top: 1px solid #eeeeee;
}

.feed-action-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 38px;

    text-decoration: none;
    text-align: center;

    background-color: #f5f5f5;
    color: #222222;

    font-size: 1rem;
    font-weight: 600;

    border-radius: 8px;
}

.feed-action-btn span {
    display: inline-block;
}

.feed-action-main {
    background-color: #111111;
    color: #ffffff;
}

.feed-action-btn:hover {
    background-color: #e9e9e9;
}

.feed-action-main:hover {
    background-color: #333333;
}

/*###################### fine css post infinite in index */