:root {
  --primary: #9a3412;        /* Terracotta caldo ed editoriale */
  --primary-hover: #7c2d12;
  --primary-light: #ffedd5;
  --accent: #c2410c;         /* Ruggine caldo */
  --text-main: #1c1917;      /* Inchiostro caldo morbido (warm stone) */
  --text-muted: #78716c;     /* Grigio pietra caldo */
  --bg-page: #faf8f5;        /* Carta naturale / panna chiaro */
  --bg-card: #ffffff;
  --border: #e7e5e4;         /* Bordo pietra caldo */
  --border-focus: #a8a29e;
  --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(28, 25, 23, 0.06), 0 2px 4px -2px rgba(28, 25, 23, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(28, 25, 23, 0.08), 0 4px 6px -4px rgba(28, 25, 23, 0.04);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.identity {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.identity-photo-wrap {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--primary);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(11, 62, 120, 0.12);
}

.identity-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.identity-text {
  display: flex;
  flex-direction: column;
}

.identity-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.identity-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  text-decoration: none;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
}

/* DROPDOWN MENU */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-btn {
  text-decoration: none;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  transition: color 0.15s ease;
}

.nav-dropdown-btn:hover {
  color: var(--primary);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  min-width: 220px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 100;
  margin-top: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
}

.dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: #1e293b !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  text-decoration: none;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background: #f1f5f9;
  color: var(--primary) !important;
}

.dropdown-item svg {
  flex-shrink: 0;
}

/* HERO */
.hero-section {
  padding: 56px 0 48px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-content h1 {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0b2545;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-desc {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(11, 62, 120, 0.2);
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
}

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

.btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: var(--primary);
  border: 1px solid #cbd5e1;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.hero-badge-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.author-spotlight {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.author-spotlight-img {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 10px rgba(11, 62, 120, 0.12);
}

.author-spotlight h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 2px;
}

.author-spotlight p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.spotlight-quote {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.98rem;
  color: #334155;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin-bottom: 0;
  line-height: 1.55;
}

.spotlight-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 18px;
  text-align: center;
}

.spotlight-stats strong {
  display: block;
  font-size: 1.25rem;
  color: var(--primary);
}

.spotlight-stats span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

/* SECTIONS */
.section {
  padding: 56px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-header h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.link-arrow {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* ARTICLES GRID & CARDS (16:9 ASPECT RATIO & FULL CARD CLICK) */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.article-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md);
  transition: transform 0.2s ease;
}

.article-card-link:hover {
  transform: translateY(-3px);
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  border-left: 4px solid var(--primary);
}

.article-card-link:hover .article-card {
  box-shadow: 0 10px 25px rgba(28, 25, 23, 0.08);
  border-color: #cbd5e1;
}

/* Immagine di copertina 16:9 con ritaglio perfetto */
.article-cover-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f5f9;
}

.article-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.35s ease;
}

.article-card-link:hover .article-cover {
  transform: scale(1.02);
}

.article-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.article-badge {
  background: #eff6ff;
  color: #1e40af;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
}

.article-date {
  color: var(--text-muted);
}

.article-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 10px;
  transition: color 0.15s ease;
}

.article-card-link:hover .article-title {
  color: #9a3412; /* Accento terracotta al passaggio del mouse */
}

.article-excerpt {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  border-top: 1px dashed #e2e8f0;
  padding-top: 14px;
  margin-top: auto;
}

.reading-time {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.article-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #9a3412;
  transition: gap 0.2s ease;
}

.article-card-link:hover .article-read-btn {
  gap: 8px; /* Animazione leggera freccia verso destra */
}

/* Immagine di copertina nella pagina singola dell'articolo */
.article-single-cover-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 28px 0 36px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
}

.article-single-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ARCHIVE BUTTON & LIST */
.btn-archive-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #1c1917;
  border: 1px solid #cbd5e1;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-archive-link:hover {
  background: #1c1917;
  color: #ffffff;
  border-color: #1c1917;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(28, 25, 23, 0.15);
}

.archive-item-link:hover .archive-item-card {
  transform: translateY(-2px);
  border-color: #cbd5e1 !important;
  box-shadow: 0 6px 18px rgba(28, 25, 23, 0.08) !important;
}

.archive-item-link:hover h2 {
  color: #9a3412 !important;
}

