/* ===================================================================
   AllertaMeteo — Landing page (Opzione B Dark)
   Design tokens + components + sections + responsive
   =================================================================== */

:root {
  /* Surfaces */
  --bg: #0a0d12;
  --bg-alt: #11151d;
  --card: #171c26;
  --card-hi: #1f2532;
  /* Text */
  --text: #f5f5f7;
  --text-sub: rgba(245, 245, 247, 0.66);
  --text-mute: rgba(245, 245, 247, 0.42);
  /* Lines */
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.14);
  --rule: rgba(255, 255, 255, 0.06);
  /* Brand */
  --yellow: #f6e201;
  --navy: #384567;
  --ink: #1d1d1f;
  /* Alert levels */
  --lvl-verde: #3cb371;
  --lvl-verde-txt: #e7f7ee;
  --lvl-gialla: #f1c232;
  --lvl-gialla-txt: #1a1300;
  --lvl-arancione: #ee7a30;
  --lvl-arancione-txt: #1a0c00;
  --lvl-rossa: #d24a2a;
  --lvl-rossa-txt: #ffffff;
  /* Type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html, body { overflow-x: hidden; }

a { color: inherit; }

img { max-width: 100%; display: block; }

::selection { background: var(--yellow); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 36px; }
.wrap--narrow { max-width: 1180px; }
.wrap--xnarrow { max-width: 980px; }
.wrap--cta { max-width: 900px; position: relative; z-index: 1; text-align: center; }

.section { padding: 120px 0; background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section[id] { scroll-margin-top: 72px; }

.section__head { text-align: center; margin-bottom: 64px; }

.grid { display: grid; }
.grid--2 { grid-template-columns: 1fr 1fr; gap: 64px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid--center { align-items: center; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--yellow);
}

.h2 {
  font-weight: 800;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}
.h2--xl { font-size: 88px; line-height: 0.98; letter-spacing: -3.2px; }
.h2--l  { font-size: 60px; line-height: 1.02; letter-spacing: -2.2px; }
.h2--m  { font-size: 56px; line-height: 1.0;  letter-spacing: -2px; }
.h2--s  { font-size: 52px; line-height: 1.02; letter-spacing: -2px; }

.hl {
  display: inline-block;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--ink);
}
.hl--hero { padding: 0 16px; border-radius: 8px; }
.hl--xl { padding: 0 16px; border-radius: 12px; }

.lead {
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text-sub);
  max-width: 460px;
  margin: 0 0 36px;
}
.lead--last { margin-bottom: 0; }
.lead--center { max-width: 620px; margin: 24px auto 0; }
.h2 + .lead { margin-top: 24px; }

/* ---------- AM Logo ---------- */
.amlogo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.amlogo__mark {
  width: var(--ls);
  height: var(--ls);
  border-radius: calc(var(--ls) * 0.22);
  background: var(--yellow);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.amlogo__mark svg { width: calc(var(--ls) * 0.6); height: calc(var(--ls) * 0.6); }
.amlogo__word {
  font-size: calc(var(--ls) * 0.62);
  letter-spacing: -0.4px;
  line-height: 1;
  color: var(--text);
}
.amlogo__word strong { font-weight: 800; }
.amlogo__word span { font-weight: 400; opacity: 0.85; }
.amlogo--ink .amlogo__word { color: var(--ink); }

/* ---------- Buttons / badges ---------- */
.btn-cta {
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }

.badges { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.badges--center { justify-content: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  background: #fff;
  color: #0a0e15;
  transition: transform 0.15s ease;
}
.badge:hover { transform: translateY(-2px); }
.badge svg { width: 22px; height: 22px; flex-shrink: 0; }
.badge__txt { display: flex; flex-direction: column; line-height: 1; }
.badge__txt small {
  font-size: 9px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.75;
}
.badge__txt strong { font-size: 16px; font-weight: 600; margin-top: 2px; }

/* ===================================================================
   HEADER
   =================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 18, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rule);
}
.header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo { display: flex; align-items: center; }
.header__logo { flex-shrink: 0; }
.header__logo img { height: 34px; width: auto; max-width: none; display: block; }
.header__nav { display: flex; align-items: center; gap: 32px; }
.header__link {
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}
.header__link:hover { color: var(--text); }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 900px;
  background-image: url("assets/tempesta.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(10, 13, 18, 0.45) 0%,
      rgba(10, 13, 18, 0.25) 35%,
      rgba(10, 13, 18, 0.65) 75%,
      var(--bg) 100%),
    radial-gradient(ellipse 70% 50% at 30% 30%,
      rgba(10, 13, 18, 0.1), rgba(10, 13, 18, 0.55));
}
.hero__inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 100px 36px 80px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__h1 {
  font-weight: 800;
  font-size: 88px;
  line-height: 0.98;
  letter-spacing: -3.2px;
  color: var(--text);
  margin: 0 0 28px;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.hero__sub {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(245, 245, 247, 0.85);
  max-width: 540px;
  margin: 0 0 40px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.hero__sub strong { color: var(--text); font-weight: 700; }

.hero__phone {
  position: relative;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__toast {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 80px;
  width: 270px;
  z-index: 3;
}

/* Radar rings */
.ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ring--lg {
  width: 480px; height: 480px;
  border: 1px solid rgba(246, 226, 1, 0.15);
  box-shadow: inset 0 0 60px rgba(246, 226, 1, 0.06);
}
.ring--sm {
  width: 360px; height: 360px;
  border: 1px solid rgba(246, 226, 1, 0.1);
}
.ring--xl {
  width: 600px; height: 600px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(246, 226, 1, 0.1);
}
.ring--xxl {
  width: 900px; height: 900px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(246, 226, 1, 0.06);
}

/* ===================================================================
   PHONE FRAME
   =================================================================== */
.phone {
  width: var(--pw);
  height: calc(var(--pw) * 2.04);
  position: relative;
  background: #0a0e15;
  border-radius: calc(var(--pw) * 0.13);
  padding: 10px;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.phone__btn {
  position: absolute;
  width: 3px;
  background: #222;
  border-radius: 2px;
}
.phone__btn--l1 { left: -2px; top: 20%; height: 36px; }
.phone__btn--l2 { left: -2px; top: 32%; height: 58px; }
.phone__btn--r1 { right: -2px; top: 24%; height: 70px; }
.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--pw) * 0.1);
  overflow: hidden;
  position: relative;
  background: #000;
}
.phone__island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  background: #000;
  border-radius: 16px;
  z-index: 30;
}
.phone__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ---------- App screen (light interior) ---------- */
.appscreen {
  width: 100%;
  height: 100%;
  background: #fff;
  color: var(--ink);
  padding: 50px 14px 14px;
  display: flex;
  flex-direction: column;
}
.appscreen--selector { padding-top: 52px; }
.appscreen__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

