/*
Theme Name: MaBasta
Theme URI: https://example.com/mabasta
Author: Manus AI
Author URI: Start smart srl
Description: Tema personalizzato per il sito MaBasta, focalizzato sulla lotta al bullismo e sul supporto alla comunità giovanile. Sviluppato con approccio mobile-first per un'esperienza ottimale su smartphone.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme, community, anti-bullying, responsive-layout, mobile-first
Text Domain: mabasta
*/

/* ----------------------------------------
   RESET E VARIABILI
---------------------------------------- */
:root {
    --primary-color: #ed1c25; /* rosso MaBasta */
    --primary-dark: #d32f3b;
    --primary-light: #fdecea;
    --secondary-color: #457B9D;
    --light-color: #F1FAEE;
    --dark-color: #1D3557;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --success-color: #ed1c25;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-sm: 4px;
    --box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    --box-shadow-lg: 0 4px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ----------------------------------------
   LAYOUT E CONTAINER
---------------------------------------- */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* ----------------------------------------
   TIPOGRAFIA
---------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-success {
    color: var(--success-color);
}

.text-warning {
    color: var(--warning-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-info {
    color: var(--info-color);
}

/* ----------------------------------------
   BOTTONI E LINK
---------------------------------------- */
.button {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

.button-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.button-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.button-secondary {
    color: var(--primary-color);
    background-color: #fff;
    border-color: var(--primary-color);
}

.button-secondary:hover {
    background-color: var(--primary-light);
}

.button-block {
    display: block;
    width: 100%;
}

.button-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--border-radius-sm);
}

.button-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--border-radius-lg);
}

.button-link {
    font-weight: 600;
    color: var(--primary-color);
    background-color: transparent;
    border: none;
    padding: 0;
    text-decoration: none;
}

.button-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ----------------------------------------
   HEADER E NAVIGAZIONE
---------------------------------------- */
.site-header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.mabasta-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.mabasta-logo-icon img {
    height: 40px;
    margin-right: 10px;
}

.site-title-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
}

/* Menu mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.hamburger-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--gray-800);
    position: relative;
    transition: var(--transition);
}

.hamburger-icon:before,
.hamburger-icon:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--gray-800);
    transition: var(--transition);
}

.hamburger-icon:before {
    top: -8px;
}

.hamburger-icon:after {
    bottom: -8px;
}

.menu-toggle[aria-expanded="true"] .hamburger-icon {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger-icon:before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-icon:after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Menu principale */
.main-navigation {
    display: flex;
    align-items: center;
}

.primary-menu-ul {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation.toggled .primary-menu-ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 15px;
    box-shadow: var(--box-shadow);
    z-index: 1000;
}

.primary-menu-ul li {
    margin: 10px 0;
}

.primary-menu-ul a {
    color: var(--gray-800);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.primary-menu-ul a:hover,
.primary-menu-ul .current-menu-item > a {
    color: #ed1c25;          /* orange, same as mobile */
    background-color: transparent;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
}

.header-actions .button {
    margin-left: 10px;
    padding: 8px 15px;
    font-size: 0.875rem;
}

.user-actions {
    position: relative;
}

.user-profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* Media queries per desktop */
@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
    
    .primary-menu-ul {
        display: flex;
        flex-direction: row;
    }
    
    .primary-menu-ul li {
        margin: 0 10px;
    }
    
    .main-navigation.toggled .primary-menu-ul {
        position: static;
        box-shadow: none;
        padding: 0;
    }
}

/* ----------------------------------------
   FOOTER
---------------------------------------- */
.site-footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 40px 0 20px;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-widget {
    width: 100%;
    margin-bottom: 30px;
}

.footer-widget h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: var(--gray-300);
    transition: var(--transition);
}

.footer-widget a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: var(--gray-400);
}

@media (min-width: 768px) {
    .footer-widget {
        width: 50%;
        padding-right: 15px;
    }
}

@media (min-width: 992px) {
    .footer-widget {
        width: 25%;
    }
}

/* --- sticky footer ------------------------------------------- */
html, body  { height:100%; }

#page{                      
    display:flex;
    flex-direction:column;
    min-height:100vh;
}

#content,                     
    .site-content {               
    flex:1 0 auto;
}

.site-footer{                 
    flex-shrink:0;
    background:#ed1c25;
}

/* --- mobile: No Footer ------------------------------ */
@media (max-width: 767.98px){

    /* 1  hide the footer element */
    .site-footer{ display:none !important; }

    /* 2  leave room so the last lines of content are not hidden
           behind the fixed bottom-nav (≈ its height, 60-70 px)        */
    #content,
    .site-content{
        padding-bottom:80px;   /* adjust if your nav is taller/shorter */
    }
}





/* ----------------------------------------
   HERO SECTION
---------------------------------------- */
.hero-section {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--gray-200) 100%);
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-text {
    margin-bottom: 30px;
}

.hero-text h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: 25px;
    color: var(--gray-700);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
}

