html,
body,
body.barrio-app-body {
    margin: 0;
    padding: 0;
    background: #ffffff !important;
    color: #111111;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body.barrio-app-body.admin-bar {
    margin-top: 0 !important;
}

body.barrio-app-body #page {
    background: #ffffff !important;
    min-height: 100vh;
}

body.barrio-app-body {
    background: #ffffff !important;
    color: #111111;
}

.barrio-app-shell {
    min-height: 100vh;
    padding: 20px 16px 100px;
    box-sizing: border-box;
    max-width: 760px;
    margin: 0 auto;
    background: #ffffff;
}

.barrio-app-header {
    padding: 4px 0 18px;
}

.barrio-app-logo {
    font-size: 32px;
    font-weight: 800;
    color: #111111;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.barrio-app-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.barrio-app-hero {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.barrio-app-hero h1 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.1;
    color: #111111;
    letter-spacing: -0.03em;
}

.barrio-app-hero p {
    margin: 0 0 18px;
    color: #5b5b62;
    line-height: 1.5;
    font-size: 18px;
}

.barrio-app-btn {
    display: inline-block;
    padding: 13px 18px;
    border-radius: 14px;
    background: #111111;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.15s ease, opacity 0.15s ease;
    border: 0;
}

.barrio-app-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.barrio-app-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.barrio-app-card {
    display: block;
    background: #ffffff;
    border-radius: 20px;
    padding: 20px 18px;
    text-decoration: none;
    color: #111111;
    min-height: 130px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.barrio-app-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.barrio-app-card-title {
    display: block;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #111111;
    line-height: 1.2;
}

.barrio-app-card-text {
    display: block;
    font-size: 15px;
    color: #66666d;
    line-height: 1.45;
}

.barrio-app-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}

.barrio-app-bottom-nav a {
    text-align: center;
    color: #66666d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 14px 6px calc(14px + env(safe-area-inset-bottom));
    transition: color 0.15s ease;
}

.barrio-app-bottom-nav a.active {
    color: #111111;
    font-weight: 800;
}

#barrio-install-app-btn {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 146px;
    z-index: 9997;
    width: auto;
    max-width: 420px;
    margin: 0 auto;
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.2px;
    text-transform: capitalize;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    text-align: center;
    display: block;
}

#barrio-install-app-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

#barrio-install-app-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

@media (max-width: 767px) {
    #barrio-install-app-btn {
        left: 12px;
        right: 12px;
        bottom: 146px;
        padding: 11px 16px;
        font-size: 15px;
        border-radius: 12px;
        max-width: none;
    }
}

@media (min-width: 768px) {
    #barrio-install-app-btn {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 420px;
        max-width: calc(100vw - 24px);
    }

    #barrio-install-app-btn:hover {
        transform: translateX(-50%) translateY(-1px);
    }

    #barrio-install-app-btn:active {
        transform: translateX(-50%) translateY(1px);
    }
}

@media (display-mode: standalone) {
    #barrio-install-app-btn {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .barrio-app-shell {
        padding: 16px 14px 100px;
    }

    .barrio-app-logo {
        font-size: 28px;
    }

    .barrio-app-hero h1 {
        font-size: 28px;
    }

    .barrio-app-hero p {
        font-size: 16px;
    }

    .barrio-app-cards {
        grid-template-columns: 1fr;
    }

    .barrio-app-card-title {
        font-size: 20px;
    }
}
.barrio-app-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.barrio-app-backlink {
    color: #111111;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.barrio-app-pagehead {
    margin-bottom: 18px;
}

.barrio-app-pagehead h1 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.1;
    color: #111111;
    letter-spacing: -0.03em;
}

.barrio-app-pagehead p {
    margin: 0;
    color: #66666d;
    font-size: 17px;
    line-height: 1.5;
}

.barrio-events-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.barrio-event-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.barrio-event-card-image-wrap {
    width: 100%;
    background: #f2f2f2;
}

.barrio-event-card-image {
    width: 100%;
    height: auto;
    display: block;
}

.barrio-event-card-content {
    padding: 22px 20px 24px;
    text-align: center;
}

