/* Inter, servito da rocca — 16/09/2026
 * ---------------------------------------------------------------------------
 * FONTE UNICA degli @font-face di Inter. Va linkato PRIMA del foglio di stile
 * della pagina, cosi' il carattere e' gia' dichiarato quando arrivano le regole
 * che lo usano.
 *
 * Perche' esiste: i token del sito dichiarano 'Inter' dal maggio 2026, ma il
 * carattere non arrivava mai al browser. Nessuna regola lo definiva; le dodici
 * pagine che avevano il <link> a Google Fonts lo chiedevano senza poi usarlo,
 * perche' `body` prende --font-body e quella variabile Inter non ce l'aveva.
 * Tutto il sito usciva col carattere di sistema, diverso su ogni computer.
 *
 * I file woff2 stanno in /assets/fonts/inter/ dal 15/05/2026. Serviti da qui
 * non parte nessuna richiesta verso terzi e l'indirizzo IP del lettore non esce
 * dal sito. Il browser scarica solo i pesi che la pagina usa davvero.
 */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-300-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-300-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-500-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-500-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-600-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-600-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-700-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-800-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-800-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/**
 * Meteo San Marino PWA - Styles
 * Mobile-first responsive design
 */

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary, #1a73e8);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* Map info button (ⓘ) — bottom-right of map area, outside MapLibre stacking context */
.map-info-btn {
  position: absolute;
  bottom: calc(var(--bottom-bar-height, 80px) + 8px);
  right: 8px;
  z-index: 10;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}
.map-info-btn:hover {
  background: rgba(10, 14, 20, 0.75);
  color: #fff;
}

/* Map info popover — glass panel */
.map-info-popover {
  position: absolute;
  bottom: calc(var(--bottom-bar-height, 80px) + 8px);
  right: 40px;
  z-index: 15;
  width: min(340px, calc(100vw - 48px));
  background: rgba(15, 18, 25, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  animation: popover-in 0.2s ease;
  overflow: hidden;
}
.map-info-popover.hidden { display: none; }
@keyframes popover-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.map-info-popover__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 600;
  font-size: 13px;
}
.map-info-popover__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.map-info-popover__close:hover { color: #fff; }
.map-info-popover__body {
  padding: 10px 12px;
  line-height: 1.6;
}
.map-info-popover__body dt {
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}
.map-info-popover__body dt:first-child { margin-top: 0; }
.map-info-popover__body dd {
  margin: 1px 0 0;
  color: rgba(255,255,255,0.9);
}
.map-info-popover__body a {
  color: #90caf9;
  text-decoration: none;
}
.map-info-popover__body a:hover {
  text-decoration: underline;
}
.map-info-popover__footer {
  padding: 6px 12px 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 10px;
  color: rgba(255,255,255,0.4);
}
.map-info-popover__footer a {
  color: rgba(255,255,255,0.55);
}
.map-info-popover__footer a:hover {
  color: #90caf9;
}


/* Il corsivo, in un file variabile solo: copre tutti i pesi. Senza questi due
   blocchi il browser inclinava di suo il carattere diritto, e un obliquo finto
   si riconosce (le lettere restano quelle del romano, storte). */
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-var-italic-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-var-italic-latin-ext.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