.hero-image {
    margin-top: 30px;
    max-width: 100%;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

@media (min-width: 768px) {
    .hero-container {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
    
    .hero-text {
        flex: 1;
        margin-right: 30px;
        margin-bottom: 0;
    }
    
    .hero-buttons {
        flex-direction: row;
        width: auto;
    }
    
    .hero-image {
        flex: 1;
        margin-top: 0;
    }
}

/* ----------------------------------------
   FEATURES GRID
---------------------------------------- */
.section-cosa-puoi-fare {
    padding: 40px 0;
}

.section-cosa-puoi-fare h2 {
    text-align: center;
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-item {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--gray-800);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.feature-item-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item-icon img {
    max-width: 100%;
    max-height: 100%;
}

.feature-item h3 {
    font-size: 1rem;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .feature-item h3 {
        font-size: 1.125rem;
    }
}

/* -------------------------------------------------- */
/* HOME – FOUR-TAB SECTION                            */
/* -------------------------------------------------- */
.home-tabs-section{
    background:#ffffff;
    padding:2rem 1rem;
    margin-bottom:2rem;
    text-align:center;
}
.home-tabs-section .section-title{
    color:#013057;
    margin-bottom:1.5rem;
    font-size:1.75rem;
    font-weight:700;
}

.home-tabs-nav{
    display:flex;                 /* ogni child si allarga quanto serve al testo */
    justify-content:center;       /* blocco centrato nella riga                 */
    gap:3rem;                     /* ← distanza fissa fra la fine di un testo
                                         e l’inizio del successivo              */
    padding-inline:0;             /* nessun rientro extra                       */
}

.home-tab{
    margin:0;                     /* niente margin laterali                     */
    padding:.5rem 0;              /* solo padding verticale                     */
    font:600 1rem/1 var(--font-family);
    background:none;border:0;cursor:pointer;
    color:#1b1d1e;
    white-space:nowrap;           /* non permettere a nessuna parola di andare a capo */
}
.home-tab.active{color:#ed1c25;}

@media (max-width:767.98px){
    .home-tabs-nav{
        flex-wrap:wrap;           /* se non ci stanno vanno sotto               */
        gap:1.25rem;              /* spazi più piccoli su schermi stretti       */
    }
}

.home-tab.active::after{content:none;}

/* panes */
.home-tabs-body .tab-pane{display:none;}
.home-tabs-body .tab-pane.active{display:block;}

.home-tabs-body .tab-img{
    width:100%;height:180px;       /* placeholder */
    background:#e8f6ed;
    display:flex;justify-content:center;align-items:center;
    margin-bottom:1rem;
    font-size:1.25rem;color:#1b1d1e;
}
.home-tabs-body h3{color:#013057;margin:0 0 .75rem;}
.home-tabs-body p{margin-bottom:1.25rem;line-height:1.4;}

/* --- home–tabs image + text layout ---------------------------- */
/* 1 ▸ wrapper: let it size itself and drop the green placeholder  */
@media (max-width: 767.98px){           /* phones only */
   .home-tabs-body .tab-img{
        height:auto;                    /* no fixed 180 px box   */
        padding:0;                      /* no extra gap          */
        background:none;                /* no green background   */
   }
}

/* 2 ▸ image: keep it large, just not monstrous                   */
@media (max-width: 767.98px){
   .home-tabs-body .tab-img img{
        width:100%;                     /* keep native ratio     */
        max-width: 320px;               /* ≈ 85-90 % of a 360 px screen */
        max-height: 340px;              /* safety cap            */
        margin: 0 auto;                 /* centred               */
        display:block;
   }
}





@media (min-width: 768px){

    /* wrapper dell’immagine                        */
    .home-tabs-body .tab-img{
        height:auto;                    /* no fixed 180 px box   */
        padding:0;                      /* no extra gap          */
        background:none;                /* no green background   */
   }

    /* immagine vera e propria                     */
    .home-tabs-body .tab-img img{
        width:100%;                     /* keep native ratio     */
        max-width: 320px;               /* ≈ 85-90 % of a 360 px screen */
        max-height: 340px;              /* safety cap            */
        margin: 0 auto;                 /* centred               */
        display:block;
   }
}

/* nascondi sotto 768 px */
@media (max-width: 991.98px){
  .btn-segnala{ display:none !important; }
}

/* mostra da 768 px in poi – eredita tutto da .button-primary */
@media (min-width: 992px){
  .btn-segnala{
      display:inline-block !important;
      margin:0 auto .75rem;   /* spazio sopra Scopri di più */
  }
  /* opzionale: icona leggermente riallineata */
  .btn-segnala .dashicons{
      font-size:1em;
      margin-right:.4em;
      position:relative;
      top:2px;
  }
}

.tab-cta{
    display: flex !important;      /* forza l’uso di Flex se ereditava altro */
    flex-direction: column !important;
    align-items: center;
    gap: .75rem;                   /* distanza uniforme tra i due bottoni   */
}

.btn-segnala{
    margin-top: .25rem;   /* oppure 0 se preferisci */
}




/* -------------------------------------------------
   Home – Studenti
   ------------------------------------------------- */

/* 1.  HERO: testo più arioso e nessun gradiente */
.home-studenti-hero {
    background: #fff !important;
    padding: 60px 0;
}
.hero-lead {
    max-width: 480px;
    font-size: 1.125rem;
    line-height: 1.6;
}

/* 2.  OBIETTIVO: blocco “card” centrato */
.section-obiettivo-studenti {
    background: var(--gray-100);
    padding: 70px 0;
    text-align: center;
}
.section-obiettivo-studenti .section-title {
    margin-bottom: 28px;
    position: relative;
}
.section-obiettivo-studenti .section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -14px;
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: var(--primary);
}
.objective-copy {
    max-width:700px;          /* resta centrato e non troppo largo */
    margin:0 auto;
    font-size:1.125rem;
    line-height:1.7;
    text-align:justify;       /* ✔ distribuzione uniforme */
    text-justify:inter-word;  /* migliora la spaziatura */
}

/* 3.  FEATURE LIST: card singole a larghezza piena su mobile, 3 colonne su desktop */
.features-grid-3 {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 20px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    text-align: center;
    transition: box-shadow .25s ease;
}
.feature-item:hover {
    transform:none !important; 
    box-shadow: 0 8px 26px rgba(0, 0, 0, .05);
}
.feature-item-icon img {
    width: 48px;
    height: 48px;
}
.feature-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.features-grid-2{
    display:grid;
    gap:24px;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
}


/* ----------------------------------------
   EVENTI E COMMUNITY FEED
---------------------------------------- */
.section-eventi-community-row {
    padding: 40px 0;
    background-color: var(--gray-100);
}

.row-flex {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.col-eventi-home,
.col-community-feed-home {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.col-eventi-home h2,
.col-community-feed-home h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.event-list-home,
.feed-list-home {
    margin-bottom: 20px;
}

.event-item-home {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.event-item-date {
    min-width: 50px;
    text-align: center;
    margin-right: 15px;
}

.event-item-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.event-item-date .month-year {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.event-item-info {
    flex: 1;
}

.event-item-info h3 {
    font-size: 1.125rem;
    margin-bottom: 5px;
}

.event-location {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.feed-item-home {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.feed-item-author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.feed-item-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.author-name {
    font-weight: 600;
    color: var(--gray-800);
}

.feed-item-content {
    margin-bottom: 10px;
}

.feed-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.likes, .comments {
    display: flex;
    align-items: center;
}

.likes .dashicons, .comments .dashicons {
    margin-right: 5px;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .row-flex {
        flex-direction: row;
    }
    
    .col-eventi-home,
    .col-community-feed-home {
        flex: 1;
    }
}

/* ----------------------------------------
   MABASTA CARD PROMO
---------------------------------------- */
.section-mabasta-card-promo-home {
    padding: 40px 0;
}

.mabasta-card-promo-content {
    background: linear-gradient(135deg, var(--light-color) 0%, var(--gray-200) 100%);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mabasta-card-image {
    margin-bottom: 20px;
    max-width: 250px;
}

.mabasta-card-text h2 {
    margin-bottom: 15px;
}

.mabasta-card-text p {
    margin-bottom: 20px;
}

.mabasta-card-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 768px) {
    .mabasta-card-promo-content {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
    
    .mabasta-card-image {
        margin-bottom: 0;
        margin-right: 30px;
    }
    
    .mabasta-card-text {
        flex: 1;
    }
    
    .mabasta-card-buttons {
        flex-direction: row;
    }
}

/* ----------------------------------------
   FORM SEGNALAZIONE
---------------------------------------- */
.page-segnalazione-main {
    padding: 40px 0;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    margin-bottom: 10px;
}

.page-subtitle {
    color: var(--gray-600);
}

.mabasta-form-container {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.form-step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.step-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: var(--gray-600);
    position: relative;
    z-index: 1;
}

.step-item.active {
    background: var(--primary-color);
    color: #fff;
}

.step-line {
    height: 2px;
    flex: 1;
    background: var(--gray-200);
    margin: 0 5px;
}

.step-line.active {
    background: var(--primary-color);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-title {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-select,
.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.file-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.file-upload-area.highlight {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(237, 28, 37, 0.2);
}

.file-upload-area.highlight .file-upload-text {
    color: var(--primary-color);
    font-weight: 600;
}

.file-upload-input {
    display: none;
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.file-upload-text {
    margin-top: 10px;
    color: var(--gray-600);
}

.form-navigation {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.form-navigation-spaceBetween {
    justify-content: space-between;
}

.form-summary-review {
    background: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.gdpr-consent {
    display: flex;
    align-items: flex-start;
}

.gdpr-consent input {
    margin-top: 5px;
    margin-right: 10px;
}

@media (min-width: 768px) {
    .form-group-row {
        flex-direction: row;
    }
    
    .form-group-half {
        flex: 1;
    }
}

/* ===== pretty selects ===== */
.select-wrapper {
    position: relative;
}

.pretty-select {
    appearance: none;            /* removes default arrow on modern browsers */
    -webkit-appearance: none;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: #333;
    border: 2px solid #5BC0BE;   /* Mabasta teal accent */
    border-radius: 12px;
    background: #fff url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235BC0BE' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 1rem center;
    background-size: 12px;
    transition: border-color .2s, box-shadow .2s;
}

.pretty-select:focus {
    outline: none;
    border-color: #0B6E4F;       /* darker teal */
    box-shadow: 0 0 0 3px rgba(11,110,79,.25);
}

@media (hover: hover) {
    .pretty-select:hover {
        border-color: #0B6E4F;
    }
}


/* ----------------------------------------
   COMMUNITY PAGE
---------------------------------------- */
.community-main {
    padding: 40px 0;
}

.community-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-300);
    margin-bottom: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.community-tab {
    padding: 15px;
    cursor: pointer;
    white-space: nowrap;
    color: var(--gray-600);
    font-weight: 600;
    position: relative;
}

.community-tab.active {
    color: var(--primary-color);
}

.community-tab.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.post-composer {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.composer-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.composer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    background-color: var(--gray-200);
}

.composer-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    min-height: 100px;
    resize: none;
    margin-bottom: 15px;
    font-size: 1rem;
}

.composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.media-buttons {
    display: flex;
    gap: 10px;
}

.media-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-100);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.media-button:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.post-button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.post-button:hover {
    background-color: var(--primary-dark);
}

.community-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feed-post {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.post-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
}

.post-date {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.post-options {
    color: var(--gray-600);
    cursor: pointer;
}

.post-content {
    margin-bottom: 15px;
}

.post-image {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

.action-button {
    display: flex;
    align-items: center;
    color: var(--gray-600);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.action-button:hover {
    color: var(--primary-color);
}

.action-icon {
    margin-right: 5px;
}

/* ----------------------------------------
   EVENTI PAGE
---------------------------------------- */
.eventi-main {
    padding: 40px 0;
}

.filter-bar {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.filter-button {
    padding: 8px 15px;
    margin-right: 10px;
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    white-space: nowrap;
    font-size: 0.875rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.filter-button.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.search-bar {
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.calendar-view {
    margin-bottom: 30px;
}

.month-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.month-title {
    font-weight: 600;
    font-size: 1.125rem;
}

.month-nav {
    display: flex;
    gap: 10px;
}

.month-nav-button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--gray-100);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.month-nav-button:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.weekday {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-600);
    padding: 5px 0;
}

.day {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.875rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.day:hover {
    background-color: var(--gray-200);
}

.day.other-month {
    color: var(--gray-400);
}

.day.today {
    border: 2px solid var(--primary-color);
    font-weight: 600;
}

.day.has-event {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

.eventi-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.evento-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    display: flex;
}

.evento-date {
    min-width: 60px;
    text-align: center;
    margin-right: 20px;
}

.evento-day {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.evento-month {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.evento-details {
    flex: 1;
}

.evento-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.evento-location {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 15px;
}

.location-icon {
    margin-right: 5px;
}

.evento-actions {
    display: flex;
    gap: 10px;
}

/* ----------------------------------------
   MABASTA CARD PAGE
---------------------------------------- */
.mabasta-card-main {
    padding: 40px 0;
}

.card-container {
    margin-bottom: 40px;
}

.card-visual {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    color: #fff;
    box-shadow: var(--box-shadow-lg);
    position: relative;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.card-pattern {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.card-logo {
    font-weight: 700;
    font-size: 1.25rem;
}

.card-points {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.875rem;
}

.card-user {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.card-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.card-id {
    font-size: 0.875rem;
    opacity: 0.8;
}

.card-qr {
    width: 100px;
    height: 100px;
    background: #fff;
    margin: 0 auto;
    border-radius: var(--border-radius);
    position: relative;
    z-index: 1;
}

.card-actions {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.card-action {
    text-align: center;
}

.action-icon {
    width: 50px;
    height: 50px;
    background: var(--gray-100);
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.action-icon:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

.action-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.section-title {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.points-history {
    margin-bottom: 40px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.history-details {
    flex: 1;
}

.history-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.history-date {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.history-points {
    font-weight: 700;
    color: var(--primary-color);
}

.partners-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.partner-item {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
}

.partner-logo {
    width: 80px;
    height: 80px;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    margin-right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-details {
    flex: 1;
}

.partner-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.125rem;
}

.partner-address {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 5px;
}

.partner-discount {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* ----------------------------------------
   DASHBOARD/ANALYTICS
---------------------------------------- */
.dashboard-main {
    padding: 40px 0;
}

.dashboard-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-300);
    margin-bottom: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dashboard-tab {
    padding: 15px;
    cursor: pointer;
    white-space: nowrap;
    color: var(--gray-600);
    font-weight: 600;
    position: relative;
}

.dashboard-tab.active {
    color: var(--primary-color);
}

.dashboard-tab.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.chart-container {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chart-title {
    font-weight: 600;
}

.chart-period {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.chart-placeholder {
    width: 100%;
    height: 250px;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gray-600);
}

.activity-list {
    margin-bottom: 30px;
}

.activity-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
}

.activity-details {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
}

.activity-date {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.activity-status {
    font-size: 0.875rem;
    font-weight: 600;
}

.status-pending {
    color: var(--warning-color);
}

.status-completed {
    color: var(--success-color);
}

.status-rejected {
    color: var(--danger-color);
}

.export-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-align: center;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.export-button:hover {
    background: var(--primary-light);
}

@media (min-width: 768px) {
    .stats-summary {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ----------------------------------------
   BOTTOM NAVIGATION (MOBILE)
---------------------------------------- */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: #fff;
    border-top: 1px solid var(--gray-200);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-item {
    text-decoration: none;
    color: var(--gray-600);
    font-size: .875rem;          /* a hair larger now that there’s no icon */
    font-weight: 600;
}

/* hide any old markup that may still exist */
.nav-icon { display:none !important; }

/* active state goes orange */
.nav-item.active {
    color: #ed1c25;              /* orange */
}

/* each button gets the same share of the bar */
.bottom-nav .nav-item{
    flex: 1 1 20%;
    display: flex;
    flex-direction: column;      /* put icon on top, label below */
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;                    /* small space between icon and text */
}

/* icon sizing that won’t jump on state change */
.bottom-nav .nav-item img{
    width: 24px;
    height: 24px;
}

/* the larger stop-hand */
.bottom-nav .nav-item.segnala img{
    width: 48px;
    height: 48px;
}

/* hide label for Segnala (we removed it, but this is a safeguard) */
.bottom-nav .nav-item.segnala span{display:none;}




@media (min-width: 992px) {
    .bottom-nav {
        display: none;
    }
    
    .floating-action {
        bottom: 30px;
    }
}

/* ----------------------------------------
   UTILITY CLASSES
---------------------------------------- */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: 0.25rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.ml-4 { margin-left: 1.5rem !important; }
.ml-5 { margin-left: 3rem !important; }

.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.mr-4 { margin-right: 1.5rem !important; }
.mr-5 { margin-right: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }

.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-baseline { align-items: baseline !important; }
.align-items-stretch { align-items: stretch !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.rounded { border-radius: var(--border-radius) !important; }
.rounded-circle { border-radius: 50% !important; }

.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }

.font-weight-normal { font-weight: 400 !important; }
.font-weight-bold { font-weight: 700 !important; }

.text-uppercase { text-transform: uppercase !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }

.bg-white { background-color: #fff !important; }
.bg-light { background-color: var(--gray-100) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }

.shadow { box-shadow: var(--box-shadow) !important; }
.shadow-lg { box-shadow: var(--box-shadow-lg) !important; }

/* Responsive visibility */
@media (max-width: 575.98px) {
    .d-none-xs { display: none !important; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .d-none-sm { display: none !important; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .d-none-md { display: none !important; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .d-none-lg { display: none !important; }
}

@media (min-width: 1200px) {
    .d-none-xl { display: none !important; }
}

/* ----------------------------------------
   ACCESSIBILITY
---------------------------------------- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Keyboard navigation */
.keyboard-nav-active a:focus,
.keyboard-nav-active button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (forced-colors: active) {
    .button,
    .card-visual,
    .feature-item,
    .event-item-home,
    .feed-item-home {
        border: 1px solid;
    }
}

/* --------------------------------------------------
   LOGIN PAGE (Mabasta)
-------------------------------------------------- */
.login-main { background: var(--gray-100); }

#mabasta-login-form .form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    margin-bottom: 10px;
}

#mabasta-login-form .form-input:focus {
    border-color: #ed1c25;
    box-shadow: 0 0 0 3px rgba(238,29,35,.12);
    outline: none;
}

#mabasta-login-submit {
    background: #ed1c25;
    border: none;
    color: #fff;
    cursor: pointer;
}

#mabasta-login-submit:hover { background: #d9191f; }

.login-extra-links a { color: #ed1c25; }
.login-extra-links a:hover { text-decoration: underline; }

/* piccolo bottone “occhio” per mostra/nascondi password */
.btn-eye {
    position: absolute;
    right: 10px; top: 38px;
    width: 24px; height: 24px;
    background: url('/wp-content/themes/mabasta_theme/assets/eye.svg') center/contain no-repeat;
    border: none;
    cursor: pointer;
    opacity: .6;
}
.btn-eye:hover { opacity: 1; }

/* --------------------------------------------------
   REGISTER PAGE (Mabasta)
-------------------------------------------------- */
.register-main { background: var(--gray-100); }

#content .mabasta-form-container .form-group { margin-bottom: 14px; }

#content .mabasta-form-container label {
    display:block;
    font-weight:600;
    margin-bottom:4px;
}

#content .mabasta-form-container .form-input {
    width:100%;
    padding:12px 15px;
    border:1px solid var(--gray-300);
    border-radius:var(--border-radius);
    transition:var(--transition);
}

#content .mabasta-form-container .form-input:focus {
    border-color:#ed1c25;
    box-shadow:0 0 0 3px rgba(238,29,35,.12);
    outline:none;
}

#content .mabasta-form-container select.form-input {
    appearance:none;                   /* look moderno */
    background:url('data:image/svg+xml;utf8,<svg fill="%23ed1c25" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 12px center/16px 16px;
}

#content .mabasta-form-container .button-primary {
    background:#ed1c25;
    color:#fff;
    border:none;
}

#content .mabasta-form-container .button-primary:hover { background:#d9191f; }

.alert-danger   { background:#f8d7da; color:#7b1d21; padding:12px 16px; border-radius:var(--border-radius); }

/* --------------------------------------------------
   Profilo semplice
-------------------------------------------------- */
.profilo-simple table th { color:#555; font-weight:600; }
.profilo-simple .button-primary {
  background:#ed1c25; color:#fff; border:0;
}
.profilo-simple .button-primary:hover { background:#c6181d; }
.profilo-simple .button-secondary {
  background:#f5f5f5; color:#333; border:1px solid #ddd;
}
.profilo-simple .button-secondary:hover { background:#e9e9e9; }


/* ===================================================================
   MABASTA CARD SYSTEM STYLES
   =================================================================== */

/* --- GENERAL CARD SYSTEM STYLES --- */
.mabasta-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 500px;
    width: 90%;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.btn-primary {
    background-color: #ed1c25;
    color: white;
}

.btn-primary:hover {
    background-color: #d11920;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 28, 37, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* --- PROFILE PAGE STYLES --- */
.profilo-mabasta {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.profilo-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.user-avatar .avatar-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid #ed1c25;
}

.user-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.user-role {
    font-size: 1.2rem;
    color: #ed1c25;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-email {
    color: #6c757d;
    font-size: 1rem;
}

/* --- MABASTA CARD SECTION --- */
.mabasta-card-section {
    margin-bottom: 40px;
}

.mabasta-card-section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.mabasta-card-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-visual {
    background: linear-gradient(135deg, #ed1c25 0%, #c41e3a 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.card-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.card-icon {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.card-id {
    margin-bottom: 20px;
}

.card-id-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.card-id-value {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.level-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: #ed1c25;
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ed1c25;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.offer-edit-form {
    background:#f7f7f7;
    border-radius:12px;
    padding:1rem 1.5rem;
    margin-top:.75rem;
}


/* --- LEVEL PROGRESSION --- */
.level-progression {
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.level-progression h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.levels-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.level-item {
    text-align: center;
    padding: 20px 15px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
}

.level-item.achieved {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.level-item.current {
    border-color: #ed1c25;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    transform: scale(1.05);
}

.level-item.achieved.animate-achieved {
    animation: levelAchieved 0.6s ease-out;
}

@keyframes levelAchieved {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.level-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.level-points {
    font-size: 0.9rem;
    color: #6c757d;
}

/* --- CLAIMED OFFERS SECTION --- */
.claimed-offers-section {
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align:center;          /* center everything inside */
    margin-top:2rem;
}
.claimed-offers-section .offers-hint{
    margin:0 0 1rem;
    font-size:1rem;
    color:#334;                 /* tweak to match your palette */
}

.claimed-offers-section h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 25px;
}

.claimed-offers-list {
    display: grid;
    gap: 20px;
}

.claimed-offer-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.claimed-offer-item:hover {
    border-color: #ed1c25;
    transform: translateY(-2px);
}

.claimed-offer-item.redeemed {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.offer-info h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.offer-business {
    color: #6c757d;
    margin-bottom: 4px;
}

.offer-discount {
    color: #ed1c25;
    font-weight: 600;
}

.offer-status {
    text-align: right;
}

.status-redeemed {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background: #ffc107;
    color: #212529;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.redemption-code {
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.redemption-code:hover {
    background: #e9ecef;
}

.redeemed-date {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 4px;
}

/* --- BUSINESS SECTION --- */
.business-section {
    margin-bottom: 40px;
}

.business-section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.business-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.business-stats {
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #ed1c25;
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ed1c25;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
}

/* --- OFFERS PAGE STYLES --- */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.page-description {
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0;
}

.offerte-container {
    padding: 20px 0;
}

.offerte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.offerta-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.offerta-card:hover,
.offerta-card.hover-effect {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #ed1c25;
}

.offerta-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 25px 25px 0 25px;
    margin-bottom: 20px;
}

.offerta-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 0;
    flex: 1;
    margin-right: 15px;
}

.offerta-discount {
    background: #ed1c25;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

.offerta-business {
    padding: 0 25px;
    margin-bottom: 15px;
    color: #6c757d;
}

.offerta-content {
    padding: 0 25px;
    margin-bottom: 20px;
    color: #495057;
    line-height: 1.6;
}

.offerta-details {
    padding: 0 25px;
    margin-bottom: 25px;
}

.offerta-validity,
.offerta-points {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}

.offerta-actions {
    padding: 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.offerta-claimed {
    text-align: center;
}

.offerta-claimed p {
    margin-bottom: 10px;
}

.offerta-claimed .redemption-code {
    font-size: 1.2rem;
    font-weight: 700;
    background: #ed1c25;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    letter-spacing: 1px;
}

.no-offerte {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* --- REDEEM OFFER PAGE STYLES --- */
.riscatta-offerta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.riscatta-form-wrapper {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.riscatta-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ed1c25;
}

.form-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

.riscatta-result {
    margin-top: 20px;
}

.riscatta-info {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.riscatta-info h3,
.riscatta-info h4 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.riscatta-info ol,
.riscatta-info ul {
    padding-left: 20px;
    line-height: 1.6;
}

.riscatta-info li {
    margin-bottom: 8px;
}

.riscatta-tips {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* --- MY OFFERS SECTION --- */
.my-offers-section {
    margin-top: 50px;
}

.my-offers-section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.my-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.my-offer-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.my-offer-card:hover,
.my-offer-card.hover-effect {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    border-color: #ed1c25;
}

.my-offer-card.inactive {
    opacity: 0.7;
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 20px 0 20px;
    margin-bottom: 15px;
}

.offer-header h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

.offer-status {
    margin-left: 15px;
}

.status-active {
    background: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-inactive {
    background: #6c757d;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.offer-details {
    padding: 0 20px;
    margin-bottom: 20px;
}

.offer-details p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}

.offer-stats {
    display: flex;
    justify-content: space-around;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ed1c25;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
}

.offer-actions {
    padding: 15px 20px;
}

.no-offers {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* --- PROFILE ACTIONS --- */
.profilo-actions {
    text-align: center;
    margin-top: 40px;
}

/* --- ACCESS DENIED --- */
.access-denied {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.access-denied h2 {
    color: #ed1c25;
    margin-bottom: 20px;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .profilo-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .mabasta-card-display {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .levels-chart {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .claimed-offer-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .offer-status {
        text-align: left;
    }
    
    .business-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .offerte-grid {
        grid-template-columns: 1fr;
    }
    
    .riscatta-offerta-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .my-offers-grid {
        grid-template-columns: 1fr;
    }
    
    .user-name {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .profilo-mabasta {
        padding: 20px 0;
    }
    
    .profilo-header,
    .mabasta-card-display,
    .level-progression,
    .claimed-offers-section,
    .business-stats,
    .page-header,
    .riscatta-form-wrapper,
    .riscatta-info {
        padding: 20px;
    }
    
    .levels-chart {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .user-name {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .offerta-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .offerta-discount {
        align-self: flex-start;
    }
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mabasta-card-section,
.business-section,
.offerte-container {
    animation: fadeInUp 0.6s ease-out;
}

/* --- PRINT STYLES --- */
@media print {
    .mabasta-message,
    .btn,
    .profilo-actions {
        display: none !important;
    }
    
    .profilo-mabasta {
        background: white !important;
    }
    
    .mabasta-card-display,
    .level-progression,
    .claimed-offers-section,
    .business-stats {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}



/* Stili per il pannello Impresa */
.business-actions-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px; /* Spazio tra i pulsanti */
    margin-bottom: 20px;
    flex-wrap: wrap; /* Permette ai pulsanti di andare a capo su schermi piccoli */
}

.business-actions-wrapper .btn {
    min-width: 180px; /* Larghezza minima per i pulsanti */
    text-align: center;
}

/* Stile specifico per il pulsante Crea Nuova Offerta */
.business-actions-wrapper .btn-primary {
    background-color: #ed1c25; /* Colore rosso primario */
    border-color: #ed1c25;
    color: #fff;
}

.business-actions-wrapper .btn-primary:hover,
.business-actions-wrapper .btn-primary:focus {
    background-color: #d41a22; /* Tonalità più scura al hover/focus */
    border-color: #d41a22;
}




/* ----------------------------------------
   CHAT STYLES
---------------------------------------- */

/* Tab Navigation */
.community-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--gray-200);
}

.community-tab {
    padding: 1rem 2rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    font-weight: 500;
    color: var(--gray-600);
}

.community-tab:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-light);
}

.community-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Tab Content */
/* .tab-content {
    display: none;
}

.tab-content.active {
    display: block;
} */

/* Admin Chat Container */
.admin-chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.chat-header h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.chat-description {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Chat Messages */
.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-300);
}

.chat-message {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.chat-message.user-message {
    flex-direction: row-reverse;
}

.chat-message.admin-message {
    flex-direction: row;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.message-content {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    position: relative;
}

.user-message .message-content {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: var(--border-radius-sm);
}

.admin-message .message-content {
    background: white;
    color: var(--dark-color);
    border: 1px solid var(--gray-300);
    border-bottom-left-radius: var(--border-radius-sm);
}

.message-text {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
}

.user-message .message-time {
    color: rgba(255, 255, 255, 0.8);
}

.admin-message .message-time {
    color: var(--gray-500);
}

/* Chat Input */
.chat-input-container {
    padding: 1rem;
    background: white;
}

.chat-form {
    display: flex;
    gap: 0.75rem;
}

.chat-input-wrapper {
    flex: 1;
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

#chat-message-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    resize: vertical;
    min-height: 44px;
    max-height: 120px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: var(--transition);
}

#chat-message-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(237, 28, 37, 0.1);
}

.send-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    white-space: nowrap;
}

.send-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.send-button:active {
    transform: translateY(0);
}

.send-button:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
    transform: none;
}

/* Loading State */
.chat-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: var(--gray-500);
}

.chat-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.chat-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-500);
}

.chat-empty .dashicons {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .community-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .community-tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .admin-chat-container {
        margin: 0 1rem;
        border-radius: var(--border-radius);
    }
    
    .chat-header {
        padding: 1rem;
    }
    
    .chat-header h3 {
        font-size: 1.25rem;
    }
    
    .chat-messages {
        height: 300px;
        padding: 0.75rem;
    }
    
    .message-content {
        max-width: 85%;
        padding: 0.5rem 0.75rem;
    }
    
    .chat-input-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .send-button {
        align-self: flex-end;
        padding: 0.75rem 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .community-tab,
    #chat-message-input,
    .send-button {
        transition: none;
    }
    
    .chat-loading::after {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .admin-message .message-content {
        border-width: 2px;
        border-color: var(--dark-color);
    }
    
    #chat-message-input {
        border-width: 2px;
    }
}


/* ----------------------------------------
   NOTIFICATION STYLES
---------------------------------------- */

.mabasta-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    box-shadow: var(--box-shadow-lg);
}

.mabasta-notification.show {
    transform: translateX(0);
}

.mabasta-notification-success {
    background: var(--success-color);
}

.mabasta-notification-error {
    background: var(--danger-color);
}

.mabasta-notification-warning {
    background: var(--warning-color);
    color: var(--dark-color);
}

.mabasta-notification-info {
    background: var(--info-color);
}

@media (max-width: 768px) {
    .mabasta-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .mabasta-notification.show {
        transform: translateY(0);
    }
}


/* File upload styles for multiple files */
.file-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.file-preview-item {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background: #f9f9f9;
}

.file-preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.file-preview-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-name {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    word-break: break-word;
    line-height: 1.2;
}

.file-size {
    font-size: 11px;
    color: #666;
}

.remove-file {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background-color 0.2s;
}

.remove-file:hover {
    background: #c82333;
}

.remove-file .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .file-previews {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .file-preview-thumb {
        height: 60px;
    }
    
    .file-name {
        font-size: 11px;
    }
    
    .file-size {
        font-size: 10px;
    }
}



/* ----------------------------------------
   SEZIONE STATISTICHE
---------------------------------------- */
.statistics-section {
    background: var(--gray-100);
    padding: 60px 0;
    margin: 40px 0;
    color: var(--dark-color);
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.stat-icon .dashicons {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 2.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1;
    color: var(--dark-color);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
    color: var(--gray-700);
}

@media (max-width: 768px) {
    .statistics-section {
        padding: 40px 0;
        margin: 20px 0;
    }
    
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-icon .dashicons {
        width: 2rem;
        height: 2rem;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .statistics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 15px;
    }
}


/* ----------------------------------------
   SEZIONE AIUTACI PER AIUTARE
---------------------------------------- */
.help-us-section {
    background: var(--gray-100);
    padding: 80px 0;
    text-align: center;
}

.help-us-content {
    max-width: 600px;
    margin: 0 auto;
}

.help-us-content h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.help-us-content p {
    font-size: 1.2rem;
    color: var(--gray-700);
    margin-bottom: 40px;
    line-height: 1.6;
}

.help-us-cta .button-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: var(--box-shadow-lg);
}

.help-us-cta .button-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 28, 37, 0.3);
}

.help-us-cta .dashicons {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .help-us-section {
        padding: 60px 0;
    }
    
    .help-us-content h2 {
        font-size: 2rem;
    }
    
    .help-us-content p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .help-us-cta .button-large {
        padding: 12px 25px;
        font-size: 1rem;
    }
}


/* ----------------------------------------
   PAGINA SUPPORTER
---------------------------------------- */
.supporter-page {
    padding-top: 20px;
}

.supporter-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
    border-radius: var(--border-radius-lg);
}

.supporter-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.why-supporter, .how-to-help, .testimonials, .final-cta, .contact-section {
    margin-bottom: 80px;
}

.why-supporter h2, .how-to-help h2, .testimonials h2, .final-cta h2, .contact-section h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 50px;
    font-weight: bold;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.reason-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.reason-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.reason-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.reason-icon .dashicons {
    width: 3rem;
    height: 3rem;
    font-size: 3rem;
}

.reason-item h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.reason-item p {
    color: var(--gray-700);
    line-height: 1.6;
}

.help-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.help-option {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.help-option h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.help-option p {
    color: var(--gray-700);
    margin-bottom: 25px;
    line-height: 1.6;
}

.donation-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.donation-btn {
    background: var(--primary-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.donation-btn:hover {
    background: var(--primary-color);
    color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
}

.testimonial p {
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 15px;
    line-height: 1.6;
}

.testimonial cite {
    color: var(--primary-color);
    font-weight: 600;
    font-style: normal;
}

.final-cta {
    background: var(--gray-100);
    padding: 60px 40px;
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--gray-700);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .button-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
}

.contact-section {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--gray-700);
    margin-bottom: 25px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    max-width: 400px;
    margin: 0 auto;
}

.contact-info li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.contact-info li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .supporter-hero {
        padding: 60px 0;
        margin-bottom: 40px;
    }
    
    .supporter-hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .why-supporter, .how-to-help, .testimonials, .final-cta, .contact-section {
        margin-bottom: 60px;
    }
    
    .why-supporter h2, .how-to-help h2, .testimonials h2, .final-cta h2, .contact-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .reasons-grid, .help-options, .testimonials-grid {
        gap: 20px;
    }
    
    .reason-item, .help-option, .testimonial {
        padding: 20px;
    }
    
    .final-cta {
        padding: 40px 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .button-large {
        width: 100%;
        max-width: 300px;
    }
}


/* Stili per offerte già riscattate */
.offerta-claimed-card {
    opacity: 0.7;
    position: relative;
    border: 2px solid #28a745 !important;
    background-color: #f8f9fa;
}

.offerta-claimed-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 167, 69, 0.1);
    pointer-events: none;
    z-index: 1;
}

.offerta-claimed-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.offerta-claimed-badge span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.offerta-claimed-card .offerta-header {
    position: relative;
}

.offerta-claimed-card .offerta-discount {
    background-color: #6c757d !important;
}

.offerta-claimed-card .offerta-content,
.offerta-claimed-card .offerta-details {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .offerta-claimed-badge {
        top: 5px;
        right: 5px;
        padding: 3px 8px;
        font-size: 0.7rem;
    }
}



/* ----------------------------------------
   GESTISCI OFFERTE - OFFER BLOCKS
---------------------------------------- */
.manage-offers-container {
    padding: 20px 0;
}

.offers-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.offer-block {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 20px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
}

.offer-block:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-2px);
}

.offer-block.publish {
    border-left: 4px solid var(--success-color);
}

.offer-block.draft {
    border-left: 4px solid var(--warning-color);
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.offer-header h3 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.offer-status-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.published {
    background-color: var(--success-color);
    color: #fff;
}

.status-badge.draft {
    background-color: var(--warning-color);
    color: #fff;
}

.status-badge.active {
    background-color: var(--info-color);
    color: #fff;
}

.status-badge.expired {
    background-color: var(--gray-500);
    color: #fff;
}

.offer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}

.offer-details {
    flex: 1;
}

.offer-details p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.offer-details strong {
    color: var(--dark-color);
}

.offer-description {
    margin-top: 12px;
}

.offer-description p {
    margin-top: 4px;
    font-style: italic;
    color: var(--gray-600);
}

.offer-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.stat {
    text-align: center;
    min-width: 60px;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.offer-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.offer-actions .btn {
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.offer-actions .btn-secondary {
    background-color: var(--gray-600);
    color: #fff;
}

.offer-actions .btn-secondary:hover {
    background-color: var(--gray-700);
}

.offer-actions .btn-warning {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.offer-actions .btn-warning:hover {
    background-color: #e0a800;
}

.offer-actions .btn-danger {
    background-color: var(--danger-color);
    color: #fff;
}

.offer-actions .btn-danger:hover {
    background-color: #c82333;
}

/* Form di modifica */
.offer-edit-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--primary-light);
    background-color: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 20px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.offer-edit-form .form-group {
    margin-bottom: 15px;
}

.offer-edit-form .form-row {
    display: flex;
    gap: 15px;
}

.offer-edit-form .form-row .form-group {
    flex: 1;
}

.offer-edit-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.offer-edit-form .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
    background-color: #fff;
}

.offer-edit-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(237, 28, 37, 0.1);
}

.offer-edit-form textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-300);
}

.form-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.form-actions .btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.form-actions .btn-primary:hover {
    background-color: var(--primary-dark);
}

.form-actions .btn-secondary {
    background-color: var(--gray-500);
    color: #fff;
}

.form-actions .btn-secondary:hover {
    background-color: var(--gray-600);
}

/* Responsive design */
@media (max-width: 768px) {
    .offer-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .offer-stats {
        justify-content: flex-start;
        gap: 15px;
    }
    
    .offer-actions {
        justify-content: center;
    }
    
    .offer-edit-form .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Alert messages */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Page header */
.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.page-title {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.page-description {
    color: var(--gray-600);
    margin-bottom: 20px;
}

.page-actions .btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.page-actions .btn:hover {
    background-color: var(--primary-dark);
    color: #fff;
}

/* No offers state */
.no-offers {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
}

.no-offers h3 {
    color: var(--gray-600);
    margin-bottom: 15px;
}

.no-offers p {
    color: var(--gray-500);
    margin-bottom: 25px;
}

.no-offers .btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.no-offers .btn:hover {
    background-color: var(--primary-dark);
    color: #fff;
}




/* Stili per i badge di stato delle offerte */
.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    margin-left: 5px;
}

.status-badge.published {
    background-color: #28a745; /* Verde per Attiva */
}

.status-badge.draft {
    background-color: #6c757d; /* Grigio per Bozza */
}

.status-badge.programmed {
    background-color: #ffc107; /* Giallo/Arancione per Programmata */
}

.status-badge.expired {
    background-color: #dc3545; /* Rosso per Scaduta */
}

.mabasta-avatar-initials{
	width:40px;height:40px;
	display:flex;align-items:center;justify-content:center;
	border-radius:50%;
	background:#f5dcd7;          /* same soft red you used for the empty circle */
	color:#d63638;               /* main theme red */
	font:600 0.9rem/1 "Roboto", sans-serif;
	text-transform:uppercase;
}

