/* ============================================================
   InfoComuni · Sprint 9h (03/05/2026) — Polish "10/10"
   --------------------------------------------------------------
   10 fix grafici per portare la home da 9.98 a 10/10 di qualità
   percepita. Nessun cambio strutturale: solo CSS che si sovrappone
   a fogli precedenti (caricato per ULTIMO nel <head>).
   ============================================================ */

/* === 1. Hero CTA primario "Trova il tuo Comune" =========== */
.ic-hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  margin: 16px auto 0;
  background: #FFCC33;
  color: #0b2340;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border-radius: 12px;
  border: 2px solid #FFCC33;
  box-shadow: 0 6px 20px rgba(255, 204, 51, 0.35), 0 1px 0 rgba(255,255,255,0.3) inset;
  transition: transform .15s, box-shadow .15s, background .15s;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.ic-hero-cta-primary:hover {
  transform: translateY(-2px);
  background: #FFD966;
  box-shadow: 0 10px 28px rgba(255, 204, 51, 0.45);
  text-decoration: none;
}
.ic-hero-cta-primary:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}
.ic-hero-cta-primary svg {
  width: 20px;
  height: 20px;
}
.ic-hero-cta-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 12px 0 8px;
}
@media (prefers-reduced-motion: reduce) {
  .ic-hero-cta-primary, .ic-hero-cta-primary:hover { transition: none; transform: none; }
}

/* === 2. Province pills: COMPATTE, UNIFORMI, TUTTE SU UN RIGO ====
   Sprint 9i (03/05/2026): rimosso watermark icona + caption "Click per
   espandere" che gonfiavano la card a 82px. Ora pill compatte 44px
   altezza, badge inline accanto al nome, chevron piccolo. */
#provPills,
.prov-pills {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 8px !important;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  #provPills, .prov-pills { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 420px) {
  #provPills, .prov-pills { grid-template-columns: repeat(2, 1fr) !important; }
}

.prov-pill-wrap[data-prov] {
  display: block;
}
.prov-pill-wrap[data-prov] .prov-pill {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 44px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  cursor: pointer;
  list-style: none;
}
.prov-pill-wrap[data-prov] .prov-pill::-webkit-details-marker { display: none !important; }
.prov-pill-wrap[data-prov] .prov-pill > .ic-prov-name-fixed {
  display: inline !important;
  font-size: 17px !important;
  line-height: 1.1 !important;
  letter-spacing: 0.01em !important;
  font-weight: 700 !important;
  margin: 0 !important;
}
.prov-pill-wrap[data-prov] .prov-pill > small {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(200,155,60,0.16) !important;
  color: #8a6a1f !important;
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  line-height: 1 !important;
  min-width: 28px;
  justify-content: center;
}
.prov-pill__chev {
  width: 14px !important;
  height: 14px !important;
  opacity: 0.6;
  margin-left: 2px;
  flex-shrink: 0;
  transition: transform .2s;
}
.prov-pill-wrap[open] .prov-pill__chev {
  transform: rotate(180deg);
  opacity: 1;
  color: #FFCC33;
}
/* Dark mode override badge color */
html.force-dark .prov-pill-wrap[data-prov] .prov-pill > small {
  background: rgba(255,204,51,0.18) !important;
  color: #FFCC33 !important;
}