.barrio-event-date {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #66666d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
}

.barrio-event-title {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.22;
    color: #111111;
    letter-spacing: -0.02em;
    font-weight: 800;
    text-align: center;
}

.barrio-event-text {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.6;
    color: #55555c;
    text-align: center;
}

.barrio-event-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.barrio-event-btn {
    display: inline-block;
    padding: 11px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.barrio-event-btn:hover {
    transform: translateY(-1px);
}

.barrio-event-btn-primary {
    background: #111111;
    color: #ffffff;
}

.barrio-event-btn-secondary {
    background: #ffffff;
    color: #111111;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

@media (max-width: 767px) {
    .barrio-app-pagehead h1 {
        font-size: 28px;
    }

    .barrio-app-pagehead p {
        font-size: 16px;
    }

    .barrio-event-card-content {
        padding: 20px 18px 22px;
    }

    .barrio-event-title {
        font-size: 20px;
    }

    .barrio-event-text {
        font-size: 15px;
    }

    .barrio-event-actions {
        flex-direction: column;
    }

    .barrio-event-btn {
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
}

.barrio-event-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f3f3f5;
    color: #111111;
    border: 1px solid rgba(0,0,0,.10);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* =========================
   HOME APP - EVENTI IN EVIDENZA
   ========================= */

.barrio-app-featured {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.barrio-app-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.barrio-app-section-head h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    color: #111111;
    letter-spacing: -0.02em;
}

.barrio-app-section-link {
    color: #111111;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.barrio-app-featured-list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.barrio-app-featured-list::-webkit-scrollbar {
    display: none;
}

.barrio-featured-card {
    flex: 0 0 78%;
    min-width: 78%;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
}

.barrio-featured-card:only-child {
    flex: 0 0 100%;
    min-width: 100%;
}

.barrio-featured-card-image-wrap {
    width: 100%;
    background: #f2f2f2;
}

.barrio-featured-card-image {
    width: 100%;
    height: auto;
    display: block;
}

.barrio-featured-card-content {
    padding: 18px 18px 20px;
}

.barrio-featured-card-title {
    margin: 8px 0 12px;
    font-size: 24px;
    line-height: 1.12;
    color: #111111;
    letter-spacing: -0.02em;
}

.barrio-featured-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .barrio-app-section-head h2 {
        font-size: 22px;
    }

    .barrio-featured-card {
        flex: 0 0 86%;
        min-width: 86%;
    }

    .barrio-featured-card:only-child {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .barrio-featured-card-title {
        font-size: 22px;
    }

    .barrio-featured-card-actions {
        flex-direction: column;
    }

    .barrio-featured-card-actions .barrio-event-btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

@media (min-width: 768px) {
    .barrio-featured-card {
        flex: 0 0 420px;
        min-width: 420px;
    }

    .barrio-featured-card:only-child {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

/* =========================
   APP CONTATTI
   ========================= */

.barrio-locations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.barrio-location-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
    overflow: hidden;
}

.barrio-location-card-content {
    padding: 20px;
}

.barrio-location-title {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.15;
    color: #111111;
    letter-spacing: -0.02em;
}

.barrio-location-status-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.barrio-location-status {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.barrio-location-opening-date {
    font-size: 13px;
    color: #666666;
}

.barrio-location-block {
    margin-bottom: 12px;
}

.barrio-location-block strong {
    display: block;
    font-size: 13px;
    color: #666666;
    margin-bottom: 2px;
}

.barrio-location-block p {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    color: #111111;
}

.barrio-location-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 767px) {

    .barrio-location-title {
        font-size: 22px;
    }

    .barrio-location-actions {
        flex-direction: column;
    }

    .barrio-location-actions .barrio-event-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

}

/* =========================
   LOCATION STATUS COLORS
   ========================= */

.barrio-location-status-aperto {
    border-color: #27ae60;
    box-shadow: 0 6px 18px rgba(39,174,96,.25);
}

.barrio-location-status-chiuso {
    border-color: #e53935;
    box-shadow: 0 6px 18px rgba(229,57,53,.25);
}

.barrio-location-status-prossima-apertura {
    border-color: #f1c40f;
    box-shadow: 0 6px 18px rgba(241,196,15,.25);
}


/* Badge stato */

.barrio-location-status-aperto .barrio-location-status {
    background: #27ae60;
}

.barrio-location-status-chiuso .barrio-location-status {
    background: #e53935;
}

.barrio-location-status-prossima-apertura .barrio-location-status {
    background: #f1c40f;
    color: #111;
}

/* =========================
   SOCIAL APP
   ========================= */

.barrio-social-section {
    margin-top: 26px;
}

.barrio-social-title {
    font-size: 22px;
    margin-bottom: 12px;
}

.barrio-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.barrio-social-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

.barrio-social-card.instagram {
    background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af);
}

.barrio-social-card.facebook {
    background: #1877f2;
}

.barrio-social-card.tiktok {
    background: #111111;
}

/* =========================
   APP NEWS
   ========================= */

/* =========================
   APP NEWS
   ========================= */

.barrio-news-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.barrio-news-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1.5px solid rgba(0,0,0,.12);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    overflow: hidden;
}

.barrio-news-card-content {
    padding: 26px 22px;
    text-align: center;
}

.barrio-news-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.barrio-news-date {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #66666d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
}

.barrio-news-title {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.22;
    color: #111111;
    letter-spacing: -0.02em;
    font-weight: 800;
    text-align: center;
}

.barrio-news-text {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.6;
    color: #55555c;
    text-align: center;
}

.barrio-news-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .barrio-news-card-content {
        padding: 22px 18px;
    }

    .barrio-news-title {
        font-size: 20px;
    }

    .barrio-news-text {
        font-size: 15px;
    }

    .barrio-news-actions {
        flex-direction: column;
    }

    .barrio-news-actions .barrio-event-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* =========================
   SINGLE NEWS APP
   ========================= */

.barrio-single-news-shell {
    max-width: 860px;
}

.barrio-single-news-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1.5px solid rgba(0,0,0,.12);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    overflow: hidden;
}

.barrio-single-news-content {
    padding: 30px 26px;
}

.barrio-single-news-date {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #66666d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
}

.barrio-single-news-title {
    margin: 0 0 20px;
    font-size: 30px;
    line-height: 1.18;
    color: #111111;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: center;
}

.barrio-single-news-text {
    font-size: 17px;
    line-height: 1.8;
    color: #222222;
}

.barrio-single-news-text p {
    margin: 0 0 18px;
}

.barrio-single-news-text h2,
.barrio-single-news-text h3,
.barrio-single-news-text h4 {
    margin: 28px 0 12px;
    color: #111111;
    font-weight: 800;
    line-height: 1.25;
}

.barrio-single-news-text h2 {
    font-size: 24px;
}

.barrio-single-news-text h3 {
    font-size: 21px;
}

.barrio-single-news-text h4 {
    font-size: 19px;
}

.barrio-single-news-text ul,
.barrio-single-news-text ol {
    margin: 0 0 20px 22px;
    padding: 0;
}

.barrio-single-news-text li {
    margin-bottom: 8px;
}

.barrio-single-news-text a {
    color: #111111;
    font-weight: 700;
    text-decoration: underline;
}

.barrio-single-news-text strong,
.barrio-single-news-text b {
    font-weight: 800;
    color: #111111;
}

.barrio-single-news-text img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
    margin: 20px auto;
}

@media (max-width: 767px) {
    .barrio-single-news-content {
        padding: 22px 18px;
    }

    .barrio-single-news-title {
        font-size: 24px;
        margin-bottom: 18px;
    }

    .barrio-single-news-text {
        font-size: 16px;
        line-height: 1.75;
    }

    .barrio-single-news-text h2 {
        font-size: 22px;
    }

    .barrio-single-news-text h3 {
        font-size: 20px;
    }

    .barrio-single-news-text h4 {
        font-size: 18px;
    }
}

/* =========================
   APP PROFILO
   ========================= */

.barrio-profile-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1.5px solid rgba(0,0,0,.12);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    overflow: hidden;
}

