/* ============================================================
   CSS v7.0 — Protezione Civile Genzano di Roma
   Evoluzione completa: nuovi componenti, doppia modalità, hub rischi
   ============================================================ */

:root {
  --pc-primary: #003366;
  --pc-primary-dark: #00244d;
  --pc-primary-light: #004080;
  --pc-secondary: #FF6600;
  --pc-accent: #009246;
  --pc-danger: #d9364f;
  --pc-light-bg: #f2f5f8;
  --pc-warm-bg: #fafbfc;
  --pc-border-subtle: rgba(0,51,102,0.08);
  --pc-shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --pc-shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --pc-shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --pc-shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
  --pc-radius-sm: 4px;
  --pc-radius: 8px;
  --pc-radius-lg: 12px;
  --pc-transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: var(--pc-primary); color: #fff; }

/* ── EMERGENCY BANNER ── */
.emergency-banner {
  background: var(--pc-danger);
  color: #fff;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.emergency-banner a { color: #fff; font-weight: 700; }

/* ── ALLERTA BAR + PULSE ── */
.allerta-bar { padding: 0.6rem 0; font-size: 0.85rem; font-weight: 500; transition: background var(--pc-transition); }
.allerta-bar-verde { background: #28a745 !important; color: #fff !important; }
.allerta-bar-gialla { background: #ffc107 !important; color: #000 !important; }
.allerta-bar-arancione { background: #fd7e14 !important; color: #fff !important; }
.allerta-bar-rossa { background: #dc3545 !important; color: #fff !important; }

.allerta-bar-gialla,
.allerta-bar-arancione,
.allerta-bar-rossa { animation: pulse-allerta 2.5s ease-in-out infinite; }

@keyframes pulse-allerta {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.allerta-bar-btn { border-radius: 20px; font-size: 0.78rem; padding: 0.25rem 1rem; font-weight: 600; transition: all var(--pc-transition); }
.allerta-bar-verde .allerta-bar-btn { color: #fff; border-color: rgba(255,255,255,0.5); }
.allerta-bar-gialla .allerta-bar-btn { color: #000; border-color: rgba(0,0,0,0.3); }
.allerta-bar-arancione .allerta-bar-btn,
.allerta-bar-rossa .allerta-bar-btn { color: #fff; border-color: rgba(255,255,255,0.5); }
.allerta-bar-verde .allerta-bar-btn:hover,
.allerta-bar-arancione .allerta-bar-btn:hover,
.allerta-bar-rossa .allerta-bar-btn:hover { background: rgba(255,255,255,0.2); }
.allerta-bar-gialla .allerta-bar-btn:hover { background: rgba(0,0,0,0.1); }

/* ── HERO CON PATTERN ── */
.hero-section {
  background: linear-gradient(145deg, var(--pc-primary-dark) 0%, var(--pc-primary) 35%, var(--pc-primary-light) 100%);
  color: #fff;
  padding: 4rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255,102,0,0.05) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 L30 0 L60 30 L30 60Z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-section h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}
.hero-section h1 span.hero-highlight {
  display: block;
  color: var(--pc-secondary);
  font-size: 0.85em;
}
.hero-section .lead {
  font-size: 1.1rem;
  opacity: 0.85;
  position: relative;
  z-index: 1;
  max-width: 560px;
  line-height: 1.6;
}
.hero-section .btn { position: relative; z-index: 1; font-weight: 600; letter-spacing: 0.01em; }
.hero-section .btn-warning { background: var(--pc-secondary); border-color: var(--pc-secondary); color: #fff; }
.hero-section .btn-warning:hover { background: #e65c00; border-color: #e65c00; color: #fff; transform: translateY(-1px); }
@media (max-width: 768px) {
  .hero-section h1 { font-size: 2rem; }
  .hero-section { padding: 3rem 0; }
}

/* ── STATS HERO ── */
.stats-hero {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--pc-radius-lg);
  padding: 1.5rem;
}
.stat-hero-item { text-align: center; padding: 0.75rem 0; position: relative; }
.stat-hero-num { font-size: 2.4rem; font-weight: 800; display: block; line-height: 1; letter-spacing: -0.02em; }
.stat-hero-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.6; margin-top: 0.3rem; display: block; }
/* Separatori verticali */
.stats-hero .col-6:nth-child(odd) .stat-hero-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}

/* ── MINI HERO PER PAGINE INTERNE ── */
.page-hero {
  background: linear-gradient(135deg, var(--pc-primary-dark), var(--pc-primary));
  color: #fff;
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 L30 0 L60 30 L30 60Z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero h1 { font-size: 1.8rem; font-weight: 700; margin: 0; position: relative; z-index: 1; }
.page-hero .breadcrumb { margin-bottom: 0.5rem; font-size: 0.85rem; position: relative; z-index: 1; }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,0.7); text-decoration: none; }
.page-hero .breadcrumb-item a:hover { color: #fff; }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.page-hero .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ── SEZIONI ── */
.servizi-section { background: var(--pc-light-bg); padding: 3.5rem 0; }
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pc-primary);
  margin-bottom: 1.75rem;
  position: relative;
  padding-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--pc-secondary);
  border-radius: 2px;
}
.section-title.text-center::after { left: 50%; transform: translateX(-50%); }

/* ── QUICK ACTIONS (piu grandi) ── */
.quick-action-card {
  background: #fff;
  border: 1px solid var(--pc-border-subtle);
  border-radius: var(--pc-radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all var(--pc-transition);
  text-decoration: none;
  color: #333;
  display: block;
}
.quick-action-card:hover {
  border-color: var(--pc-primary);
  box-shadow: var(--pc-shadow-lg);
  color: var(--pc-primary);
  transform: translateY(-5px);
}
.quick-action-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 1.6rem;
  transition: transform var(--pc-transition);
}
.quick-action-card:hover .quick-action-icon { transform: scale(1.1) rotate(-5deg); }
.quick-action-icon.icon-warning { background: rgba(255,193,7,0.12); color: #e6a700; }
.quick-action-icon.icon-primary { background: rgba(0,51,102,0.08); color: var(--pc-primary); }
.quick-action-icon.icon-danger { background: rgba(220,53,69,0.1); color: #dc3545; }
.quick-action-icon.icon-success { background: rgba(0,146,70,0.1); color: var(--pc-accent); }
.quick-action-card strong { font-size: 0.9rem; display: block; margin-top: 0.25rem; }
.quick-action-card .qa-desc { font-size: 0.75rem; color: #888; margin-top: 0.25rem; }

/* ── CARD SERVIZI CON ICONE CIRCOLARI ── */
.card-servizio {
  transition: all var(--pc-transition);
  border: 1px solid var(--pc-border-subtle);
  border-radius: var(--pc-radius-lg);
  background: #fff;
  overflow: hidden;
}
.card-servizio:hover {
  transform: translateY(-5px);
  box-shadow: var(--pc-shadow-hover);
  border-color: transparent;
}
.card-servizio .btn { border-radius: 20px; font-size: 0.8rem; padding: 0.35rem 1.2rem; }
.servizio-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  transition: all var(--pc-transition);
}
.card-servizio:hover .servizio-icon { transform: scale(1.08); }
.servizio-icon.si-blue { background: rgba(0,51,102,0.08); color: var(--pc-primary); }
.servizio-icon.si-orange { background: rgba(255,102,0,0.08); color: var(--pc-secondary); }
.servizio-icon.si-teal { background: rgba(0,123,138,0.08); color: #007b8a; }
.servizio-icon.si-green { background: rgba(0,146,70,0.08); color: var(--pc-accent); }

/* ── NOTIZIE ── */
.notizie-section { padding: 3.5rem 0; background: var(--pc-warm-bg); }
.card-notizia-hero {
  border: none;
  border-radius: var(--pc-radius-lg);
  overflow: hidden;
  box-shadow: var(--pc-shadow-md);
  transition: all var(--pc-transition);
  background: #fff;
}
.card-notizia-hero:hover { box-shadow: var(--pc-shadow-hover); transform: translateY(-4px); }
.card-notizia-hero-img { height: 260px; overflow: hidden; }
.card-notizia-hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card-notizia-hero:hover .card-notizia-hero-img img { transform: scale(1.05); }
.card-notizia-small {
  border: none;
  border-radius: var(--pc-radius);
  overflow: hidden;
  box-shadow: var(--pc-shadow-sm);
  transition: all var(--pc-transition);
  background: #fff;
}
.card-notizia-small:hover { box-shadow: var(--pc-shadow-md); transform: translateX(4px); }
.card-notizia-small-img { height: 100%; min-height: 90px; overflow: hidden; }
.card-notizia-small-img img { width: 100%; height: 100%; object-fit: cover; }

.notizia-categoria {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}
.notizia-categoria.allerta { background: var(--pc-danger); color: #fff; }
.notizia-categoria.avviso { background: #ffc107; color: #000; }
.notizia-categoria.evento { background: var(--pc-accent); color: #fff; }
.notizia-categoria.comunicazione { background: var(--pc-primary); color: #fff; }
.notizia-data { font-size: 0.78rem; color: #6c757d; }
.notizia-titolo { font-size: 1.05rem; font-weight: 600; color: #1a1a1a; margin-bottom: 0.4rem; line-height: 1.35; }
.notizia-titolo a { color: inherit; text-decoration: none; }
.notizia-titolo a:hover { color: var(--pc-primary); }
.notizia-excerpt { font-size: 0.88rem; color: #555; line-height: 1.55; }
.notizia-link {
  font-size: 0.82rem; font-weight: 600; color: var(--pc-primary); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.3rem; transition: all var(--pc-transition);
}
.notizia-link:hover { color: var(--pc-secondary); gap: 0.5rem; }

.notizia-img-wrapper { width: 100%; overflow: hidden; background: var(--pc-primary); }
.notizia-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.card-notizia {
  border: none; border-radius: 0; border-left: 4px solid var(--pc-primary);
  transition: all var(--pc-transition); background: #fff;
}
.card-notizia:hover { border-left-color: var(--pc-secondary); box-shadow: var(--pc-shadow-md); }

/* ── SOCIAL ── */
.card-social-link {
  border: 1px solid var(--pc-border-subtle); border-radius: var(--pc-radius);
  transition: all var(--pc-transition); display: flex; align-items: center;
  text-decoration: none; color: #333; padding: 0.7rem 1rem;
}
.card-social-link:hover { border-color: var(--pc-primary); box-shadow: var(--pc-shadow-sm); color: #333; transform: translateX(2px); }

/* ── BADGES ALLERTE ── */
.badge-allerta-verde { background: #28a745; color: #fff; padding: 0.5em 1em; border-radius: var(--pc-radius-sm); }
.badge-allerta-gialla { background: #ffc107; color: #000; padding: 0.5em 1em; border-radius: var(--pc-radius-sm); }
.badge-allerta-arancione { background: #fd7e14; color: #fff; padding: 0.5em 1em; border-radius: var(--pc-radius-sm); }
.badge-allerta-rossa { background: #dc3545; color: #fff; padding: 0.5em 1em; border-radius: var(--pc-radius-sm); }

/* ── TIMELINE ── */
.timeline-wrapper { position: relative; padding-left: 1rem; }
.timeline-item {
  position: relative; padding-left: 2rem; margin-bottom: 1.25rem;
  border-left: 2px solid rgba(0,51,102,0.15); padding-bottom: 0.5rem;
  transition: all var(--pc-transition);
}
.timeline-item:hover { border-left-color: var(--pc-secondary); }
.timeline-item::before {
  content: ''; position: absolute; left: -7px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--pc-primary); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--pc-primary); transition: all var(--pc-transition);
}
.timeline-item:hover::before { background: var(--pc-secondary); box-shadow: 0 0 0 2px var(--pc-secondary); }

/* ── TABLES ── */
table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; border-radius: var(--pc-radius); overflow: hidden; box-shadow: var(--pc-shadow-sm); }
table th { background: var(--pc-primary); color: #fff; padding: 0.75rem 1rem; font-weight: 600; font-size: 0.85rem; }
table td { padding: 0.75rem 1rem; border-bottom: 1px solid #e9ecef; font-size: 0.88rem; }
table tr:nth-child(even) { background: #f8f9fa; }
table tr { transition: background var(--pc-transition); }
table tr:hover { background: #e8f4fd; }

/* ── FOOTER RIDISEGNATO ── */
.it-footer .it-footer-main { background: var(--pc-primary) !important; }
.it-footer .it-footer-small-prints { background: var(--pc-primary-dark) !important; }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px;
  background: var(--pc-primary); color: #fff; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s ease;
  z-index: 999; box-shadow: var(--pc-shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--pc-secondary); transform: translateY(-3px); box-shadow: var(--pc-shadow-lg); }

/* ── ANIMATIONS ── */
.fade-in-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* ── 404 ── */
.page-404 { text-align: center; padding: 5rem 0; }
.page-404 h1 { font-size: 7rem; font-weight: 800; color: var(--pc-primary); margin-bottom: 0; letter-spacing: -0.04em; opacity: 0.85; }
.page-404 h2 { font-size: 1.4rem; color: #555; margin-bottom: 2rem; font-weight: 400; }

/* ── FOOTER LINK ── */
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 0.4rem; }
.footer-list .list-item { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.88rem; transition: color var(--pc-transition); }
.footer-list .list-item:hover { color: #fff; }

/* ── SEARCH ── */
#search-results .search-result-item { padding: 1rem 0; border-bottom: 1px solid #eee; }
#search-results .search-result-item h3 a { color: var(--pc-primary); text-decoration: none; }
#search-results .search-result-item h3 a:hover { text-decoration: underline; }

/* ── ACCESSIBILITY ── */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible { outline: 3px solid #ff9900; outline-offset: 2px; }
.skip-to-content {
  position: absolute; top: -100%; left: 0; background: var(--pc-primary); color: #fff;
  padding: 0.75rem 1.5rem; z-index: 9999; font-weight: 700; text-decoration: none;
  border-radius: 0 0 var(--pc-radius-sm) var(--pc-radius-sm);
}
.skip-to-content:focus { top: 0; }

/* ── BUTTONS ── */
.btn-outline-primary { border-color: var(--pc-primary); color: var(--pc-primary); border-radius: 20px; font-weight: 600; font-size: 0.88rem; padding: 0.45rem 1.5rem; transition: all var(--pc-transition); }
.btn-outline-primary:hover { background: var(--pc-primary); color: #fff; box-shadow: var(--pc-shadow-sm); }
.btn-primary { background: var(--pc-primary); border-color: var(--pc-primary); border-radius: 20px; font-weight: 600; }
.btn-primary:hover { background: var(--pc-primary-dark); border-color: var(--pc-primary-dark); }

/* ── PRINT ── */
@media print {
  .navbar, footer, .cookiebar, .skip-to-content, .it-header-slim-wrapper,
  .hero-section { background: #fff !important; color: #000 !important; padding: 1rem 0; }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .card-notizia-hero-img { height: 200px; }
  .section-title { font-size: 1.35rem; }
  .stat-hero-num { font-size: 1.8rem; }
  .quick-action-card { padding: 1rem; }
  .quick-action-icon { width: 52px; height: 52px; font-size: 1.3rem; }
  .page-hero h1 { font-size: 1.4rem; }
  .servizio-icon { width: 56px; height: 56px; font-size: 1.4rem; }
}


/* ── HAMBURGER MOBILE: icona visibile ── */
.custom-navbar-toggler .icon {
  fill: var(--pc-primary);
}

/* ── CARD PREVISIONI METEO (solo le 3 giornaliere, non la card blu) ── */
#forecast-container .row .card {
  border: 1px solid rgba(0,51,102,0.1) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
  background: #f8fafc !important;
}
#forecast-container .row .card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
}


/* ── BANNER EMERGENZA (7 colori Designers Italia) ── */
.emergenza-banner {
  padding: 0.75rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  animation: pulse-allerta 2.5s ease-in-out infinite;
}
.emergenza-banner a.btn { font-size: 0.78rem; border-radius: 20px; }
.emergenza-blu { background: #0066CC; color: #fff; }
.emergenza-azzurro { background: #0073E6; color: #fff; }
.emergenza-verde { background: #008758; color: #fff; }
.emergenza-giallo { background: #A66300; color: #fff; }
.emergenza-arancione { background: #CC5C00; color: #fff; }
.emergenza-rosso { background: #CC334D; color: #fff; }
.emergenza-viola { background: #7B2D8E; color: #fff; }

/* ── IMMAGINI ARTICOLI: sempre centrate e responsive ── */
article img {
  display: block;
  margin: 1.5rem auto;
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
  article img {
    max-width: 280px;
  }
}

/* ── GALLERIA AUTOMATICA: 2+ immagini consecutive ── */
article p:has(img) + p:has(img) {
  display: inline-block;
  width: 48%;
  vertical-align: top;
  margin-right: 2%;
}
article .galleria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
article .galleria img {
  margin: 0;
  max-width: 100%;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
@media (max-width: 768px) {
  article .galleria {
    grid-template-columns: repeat(2, 1fr);
  }
  article .galleria img {
    height: 150px;
  }
}

/* ============================================================
   CSS v7.0 — NUOVI COMPONENTI
   ============================================================ */

/* ── HERO COMPATTO (modalità emergenza) ── */
.hero-section.hero-compact {
  padding: 2.5rem 0 3rem;
}
.hero-section.hero-compact h1 {
  font-size: 2.2rem;
}
@media (max-width: 768px) {
  .hero-section.hero-compact {
    padding: 2rem 0;
  }
  .hero-section.hero-compact h1 {
    font-size: 1.6rem;
  }
}

/* ── EMERGENCY ACTIONS ── */
.emergency-actions-section {
  background: #fff5f5;
  border-bottom: 3px solid var(--pc-danger);
}
.emergency-actions-section .card {
  border-radius: var(--pc-radius);
  transition: all var(--pc-transition);
}
.emergency-actions-section .card:hover {
  box-shadow: var(--pc-shadow-md);
}

/* ── NUMERI UTILI (blocco espanso) ── */
.numero-utile-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ── SERVIZIO ICON — variante dark ── */
.servizio-icon.si-dark {
  background: rgba(33,37,41,0.1);
  color: #212529;
}

/* ── PAGE TOOLS ── */
.page-tools {
  border-color: var(--pc-border-subtle) !important;
}
.page-tools .btn-outline-secondary {
  border-radius: 20px;
  font-size: 0.8rem;
  padding: 0.3rem 1rem;
}

/* ── BREADCRUMB NAV ── */
.breadcrumb-nav {
  margin-bottom: 0.5rem;
}

/* ── CARD NOTIZIA HERO (homepage) ── */
.card-notizia-hero {
  border: none;
  border-radius: var(--pc-radius-lg);
  overflow: hidden;
  transition: all var(--pc-transition);
  box-shadow: var(--pc-shadow-sm);
}
.card-notizia-hero:hover {
  box-shadow: var(--pc-shadow-lg);
  transform: translateY(-3px);
}
.card-notizia-hero-img {
  height: 220px;
  overflow: hidden;
  background: var(--pc-light-bg);
}
.card-notizia-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card-notizia-hero:hover .card-notizia-hero-img img {
  transform: scale(1.03);
}

/* ── CARD NOTIZIA SMALL (homepage laterale) ── */
.card-notizia-small {
  border: 1px solid var(--pc-border-subtle);
  border-radius: var(--pc-radius);
  overflow: hidden;
  transition: all var(--pc-transition);
}
.card-notizia-small:hover {
  border-color: var(--pc-primary);
  box-shadow: var(--pc-shadow-sm);
}
.card-notizia-small-img {
  height: 100%;
  min-height: 80px;
  overflow: hidden;
  background: var(--pc-light-bg);
}
.card-notizia-small-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── NOTIZIE SECTION ── */
.notizie-section {
  padding: 3rem 0;
  background: var(--pc-warm-bg);
}

/* ── FAQ ACCORDION STYLE ── */
.faq-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pc-primary);
  margin-top: 1.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--pc-border-subtle);
}

/* ── BADGE NOTIZIE — nuovi tipi ── */
.notizia-categoria.allerta {
  background: var(--pc-danger);
  color: #fff;
}
.notizia-categoria.formazione {
  background: #6f42c1;
  color: #fff;
}
.notizia-categoria.volontariato {
  background: var(--pc-accent);
  color: #fff;
}
.notizia-categoria.attività {
  background: #17a2b8;
  color: #fff;
}

/* ── PRINT MIGLIORATO ── */
@media print {
  .emergency-banner,
  .allerta-bar,
  .emergenza-banner,
  .back-to-top,
  #cookie-banner,
  .it-header-slim-wrapper,
  .page-tools .btn {
    display: none !important;
  }
  .page-hero {
    background: #fff !important;
    color: #000 !important;
    padding: 1rem 0;
  }
  .page-hero h1 {
    color: #000 !important;
  }
  .page-hero .breadcrumb-item a,
  .page-hero .breadcrumb-item.active {
    color: #333 !important;
  }
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
  a[href^="#"]::after,
  a[href^="javascript"]::after,
  nav a[href]::after {
    content: none;
  }
}

/* ── LINK CARD (cosa fare adesso) ── */
.card.shadow-sm:hover {
  box-shadow: var(--pc-shadow-md) !important;
}

/* ── UTILITY BAR (data/ora + ultimo aggiornamento) ── */
.utility-bar {
  background: var(--pc-light-bg);
  border-top: 1px solid var(--pc-border-subtle);
  border-bottom: 1px solid var(--pc-border-subtle);
  padding: 0.5rem 0;
  font-size: 0.78rem;
  color: #6c757d;
}
.utility-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.utility-bar-item i {
  font-size: 0.85rem;
  opacity: 0.7;
}
@media (max-width: 768px) {
  .utility-bar .d-flex {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }
}
@media print {
  .utility-bar { display: none !important; }
}

/* ── SLIM HEADER — Pulsante Area Volontari ── */
.btn-slim-header {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.75rem;
  text-decoration: none;
  transition: all var(--pc-transition);
  white-space: nowrap;
}
.btn-slim-header:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-slim-header:focus-visible {
  outline: 3px solid #ff9900;
  outline-offset: 2px;
}
.slim-header-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.3);
  margin: 0 0.5rem;
  vertical-align: middle;
}

/* ── COMUNICAZIONE URGENTE ── */
.comunicazione-urgente {
  border-left: 4px solid var(--pc-danger);
  padding-left: 1rem;
  margin-left: -1rem;
}