/* SERVICES SECTION (VERDE SALVIA & CARTA CALDA) */
.section-services {
  background: #628073;       /* Verde salvia autentico, morbido e naturale */
  color: #ffffff;
  padding: 68px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.section-services .section-header h2 {
  color: #ffffff;
  font-size: 2.15rem;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-services .section-header p {
  color: #e6ede9;            /* Bianco salvia leggibilissimo */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.service-card {
  background: #ffffff;       /* Card bianche calde su sfondo salvia: stacco perfetto */
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 25px rgba(28, 45, 37, 0.12);
  color: #1c1917;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(28, 45, 37, 0.18);
}

.service-card.featured {
  background: #ffffff;
  border: 2px solid #3d6353;
  box-shadow: 0 12px 28px rgba(28, 45, 37, 0.16);
}

.service-card.card-recall {
  border-top: 4px solid #c2410c;
}

.service-card.card-events {
  border-top: 4px solid #eab308; /* Giallo dorato caldo, ben distinto dal terracotta */
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-icon-box.blue {
  background: #edf5f1;
  color: #2d5a47;            /* Verde lago / bosco */
  border: 1px solid #cce1d7;
}

.service-icon-box.red {
  background: #fff7ed;
  color: #c2410c;            /* Terracotta caldo per avvisi alimentari */
  border: 1px solid #fed7aa;
}

.service-icon-box.amber {
  background: #fefce8;
  color: #a16207;            /* Oro caldo elegante */
  border: 1px solid #fef08a;
}

.service-pill {
  position: absolute;
  top: 22px;
  right: 22px;
  background: #476a5b;       /* Tono salvia profondo */
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.service-pill.red {
  background: #c2410c;       /* Ruggine / terracotta */
}

.service-pill.amber {
  background: #ca8a04;       /* Giallo dorato elegante, non sbiadito */
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #1c1917;
  font-weight: 700;
  line-height: 1.3;
}

.service-card p {
  color: #57534e;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  margin-bottom: 26px;
  padding: 0;
}

.service-features li {
  font-size: 0.88rem;
  color: #44403c;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* BUTTONS */
.btn-service {
  display: block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-service-blue {
  background: #3d6353;       /* Salvia solido ed elegante */
  color: #ffffff;
  border: 1px solid #335345;
}

.btn-service-blue:hover {
  background: #2f4c3f;
  transform: translateY(-1px);
}

.btn-service-red {
  background: #c2410c;       /* Terracotta caldo */
  color: #ffffff;
  border: 1px solid #9a3412;
}

.btn-service-red:hover {
  background: #9a3412;
  transform: translateY(-1px);
}

.btn-service-amber {
  background: #ca8a04;       /* Giallo miele / zafferano dorato */
  color: #ffffff;
  border: 1px solid #a16207;
}

.btn-service-amber:hover {
  background: #a16207;
  transform: translateY(-1px);
}

/* THEMES GRID */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.theme-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.theme-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.theme-card h3 {
  font-size: 1.15rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.theme-card p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* SEZIONE CALLOUT PROGETTI & SITI WEB */
.section-webprojects {
  padding: 48px 20px 60px;
}

.webprojects-box {
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-left: 5px solid #9a3412; /* Accento terracotta caldo */
  border-radius: var(--radius-md);
  padding: 36px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  box-shadow: 0 4px 16px rgba(28, 25, 23, 0.04);
}

.webprojects-content {
  max-width: 680px;
}

.webprojects-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #9a3412;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 8px;
}

.webprojects-content h2 {
  font-size: 1.45rem;
  color: #1c1917;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.webprojects-content p {
  color: #57534e;
  font-size: 0.98rem;
  line-height: 1.65;
}

.webprojects-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  shrink: 0;
}

.btn-webprojects {
  background: #1c1917;
  color: #ffffff;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.btn-webprojects:hover {
  background: #9a3412; /* Hover terracotta */
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(154, 52, 18, 0.25);
}

.webprojects-email {
  font-size: 0.8rem;
  color: #78716c;
  font-family: monospace;
}

@media (max-width: 860px) {
  .section-webprojects {
    padding: 32px 16px 44px;
  }
  .webprojects-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 22px;
    gap: 20px;
  }
  .webprojects-action {
    width: 100%;
    align-items: flex-start;
  }
  .btn-webprojects {
    width: 100%;
    justify-content: center;
  }
}

/* FOOTER MINIMALE D'AUTORE (WARM STONE & TERRACOTTA) */
.site-footer {
  background: #1c1917;       /* Pietra calda scura / inchiostro caldo */
  color: #a8a29e;
  padding: 32px 0 28px;
  border-top: 1px solid #292524;
}

.footer-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
}

.footer-compact-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fafaf9;
}

.footer-tagline {
  color: #78716c;
  font-size: 0.85rem;
}

.footer-compact-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #78716c;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.footer-link {
  color: #a8a29e;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: #fdba74;            /* Accento caldo miele/terracotta */
  text-decoration: underline;
}

.footer-sep {
  color: #44403c;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 24px 0 72px;    /* Spazio extra inferiore per la bottom bar mobile */
  }
  .footer-compact {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-compact-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ADMIN FORM */
.admin-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.form-group label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #334155;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* SINGLE ARTICLE */
.article-single {
  max-width: 800px;
  margin: 40px auto 60px;
  padding: 0 20px;
}

.article-single-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.article-single-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin: 16px 0;
}

.article-single-lead {
  font-size: 1.15rem;
  color: #475569;
  line-height: 1.6;
  font-weight: 500;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1e293b;
  margin-bottom: 48px;
}

.article-author-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* AGENDA: ECOISTEMA CLAUDIO SIRMIO · MIELE & BLU NOTTE */
body.agenda-body {
  background-color: #faf9f6;
}

.agenda-shell {
  padding: 40px 20px 80px;
  max-width: 960px;
}

.agenda-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #b45309;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  border: 1px solid #fde68a;
}