.barrio-profile-card-content {
    padding: 28px 24px;
    text-align: center;
}

.barrio-profile-title {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.2;
    color: #111111;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.barrio-profile-text {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.65;
    color: #55555c;
    text-align: center;
}

.barrio-profile-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 auto 22px;
    max-width: 520px;
    text-align: left;
}

.barrio-profile-info-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f7f7f8;
    border: 1px solid rgba(0,0,0,.06);
}

.barrio-profile-info-row strong {
    color: #111111;
    font-size: 14px;
    font-weight: 700;
}

.barrio-profile-info-row span {
    color: #55555c;
    font-size: 14px;
    text-align: right;
    word-break: break-word;
}

.barrio-profile-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 0 0 22px;
}

.barrio-profile-mini-box {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 6px 16px rgba(0,0,0,.06);
    padding: 18px 16px;
    text-align: center;
}

.barrio-profile-mini-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 800;
    color: #111111;
}

.barrio-profile-mini-box p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #66666d;
}

.barrio-profile-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .barrio-profile-card-content {
        padding: 22px 18px;
    }

    .barrio-profile-title {
        font-size: 22px;
    }

    .barrio-profile-info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .barrio-profile-info-row span {
        text-align: left;
    }

    .barrio-profile-boxes {
        grid-template-columns: 1fr;
    }

    .barrio-profile-actions {
        flex-direction: column;
    }

    .barrio-profile-actions .barrio-event-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* =========================
   APP PROFILO
   ========================= */

