/* ==========================================================================
   PUBBLIARREDO - DESIGN SYSTEM & VARIABILI MODULARI
   ========================================================================== */

:root {
  /* --- Brand Identity --- */
  --brand-navy: #0f2b5c;          /* Deep Navy istituzionale */
  --brand-navy-dark: #0a1c3d;     /* Extra Dark per topbar e accenti scuri */
  --brand-blue: #1d4ed8;          /* Blu primario vivace (Tailwind blue-700) */
  --brand-blue-hover: #1e40af;    /* Blu hover (Tailwind blue-800) */
  --brand-blue-subtle: #eff6ff;   /* Sfondo azzurro chiarissimo */
  --brand-blue-border: #bfdbfe;

  /* --- Accent Identity (Giallo/Ambra Pubbliarredo) --- */
  --accent-gold: #f59e0b;         /* Giallo ambra vivace */
  --accent-gold-hover: #d97706;   /* Ambra hover */
  --accent-gold-light: #fef3c7;   /* Sfondo badge o avvisi */
  --accent-gold-border: #fcd34d;
  --accent-gold-text: #0f172a;     /* REGOLA WCAG: testo su accent è SEMPRE SCURO (contrasto > 10:1) */

  /* --- Neutrali & Superfici --- */
  --surface-page: #f8fafc;        /* Sfondo pagina principale */
  --surface-card: #ffffff;        /* Sfondo card e pannelli */
  --surface-muted: #f1f5f9;       /* Sfondo sezioni secondarie */
  --surface-dark: #0f172a;        /* Sfondo scuro footer/topbar */
  --surface-dark-card: #1e293b;

  /* --- Tipografia & Contrasto WCAG AA/AAA --- */
  --text-primary: #0f172a;        /* Testo principale (quasi nero, massimo contrasto su chiaro) */
  --text-secondary: #334155;      /* Testo secondario (Slate 700 - contrasto 7.5:1) */
  --text-muted: #64748b;          /* Testo disattivato/didascalie (Slate 500 - contrasto 4.6:1) */
  --text-on-dark: #ffffff;        /* Testo bianco puro su sfondi scuri */
  --text-on-dark-muted: #cbd5e1;  /* Testo secondario su sfondi scuri */
  --text-brand: #1d4ed8;          /* Link e titoli brand */

  /* --- Bordi & Divisori --- */
  --border-subtle: #e2e8f0;       /* Bordo neutro chiaro */
  --border-strong: #cbd5e1;       /* Bordo input e separatori evidenti */
  --border-focus: #2563eb;        /* Bordo al focus interattivo */

  /* --- Stati di Sistema --- */
  --status-success-bg: #ecfdf5;
  --status-success-text: #065f46;
  --status-success-border: #a7f3d0;

  --status-warning-bg: #fffbeb;
  --status-warning-text: #92400e;
  --status-warning-border: #fde68a;

  --status-danger-bg: #fef2f2;
  --status-danger-text: #991b1b;
  --status-danger-border: #fecaca;

  --status-info-bg: #eff6ff;
  --status-info-text: #1e40af;
  --status-info-border: #bfdbfe;

  /* --- Raggi di curvatura --- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* --- Ombreggiature --- */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-focus: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
   RESET & REGOLE BASE (Compatibili con Tailwind senza conflitti)
   ========================================================================== */

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

body {
  color: var(--text-primary);
  background-color: var(--surface-page);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Reset decorazione link per link inline privi di classi */
a {
  text-decoration: none;
}

p a:not([class]),
.prose a:not([class]) {
  color: var(--text-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
p a:not([class]):hover,
.prose a:not([class]):hover {
  color: var(--brand-blue-hover);
}

/* --- Navigazione & Header: Testo bianco garantito --- */
.public-header { z-index: 60; }
.main-nav-link {
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: var(--radius-md);
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  transition: background-color 0.15s ease, color 0.15s ease;
  text-decoration: none !important;
}

.main-nav-link:hover {
  background-color: rgba(30, 64, 175, 0.75) !important;
  color: #ffffff !important;
}

.main-nav-link.is-active {
  background-color: #1E40AF !important;
  color: #ffffff !important;
  font-weight: 700;
}

/* Catalogo desktop: pannello centrato nella viewport, con scorrimento interno. */
.dropdown-prodotti-menu {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid #dbeafe;
  border-top: 5px solid var(--accent-gold);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(8, 25, 61, .27);
}

.dropdown-prodotti-menu[hidden] {
  display: none;
}

.dropdown-prodotti-intro {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.dropdown-prodotti-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #475569;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dropdown-prodotti-feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 12px;
  color: white !important;
  background: linear-gradient(115deg, #0f2b5c, #1d4ed8);
  font-size: 1.15rem;
  font-weight: 800;
}

.dropdown-prodotti-feature small {
  display: block;
  margin-top: 2px;
  color: #dbeafe;
  font-size: .75rem;
  font-weight: 500;
}

.dropdown-prodotti-feature:hover {
  background: linear-gradient(115deg, #0a1c3d, #1e40af);
}

.dropdown-prodotti-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dropdown-prodotti-item {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #0f2b5c !important;
  background: #f8fafc;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none !important;
  transition: background-color .15s ease, border-color .15s ease;
}

.dropdown-prodotti-item:hover {
  border-color: #93c5fd;
  background-color: #eff6ff;
  color: #1d4ed8 !important;
}

@media (max-width: 767px) {
  .dropdown-prodotti-grid { grid-template-columns: 1fr; }
}

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Gestione validazione standard ASP.NET */
.validation-summary-valid {
  display: none !important;
}

/* ==========================================================================
   COMPONENTI MODULARI RIUTILIZZABILI
   ========================================================================== */

/* --- Pulsanti (Bottoni) --- */
.btn-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  text-decoration: none !important;
}

.btn-app:active {
  transform: translateY(1px);
}

.btn-app:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Variante Primaria (Deep Navy / Royal Blue) */
.btn-app-primary {
  background-color: var(--brand-blue);
  color: #ffffff !important;
  border-color: var(--brand-blue);
}
.btn-app-primary:hover {
  background-color: var(--brand-blue-hover);
  border-color: var(--brand-blue-hover);
  color: #ffffff !important;
}

/* Variante Accent (Giallo caldo Pubbliarredo - Testo scuro ad alto contrasto) */
.btn-app-accent {
  background-color: var(--accent-gold);
  color: var(--accent-gold-text) !important;
  border-color: var(--accent-gold);
  font-weight: 700;
}
.btn-app-accent:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  color: var(--accent-gold-text) !important;
}

/* Variante Secondaria / Card */
.btn-app-secondary {
  background-color: var(--surface-card);
  color: var(--text-primary) !important;
  border-color: var(--border-strong);
}
.btn-app-secondary:hover {
  background-color: var(--surface-muted);
  border-color: var(--text-secondary);
  color: var(--text-primary) !important;
}

/* Variante secondaria leggibile sui pannelli scuri. */
.btn-app-on-dark {
  color: #fff !important;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .55);
}
.btn-app-on-dark:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, .22);
  border-color: #fff;
}

/* Variante Outline */
.btn-app-outline {
  background-color: transparent;
  color: var(--brand-blue) !important;
  border-color: var(--brand-blue);
}
.btn-app-outline:hover {
  background-color: var(--brand-blue-subtle);
  color: var(--brand-blue-hover) !important;
}

/* Variante Pericolo (Eliminazione) */
.btn-app-danger {
  background-color: #dc2626;
  color: #ffffff !important;
  border-color: #dc2626;
}
.btn-app-danger:hover {
  background-color: #b91c1c;
  border-color: #b91c1c;
  color: #ffffff !important;
}

.btn-app-danger-outline {
  background-color: transparent;
  color: #dc2626 !important;
  border-color: #fca5a5;
}
.btn-app-danger-outline:hover {
  background-color: #fef2f2;
  border-color: #dc2626;
}

/* Misure Bottoni */
.btn-app-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
}

.btn-app-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  line-height: 1.5rem;
}