/* Selector screen */
.appscreen__zone {
  font-size: 10px;
  color: rgba(29, 29, 31, 0.5);
  font-family: var(--mono);
  letter-spacing: 0.4px;
  font-weight: 700;
}
.appscreen__h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.appscreen__fakesearch {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(29, 29, 31, 0.05);
  margin-bottom: 12px;
  font-size: 11px;
  color: rgba(29, 29, 31, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}
.appscreen__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}
.appscreen__chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}
.appscreen__sublabel {
  font-size: 10px;
  color: rgba(29, 29, 31, 0.5);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 700;
  font-family: var(--mono);
}
.appscreen__regione {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.appscreen__pushslot { margin-top: auto; padding-top: 8px; }

/* ---------- Push toast ---------- */
.toast {
  background: rgba(28, 30, 40, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px 14px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(.2, .8, .2, 1), opacity 0.35s ease;
}
.toast--compact { padding: 10px 12px; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast__badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
}
.toast__body { flex: 1; min-width: 0; }
.toast__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.toast__app {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  opacity: 0.9;
}
.toast__when { font-size: 10px; opacity: 0.55; }
.toast__title {
  font-size: 13px;
  font-weight: 600;
  margin-top: 3px;
  line-height: 1.3;
}
.toast__desc {
  font-size: 11.5px;
  opacity: 0.75;
  margin-top: 2px;
  line-height: 1.35;
}
.toast--compact .toast__desc { display: none; }

/* ===================================================================
   CARDS / SECTIONS
   =================================================================== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.card__title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.7px;
  color: var(--text);
  margin: 0 0 10px;
}
.card__body {
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--text-sub);
  margin: 0;
}

/* Steps */
.step { padding: 32px; }
.step__num {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
}

/* Approfondimento (collapsible long-form SEO content) */
.approfondimento {
  max-width: 900px;
  margin: 56px auto 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.approfondimento > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.approfondimento > summary::-webkit-details-marker { display: none; }
.approfondimento__label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
}
.approfondimento__chev {
  font-size: 26px;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
  transition: transform 0.25s ease;
}
.approfondimento[open] .approfondimento__chev { transform: rotate(90deg); }
.approfondimento__body {
  padding: 4px 28px 28px;
  border-top: 1px solid var(--rule);
}
.approfondimento__body h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text);
  margin: 24px 0 6px;
}
.approfondimento__body h3:first-of-type { margin-top: 20px; }
.approfondimento__body p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-sub);
  margin: 0;
}