.barrio-profile-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1.5px solid rgba(0,0,0,.12);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    overflow: hidden;
}

.barrio-profile-card-content {
    padding: 28px 24px;
    text-align: center;
}

.barrio-profile-title {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.2;
    color: #111111;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.barrio-profile-text {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.65;
    color: #55555c;
    text-align: center;
}

.barrio-profile-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 auto 22px;
    max-width: 520px;
    text-align: left;
}

.barrio-profile-info-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f7f7f8;
    border: 1px solid rgba(0,0,0,.06);
}

.barrio-profile-info-row strong {
    color: #111111;
    font-size: 14px;
    font-weight: 700;
}

.barrio-profile-info-row span {
    color: #55555c;
    font-size: 14px;
    text-align: right;
    word-break: break-word;
}

.barrio-profile-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 0 0 22px;
}

.barrio-profile-mini-box {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 6px 16px rgba(0,0,0,.06);
    padding: 18px 16px;
    text-align: center;
}

.barrio-profile-mini-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 800;
    color: #111111;
}

.barrio-profile-mini-box p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #66666d;
}

.barrio-profile-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .barrio-profile-card-content {
        padding: 22px 18px;
    }

    .barrio-profile-title {
        font-size: 22px;
    }

    .barrio-profile-info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .barrio-profile-info-row span {
        text-align: left;
    }

    .barrio-profile-boxes {
        grid-template-columns: 1fr;
    }

    .barrio-profile-actions {
        flex-direction: column;
    }

    .barrio-profile-actions .barrio-event-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* ============================= */
/* FORM REGISTRAZIONE BARRIO */
/* ============================= */

.barrio-register-form {
    width: 100%;
}

.barrio-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.barrio-form-field {
    display: flex;
    flex-direction: column;
}

.barrio-form-field label {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    text-align: center;
}

.barrio-form-field input,
.barrio-form-field select {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    border: 2px solid #444;
    padding: 10px;
    font-size: 16px;
    background: #fff;
    text-align: center;
}

.barrio-form-field input::placeholder {
    text-align: center;
}

.barrio-form-field input:focus,
.barrio-form-field select:focus {
    outline: none;
    border-color: #000;
}

.barrio-form-field-full {
    grid-column: 1 / -1;
}

/* bottone registrazione */

.barrio-btn-submit {
    width: 100%;
    height: 52px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 14px;
}

/* errori */

.barrio-form-errors {
    background: #ffe5e5;
    border: 1px solid #ffb3b3;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.barrio-form-errors p {
    margin: 4px 0;
    font-size: 14px;
}

.barrio-birthdate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

