/* InfoComuni · Brindisi mobile "stile app" in continuità con il desktop (15/11/2026, revisione dopo il panel di 8 valutatori).
   Solo <= 860px. Sorgente: ic-app-apple.tpl.css (il simbolo html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) diventa il prefisso forte html.ap-on body:not(#ap1)...).
   REGOLA DEGLI ANGOLI: contenitori a 0 (gruppi, sezioni, schede, cartolina); controlli a 6px (tasti, campo di ricerca,
   segmentato, schede dei gruppi, tasselli icona); unica eccezione l'interruttore a pillola.
   ACCENTO: #087fa5 solo come riempimento con testo bianco; testo azzurro su chiaro in #0a6a8c (AA); su navy #5bc4ff o bianco. */
.ap-nav, .ap-altro, .ap-info, .ap-cartoline, .ap-lingua, .ap-lingue, .ap-sez-ic { display: none; }

@media (max-width: 860px) {
  html.ap-on {
    --ap-bg: #f2f7fb; --ap-txt: #0b2340; --ap-sec: #44546a; --ap-sep: #cfe7f7; --ap-fill: #e3eef6;
    --ap-tint: #087fa5; --ap-tint-txt: #0a6a8c; --ap-navy: #09223a; --ap-azz: #5bc4ff;
    --ap-font: "Titillium Web", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ap-head: Oswald, "Arial Narrow", sans-serif;
    --ap-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
    --ap-r-ctl: 6px;
  }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) , html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main { background: var(--ap-bg) !important; }
  /* la pagina finisce subito sopra la barra in basso (un altro script mette al body un padding enorme) */
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main { padding-bottom: 8px !important; }
  html.ap-on body::before { display: none !important; }

  /* ---------- ordine dei blocchi ---------- */
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero { order: 1; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .icae-cerca { order: 2; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .ap-nav { order: 3; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .icae-oggi-w { order: 4; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .ap-altro { order: 5; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-panels { order: 6; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .ap-cartoline { order: 8; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > #ic-mini-menu, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .ic-profilo, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > [class*="service-gateway"], html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .ic-stamp { display: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .ap-nav, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .ap-altro, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .ap-cartoline { background: var(--ap-bg) !important; border: 0 !important; box-shadow: none !important; }

  /* ---------- testata navy come il desktop ---------- */
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .comune-header { background: var(--ap-navy) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-bottom: 3px solid var(--ap-azz) !important; box-shadow: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .comune-header .comune-header__logo--light { display: block !important; height: 26px !important; width: auto !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .comune-header .comune-header__logo--dark, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .comune-header .comune-header__comune { display: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .comune-header .icam-indietro, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .comune-header .ichm-btn { color: #fff !important; -webkit-text-fill-color: #fff !important; background: transparent !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .comune-header .icam-indietro svg, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .comune-header .ichm-btn svg, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .comune-header .icam-indietro svg path, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .comune-header .ichm-btn svg path { stroke: #fff !important; color: #fff !important; }
  html.ap-on.icae-sez body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .comune-header .icam-indietro { display: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-lingua { display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 6px !important; position: absolute !important; top: 10px !important; right: 56px !important; z-index: 3 !important; height: 36px !important; min-width: 64px !important; margin: 0 !important; padding: 0 10px !important; border: 1px solid rgba(91, 196, 255, .55) !important; border-radius: var(--ap-r-ctl) !important; background: transparent !important; color: #fff !important; -webkit-text-fill-color: #fff !important; font: 600 15px/1 var(--ap-mono) !important; cursor: pointer !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-lingua::before { content: "" !important; position: absolute !important; inset: -4px 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-lingua svg { width: 18px !important; height: 18px !important; fill: none !important; stroke: var(--ap-azz) !important; stroke-width: 1.8 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-lingua:focus-visible { outline: 3px solid #f2b705 !important; outline-offset: 2px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-lingue:not([hidden]) { display: block !important; position: absolute !important; top: 54px !important; right: 12px !important; z-index: 5 !important; width: 260px !important; margin: 0 !important; padding: 0 !important; list-style: none !important; background: #fff !important; border: 1px solid var(--ap-sep) !important; border-radius: 0 !important; box-shadow: 0 16px 40px rgba(9, 34, 58, .25) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-lingue li { margin: 0 !important; padding: 0 !important; list-style: none !important; border-top: 1px solid var(--ap-sep) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-lingue li:first-child { border-top: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-lingue li::before, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-lingue li::marker { content: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-lingue button { display: flex !important; align-items: center !important; justify-content: space-between !important; width: 100% !important; min-height: 48px !important; margin: 0 !important; padding: 0 16px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; text-align: left !important; color: var(--ap-txt) !important; -webkit-text-fill-color: var(--ap-txt) !important; font: 400 17px/1.2 var(--ap-font) !important; text-transform: none !important; cursor: pointer !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-lingue button[aria-current="true"] { color: var(--ap-tint-txt) !important; -webkit-text-fill-color: var(--ap-tint-txt) !important; font-weight: 700 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-lingue button[aria-current="true"]::after { content: "" !important; width: 6px !important; height: 12px !important; border-right: 2.5px solid currentColor !important; border-bottom: 2.5px solid currentColor !important; transform: rotate(45deg) translate(-2px, -2px) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-lingue .ap-lingue__semp { border-top: 6px solid var(--ap-bg) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-lingue .ap-riga--sw { min-height: 64px !important; padding: 8px 16px !important; }

  /* ---------- parte alta navy: foto, badge, titolo, dati, tasti ---------- */
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero { background: var(--ap-navy) !important; color: #fff !important; padding: 0 0 4px !important; border: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero::before, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero::after { display: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .icam-foto { position: relative !important; margin: 0 !important; width: 100% !important; height: 230px !important; aspect-ratio: auto !important; border-radius: 0 !important; overflow: hidden !important; background: var(--ap-navy) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .icam-foto img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: 50% 30% !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .icam-foto::after { display: block !important; content: "" !important; position: absolute !important; inset: 0 !important; top: 0 !important; bottom: 0 !important; left: 0 !important; right: 0 !important; width: auto !important; height: auto !important; max-height: none !important; transform: none !important; background: linear-gradient(180deg, rgba(9, 34, 58, 0) 35%, rgba(9, 34, 58, .78) 75%, #09223a 100%) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .comune-hero__content { position: relative !important; z-index: 1 !important; margin-top: 0 !important; padding: 20px 16px 0 !important; transform: none !important; background: transparent !important; }
  /* il titolo sale sulla sfumatura solo quando la foto c'e' (molti comuni non ce l'hanno) */
  html.ap-on.ap-foto body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .comune-hero__content { margin-top: -168px !important; padding-top: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .comune-hero__badges { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 8px !important; margin: 0 0 8px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .comune-hero__badge { display: inline-flex !important; align-items: center !important; gap: 6px !important; height: 26px !important; margin: 0 !important; padding: 0 8px !important; border: 1px solid rgba(91, 196, 255, .55) !important; border-radius: 0 !important; background: rgba(9, 34, 58, .6) !important; color: var(--ap-azz) !important; -webkit-text-fill-color: var(--ap-azz) !important; font: 600 13px/1 var(--ap-mono) !important; letter-spacing: .08em !important; text-transform: uppercase !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .comune-hero__badge .ic-ico, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .comune-hero__badge svg { width: 13px !important; height: 13px !important; color: var(--ap-azz) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .ic-pro-badge { display: inline-flex !important; align-items: stretch !important; height: 26px !important; margin: 0 !important; border: 1px solid rgba(91, 196, 255, .55) !important; border-radius: 0 !important; background: rgba(9, 34, 58, .6) !important; overflow: hidden !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .ic-pro-badge__name { display: inline-flex !important; align-items: center !important; padding: 0 8px !important; font: 600 13px/1 var(--ap-mono) !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: #eaf1f8 !important; -webkit-text-fill-color: #eaf1f8 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .ic-pro-badge__tag { display: inline-flex !important; align-items: center !important; padding: 0 8px !important; background: var(--ap-azz) !important; color: var(--ap-navy) !important; -webkit-text-fill-color: var(--ap-navy) !important; font: 700 13px/1 var(--ap-mono) !important; letter-spacing: .08em !important; border-radius: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero #comune-title { margin: 0 !important; font: 600 44px/1 var(--ap-head) !important; letter-spacing: 0 !important; color: #fff !important; -webkit-text-fill-color: #fff !important; text-shadow: 0 1px 12px rgba(9, 34, 58, .6) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .icam-payoff { margin: 6px 0 0 !important; font: 400 17px/1.35 var(--ap-font) !important; color: #d6e6f5 !important; -webkit-text-fill-color: #d6e6f5 !important; text-shadow: none !important; }
  /* credito della foto tolto su richiesta dell'utente (15/11/2026) */
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .icam-foto .icam-oggi__cr, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icam-oggi__cr { display: none !important; }
  /* Popolazione e CAP: gli stessi riquadri del desktop, con cifre mono */
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .comune-hero__meta { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; margin: 14px 0 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .comune-hero__meta-item:nth-child(n+3) { display: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .comune-hero__meta-item { position: relative !important; display: block !important; min-height: 64px !important; margin: 0 !important; padding: 9px 12px !important; border: 1px solid rgba(91, 196, 255, .35) !important; border-radius: var(--ap-r-ctl) !important; background: rgba(255, 255, 255, .04) !important; box-shadow: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .comune-hero__meta-label { margin: 0 !important; font: 600 13px/1 var(--ap-mono) !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: #9fc3dd !important; -webkit-text-fill-color: #9fc3dd !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .comune-hero__meta-value { margin: 6px 0 0 !important; font: 600 24px/1 var(--ap-mono) !important; font-variant-numeric: tabular-nums !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .comune-hero__meta .ic-fonte { margin: 6px 0 0 !important; font: 400 13px/1.25 var(--ap-font) !important; opacity: 1 !important; color: #9fc3dd !important; -webkit-text-fill-color: #9fc3dd !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .comune-hero__meta .ic-fonte a { color: inherit !important; -webkit-text-fill-color: inherit !important; }
  /* Telefono, PEC, Sito, Dove siamo */
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .ms-hero-buttons { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 8px !important; margin: 8px 0 0 !important; padding: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .ms-hero-buttons > * { flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; max-width: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .ms-hero-btn { display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: center !important; gap: 6px !important; min-height: 68px !important; margin: 0 !important; padding: 8px 4px !important; border: 1px solid rgba(91, 196, 255, .45) !important; border-radius: var(--ap-r-ctl) !important; background: transparent !important; box-shadow: none !important; color: #fff !important; -webkit-text-fill-color: #fff !important; font: 600 14px/1.15 var(--ap-font) !important; text-align: center !important; text-transform: none !important; letter-spacing: 0 !important; text-decoration: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .ms-hero-btn::after { content: none !important; display: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .ms-hero-btn span { color: inherit !important; -webkit-text-fill-color: inherit !important; font: inherit !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .ms-hero-btn svg { width: 22px !important; height: 22px !important; flex: 0 0 22px !important; color: var(--ap-azz) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .ms-hero-btn.ms-btn-phone { background: var(--ap-azz) !important; border-color: var(--ap-azz) !important; color: var(--ap-navy) !important; -webkit-text-fill-color: var(--ap-navy) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .ms-hero-btn.ms-btn-phone svg { color: var(--ap-navy) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .ms-hero-btn:focus-visible { outline: 3px solid #f2b705 !important; outline-offset: 2px !important; }

  /* scheda InfoPoint (si apre dal tasto della testata) */
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ip { width: min(100% - 32px, 420px) !important; max-width: none !important; margin: auto auto 96px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; color: var(--ap-txt) !important; box-shadow: 0 20px 50px rgba(9, 34, 58, .35) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ip::backdrop { background: rgba(9, 34, 58, .55); }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ip__c { position: relative; padding: 20px 16px 16px; border-top: 4px solid var(--ap-azz); }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ip__x { position: absolute !important; top: 6px !important; right: 6px !important; width: 44px !important; height: 44px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; cursor: pointer !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ip__x::before, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ip__x::after { content: "" !important; position: absolute; left: 13px; top: 21px; width: 18px; height: 2.5px; background: var(--ap-txt); transform: rotate(45deg); }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ip__x::after { transform: rotate(-45deg); }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ip__i { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ap-azz); color: var(--ap-navy); font: 700 20px/1 Georgia, serif; font-style: italic; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ip__t { margin: 10px 0 4px !important; font: 600 24px/1.15 var(--ap-head) !important; color: var(--ap-txt) !important; -webkit-text-fill-color: var(--ap-txt) !important; text-transform: none !important; text-align: left !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ip__t::before, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ip__t::after { content: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ip__a { margin: 0 0 16px !important; font: 400 17px/1.45 var(--ap-font) !important; color: var(--ap-sec) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ip__az { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ip__b { display: flex !important; align-items: center; justify-content: center; min-height: 48px; padding: 0 10px !important; border: 1px solid var(--ap-txt) !important; border-radius: var(--ap-r-ctl) !important; background: #fff !important; color: var(--ap-txt) !important; -webkit-text-fill-color: var(--ap-txt) !important; font: 600 15px/1.2 var(--ap-font) !important; text-align: center; text-decoration: none !important; white-space: nowrap !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ip__b::after { content: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ip__b--pri { background: var(--ap-txt) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ip__b:focus-visible, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ip__x:focus-visible { outline: 3px solid var(--ap-tint-txt) !important; outline-offset: 2px !important; }
  /* ---------- ricerca: campo bianco su navy ---------- */
  html.ap-on:not(.icae-sez) body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .icae-cerca { background: var(--ap-navy) !important; padding: 12px 16px 20px !important; margin: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-cerca__l { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-cerca__box { background: #fff !important; border: 2px solid var(--ap-azz) !important; border-radius: var(--ap-r-ctl) !important; min-height: 52px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-cerca__box > svg { color: var(--ap-txt) !important; width: 20px !important; height: 20px !important; margin-left: 12px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-cerca__box input { height: 48px !important; font: 400 17px/1.2 var(--ap-font) !important; color: var(--ap-txt) !important; -webkit-text-fill-color: var(--ap-txt) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-cerca__box input::placeholder { color: #4a5868 !important; -webkit-text-fill-color: #4a5868 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-cerca__box:focus-within { outline: 3px solid #f2b705 !important; outline-offset: 2px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-cerca__x { color: var(--ap-txt) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-cerca__stato { color: #d6e6f5 !important; -webkit-text-fill-color: #d6e6f5 !important; font: 400 15px/1.3 var(--ap-font) !important; margin: 10px 0 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-cerca__ris { background: var(--ap-sep) !important; gap: 1px !important; border: 1px solid var(--ap-sep) !important; border-radius: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-r { padding: 11px 40px 11px 16px !important; border: 0 !important; border-radius: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-r__k { font: 600 13px/1.3 var(--ap-mono) !important; color: var(--ap-tint-txt) !important; -webkit-text-fill-color: var(--ap-tint-txt) !important; letter-spacing: 0 !important; white-space: normal !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-r__t { font: 600 17px/1.3 var(--ap-font) !important; color: var(--ap-txt) !important; -webkit-text-fill-color: var(--ap-txt) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-r__t mark { background: #d9f0ff !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-r__s { font: 400 15px/1.35 var(--ap-font) !important; color: var(--ap-sec) !important; -webkit-text-fill-color: var(--ap-sec) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-r > svg { color: #767680 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-cerca__altri { color: var(--ap-tint-txt) !important; -webkit-text-fill-color: var(--ap-tint-txt) !important; font: 600 17px/1 var(--ap-font) !important; border-radius: 0 !important; }

  /* ---------- Vivo qui | Visito ---------- */
  html.ap-on:not(.icae-sez) body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-nav, html.ap-on:not(.icae-sez) body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-altro { display: block !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-nav { padding: 16px 16px 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-seg { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 2px !important; padding: 2px !important; margin: 0 !important; background: #fff !important; border: 1px solid var(--ap-sep) !important; border-radius: var(--ap-r-ctl) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-seg button { min-height: 44px !important; margin: 0 !important; padding: 0 8px !important; border: 0 !important; border-radius: 4px !important; background: transparent !important; box-shadow: none !important; color: var(--ap-txt) !important; -webkit-text-fill-color: var(--ap-txt) !important; font: 600 16px/1 var(--ap-font) !important; text-transform: none !important; letter-spacing: 0 !important; cursor: pointer !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-seg button[aria-selected="true"] { background: var(--ap-txt) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; font-weight: 700 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-seg button:focus-visible { outline: 3px solid var(--ap-tint-txt) !important; outline-offset: 2px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-nav > [role="tabpanel"][hidden] { display: none !important; }

  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-h { margin: 28px 0 8px !important; font: 700 20px/1.2 var(--ap-font) !important; letter-spacing: 0 !important; text-transform: none !important; text-align: left !important; color: var(--ap-txt) !important; -webkit-text-fill-color: var(--ap-txt) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-h::before, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-h::after { content: none !important; display: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-hs { margin: 0 0 10px !important; font: 400 15px/1.4 var(--ap-font) !important; color: var(--ap-sec) !important; -webkit-text-fill-color: var(--ap-sec) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-nav [role="tabpanel"] > .ap-h:first-child { margin-top: 20px !important; }

  /* gruppi: fondo bianco, filetto azzurro chiaro, angoli vivi */
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-gruppo { list-style: none !important; margin: 0 !important; padding: 0 !important; background: #fff !important; border: 1px solid var(--ap-sep) !important; border-radius: 0 !important; overflow: hidden !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-gruppo + .ap-gruppo { margin-top: 16px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-gruppo > li { position: relative !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-gruppo > li::before, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-gruppo > li::marker { content: none !important; display: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-gruppo > li + li::after { content: "" !important; position: absolute !important; top: 0 !important; left: 62px !important; right: 0 !important; height: 1px !important; background: var(--ap-sep) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-riga { display: flex !important; align-items: center !important; gap: 14px !important; width: 100% !important; min-height: 60px !important; margin: 0 !important; padding: 9px 16px !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important; text-align: left !important; text-decoration: none !important; cursor: pointer !important; color: var(--ap-txt) !important; -webkit-text-fill-color: var(--ap-txt) !important; font-family: var(--ap-font) !important; text-transform: none !important; letter-spacing: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-riga::after, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-riga::before { content: none !important; display: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-riga:active { background: #eef6fb !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-riga:focus-visible { outline: 3px solid var(--ap-tint-txt) !important; outline-offset: -3px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ic { flex: 0 0 32px !important; width: 32px !important; height: 32px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; border-radius: var(--ap-r-ctl) !important; color: #fff !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ic svg { width: 20px !important; height: 20px !important; fill: none !important; stroke: var(--ap-ic-fg, #fff) !important; stroke-width: 2 !important; stroke-linecap: round !important; stroke-linejoin: round !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ic--num { background: #fff !important; border: 1px solid var(--ap-sep) !important; color: var(--ap-tint-txt) !important; -webkit-text-fill-color: var(--ap-tint-txt) !important; font: 600 15px/1 var(--ap-mono) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-gate { position: relative !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-gate > li:not(.ap-dest)::before { content: "" !important; display: block !important; position: absolute !important; left: 31px !important; width: 2px !important; top: 0 !important; bottom: 0 !important; background: var(--ap-azz) !important; z-index: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-gate > li:first-child::before { top: 30px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-gate > li:nth-last-child(2)::before { bottom: auto !important; height: 30px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-gate .ap-riga { position: relative !important; background: transparent !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-gate .ap-ic { position: relative !important; z-index: 1 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-tx { flex: 1 1 auto !important; min-width: 0 !important; display: grid !important; gap: 2px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-t { font: 600 17px/1.3 var(--ap-font) !important; color: var(--ap-txt) !important; -webkit-text-fill-color: var(--ap-txt) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-s { font: 400 16px/1.3 var(--ap-font) !important; color: var(--ap-sec) !important; -webkit-text-fill-color: var(--ap-sec) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ch { flex: 0 0 9px !important; width: 9px !important; height: 9px !important; border-right: 2.2px solid #767680 !important; border-top: 2.2px solid #767680 !important; transform: rotate(45deg) !important; margin-right: 4px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ch--giu { transform: rotate(135deg) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) [aria-expanded="true"] > .ap-ch--giu { transform: rotate(-45deg) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-dest:not([hidden]) { display: block !important; padding: 0 16px 10px 62px !important; background: #fff !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-dest ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-dest li { margin: 0 !important; padding: 0 !important; list-style: none !important; border-top: 1px solid var(--ap-sep) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-dest li::before { content: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-dest__a { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 10px !important; min-height: 52px !important; text-decoration: none !important; color: var(--ap-txt) !important; -webkit-text-fill-color: var(--ap-txt) !important; font: 400 17px/1.3 var(--ap-font) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-dest__a::after { content: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-dest__p { flex: 0 0 auto !important; display: inline-flex !important; align-items: center !important; min-height: 36px !important; padding: 0 12px !important; border-radius: var(--ap-r-ctl) !important; background: var(--ap-txt) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; font: 600 15px/1 var(--ap-font) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-dest__st { margin: 0 !important; padding: 14px 0 !important; font: 400 16px/1.4 var(--ap-font) !important; color: var(--ap-sec) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-riprova { min-height: 44px !important; padding: 0 16px !important; margin: 0 0 8px !important; border: 1px solid var(--ap-txt) !important; border-radius: var(--ap-r-ctl) !important; background: #fff !important; color: var(--ap-txt) !important; font: 600 16px/1 var(--ap-font) !important; }

  /* interruttore: tutta la riga e' il comando */
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-riga--sw { cursor: pointer !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-sw { position: relative !important; flex: 0 0 51px !important; width: 51px !important; height: 31px !important; border-radius: 16px !important; background: #c7d3dd !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-sw span { position: absolute !important; top: 2px !important; left: 2px !important; width: 27px !important; height: 27px !important; border-radius: 50% !important; background: #fff !important; box-shadow: 0 2px 6px rgba(9, 34, 58, .25) !important; transition: transform .2s ease !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) [aria-checked="true"] .ap-sw { background: var(--ap-tint) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) [aria-checked="true"] .ap-sw span { transform: translateX(20px) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-riga--sw:focus-visible { outline: 3px solid var(--ap-tint-txt) !important; outline-offset: -3px !important; }

  /* ---------- Oggi a Brindisi: stessa griglia dei gruppi ---------- */
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-oggi-w { background: var(--ap-bg) !important; padding: 0 16px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-oggi-w .icam-oggi { background: #fff !important; border: 1px solid var(--ap-sep) !important; border-radius: 0 !important; overflow: hidden !important; box-shadow: none !important; margin: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-oggi-w .icam-oggi__t, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-oggi-w .icam-oggi__cr { display: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-oggi-w .icam-oggi__r { position: relative !important; display: flex !important; align-items: center !important; gap: 14px !important; min-height: 60px !important; padding: 9px 16px !important; background: #fff !important; border: 0 !important; border-radius: 0 !important; color: var(--ap-txt) !important; -webkit-text-fill-color: var(--ap-txt) !important; text-align: left !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-oggi-w .icam-oggi__r + .icam-oggi__r::after { content: "" !important; position: absolute !important; top: 0 !important; left: 62px !important; right: 0 !important; height: 1px !important; background: var(--ap-sep) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-oggi-w .icam-oggi__i { flex: 0 0 32px !important; width: 32px !important; height: 32px !important; border-radius: var(--ap-r-ctl) !important; background: var(--ap-tint) !important; color: #fff !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-oggi-w .icam-oggi__i svg { width: 20px !important; height: 20px !important; color: #fff !important; stroke: #fff !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-oggi-w .icam-oggi__x { flex: 1 1 auto !important; min-width: 0 !important; display: grid !important; gap: 2px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-oggi-w .icam-oggi__x strong { font: 600 17px/1.3 var(--ap-font) !important; color: var(--ap-txt) !important; -webkit-text-fill-color: var(--ap-txt) !important; text-transform: none !important; letter-spacing: 0 !important; white-space: normal !important; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-oggi-w .icam-oggi__x small { font: 400 16px/1.3 var(--ap-font) !important; color: var(--ap-sec) !important; -webkit-text-fill-color: var(--ap-sec) !important; text-transform: none !important; letter-spacing: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-oggi-w .icam-oggi__r > svg { color: #767680 !important; }

  /* ---------- Scopri la citta' + Photo Mosaic ---------- */
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-altro { padding: 0 16px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-altro > .ap-gruppo { margin-top: 28px !important; }
  html.ap-on:not(.icae-sez):not(.ap-scopri) body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-panels { display: none !important; }
  html.ap-on.ap-scopri:not(.icae-sez) body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #tab-overview > :not(.ic-tourism) { display: none !important; }
  html.ap-on.ap-scopri:not(.icae-sez) body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-panels { background: var(--ap-bg) !important; padding: 16px 16px 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #tab-overview .ic-tourism *:not(svg):not(path):not(i):not([class*="fa-"]):not(.ic-ico) { text-transform: none !important; letter-spacing: normal !important; font-family: var(--ap-font) !important; }

  /* ---------- cartolina dell'Album in coda ---------- */
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-cartoline { display: block !important; padding: 28px 16px 24px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-cartoline .icab-wrap { display: block !important; margin: 0 !important; padding: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-cartoline .icab-wrap > * { margin: 0 !important; max-width: none !important; width: 100% !important; box-shadow: none !important; transform: none !important; border-radius: 0 !important; }
  html.ap-on.icae-sez body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-cartoline { display: none !important; }
  /* 14/11/2026: francobollo nell'angolo in alto a destra, come su desktop (non piu' sotto il testo) */
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-cartoline #icab-cartolina > span:not([aria-hidden]) { display: block !important; position: relative !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-cartoline #icab-cartolina > span:not([aria-hidden]) > span:first-child { display: flex !important; min-width: 0 !important; padding-right: 96px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-cartoline #icab-cartolina > span:not([aria-hidden]) > span[aria-hidden] { position: absolute !important; top: -6px !important; right: -6px !important; width: auto !important; min-width: 0 !important; flex: none !important; border-left: 0 !important; padding-left: 0 !important; gap: 0 !important; pointer-events: none; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-cartoline #icab-cartolina > span:not([aria-hidden]) > span[aria-hidden] > span:nth-child(2) { transform: rotate(-12deg) scale(.82) !important; margin-right: 22px !important; margin-top: -40px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-cartoline #icab-cartolina > span:not([aria-hidden]) > span[aria-hidden] > span:last-child { display: none !important; }
  /* 15/11/2026 (richiesta utente): al posto di francobollo e timbro disegnati, il francobollo illustrato del Brindisi Photo Mosaic */
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-cartoline #icab-cartolina > span:not([aria-hidden]) > span[aria-hidden] > span { display: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-cartoline #icab-cartolina > span:not([aria-hidden]) > span[aria-hidden] { top: -10px !important; right: -4px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-cartoline #icab-cartolina > span:not([aria-hidden]) > span[aria-hidden]::before { content: '' !important; display: block !important; width: 78px !important; height: 114px !important; background: url(/mosaic/brindisi/stamp2.png) center / contain no-repeat !important; transform: rotate(5deg) !important; filter: drop-shadow(0 3px 6px rgba(11,35,64,.28)) !important; }

  /* ---------- dentro una sezione ---------- */
  html.ap-on.icae-sez body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-testa { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-bottom: 1px solid var(--ap-sep) !important; box-shadow: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-indietro { color: var(--ap-tint-txt) !important; -webkit-text-fill-color: var(--ap-tint-txt) !important; font: 600 17px/1 var(--ap-font) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-testa__t { font: 600 17px/52px var(--ap-font) !important; color: var(--ap-txt) !important; -webkit-text-fill-color: var(--ap-txt) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-chip { height: 44px !important; padding: 0 14px !important; border: 1px solid var(--ap-sep) !important; border-radius: var(--ap-r-ctl) !important; background: #fff !important; color: var(--ap-txt) !important; -webkit-text-fill-color: var(--ap-txt) !important; font: 600 15px/1 var(--ap-font) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-chip b { font: 600 14px/1 var(--ap-mono) !important; font-variant-numeric: tabular-nums !important; color: var(--ap-tint-txt) !important; -webkit-text-fill-color: var(--ap-tint-txt) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-chip[aria-current="true"] { background: var(--ap-tint) !important; border-color: var(--ap-tint) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-chip[aria-current="true"] b { color: #fff !important; -webkit-text-fill-color: #fff !important; }
  html.ap-on.icae-sez body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .comune-panels { background: var(--ap-bg) !important; }
  /* titolo di sezione: Oswald come il desktop, tassello icona del sistema al posto dell'icona 3D */
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .comune-panel.is-active > h2:first-of-type { display: flex !important; align-items: center !important; gap: 12px !important; font: 600 32px/1.05 var(--ap-head) !important; color: var(--ap-txt) !important; -webkit-text-fill-color: var(--ap-txt) !important; text-transform: none !important; letter-spacing: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .comune-panel.is-active > h2.ap-h2 > :not(.ap-sez-ic):not(.icae-vh):not(.ap-h2__t) { display: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-sez-ic { display: inline-flex !important; flex: 0 0 44px !important; width: 44px !important; height: 44px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-sez-ic svg { width: 26px !important; height: 26px !important; }
  /* gruppi della sezione */
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-g { padding: 0 !important; margin: 0 0 12px !important; background: #fff !important; border: 1px solid var(--ap-sep) !important; border-radius: 0 !important; box-shadow: none !important; overflow: hidden !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-g:not(.icae-chiuso) { padding-bottom: 8px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-g > .icae-g__h { display: flex !important; align-items: center !important; min-height: 56px !important; margin: 0 !important; padding: 12px 96px 12px 16px !important; font: 600 17px/1.3 var(--ap-font) !important; color: var(--ap-txt) !important; -webkit-text-fill-color: var(--ap-txt) !important; background: transparent !important; text-transform: none !important; letter-spacing: 0 !important; border-bottom: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-g > .icae-g__h :is(svg, img, picture, .section-icon, .ic-icon, .ic-miniature) { display: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-g:not(.icae-chiuso) > .icae-g__h { border-bottom: 1px solid var(--ap-sep) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-g__n { border-radius: 0 !important; background: #e3f3fd !important; font: 600 14px/1 var(--ap-mono) !important; font-variant-numeric: tabular-nums !important; color: var(--ap-txt) !important; -webkit-text-fill-color: var(--ap-txt) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-g__c { border-color: var(--ap-tint-txt) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-g:not(.icae-chiuso) > :not(.icae-g__h):not(.icae-g__t) { margin-left: 16px !important; margin-right: 16px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-g > p, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-g > .ic-acc-body > p { padding: 12px 0 4px !important; margin: 0 !important; font: 400 15px/1.4 var(--ap-font) !important; color: var(--ap-sec) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-g .scuole-grid { display: block !important; gap: 0 !important; padding: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-g .scuole-grid > .scuola-card { border: 0 !important; border-top: 1px solid var(--ap-sep) !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; margin: 0 !important; padding: 14px 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-g .scuole-grid > .scuola-card:first-child { border-top: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-g .scuola-card__title { font: 600 17px/1.3 var(--ap-font) !important; color: var(--ap-txt) !important; -webkit-text-fill-color: var(--ap-txt) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-g .scuola-card__addr { font: 400 16px/1.4 var(--ap-font) !important; color: var(--ap-sec) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-g .scuola-card__link { min-height: 44px !important; display: inline-flex !important; align-items: center !important; border-radius: var(--ap-r-ctl) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #farmacie .scuola-card__meta { display: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-piu { border: 1px solid var(--ap-sep) !important; border-radius: 0 !important; background: #fff !important; color: var(--ap-tint-txt) !important; -webkit-text-fill-color: var(--ap-tint-txt) !important; font: 600 17px/1.2 var(--ap-font) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-pn { border: 1px solid var(--ap-sep) !important; border-radius: 0 !important; background: var(--ap-sep) !important; gap: 1px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-pn__k { font: 600 13px/1.2 var(--ap-mono) !important; text-transform: uppercase !important; letter-spacing: .04em !important; color: var(--ap-tint-txt) !important; -webkit-text-fill-color: var(--ap-tint-txt) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-pn__l { font: 600 17px/1.25 var(--ap-font) !important; }

  /* ---------- modulo Trasporti allineato al sistema ---------- */
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #tab-trasporti .ic-tr { --tr-me: #087fa5; --tr-vicino: #087fa5; margin: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #tab-trasporti .ic-tr__testa { border-top: 1px solid var(--ap-sep) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #tab-trasporti .ic-tr__testa h3 { display: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #tab-trasporti .ic-tr :is(h3, h4) { font: 700 20px/1.2 var(--ap-font) !important; text-transform: none !important; letter-spacing: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #tab-trasporti .ic-tr .ic-tr__big { min-height: 64px !important; padding: 12px 16px !important; grid-template-columns: 28px minmax(0, 1fr) !important; gap: 14px !important; border-radius: var(--ap-r-ctl) !important; font: 600 17px/1.2 var(--ap-font) !important; text-transform: none !important; letter-spacing: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #tab-trasporti .ic-tr .ic-tr__big-i, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #tab-trasporti .ic-tr .ic-tr__big svg { width: 28px !important; height: 28px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #tab-trasporti .ic-tr .ic-tr__tile { border-radius: var(--ap-r-ctl) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #tab-trasporti .ic-tr .ic-tr__tile-n { font-family: var(--ap-mono) !important; }

  /* correzioni dopo la verifica: pannelli Vivo qui/Visito senza gli stili dei pannelli del tema, foto senza fascia
     scura in alto, fonte ISTAT a capo, niente icone 3D (sono sfondi in ::before del tema) */
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-nav > [role="tabpanel"] { padding: 0 !important; margin: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; min-height: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .icam-foto::before { display: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .comune-hero__meta .ic-fonte, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .comune-hero__meta .ic-fonte a { white-space: normal !important; overflow-wrap: anywhere !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .comune-panel.is-active > h2:first-of-type::before, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .comune-panel.is-active > h2:first-of-type::after, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .comune-panel.is-active > h2.ap-h2::before, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .comune-panel.is-active > h2.ap-h2::after, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-g > .icae-g__h::before, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-g > .icae-g__h::after { content: none !important; display: none !important; background: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .comune-panel.is-active > h2:first-of-type { padding-left: 0 !important; min-height: 44px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .icae-g > .icae-g__h { padding-left: 16px !important; }
  /* ---------- barra in basso: icone a linea, voce attiva con filetto ---------- */
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #ic-appbar { background: rgba(255, 255, 255, .97) !important; -webkit-backdrop-filter: saturate(180%) blur(20px) !important; backdrop-filter: saturate(180%) blur(20px) !important; border-top: 1px solid var(--ap-sep) !important; border-radius: 0 !important; box-shadow: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #ic-appbar .ic-appbar__image, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #ic-appbar .ic-appbar__miniature { display: none !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #ic-appbar .ic-appbar__item { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; outline-offset: -3px !important; color: #5a6676 !important; -webkit-text-fill-color: #5a6676 !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 3px !important; min-height: 52px !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #ic-appbar .ap-tabico { height: 40px !important; display: flex !important; align-items: center !important; justify-content: center !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #ic-appbar .ap-tabico svg { width: 26px !important; height: 26px !important; fill: none !important; stroke: currentColor !important; stroke-width: 1.8 !important; stroke-linecap: round !important; stroke-linejoin: round !important; display: block !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #ic-appbar .ic-appbar__label { font: 600 13px/1.1 var(--ap-font) !important; color: inherit !important; -webkit-text-fill-color: currentColor !important; text-transform: none !important; letter-spacing: 0 !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #ic-appbar .ic-appbar__item--active, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #ic-appbar .ic-appbar__item[aria-current="page"] { color: var(--ap-tint-txt) !important; -webkit-text-fill-color: var(--ap-tint-txt) !important; background: transparent !important; box-shadow: inset 0 3px 0 var(--ap-tint-txt) !important; }
  html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #ic-appbar .ic-appbar__item--active .ic-appbar__label, html.ap-on body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #ic-appbar .ic-appbar__item[aria-current="page"] .ic-appbar__label { font-weight: 700 !important; }

  /* ---------- versione semplice ---------- */
  html.ap-on.ap-semplice body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .icam-foto,
  html.ap-on.ap-semplice body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .comune-hero__badges,
  html.ap-on.ap-semplice body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .comune-hero__meta,
  html.ap-on.ap-semplice body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .icae-oggi-w,
  html.ap-on.ap-semplice body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .ap-cartoline,
  html.ap-on.ap-semplice body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-hs { display: none !important; }
  html.ap-on.ap-semplice body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) #main > .comune-hero .comune-hero__content { margin-top: 0 !important; padding-top: 16px !important; }
  html.ap-on.ap-semplice body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-t { font-size: 21px !important; }
  html.ap-on.ap-semplice body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-s { font-size: 18px !important; color: #2f3d4d !important; -webkit-text-fill-color: #2f3d4d !important; }
  html.ap-on.ap-semplice body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-riga { min-height: 72px !important; }
  html.ap-on.ap-semplice body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .ap-ic { flex-basis: 40px !important; width: 40px !important; height: 40px !important; }
  html.ap-on.ap-semplice body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .comune-panels :is(p, li, .item-title, .scuola-card__title) { font-size: 19px !important; line-height: 1.55 !important; }
  html.ap-on.ap-semplice body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .comune-panels :is(.tag, .badge, .scuola-card__meta) { display: none !important; }
  html.ap-on.ap-semplice body:not(#ap1):not(#ap2):not(#ap3):not(#ap4):not(#ap5) .comune-panels a { text-decoration: underline !important; }
  html.ap-on.ap-semplice body *, html.ap-on.ap-semplice body *::before, html.ap-on.ap-semplice body *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 860px) and (max-height: 700px) {
  /* schermi bassi: la foto resta intera (proporzioni 3:2) */
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  html.ap-on body .ap-sw span { transition: none !important; }
}