/* --- Form & Campi Input Modulari --- */
.app-form-group {
  margin-bottom: 1.25rem;
}

.app-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.app-form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.app-input {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background-color: #ffffff;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.app-input::placeholder {
  color: #94a3b8;
}

.app-input:focus {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus);
}

.app-input-error {
  border-color: #ef4444 !important;
}

.app-field-validation {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--status-danger-text);
}

/* --- Card & Contenitori --- */
.app-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.app-card.bg-slate-900 {
  background-color: #0f172a;
  border-color: #334155;
  color: #fff;
}

.app-card-interactive:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-blue-border);
}

.app-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background-color: #ffffff;
}

.app-card-body {
  padding: 1.5rem;
}

.app-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--surface-muted);
}

/* --- Badge di Stato Modulari --- */
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-full);
}

.app-badge-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
}

.app-badge-success {
  background-color: var(--status-success-bg);
  color: var(--status-success-text);
  border: 1px solid var(--status-success-border);
}
.app-badge-success .app-badge-dot { background-color: #10b981; }

.app-badge-warning {
  background-color: var(--status-warning-bg);
  color: var(--status-warning-text);
  border: 1px solid var(--status-warning-border);
}
.app-badge-warning .app-badge-dot { background-color: #f59e0b; }

.app-badge-info {
  background-color: var(--status-info-bg);
  color: var(--status-info-text);
  border: 1px solid var(--status-info-border);
}
.app-badge-info .app-badge-dot { background-color: #3b82f6; }

.app-badge-neutral {
  background-color: var(--surface-muted);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.app-badge-neutral .app-badge-dot { background-color: #94a3b8; }

/* --- Alert & Notifiche --- */
.app-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.app-alert-success {
  background-color: var(--status-success-bg);
  color: var(--status-success-text);
  border: 1px solid var(--status-success-border);
}

.app-alert-danger {
  background-color: var(--status-danger-bg);
  color: var(--status-danger-text);
  border: 1px solid var(--status-danger-border);
}

.app-alert-warning {
  background-color: var(--status-warning-bg);
  color: var(--status-warning-text);
  border: 1px solid var(--status-warning-border);
}

/* --- Tabelle Modulari --- */
.app-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background-color: var(--surface-card);
  box-shadow: var(--shadow-sm);
}

.app-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.app-table th {
  background-color: var(--surface-muted);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.app-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}

.app-table tbody tr:last-child td {
  border-bottom: none;
}

.app-table tbody tr:hover {
  background-color: #f8fafc;
}

/* --- Layout Specifico: Mappe e Pannelli --- */
.map-container {
  /* Tiene dentro la mappa gli z-index di Leaflet (400-1000), che altrimenti passano sopra l'header sticky (z-40). */
  isolation: isolate;
  height: 28rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .map-container {
    height: 36rem;
  }
}

.login-panel {
  max-width: 26rem;
  width: 100%;
  margin: 3rem auto;
}

/* ==========================================================================
   SEZIONE: PRODOTTI IN EVIDENZA
   ========================================================================== */
.product-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .product-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-showcase-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.product-showcase-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
  height: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .product-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
}

.product-showcase-img-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: var(--surface-muted);
}

.product-showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .product-showcase-card:hover .product-showcase-img {
    transform: scale(1.03);
  }
}

.product-showcase-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-showcase-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-top: 0.75rem;
}