/* Features */
.feats { gap: 20px; }
.feat { padding: 28px; }
.feat__dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--yellow);
  margin-bottom: 18px;
}
.feat__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--text);
  margin: 0 0 8px;
}
.feat .card__body { font-size: 14.5px; }

/* Panel (Personalizza / Bollettino) */
.panel { padding: 24px; }
.panel--bollettino { padding: 32px; border-radius: 20px; }
.panel__note {
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-mute);
}

/* ---------- Comune search ---------- */
.comunesearch { position: relative; }
.comunesearch__input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--text);
}
.comunesearch__input svg { color: var(--text-sub); flex-shrink: 0; }
.comunesearch__input input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.comunesearch__input input::placeholder { color: var(--text-mute); }
.comunesearch__count {
  font-size: 11px;
  color: var(--text-sub);
  font-family: var(--mono);
  white-space: nowrap;
}
.comunesearch__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.comunesearch__chips:empty { margin-top: 0; }
.chip-comune {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 10px;
  border-radius: 999px;
  background: #ffb020;
  color: #1b1100;
  border: 0;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.chip-comune span { font-size: 14px; line-height: 1; opacity: 0.7; }
.comunesearch__drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #0f1a2c;
  border: 1px solid var(--border);
  border-radius: 10px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 20;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.comunesearch__row {
  padding: 9px 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.12s ease;
}
.comunesearch__row:hover { background: rgba(255, 255, 255, 0.06); }
.comunesearch__row.is-selected { background: rgba(255, 176, 32, 0.14); }
.comunesearch__row.is-selected:hover { background: rgba(255, 176, 32, 0.14); }
.comunesearch__row svg { color: #ffb020; }
.comunesearch__empty {
  padding: 14px;
  color: var(--text-sub);
  font-size: 13px;
}

/* ---------- Notif toggle ---------- */
.notiftoggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.notiftoggle__label { font-size: 14px; font-weight: 600; color: var(--text); }
.notiftoggle__sub { font-size: 12px; margin-top: 2px; color: var(--text-sub); }
.switch {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  border: 0;
  padding: 2px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.18s ease;
}
.switch--on { background: #ffb020; }
.switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: left 0.2s cubic-bezier(.2, .7, .3, 1);
}
.switch--on .switch__thumb { left: 20px; }

/* ===================================================================
   BOLLETTINO
   =================================================================== */
.bollettino__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.bollettino__date {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 700;
}
.bollettino__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-top: 4px;
  letter-spacing: -0.5px;
}

/* Alert chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}
.chip--verde     { background: var(--lvl-verde);     color: var(--lvl-verde-txt); }
.chip--gialla    { background: var(--lvl-gialla);    color: var(--lvl-gialla-txt); }
.chip--arancione { background: var(--lvl-arancione); color: var(--lvl-arancione-txt); }
.chip--rossa     { background: var(--lvl-rossa);     color: var(--lvl-rossa-txt); }

/* ---------- Italy region map ---------- */
.italymap {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 12px auto 0;
}
.italymap__svg { display: block; width: 100%; height: auto; overflow: visible; }
.italymap__regions path {
  fill: transparent;
  stroke: #ffffff;
  stroke-width: 2px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: all;
  transition: stroke-width 0.15s ease;
}
.italymap__regions path:hover { stroke-width: 3.2px; }
.italymap__dot { pointer-events: none; }
.italymap__halo {
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: haloPulse 2.4s ease-in-out infinite;
}
@keyframes haloPulse {
  0%, 100% { transform: scale(0.7);  opacity: 0.30; }
  50%      { transform: scale(1.55); opacity: 0.05; }
}
.italymap__tip {
  position: absolute;
  transform: translateY(-50%);
  background: #0b1220;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}
.italymap__tip[hidden] { display: none; }
.italymap__tip-dot { width: 8px; height: 8px; border-radius: 50%; }
.italymap__tip-sep { opacity: 0.6; }
.italymap__tip-lvl { opacity: 0.8; }

/* ===================================================================
   SCREENS ROW
   =================================================================== */
.screens {
  display: flex;
  gap: 24px;
  justify-content: center;
  overflow-x: auto;
  padding: 20px 0;
}
.screens__item { flex-shrink: 0; }
.screens__item--offset { transform: translateY(-20px); }
.phone--mini .phone__btn--l1 { height: 26px; }
.phone--mini .phone__btn--l2 { height: 42px; }
.phone--mini .phone__btn--r1 { height: 50px; }
.phone--mini .phone__island { width: 66px; height: 19px; top: 8px; }

/* ---------- Source logo ---------- */
.source__logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  flex-shrink: 0;
  background: #fff;
  padding: 4px;
  object-fit: contain;
  display: block;
}

/* ---------- Source cards ---------- */
.fonti { gap: 20px; margin-top: 0; }
.source {
  padding: 24px;
  border-radius: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  text-align: left;
}
.source__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.25;
  color: var(--text);
}
.source__sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  margin-top: 4px;
}