.agenda-hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.agenda-hero-subtitle {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 28px;
}

/* FILTRI RAPIDI */
.agenda-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.filter-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
}

.filter-btn.active {
  background: #ca8a04;
  border-color: #ca8a04;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(202, 138, 4, 0.25);
}

.filter-btn .filter-count {
  display: inline-block;
  background: rgba(0, 0, 0, 0.07);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* GRIGLIA EVENTI */
.agenda-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 100%;
}

.agenda-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.agenda-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* Differenziazione Card: Cultura (Ambra) vs Civico (Blu Notte) */
.agenda-card.card-cultura {
  border-top: 4px solid #ca8a04;
}

.agenda-card.card-cultura:hover {
  border-color: #ca8a04;
}

.agenda-card.card-civico {
  border-top: 4px solid #0f2942;
}

.agenda-card.card-civico:hover {
  border-color: #0f2942;
}

.agenda-card-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.agenda-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.agenda-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.agenda-badge-cultura {
  background: #fef3c7;
  color: #b45309;
}

.agenda-badge-civico {
  background: #e0f2fe;
  color: #0369a1;
}

.agenda-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #b45309;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
}

.agenda-date svg {
  flex-shrink: 0;
  color: #b45309;
}

.agenda-card.card-civico .agenda-date {
  color: #0f2942;
}

.agenda-card.card-civico .agenda-date svg {
  color: #0f2942;
}

.agenda-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.agenda-place {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
  min-width: 0;
}

.agenda-place svg {
  flex-shrink: 0;
  color: #94a3b8;
}

.agenda-place span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-desc {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.48;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.agenda-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.agenda-source {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
}

.agenda-btn {
  background: #ca8a04;
  color: #ffffff !important;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.agenda-btn:hover {
  background: #a16207;
  transform: translateY(-1px);
}

.agenda-btn svg {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.agenda-btn:hover svg {
  transform: translateX(2px);
}

.agenda-card.card-civico .agenda-btn {
  background: #0f2942;
}

.agenda-card.card-civico .agenda-btn:hover {
  background: #1e3a5f;
}

/* RESPONSIVE & MOBILE FIRST UX */
.mobile-only {
  display: none !important;
}

.mobile-drawer {
  display: none;
}

.mobile-overlay {
  display: none;
}

.mobile-bottom-bar {
  display: none;
}

@media (max-width: 860px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: flex !important;
  }

  body {
    padding-bottom: 74px; /* Spazio per la bottom navigation bar mobile */
  }

  .shell {
    padding: 0 16px;
  }

  .header-inner {
    height: 64px;
  }

  .identity-photo-wrap {
    width: 44px;
    height: 44px;
  }

  .identity-name {
    font-size: 1.15rem;
  }

  /* HAMBURGER BUTTON */
  .mobile-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: var(--radius-sm);
  }

  .mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2.5px;
    background-color: var(--primary);
    border-radius: 2px;
  }

  /* DRAWER MOBILE */
  .mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 200;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 24px;
  }

  .mobile-drawer.open {
    right: 0;
  }

  .mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 20px;
  }

  .drawer-close {
    background: #f1f5f9;
    border: none;
    font-size: 1.2rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
  }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
  }

  .mobile-nav-links a {
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-nav-links a:active {
    background: #e2e8f0;
  }

  .mobile-drawer-footer {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
  }

  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  /* BOTTOM NAVIGATION BAR MOBILE STILE APP */
  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #ffffff;
    border-top: 1px solid #cbd5e1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 90;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
    padding: 0 8px;
  }

  .bottom-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: inherit;
    gap: 3px;
    cursor: pointer;
    flex: 1;
    height: 100%;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-bar-item.active {
    color: var(--primary);
    font-weight: 700;
  }

  .bottom-bar-item.highlight {
    color: #3d6353;
    font-weight: 700;
  }

  .bottom-icon {
    font-size: 1.25rem;
    line-height: 1;
  }

  /* LAYOUT ADATTATO PER SCHERMI SMARTPHONE */
  .hero-section {
    padding: 32px 0 28px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
    line-height: 1.25;
  }

  .hero-desc {
    font-size: 0.98rem;
    margin-bottom: 20px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions a {
    text-align: center;
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
  }

  .hero-badge-card {
    padding: 20px;
  }

  .author-spotlight-img {
    width: 58px;
    height: 58px;
  }

  .spotlight-quote {
    font-size: 0.92rem;
  }

  .section {
    padding: 40px 0;
  }

  .section-header {
    margin-bottom: 20px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .agenda-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
  }

  .agenda-card {
    padding: 16px 14px;
  }

  .agenda-title {
    font-size: 1.02rem;
  }

  .article-card {
    padding: 20px 18px;
  }

  .article-title {
    font-size: 1.15rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 24px;
  }

  .service-card {
    padding: 22px 18px;
  }

  .theme-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .theme-card {
    padding: 18px;
  }

  .focus-banner {
    padding: 24px 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-focus {
    width: 100%;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