/* ==========================================================================
   SEZIONE: BRAND / I NOSTRI CLIENTI
   ========================================================================== */
.brand-clients-section {
  background-color: #F9FAFB;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
  padding-top: 64px;
  padding-bottom: 64px;
}

.brand-clients-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

@media (min-width: 1024px) {
  .brand-clients-flex {
    gap: 48px;
  }
}

.brand-client-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
}

.brand-client-logo {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(70%);
  transition: filter 300ms ease, opacity 300ms ease, transform 300ms ease;
}

@media (min-width: 768px) {
  .brand-client-logo {
    max-height: 52px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .brand-client-item:hover .brand-client-logo {
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-showcase-card,
  .product-showcase-img,
  .brand-client-logo {
    transition: none !important;
    transform: none !important;
  }
}


/* Mascotte Pubbliarredo */
.mascotte {
    height: auto;
    filter: drop-shadow(0 12px 18px rgb(0 0 0 / 0.25));
    transition: transform 0.3s ease;
}

.mascotte:hover {
    transform: translateY(-6px) rotate(-2deg);
}

@media (prefers-reduced-motion: reduce) {
    .mascotte {
        transition: none;
    }

    .mascotte:hover {
        transform: none;
    }
}

/* Hero Home: "I nostri spazi" lite, inclinata a tre quarti finché non la si usa */
.hero-mappa-piano {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 1rem;
    border: 6px solid #ffffff;
    background: #ffffff;
    box-shadow: 0 30px 50px -20px rgb(0 0 0 / 0.6);
}

.hero-mappa-area {
    height: 18rem;
}

@media (min-width: 1024px) {
    .hero-spazi {
        perspective: 1600px;
    }

    .hero-mappa-area {
        height: 22rem;
    }

    .hero-mappa-piano {
        transform: rotateX(38deg) rotateZ(-10deg) scale(0.94);
        transition: transform 0.5s ease;
        box-shadow: 0 40px 60px -20px rgb(0 0 0 / 0.6), 0 0 0 10px rgb(255 255 255 / 0.06);
    }

    /* Da usare la mappa deve essere piatta: Leaflet calcola i clic sul rettangolo non trasformato. */
    .hero-mappa-piano.attiva {
        transform: none;
    }

    .hero-mappa-piano.attiva ~ .hero-spazi-mascotte {
        opacity: 0;
        pointer-events: none;
    }
}

.hero-spazi-mascotte {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#hero-conteggio::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: #34d399;
}

/* Pin, cluster e popup delle mappe spazi (Home e scheda), ripresi dallo stile di /spazi */
.spazi-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #1e40af;
    border: 2px solid #ffffff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 4px 6px rgb(0 0 0 / 0.3);
}

.spazi-pin > div {
    width: 10px;
    height: 10px;
    background: #fbbf24;
    border-radius: 50%;
    transform: rotate(45deg);
}

.mappa-spazi .marker-cluster-small,
.mappa-spazi .marker-cluster-medium,
.mappa-spazi .marker-cluster-large {
    background-color: rgb(30 64 175 / 0.4);
}

.mappa-spazi .marker-cluster-small div,
.mappa-spazi .marker-cluster-medium div,
.mappa-spazi .marker-cluster-large div {
    background-color: #1e40af;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
}

.mappa-spazi .leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.2), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.mappa-spazi .leaflet-popup-content {
    margin: 0;
    line-height: 1.4;
}