/* === 3. H1 hero visibile (era sr-only) ==================== */
.ic-hero-h1-visible {
  font-family: 'Anton', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-align: center;
  margin: 0 0 8px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.ic-hero-h1-visible__accent {
  display: block;
  font-size: 0.6em;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #FFCC33;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.ic-hero-h1-visible__sub {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.32em;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 8px;
  text-transform: none;
}
html.force-light .ic-hero-h1-visible { color: #0b2340; text-shadow: none; }
html.force-light .ic-hero-h1-visible__accent { color: #8C6814; }
html.force-light .ic-hero-h1-visible__sub { color: #4B5563; }

/* === 4. "Cosa cerchi oggi?" cards: pop visivo ==========
   Tengo bg neutro (l'originale è bianco/grigio molto chiaro), miglioro
   solo gli accent: hover gold-tinted, freccia → on hover, contrast text. */
.ic-v3-arg-grid .ic-v3-arg-card,
section[aria-labelledby="ic-v3-args-title"] .ic-v3-arg-card {
  border: 1px solid rgba(11,35,64,0.08);
  border-radius: 14px;
  padding: 22px 20px;
  transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
  position: relative;
  overflow: hidden;
}
.ic-v3-arg-grid .ic-v3-arg-card:hover,
section[aria-labelledby="ic-v3-args-title"] .ic-v3-arg-card:hover {
  transform: translateY(-3px);
  border-color: #FFCC33;
  box-shadow: 0 10px 26px rgba(11,35,64,0.10), 0 0 0 4px rgba(255,204,51,0.12);
}
/* Icona accent gold-tinted */
.ic-v3-arg-grid .ic-v3-arg-card .ic-v3-arg-icon,
section[aria-labelledby="ic-v3-args-title"] .ic-v3-arg-card .ic-v3-arg-icon {
  background: rgba(255, 204, 51, 0.16) !important;
  color: #8C6814 !important;
  border-radius: 10px;
  padding: 10px;
  width: 48px;
  height: 48px;
  transition: background .2s, color .2s;
}
.ic-v3-arg-grid .ic-v3-arg-card:hover .ic-v3-arg-icon,
section[aria-labelledby="ic-v3-args-title"] .ic-v3-arg-card:hover .ic-v3-arg-icon {
  background: #FFCC33 !important;
  color: #0b2340 !important;
}
/* Title contrast safe */
.ic-v3-arg-grid .ic-v3-arg-card .ic-v3-arg-card__h,
section[aria-labelledby="ic-v3-args-title"] .ic-v3-arg-card h3 {
  color: #0b2340 !important;
  font-size: 18px;
  font-weight: 700;
  margin: 16px 0 6px;
}
/* Description contrast safe (#374151 = 11.6:1 su bianco) */
.ic-v3-arg-grid .ic-v3-arg-card .ic-v3-arg-card__d,
.ic-v3-arg-grid .ic-v3-arg-card p,
section[aria-labelledby="ic-v3-args-title"] .ic-v3-arg-card p {
  color: #374151 !important;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
/* Freccia → on hover */
.ic-v3-arg-grid .ic-v3-arg-card::after,
section[aria-labelledby="ic-v3-args-title"] .ic-v3-arg-card::after {
  content: "→";
  position: absolute;
  bottom: 14px;
  right: 18px;
  font-size: 22px;
  color: #8C6814;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  font-weight: 700;
}
.ic-v3-arg-grid .ic-v3-arg-card:hover::after,
section[aria-labelledby="ic-v3-args-title"] .ic-v3-arg-card:hover::after {
  opacity: 1;
  transform: translateX(3px);
}
/* Dark mode: card navy soft con icone gold */
html.force-dark .ic-v3-arg-grid .ic-v3-arg-card,
html.force-dark section[aria-labelledby="ic-v3-args-title"] .ic-v3-arg-card {
  background: #142240 !important;
  border-color: rgba(255,255,255,0.10);
}
html.force-dark .ic-v3-arg-grid .ic-v3-arg-card .ic-v3-arg-icon,
html.force-dark section[aria-labelledby="ic-v3-args-title"] .ic-v3-arg-card .ic-v3-arg-icon {
  background: rgba(255,204,51,0.18) !important;
  color: #FFCC33 !important;
}
html.force-dark .ic-v3-arg-grid .ic-v3-arg-card .ic-v3-arg-card__h,
html.force-dark section[aria-labelledby="ic-v3-args-title"] .ic-v3-arg-card h3 {
  color: #ffffff !important;
}
html.force-dark .ic-v3-arg-grid .ic-v3-arg-card .ic-v3-arg-card__d,
html.force-dark section[aria-labelledby="ic-v3-args-title"] .ic-v3-arg-card p {
  color: #c8d4dc !important;
}

/* === 5. JobCoin box: crema → navy ========================= */
.ic-v3-jobcoin {
  background: linear-gradient(135deg, #0b2340 0%, #142240 50%, #1a2c4d 100%) !important;
  color: #ffffff !important;
  border: 2px solid rgba(255, 204, 51, 0.3) !important;
  border-radius: 16px;
  padding: 28px 28px 28px 32px !important;
  box-shadow: 0 8px 28px rgba(11, 35, 64, 0.35);
  position: relative;
  overflow: hidden;
}
.ic-v3-jobcoin::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 204, 51, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.ic-v3-jobcoin__logo {
  background: #FFCC33 !important;
  border-radius: 50%;
  padding: 4px;
}
.ic-v3-jobcoin__eye {
  color: #FFCC33 !important;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px !important;
  letter-spacing: 0.08em;
}
.ic-v3-jobcoin__h {
  color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  margin: 6px 0 4px !important;
}
.ic-v3-jobcoin__d {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 14px;
}
.ic-v3-jobcoin__d strong {
  color: #FFCC33 !important;
}
.ic-v3-jobcoin__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #FFCC33;
  color: #0b2340 !important;
  font-weight: 700;
  border-radius: 10px;
  font-size: 14px;
  margin-left: auto;
}
.ic-v3-jobcoin:hover .ic-v3-jobcoin__cta {
  background: #FFD966;
}

/* === 6. Calendar widget: date 36×36 + spacing ============ */
#calCalendar td button,
.cal-grid button,
.cal-day {
  min-width: 36px !important;
  min-height: 36px !important;
  font-size: 14px !important;
  padding: 4px !important;
}
.cal-grid {
  border-spacing: 4px !important;
}
#calCalendar th {
  font-size: 11px !important;
  letter-spacing: 0.05em;
  padding: 6px 4px !important;
  font-weight: 700;
}
.cal-tabs button,
#calTabs button {
  min-height: 32px !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
}

/* === 7. Mappa Puglia: legenda pin colorati =============== */
.ic-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(11, 35, 64, 0.1);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #0b2340;
  margin-bottom: 8px;
  backdrop-filter: blur(6px);
}
html.force-dark .ic-map-legend {
  background: rgba(20, 34, 64, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e8ecf1;
}
.ic-map-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.ic-map-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

/* === 8. Meteo tabella: riga 48px + numeri 18px =========== */
.meteo-table tr,
.ic-meteo-row,
[class*="meteo"] tbody tr {
  min-height: 48px;
}
.meteo-table td,
.ic-meteo-cell,
[class*="meteo"] td {
  padding: 10px 12px !important;
  vertical-align: middle;
}
.meteo-table .meteo-temp-max,
.ic-meteo-temp-max,
[class*="meteo"] [class*="temp-max"] {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0b2340;
}
.meteo-table .meteo-temp-min,
.ic-meteo-temp-min,
[class*="meteo"] [class*="temp-min"] {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #4B5563;
}
html.force-dark .meteo-table .meteo-temp-max { color: #ffffff; }
html.force-dark .meteo-table .meteo-temp-min { color: #C8D4DC; }
.meteo-table .meteo-day,
[class*="meteo"] [class*="day"] {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.meteo-table svg, .meteo-table img,
[class*="meteo"] td svg, [class*="meteo"] td img {
  width: 24px !important;
  height: 24px !important;
}

/* === 9. Footer social icons: brand color on hover ======== */
.ica-foot__social a,
.ica-foot__socials a,
[class*="social"] a {
  transition: background .15s, color .15s, transform .15s;
}
[href*="facebook.com"]:hover { background: #1877F2 !important; color: #ffffff !important; }
[href*="twitter.com"]:hover, [href*="x.com"]:hover { background: #000000 !important; color: #ffffff !important; }
[href*="linkedin.com"]:hover { background: #0A66C2 !important; color: #ffffff !important; }
[href*="instagram.com"]:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  color: #ffffff !important;
}
[href*="youtube.com"]:hover, [href*="youtu.be"]:hover { background: #FF0000 !important; color: #ffffff !important; }
[href*="whatsapp"]:hover, [href*="wa.me"]:hover { background: #25D366 !important; color: #ffffff !important; }
.ica-foot__social a:hover svg,
[class*="social"] a:hover svg {
  transform: scale(1.1);
}

/* === 10. Easy Read FAB consolidato a topbar ============ */
/* Riduce dimensione e sposta accanto al pannello a11y. Il FAB
   floating viene nascosto su desktop (resta su mobile come supporto). */
@media (min-width: 900px) {
  .ic-easy-read-fab {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: rgba(255,204,51,0.2) !important;
    border: 1px solid rgba(255,204,51,0.5) !important;
    color: #FFCC33 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 4px !important;
  }
  .ic-easy-read-fab__label {
    display: none !important;
  }
  .ic-easy-read-fab svg {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
  }
  /* Sposta il FAB nella site-header__utils via JS (vedi index.html script) */
  .site-header__utils .ic-easy-read-fab {
    background: rgba(11,35,64,0.06) !important;
    border-color: rgba(11,35,64,0.18) !important;
    color: #0b2340 !important;
  }
  html.force-dark .site-header__utils .ic-easy-read-fab {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.18) !important;
    color: #FFCC33 !important;
  }
}

/* ============================================================
   Sprint 9j (03/05/2026) — Topbar simmetria + kiosk comune contrast
   ============================================================ */

/* === TOPBAR NAV: nowrap su tutte le voci (era "257 / COMUNI" 2 righe) === */
.site-header .site-header__nav,
nav.site-header__nav {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 24px;
}
.site-header__nav a,
nav.site-header__nav > a {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  nav.site-header__nav { gap: 16px; }
}

/* === TOPBAR UTILS: gap uniforme + altezza fissa 56px === */
.site-header__utils {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}
.site-header,
header.site-header {
  min-height: 56px;
}

/* === EASY READ FAB: shape circolare coerente (no bordo giallo rettangolare) === */
@media (min-width: 900px) {
  .site-header__utils .ic-easy-read-fab,
  .site-header .ic-easy-read-fab {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    background: rgba(11,35,64,0.06) !important;
    border: 1px solid rgba(11,35,64,0.18) !important;
    color: #0b2340 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    flex-shrink: 0;
  }
  html.force-dark .site-header__utils .ic-easy-read-fab,
  html.force-dark .site-header .ic-easy-read-fab {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.18) !important;
    color: #FFCC33 !important;
  }
  .site-header__utils .ic-easy-read-fab:hover,
  .site-header .ic-easy-read-fab:hover {
    background: rgba(255,204,51,0.18) !important;
    border-color: #FFCC33 !important;
  }
  .site-header__utils .ic-easy-read-fab svg,
  .site-header .ic-easy-read-fab svg {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
  }
  .site-header__utils .ic-easy-read-fab__label,
  .site-header .ic-easy-read-fab__label {
    display: none !important;
  }
}

/* === KIOSK COMUNE: contrast box giallo "Mappa Multimediale" === */
/* Era giallo crema (#FFCC33-ish) con testo giallo light = contrast 1.5:1.
   Ora bg navy con accent gold per il box pro + tasti tab uniformi. */
.kiosk-comune-pro,
.comune-mappa-multimediale,
[class*="esperienza-pro"],
[class*="experience-pro"] {
  background: linear-gradient(135deg, #0b2340 0%, #142240 100%) !important;
  color: #ffffff !important;
  border: 2px solid #FFCC33 !important;
  border-radius: 16px;
  padding: 24px !important;
}
.kiosk-comune-pro h2,
.kiosk-comune-pro h3,
.comune-mappa-multimediale h2,
.comune-mappa-multimediale h3,
[class*="esperienza-pro"] h2,
[class*="esperienza-pro"] h3 {
  color: #ffffff !important;
}
.kiosk-comune-pro p,
.comune-mappa-multimediale p,
[class*="esperienza-pro"] p {
  color: rgba(255,255,255,0.85) !important;
}
/* Badge "ESPERIENZA PRO · NEW" nel box: contrast safe */
.kiosk-comune-pro [class*="badge"],
.kiosk-comune-pro [class*="tag"],
[class*="esperienza-pro"] [class*="badge"] {
  background: #FFCC33 !important;
  color: #0b2340 !important;
  font-weight: 700;
}
/* CTA "Avvia esperienza" gold/navy contrast */
.kiosk-comune-pro [class*="cta"],
.kiosk-comune-pro a.btn,
.kiosk-comune-pro button {
  background: #FFCC33 !important;
  color: #0b2340 !important;
  border: 2px solid #FFCC33 !important;
  font-weight: 700;
}
/* Tasti tab kiosk comune (Servizi/Phone/Istruzione/Mobile) uniformi */
[class*="comune-tabs"] button,
.kiosk-comune-tabs button,
.comune-toolbar button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
  min-height: 48px;
  padding: 10px 16px !important;
  background: rgba(11,35,64,0.06) !important;
  border: 2px solid rgba(11,35,64,0.18) !important;
  border-radius: 12px !important;
  color: #0b2340 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
[class*="comune-tabs"] button:hover,
[class*="comune-tabs"] button[aria-selected="true"],
[class*="comune-tabs"] button.is-active,
.comune-toolbar button:hover,
.comune-toolbar button.is-active {
  background: #FFCC33 !important;
  border-color: #FFCC33 !important;
  color: #0b2340 !important;
}
html.force-dark [class*="comune-tabs"] button,
html.force-dark .comune-toolbar button {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.18) !important;
  color: #ffffff !important;
}
html.force-dark [class*="comune-tabs"] button:hover,
html.force-dark [class*="comune-tabs"] button[aria-selected="true"] {
  background: #FFCC33 !important;
  color: #0b2340 !important;
}

/* === Sprint 9j (03/05/2026): fix definitivo prov-pill banner province ===
   1) Elimina i "quadratini" beige dentro le pill (small vuoti, pseudo-element
      ::before/::after con background, badge orphan).
   2) Garantisce apertura del menu a tendina (display/visibility/opacity dei
      .prov-dd quando il <details>.prov-pill-wrap è [open]).
   3) Riduce gli spazi sopra e sotto al banner province (hero padding e
      gap con la sezione "Argomenti del cittadino").
   Selettori a max-specificità per battere ic-hero-agid.css e ic-sprint9h.css. */

/* 0) KILL quadratino visibile dietro al chevron: ic-editorial-skin.css ha
      [class*="pill"] che cattura anche .prov-pill__chev (contiene "pill")
      e gli applica background:var(--ic-paper-2) + border:1px solid #e4ddcc.
      Rimuovo bg/border da tutti gli SVG figli del summary.prov-pill. */
html body #provPills .prov-pill svg,
html body #provPills .prov-pill__chev,
html body .prov-pills .prov-pill svg,
html body .prov-pills .prov-pill__chev,
html body svg.prov-pill__chev,
html body svg[class*="prov-pill__chev"] {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* 1) KILL quadratini: ogni <small> dentro la pill (vuoto o non) viene
      neutralizzato. Anche pseudo-element con background. */
html body #provPills .prov-pill-wrap > summary.prov-pill > small,
html body #provPills .prov-pill-wrap > summary.prov-pill > small:empty,
html body .prov-pills .prov-pill-wrap > summary.prov-pill > small,
html body .prov-pills .prov-pill-wrap > summary.prov-pill > small:empty {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
html body #provPills .prov-pill-wrap > summary.prov-pill > small::before,
html body #provPills .prov-pill-wrap > summary.prov-pill > small::after,
html body .prov-pills .prov-pill-wrap > summary.prov-pill > small::before,
html body .prov-pills .prov-pill-wrap > summary.prov-pill > small::after {
  content: none !important;
  display: none !important;
}

/* Doppio-kill su tutti i ::before/::after dentro la pill, tranne il chevron
   (che è un <svg>, non uno pseudo-element). */
html body #provPills .prov-pill-wrap[data-prov]::before,
html body #provPills .prov-pill-wrap[data-prov]::after,
html body #provPills .prov-pill-wrap > summary.prov-pill::before,
html body #provPills .prov-pill-wrap > summary.prov-pill::after,
html body .prov-pills .prov-pill-wrap[data-prov]::before,
html body .prov-pills .prov-pill-wrap[data-prov]::after,
html body .prov-pills .prov-pill-wrap > summary.prov-pill::before,
html body .prov-pills .prov-pill-wrap > summary.prov-pill::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* 2) Apertura menu a tendina: il <details>[open] deve mostrare .prov-dd.
      Forza display/visibility/opacity contro qualsiasi override. */
html body #provPills .prov-pill-wrap .prov-dd,
html body .prov-pills .prov-pill-wrap .prov-dd {
  display: none;
}
html body #provPills .prov-pill-wrap[open] .prov-dd,
html body .prov-pills .prov-pill-wrap[open] .prov-dd {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 50% !important;
  right: auto !important;
  width: min(560px, 92vw) !important;
  max-height: 60vh !important;
  overflow-y: auto !important;
  z-index: 9999 !important;
  background: #ffffff !important;
  border: 1px solid rgba(200, 155, 60, 0.35) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 48px rgba(11, 35, 64, 0.22),
              0 4px 14px rgba(11, 35, 64, 0.10) !important;
  padding: 16px !important;
  transform: translateX(-50%) !important;
}
/* Garantisce che il wrap sia il riferimento di posizionamento */
html body #provPills .prov-pill-wrap,
html body .prov-pills .prov-pill-wrap {
  position: relative !important;
  overflow: visible !important;
}
/* Quando aperto la card si "alza" sopra le altre */
html body #provPills .prov-pill-wrap[open],
html body .prov-pills .prov-pill-wrap[open] {
  z-index: 10 !important;
}
/* Il container delle pill non deve clippare il dropdown */
html body #provPills,
html body .prov-pills {
  overflow: visible !important;
}

/* I link dentro al dropdown devono essere navigabili (capoluogo + comuni) */
html body #provPills .prov-pill-wrap[open] .prov-dd-cap,
html body #provPills .prov-pill-wrap[open] .prov-dd-item,
html body .prov-pills .prov-pill-wrap[open] .prov-dd-cap,
html body .prov-pills .prov-pill-wrap[open] .prov-dd-item {
  display: flex !important;
  pointer-events: auto !important;
}
html body #provPills .prov-pill-wrap[open] .prov-dd-grid,
html body .prov-pills .prov-pill-wrap[open] .prov-dd-grid {
  display: grid !important;
}
html body #provPills .prov-pill-wrap[open] .prov-dd-item,
html body .prov-pills .prov-pill-wrap[open] .prov-dd-item {
  display: block !important;
}

/* 3) Riduzione spazi sopra/sotto al banner province.
      L'hero contiene già le pill: tolgo padding sotto. La sezione "Argomenti
      del cittadino" subito dopo: tolgo padding sopra.
      Sprint 9k: ridotto anche padding-top per eliminare la fascia
      cream-vuota tra header e titolo "I servizi pubblici...". */
html body section.hero.hero--puglia-map {
  padding-top: 28px !important;
  padding-bottom: 12px !important;
}
html body section.hero.hero--puglia-map .hero-content,
html body section.hero.hero--puglia-map .hero-content--compact {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
}
/* H1 hero: meno spazio sopra (ora che manca l'eyebrow "INFOCOMUNI · PUGLIA") */
html body .ic-hero-h1-visible {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
html body #provPills,
html body .prov-pills {
  margin-top: 12px !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
/* Sezione subito dopo l'hero: riduco lo spazio in alto */
html body section.hero.hero--puglia-map + section.ic-v3-section,
html body section.hero.hero--puglia-map + section[aria-labelledby="ic-v3-args-title"] {
  padding-top: 18px !important;
}

/* Edge clamp: prima pill allinea il dropdown a sinistra, ultima a destra,
   per evitare overflow viewport quando la pill è al bordo della riga. */
html body #provPills .prov-pill-wrap:first-child[open] .prov-dd,
html body .prov-pills .prov-pill-wrap:first-child[open] .prov-dd {
  left: 0 !important;
  right: auto !important;
  transform: none !important;
}
html body #provPills .prov-pill-wrap:last-child[open] .prov-dd,
html body .prov-pills .prov-pill-wrap:last-child[open] .prov-dd {
  left: auto !important;
  right: 0 !important;
  transform: none !important;
}

/* Mobile: il dropdown si adatta a schermo (full-width 92vw) e si fissa
   centrato rispetto al viewport per evitare overflow su qualsiasi pill. */
@media (max-width: 720px) {
  html body #provPills .prov-pill-wrap[open] .prov-dd,
  html body .prov-pills .prov-pill-wrap[open] .prov-dd,
  html body #provPills .prov-pill-wrap:first-child[open] .prov-dd,
  html body .prov-pills .prov-pill-wrap:first-child[open] .prov-dd,
  html body #provPills .prov-pill-wrap:last-child[open] .prov-dd,
  html body .prov-pills .prov-pill-wrap:last-child[open] .prov-dd {
    position: fixed !important;
    inset: auto 4vw 5vh 4vw !important;
    top: auto !important;
    width: auto !important;
    max-height: 70vh !important;
    transform: none !important;
    margin: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 -10px 40px rgba(11, 35, 64, 0.35) !important;
  }
}

/* === Sprint 9k (03/05/2026): fix fascia bianca su pagina comune ===
   La regola generica [class*="badge"] in ic-contrast-aa.css colora il
   CONTAINER wrapper `.comune-hero__badges` (plurale) con bg #F3F4F6
   creando una "fascia bianca" sopra il titolo del comune. Esclude ed
   effettua reset del wrapper, lasciando lo styling solo alle pill figlie. */
html body .comune-hero__badges,
html body section.comune-hero .comune-hero__badges,
html body section.comune-hero--map .comune-hero__badges {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  flex-wrap: wrap !important;
  width: auto !important;
  gap: 8px !important;
  margin: 0 0 12px !important;
  align-items: center !important;
  color: inherit !important;
}

/* Pill figlie: glass scuro con bordo sottile, testo chiaro leggibile.
   Niente bg #F3F4F6 ereditato. */
html body section.comune-hero .comune-hero__badge,
html body section.comune-hero--map .comune-hero__badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.10) !important;
  background-color: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  white-space: nowrap !important;
  width: auto !important;
  flex: 0 0 auto !important;
}
/* Variante PRO: gold tenue, testo gold acceso */
html body section.comune-hero .comune-hero__badge--pro,
html body section.comune-hero--map .comune-hero__badge--pro {
  background: rgba(255, 204, 51, 0.16) !important;
  background-color: rgba(255, 204, 51, 0.16) !important;
  border-color: rgba(255, 204, 51, 0.45) !important;
  color: #ffd966 !important;
  font-weight: 700 !important;
}

/* Light theme: pill leggibili anche su sfondo chiaro */
html.force-light body section.comune-hero .comune-hero__badge,
html.force-light body section.comune-hero--map .comune-hero__badge {
  background: rgba(11, 35, 64, 0.06) !important;
  background-color: rgba(11, 35, 64, 0.06) !important;
  border-color: rgba(11, 35, 64, 0.18) !important;
  color: #0b2340 !important;
}
html.force-light body section.comune-hero .comune-hero__badge--pro,
html.force-light body section.comune-hero--map .comune-hero__badge--pro {
  background: rgba(200, 155, 60, 0.14) !important;
  background-color: rgba(200, 155, 60, 0.14) !important;
  border-color: rgba(200, 155, 60, 0.55) !important;
  color: #8a6a1f !important;
}

/* Stesso problema possibile su altri wrapper plurali (es. badges, tags
   container) che vengono catturati dal selettore [class*="badge"]: ripeto
   il reset su pattern noti. */
html body [class~="comune-hero__badges"],
html body [class~="meta-badges"],
html body [class~="badges"]:not(.badge):not([class*="badge--"]) {
  background: transparent !important;
  background-color: transparent !important;
}


/* ===== FIX SPRINT 9i: Bottoni calendario visibili in tema chiaro ===== */
/* Fix 1: SVG con width:0 nei bottoni nav calendario */
.cal-nav-btn .ic-icon,
.cal-arr .ic-icon {
  min-width: 16px !important;
  min-height: 16px !important;
}

/* Fix 2: Colori bottoni per tema chiaro (erano bianchi per tema scuro) */
.cal-nav-btn {
  color: var(--ic-navy, #1e3a5f) !important;
  background: rgba(30,58,95,0.08) !important;
  border: 1px solid rgba(30,58,95,0.2) !important;
}
.cal-arr {
  color: var(--ic-navy, #1e3a5f) !important;
  background: rgba(30,58,95,0.08) !important;
  border: 1px solid rgba(30,58,95,0.2) !important;
}
.cal-nav-btn:hover {
  background: rgba(30,58,95,0.15) !important;
  color: var(--ic-navy, #1e3a5f) !important;
}
.cal-arr:hover {
  background: rgba(30,58,95,0.15) !important;
  color: var(--ic-navy, #1e3a5f) !important;
}

/* Fix 3: Freccia SVG nel bottone cambio lingua */
.ic-lang-dd__btn .ic-icon,
.ic-lang-dd__chev {
  min-width: 14px !important;
  min-height: 14px !important;
}

/* ===== FIX SPRINT 9i: Header nav pagine interne ===== */
/* Fix 4a: Testo maiuscolo nel menu header (come homepage) */
.site-header__nav a {
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-size: 0.75rem !important;
}

/* Fix 4b: Colore selezione attiva leggibile (beige/avana chiaro, non blu scuro) */
.site-header__nav a[aria-current="page"],
.site-header__nav a.is-active {
  background: rgba(200, 155, 60, 0.15) !important;
  color: var(--ic-blue-light, #123a6b) !important;
  border-bottom-color: var(--ic-accent, #c89b3c) !important;
}

/* Fix 4c: Hover con tono avana chiaro coerente */
.site-header__nav a:hover {
  background: rgba(200, 155, 60, 0.08) !important;
  color: var(--ic-blue-light, #123a6b) !important;
}

/* ===== FIX SPRINT 9i: PWA Install Prompt v2 ===== */
#ic-pwa-prompt {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: 24px;
  max-width: 420px;
  margin-left: auto;
  z-index: 9990;
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  transition: opacity .38s ease, transform .38s cubic-bezier(.22,.68,0,1.2);
  pointer-events: none;
}
#ic-pwa-prompt.ic-pwa--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.ic-pwa__inner {
  position: relative;
  background: linear-gradient(145deg, #0b2340 0%, #123a6b 100%);
  border: 1px solid rgba(200,155,60,.45);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: 0 16px 48px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06) inset;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
}
/* Accent gold glow on top edge */
.ic-pwa__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border-top: 2px solid rgba(200,155,60,.7);
  pointer-events: none;
}
.ic-pwa__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,.08);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,.6);
  transition: background .2s, color .2s;
}
.ic-pwa__close:hover { background: rgba(255,255,255,.18); color: #fff; }
.ic-pwa__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.ic-pwa__icon {
  border-radius: 12px;
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.ic-pwa__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.ic-pwa__url {
  font-size: 11px;
  color: rgba(200,155,60,.85);
  letter-spacing: .03em;
  margin-top: 2px;
}
.ic-pwa__tagline {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
  margin: 0 0 16px;
}
.ic-pwa__benefits {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ic-pwa__benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,.75);
}
.ic-pwa__b-icon {
  font-size: 15px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.ic-pwa__actions {
  display: flex;
  gap: 10px;
}
.ic-pwa__btn {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font: 600 13px 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.ic-pwa__btn--primary {
  background: linear-gradient(135deg, #c89b3c 0%, #e8c060 100%);
  color: #0b2340;
  box-shadow: 0 4px 14px rgba(200,155,60,.4);
}
.ic-pwa__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,155,60,.55);
}
.ic-pwa__btn--ghost {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.12);
}
.ic-pwa__btn--ghost:hover {
  background: rgba(255,255,255,.13);
  color: #fff;
}
/* Mobile: bottom sheet stile */
@media (max-width: 480px) {
  #ic-pwa-prompt {
    bottom: 0;
    right: 0;
    left: 0;
    max-width: 100%;
  }
  .ic-pwa__inner {
    border-radius: 20px 20px 0 0;
    padding: 24px 20px 28px;
  }
  .ic-pwa__inner::before { border-top: none; border-bottom: none; }
}