@media (max-width: 767px) {
    .barrio-birthdate-grid {
        grid-template-columns: 1fr;
    }
}

/* spazio sopra il bottone registrazione */

.barrio-profile-actions {
    margin-top: 28px;
}

/* spazio extra sull'ultimo campo */

.barrio-form-field:last-child {
    margin-bottom: 10px;
}

/* =========================
   APP PASSWORD RESET
   ========================= */

.barrio-app-password-body .barrio-profile-card,
.barrio-app-password-reset-body .barrio-profile-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1.5px solid rgba(0,0,0,.12);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    overflow: hidden;
}

.barrio-app-password-body .barrio-profile-card-content,
.barrio-app-password-reset-body .barrio-profile-card-content {
    padding: 28px 24px;
    text-align: center;
}

.barrio-app-password-body .barrio-register-form,
.barrio-app-password-reset-body .barrio-register-form {
    width: 100%;
}

.barrio-app-password-body .barrio-form-field,
.barrio-app-password-reset-body .barrio-form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.barrio-app-password-body .barrio-form-field label,
.barrio-app-password-reset-body .barrio-form-field label {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
    text-align: center;
    color: #111111;
}

.barrio-app-password-body .barrio-form-field input,
.barrio-app-password-reset-body .barrio-form-field input {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 2px solid #444444;
    padding: 10px 14px;
    font-size: 16px;
    background: #ffffff;
    text-align: center;
    box-sizing: border-box;
}

.barrio-app-password-body .barrio-form-field input::placeholder,
.barrio-app-password-reset-body .barrio-form-field input::placeholder {
    text-align: center;
}

.barrio-app-password-body .barrio-form-field input:focus,
.barrio-app-password-reset-body .barrio-form-field input:focus {
    outline: none;
    border-color: #000000;
}

.barrio-app-password-body .barrio-profile-actions,
.barrio-app-password-reset-body .barrio-profile-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.barrio-app-password-body .barrio-btn-submit,
.barrio-app-password-reset-body .barrio-btn-submit {
    width: 100%;
    height: 52px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
}

.barrio-app-password-body .barrio-form-errors,
.barrio-app-password-reset-body .barrio-form-errors {
    background: #ffe5e5;
    border: 1px solid #ffb3b3;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    text-align: center;
}

.barrio-app-password-body .barrio-form-errors p,
.barrio-app-password-reset-body .barrio-form-errors p {
    margin: 4px 0;
    font-size: 14px;
}

.barrio-app-password-body .barrio-profile-card-content > p,
.barrio-app-password-reset-body .barrio-profile-card-content > p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: #333333;
    text-align: center;
}

@media (max-width: 767px) {
    .barrio-app-password-body .barrio-profile-card-content,
    .barrio-app-password-reset-body .barrio-profile-card-content {
        padding: 22px 18px;
    }

    .barrio-app-password-body .barrio-profile-actions,
    .barrio-app-password-reset-body .barrio-profile-actions {
        flex-direction: column;
    }

    .barrio-app-password-body .barrio-profile-actions .barrio-event-btn,
    .barrio-app-password-reset-body .barrio-profile-actions .barrio-event-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* =========================
   CUSTOM PUSH BUTTON
   ========================= */

.barrio-custom-push-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 84px;
    z-index: 9998;
    display: flex;
    justify-content: center;
    pointer-events: none;
    padding: 0 14px;
}

.barrio-custom-push-btn {
    pointer-events: auto;
    width: 100%;
    max-width: 420px;
    min-height: 52px;
    border: 1.5px solid #111111;
    border-radius: 16px;
    background: #ffffff;
    color: #111111;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 18px rgba(0,0,0,.16);
    padding: 12px 18px;
    cursor: pointer;
    text-align: center;
}

.barrio-custom-push-btn:active {
    transform: translateY(1px);
}

@media (max-width: 767px) {
    .barrio-custom-push-bar {
        bottom: 64px;
        padding: 0 12px;
    }

    .barrio-custom-push-btn {
        max-width: 100%;
        min-height: 50px;
        border-radius: 14px;
        font-size: 15px;
    }
}