.spazi-popup {
    width: 260px;
    max-width: 90vw;
    font-family: inherit;
}

.spazi-popup-foto {
    height: 140px;
    background: #f1f5f9;
    overflow: hidden;
}

.spazi-popup-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spazi-popup-corpo {
    padding: 12px;
}

.spazi-popup-riga {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 4px;
}

.spazi-popup-comune {
    font-size: 11px;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
}

.spazi-popup-dimensioni {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.spazi-popup-titolo {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    line-height: 1.3;
}

.spazi-popup-indirizzo {
    font-size: 11px;
    color: #475569;
    margin: 0 0 10px !important;
}

.spazi-popup-azioni {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.spazi-popup-azioni a {
    flex: 1;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #0f172a !important;
    text-decoration: none !important;
}

.spazi-popup-azioni a.spazi-popup-primario {
    background: #1e40af;
    color: #ffffff !important;
}

@media (prefers-reduced-motion: reduce) {
    .hero-mappa-piano,
    .hero-spazi-mascotte {
        transition: none;
    }
}

/* Esito della ricerca indirizzo nel form spazio (backoffice) */
.stato-geocodifica[data-tipo="ok"] { color: #047857; }
.stato-geocodifica[data-tipo="avviso"] { color: #b45309; }
.stato-geocodifica[data-tipo="info"] { color: #475569; }