/* ===================================================================
   DOWNLOAD
   =================================================================== */
.download {
  position: relative;
  overflow: hidden;
  padding: 140px 0 100px;
}
.download__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(246, 226, 1, 0.18), transparent 60%);
  pointer-events: none;
}
.download .lead { margin-bottom: 40px; }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  padding: 40px 0;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__logo { display: inline-flex; }
.footer__logo img { height: 26px; width: auto; display: block; }
.footer__credit {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text);
}
.footer__credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer__links { display: flex; gap: 24px; }
.footer__links a {
  font-size: 13px;
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer__links a:hover { color: var(--text); }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1100px) {
  .hero__h1 { font-size: 72px; letter-spacing: -2.4px; }
  .h2--xl { font-size: 72px; letter-spacing: -2.6px; }
  .h2--l { font-size: 52px; letter-spacing: -1.8px; }
  .h2--m { font-size: 48px; letter-spacing: -1.6px; }
  .h2--s { font-size: 46px; letter-spacing: -1.6px; }
}

@media (max-width: 960px) {
  .wrap { padding: 0 28px; }
  .header__inner { padding: 16px 28px; }
  .hero { min-height: 0; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 88px 28px 64px;
  }
  .hero__phone { height: auto; order: 2; }
  .hero__sub { max-width: none; }
  .grid--2 { grid-template-columns: 1fr; gap: 48px; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .selettore__phone { order: -1; }
  .section { padding: 88px 0; }
  .lead { max-width: none; }
}

@media (max-width: 720px) {
  .header__nav { gap: 0; }
  .header__link { display: none; }
  .grid--3 { grid-template-columns: 1fr; }
  .ring--lg { width: 360px; height: 360px; }
  .ring--sm { width: 280px; height: 280px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .header__inner { padding: 14px 20px; }
  .hero__inner { padding: 72px 20px 56px; }
  .hero__h1 { font-size: 48px; letter-spacing: -1.6px; }
  .h2--xl { font-size: 44px; letter-spacing: -1.6px; line-height: 1.04; }
  .h2--l, .h2--m, .h2--s { font-size: 36px; letter-spacing: -1.2px; line-height: 1.06; }
  .hero__sub { font-size: 18px; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 44px; }
  .download { padding: 88px 0 72px; }
  .step, .feat { padding: 24px; }
  .panel--bollettino { padding: 24px; }
  .badges { width: 100%; }
  .badge { flex: 1; justify-content: center; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .header__logo img { height: 28px; }
  .approfondimento { margin-top: 40px; }
  .approfondimento > summary { padding: 16px 20px; }
  .approfondimento__label { font-size: 14px; }
  .approfondimento__body { padding: 4px 20px 22px; }
  .approfondimento__body h3 { font-size: 16px; margin-top: 22px; }
  .approfondimento__body p { font-size: 14.5px; }
  .screens { flex-direction: column; align-items: center; gap: 32px; overflow-x: visible; }
  .screens__item--offset { transform: none; }
}

@media (max-width: 380px) {
  .hero__h1 { font-size: 40px; }
  .phone:not(.phone--mini) { --pw: 280px !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .italymap__halo { animation: none; }
  .toast { transition: opacity 0.2s ease; transform: none; }
  .badge:hover, .btn-cta:hover { transform: none; }
  .switch__thumb { transition: none; }
  * { scroll-behavior: auto; }
}

html { scroll-behavior: smooth; }
