:root {
  --blue: #3b558c;
  --blue-dark: #263c6b;
  --link: #0088cc;
  --savona: #ec5442;
  --cuneo: #507b2d;
  --ink: #425273;
  --text: #4b5567;
  --muted: #8591a5;
  --line: #e6ebf3;
  --bg: #f3f6fc;
  --card: #fff;
  --zone: #3b558c;
  --zone-2: #0088cc;
  --zone-soft: #e8eefb;
  --radius: 24px;
  --shadow: 0 10px 30px rgba(31, 52, 99, .08);
  --shadow-lg: 0 18px 44px rgba(31, 52, 99, .16);
}

* { box-sizing: border-box; }
.hidden { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; color: var(--text); -webkit-font-smoothing: antialiased;
  font: 400 15px/1.7 "Poppins", Arial, sans-serif;
  background:
    radial-gradient(900px 500px at 8% -5%, rgba(0, 136, 204, .13), transparent 60%),
    radial-gradient(800px 500px at 100% 12%, rgba(59, 85, 140, .12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); line-height: 1.25; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 20px; }

.zone--savona { --zone: #ec5442; --zone-2: #ff8a5c; --zone-soft: #fdebe8; }
.zone--cuneo { --zone: #507b2d; --zone-2: #8bb94f; --zone-soft: #eaf2e0; }
.zone--genova { --zone: #0e8a96; --zone-2: #3fc6c0; --zone-soft: #e0f4f4; }
.zone--la_spezia { --zone: #7a4fb5; --zone-2: #ab80e6; --zone-soft: #f0e9fa; }

/* ---------- header ---------- */
.site-header { display: contents; }
.header-band { background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 100%); }
.header-top { display: flex; align-items: center; gap: 22px; min-height: 120px; padding-top: 14px; padding-bottom: 6px; }
.logo { flex: none; display: block; }
.logo img { display: block; height: 95px; width: auto; filter: drop-shadow(0 6px 10px rgba(59, 85, 140, .18)); transition: transform .25s; }
.logo:hover img { transform: scale(1.03); }
.store { display: flex; align-items: flex-end; gap: 12px; flex-grow:0; }
.store .store-badges { margin-left:0; display: flex; flex-direction:column; gap: 7px; align-items: flex-end; justify-content: flex-end; }
.store-badges a { line-height: 0; display:inline-block; }
/*.store-badges a + a { margin-top: 5px; }*/
.store-badges img { display: block; width:110px; height:auto; }
.social { display:flex; flex-grow:1; flex-direction:column; /*display: none;*/ margin-left: auto; gap: 8px; }
.social img { max-width: 30px; width: 30px; height: 30px; display: block; }
.header-ad { margin-left: auto; align-self: center; }

.navbar { position: sticky; top: 10px; z-index: 50; padding: 8px 0 4px; }
.navbar-inner { display: flex; align-items: center; min-height: 56px; padding: 6px 8px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .9); border-radius: 999px; box-shadow: var(--shadow-lg); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px 14px; cursor: pointer; }
.nav-toggle img { display: block; width: 24px; filter: brightness(0); }
.main-nav { width: 100%; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a.top { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px; color: var(--ink); font-size: 13.5px; font-weight: 600; transition: background .2s, color .2s; }
.main-nav a.top:hover { background: var(--zone-soft); text-decoration: none; color: var(--blue); }
.main-nav li.active > a.top { background: linear-gradient(135deg, var(--blue), var(--link)); color: #fff; box-shadow: 0 6px 14px rgba(0, 136, 204, .3); }
.main-nav > ul > li:last-child { margin-left: auto; }
.caret { width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.sub { display: none; position: absolute; left: 0; top: calc(100% + 8px); min-width: 270px; padding: 10px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.main-nav > ul > li:last-child .sub { left: auto; right: 0; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.sub a { display: block; padding: 9px 14px; border-radius: 12px; color: var(--ink); font-size: 13px; font-weight: 500; }
.sub a:hover { background: var(--zone-soft); color: var(--blue); text-decoration: none; }
.sub li:first-child a { font-weight: 600; color: var(--blue); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }

.ad-top-mobile { display: none; background: #fff; text-align: center; padding: 6px 8px 0; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 24px; padding-bottom: 48px; }
.side { display: none; }
.side-sticky { position: sticky; top: 90px; }
.content { min-width: 0; max-width: 840px; width: 100%; margin: 0 auto; }
@media (min-width: 992px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .side--right { display: block; }
  .content { margin: 0; max-width: none; }
}
@media (min-width: 1360px) {
  .container { max-width: 1480px; }
  .layout { grid-template-columns: 300px minmax(0, 1fr) 300px; }
  .side--left { display: block; }
  .content { max-width: 860px; margin: 0 auto; }
}

/* ---------- cards & intro ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; box-shadow: var(--shadow); }
.intro { position: relative; overflow: hidden; border-left: 6px solid var(--zone); }
.intro h1 { font-size: 28px; font-weight: 700; margin-bottom: 14px; background: linear-gradient(90deg, var(--zone), var(--zone-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.intro p:last-child, .card p:last-child { margin-bottom: 0; }
.intro-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero { border: 0; padding: 44px 40px; color: #e8f1ff; background: linear-gradient(125deg, #2b4382 0%, #3b558c 38%, #0088cc 100%); box-shadow: 0 24px 50px rgba(0, 100, 170, .3); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 380px; height: 380px; right: -110px; top: -150px; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 70%); }
.hero::after { width: 260px; height: 260px; right: 160px; bottom: -150px; background: radial-gradient(circle, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 70%); }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; line-height: 1.15; margin-bottom: 18px; background: none; -webkit-text-fill-color: #fff; color: #fff; max-width: 680px; }
.hero p { font-size: 15.5px; max-width: 720px; }
.hero strong { color: #fff; }

.btn, .more, .chip {
  display: inline-flex; align-items: center; padding: 0 18px; height: 36px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  background: var(--zone-soft); color: var(--zone); transition: transform .2s, box-shadow .2s, background .2s;
}
.more { height: 30px; padding: 0 14px; font-size: 12px; }
.btn { height: 42px; padding: 0 24px; font-size: 13.5px; background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.btn--primary { background: #fff; color: var(--blue); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); }
.btn:hover, .more:hover, .chip:hover { text-decoration: none; transform: translateY(-2px); }
.more:hover { background: var(--zone); color: #fff; box-shadow: 0 8px 16px rgba(0, 0, 0, .14); }
.chip:hover { background: var(--blue); color: #fff; }
.intro:not(.hero) .btn { background: var(--zone-soft); color: var(--zone); box-shadow: none; }

/* ---------- zone jump ---------- */
.zone-jump { position: sticky; top: 84px; z-index: 30; display: flex; gap: 8px; overflow-x: auto; margin: 0 0 24px; padding: 4px 2px 10px; scrollbar-width: none; }
.zone-jump::-webkit-scrollbar { display: none; }
.jump { flex: none; height: 38px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: var(--shadow); border: 2px solid transparent; transition: transform .2s, border-color .2s; }
.jump:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--blue); }
.jump--savona:hover { border-color: var(--savona); }
.jump--cuneo:hover { border-color: var(--cuneo); }
.jump--genova:hover { border-color: #0e8a96; }
.jump--la_spezia:hover { border-color: #7a4fb5; }

/* ---------- home: zone blocks ---------- */
.zone { margin-bottom: 28px; background: var(--card); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.zone-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 16px 22px; background: linear-gradient(110deg, var(--zone), var(--zone-2)); position: relative; overflow: hidden; }
.zone-head::after { content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.zone-title { font-size: 20px; font-weight: 700; position: relative; z-index: 1; }
.zone-title a { color: #fff; }
.zone-title a:hover { text-decoration: none; }
.zone-pill { color: #fff; letter-spacing: -.01em; }
.zone-archive { position: relative; z-index: 1; display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .2); color: #fff; font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.zone-archive:hover { background: #fff; color: var(--zone); text-decoration: none; }

.zone-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) {
  .zone-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .zone-grid--3 { grid-template-rows: repeat(2, auto); }
  .zone-grid--4 { grid-template-rows: repeat(3, auto); }
  .day--primary { grid-row: 1 / -1; }
}
.day { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 20px 22px; align-content: start; }
.day + .day { border-top: 1px solid var(--line); }
.day--primary { background: linear-gradient(160deg, var(--zone-soft), #fff 70%); border-right: 1px solid var(--line); grid-template-columns: 1fr; gap: 14px; padding: 24px 24px 26px; }
.semaforo { display: block; line-height: 0; justify-self: start; }
.cal { --s: 120px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; box-sizing: border-box; width: var(--s); height: calc(var(--s) * .96); padding: .5em .4em; border-radius: calc(var(--s) * .18); background: #fff; color: var(--zone); font-size: calc(var(--s) * .108); font-weight: 700; line-height: 1; text-transform: uppercase; text-align: center; box-shadow: 0 8px 20px rgba(31, 52, 99, .14), inset 0 0 0 2px var(--zone-soft); transition: transform .3s; user-select: none; }
.cal--80 { --s: 80px; }
.semaforo:hover, .semaforo:hover .cal, .semaforo:hover .cal * { text-decoration: none; }
.cal-day { font-size: .9em; letter-spacing: .02em; }
.cal-num { font-size: 4.3em; letter-spacing: -.03em; margin: .12em 0 .08em; }
.cal-month { font-size: .9em; letter-spacing: .03em; }
.day:hover .semaforo .cal { transform: scale(1.05); }
.day--primary .semaforo .cal { box-shadow: 0 14px 30px rgba(31, 52, 99, .18), 0 0 0 5px rgba(255, 255, 255, .7), inset 0 0 0 2px var(--zone-soft); border-radius: calc(var(--s) * .22); }
.day-date { display: inline-block; font-size: 11.5px; font-weight: 500; color: var(--muted); text-transform: none; }
.day-date strong { display: inline-block; margin-right: 4px; padding: 1px 9px; border-radius: 999px; background: var(--zone); color: #fff; font-size: 10.5px; letter-spacing: .04em; }
.day-title { margin: 6px 0 6px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.day--primary .day-title { font-size: 22px; font-weight: 700; }
.day-title a { color: var(--ink); }
.day-title a:hover { color: var(--zone); text-decoration: none; }
.excerpt { margin: 6px 0 8px; font-size: 13.5px; color: var(--text); }
.day:not(.day--primary) .excerpt { font-size: 12.5px; line-height: 1.6; }

/* ---------- zone page ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { height: 40px; padding: 0 22px; font-size: 13px; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.chip--on { background: linear-gradient(135deg, var(--blue), var(--link)); color: #fff; }
.zone-page { display: grid; gap: 22px; background: none; box-shadow: none; overflow: visible; border-radius: 0; }
.zone-day { position: relative; padding: 26px; background: #fff; border-radius: 28px; box-shadow: var(--shadow); border-top: 6px solid var(--zone); }
.zone-day::after { content: ""; display: block; clear: both; }
.zone-day-head a { display: flex; align-items: center; gap: 18px; color: var(--zone); }
.zone-day-head a:hover { text-decoration: none; }
.zone-day-head a > span:not(.cal) { font-size: 13px; font-weight: 600; color: var(--muted); }
.zone-day-head small { display: block; margin-top: 3px; color: var(--ink); font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.cover { display: block; float: left; width: 300px; max-width: 46%; margin: 16px 20px 8px 0; line-height: 0; }
.cover img { width: 100%; border-radius: 18px; display: block; box-shadow: var(--shadow); }
.zone-day .excerpt { margin-top: 16px; font-size: 14.5px; }
.zone-page .ad, .content > .ad { margin: 6px 0; }
.archive-link { margin: 6px 0 24px; }
.archive-link .btn { background: #fff; color: var(--blue); box-shadow: var(--shadow); }

/* ---------- day page ---------- */
.card.day-page { --pad: 34px; padding: 0; overflow: hidden; border: 0; }
.day-head { padding: 30px var(--pad) 28px; background: linear-gradient(180deg, var(--zone-soft), #fff); }
.day-head .day-h1 { display: flex; align-items: center; gap: 22px; margin: 0 0 18px; font-size: 15px; font-weight: 600; color: var(--muted); }
.day-h1 .cal { --s: 110px; box-shadow: 0 12px 26px rgba(31, 52, 99, .16), inset 0 0 0 2px var(--zone-soft); }
.day-h1 > span:not(.cal) { color: var(--muted); font-weight: 600; }
.day-head .day-h2 { margin: 0; font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; color: var(--ink); line-height: 1.2; }
.day-head .day-h2::after { content: ""; display: block; width: 64px; height: 5px; border-radius: 5px; margin-top: 18px; background: linear-gradient(90deg, var(--zone), var(--zone-2)); }
.day-content { padding: 4px var(--pad) 34px; }
.day-content .excerpt { margin: 22px 0 0; font-size: 16px; }
.bulletin { margin: 22px 0 0; font-size: 16px; line-height: 1.85; color: #3b4558; }
.bulletin p { margin-bottom: 1.1em; }
.bulletin p:last-child { margin-bottom: 0; }
.bulletin p:first-child { font-size: 17px; color: var(--ink); }
.covers { display: grid; gap: 16px; margin: 22px 0 0; }
.day-content .cover { float: none; display: block; width: 100%; max-width: none; margin: 22px 0 0; }
.covers .cover { margin: 0; }
.day-content .cover img { width: 100%; height: auto; border-radius: 18px; }
.app-cta { margin: 26px 0 0; padding: 22px 24px; border-radius: 22px; clear: both; color: #e8f1ff; background: linear-gradient(125deg, #2b4382, #3b558c 45%, #0088cc); box-shadow: 0 14px 30px rgba(0, 100, 170, .25); }
.app-cta p { margin: 0 0 14px; color: #fff; }
.app-cta a { color: #fff; text-decoration: underline; }
.app-cta-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.app-cta-badges a { line-height: 0; }
.app-cta-badges img { display: block; width: auto; height:54px }
.app-cta--plain { margin: 0 0 24px; padding: 22px 26px; }
.day-nav { display: grid; gap: 16px; font-weight: 600; font-size: 13.5px; }
.day-nav-step { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.day-nav-step a { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 999px; background: var(--zone-soft); color: var(--blue); }
.day-nav-step a:hover { background: var(--blue); color: #fff; text-decoration: none; }
.day-nav-links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- archive timeline ---------- */
.archive { position: relative; padding: 4px 0 4px 34px; background: none; box-shadow: none; border-radius: 0; margin-bottom: 20px; }
.archive::before { content: ""; position: absolute; left: 10px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--zone), var(--zone-2) 60%, transparent); }
.archive-item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; padding: 20px 24px; margin-bottom: 16px; background: #fff; border-radius: 24px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.archive-item:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.archive-item::before { content: ""; position: absolute; left: -35px; top: 34px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 4px solid var(--zone); box-shadow: 0 0 0 5px var(--bg); }
.archive-date { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--zone-soft); color: var(--zone); font-size: 11.5px; font-weight: 600; }
.archive-item h2 { margin: 8px 0 4px; font-size: 19px; font-weight: 700; }
.archive-item h2 a { color: var(--ink); }
.archive-item h2 a:hover { color: var(--zone); text-decoration: none; }
.archive-item .excerpt { margin: 0; font-size: 13.5px; }
.archive-item .more { margin-left: 6px; }
.archive .ad { margin: 0 0 16px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 24px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; background: #fff; border-radius: 50%; color: var(--blue); font-weight: 600; box-shadow: var(--shadow); }
.pager .active span { background: linear-gradient(135deg, var(--blue), var(--link)); color: #fff; }
.pager .disabled span { color: #9aa4b2; box-shadow: none; }
.pager a:hover { text-decoration: none; transform: translateY(-2px); }

/* ---------- info / risorse ---------- */
.prose { padding: 40px; }
.prose h1 { font-size: 32px; margin-bottom: 22px; }
.prose p { font-size: 16px; line-height: 1.85; margin-bottom: 1.2em; }
.prose p:first-of-type { font-size: 18px; color: var(--ink); font-weight: 500; }
.risorse { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-bottom: 24px; }
.risorse a { position: relative; display: block; height: 190px; border-radius: 22px; overflow: hidden; background: #dfe6f3; box-shadow: var(--shadow); color: #fff; }
.risorse a:hover { text-decoration: none; box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.risorse img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.risorse img.missing { visibility: hidden; }
.risorse a:hover img { transform: scale(1.06); }
.risorse span { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; font-size: 13px; font-weight: 600; line-height: 1.35; background: linear-gradient(180deg, rgba(23, 32, 51, 0), rgba(23, 32, 51, .85)); }

/* ---------- ads ---------- */
.ad { text-align: center; }
.ad ins { display: block; }
.ad--preview { position: relative; display: flex; align-items: center; justify-content: center; min-height: 90px; border: 1.5px dashed #b4c0d6; border-radius: 20px; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .7) 0 10px, rgba(232, 238, 251, .7) 10px 20px); color: #7686a3; font-size: 11px; font-weight: 500; overflow: hidden; }
.ad--preview::before { content: attr(data-label); position: relative; z-index: 1; padding: 4px 12px; background: rgba(255, 255, 255, .9); border-radius: 999px; }
.ad--preview ins { position: absolute; inset: 0; visibility: hidden; }
.header-ad .ad--preview { width: 728px; max-width: 100%; height: 90px; }
.ad-top-mobile .ad--preview { height: 100px; }
.ad--sky { height: calc(100vh - 130px); min-height: 400px; }
.ad--feed { min-height: 120px; margin: 0 0 28px; }
.ad--bottom { min-height: 120px; margin: 8px 0 0; }

/* ---------- footer ---------- */
.site-footer { margin-top: 0; color: #aeb9d0; font-size: 13px; background: linear-gradient(160deg, #111a2e, #1b2a4b); border-radius: 40px 40px 0 0; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 136, 204, .35), rgba(0, 136, 204, 0) 70%); pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 30px; padding-top: 56px; padding-bottom: 40px; text-align: center; }
.footer-col h5 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 14px; letter-spacing: .12em; }
.footer-col a { color: #d3dcf0; }
.footer-col a:hover { color: #fff; }
.footer-more { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 18px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12px; }
.footer-badges { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 8px; }
.footer-badges img { display: block; height: auto; }
.footer-qr { display: none; margin: 14px auto 0; padding: 4px; background: #fff; border-radius: 10px; }
.footer-links li { padding: 4px 0; }
.footer-copy { position: relative; padding: 22px 0; text-align: center; font-size: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-copy p { margin: 0; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); text-align: left; }
  .footer-badges { align-items: flex-start; }
  .footer-qr { display: block; margin-left: 0; }
}

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--link)); box-shadow: 0 10px 22px rgba(0, 100, 170, .4); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.to-top::after { content: ""; position: absolute; left: 50%; top: 53%; width: 10px; height: 10px; border: solid #fff; border-width: 2.5px 0 0 2.5px; transform: translate(-50%, -50%) rotate(45deg); }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

.app-bar { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(17, 26, 46, .88); backdrop-filter: blur(6px); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }

/* ---------- resources modal ---------- */
body.modal-open { overflow: hidden; }
.res-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; gap: 24px; padding: 24px; }
.res-modal[hidden] { display: none; }
.res-backdrop { position: absolute; inset: 0; background: rgba(14, 22, 40, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.res-figure { position: relative; z-index: 1; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; max-width: min(1000px, calc(100vw - 240px)); }
.res-figure figcaption { color: #fff; font-size: 22px; font-weight: 700; line-height: 1.3; text-align: center; letter-spacing: -.01em; }
.res-stage { display: grid; place-items: center; min-width: 280px; min-height: 200px; background: #0b1220; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.res-stage img { display: block; max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; }
.res-stage img.missing { visibility: hidden; width: 320px; height: 220px; }
.res-arrow, .res-close { position: relative; z-index: 2; flex: none; width: 68px; height: 68px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background .2s, transform .2s, border-color .2s; }
.res-arrow:hover, .res-close:hover { background: #fff; border-color: #fff; transform: scale(1.08); }
.res-arrow::after { content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; border: solid #fff; border-width: 0 4px 4px 0; border-radius: 2px; transition: border-color .2s; }
.res-arrow--prev::after { transform: translate(-30%, -50%) rotate(135deg); }
.res-arrow--next::after { transform: translate(-70%, -50%) rotate(-45deg); }
.res-arrow:hover::after { border-color: var(--blue); }
.res-close { position: absolute; top: 20px; right: 20px; width: 52px; height: 52px; font-size: 30px; line-height: 1; }
.res-close:hover { color: var(--blue); }
@media (max-width: 767px) {
  .res-modal { flex-wrap: wrap; align-content: center; gap: 18px 28px; padding: 16px; }
  .res-figure { order: 1; flex: 1 0 100%; max-width: 100%; }
  .res-figure figcaption { font-size: 18px; padding: 0 44px; }
  .res-stage img { max-height: calc(100vh - 290px); }
  .res-arrow--prev { order: 2; }
  .res-arrow--next { order: 3; }
  .res-close { top: 12px; right: 12px; }
}

/* ---------- responsive ---------- */
.header-band-mobile { display: none; }
@media (min-width:768px) and (max-width: 991px) {
    /* .header-ad { display: none; } */
    .header-ad {
      margin:0 auto; 
      width:100%;
      max-width: 100%;
  }
  .header-ad .ad {
      width:100%;
  }
}
@media (max-width: 991px) {
  .social { display: flex; }
  .header-top { min-height: 0; }
  .nav-toggle { display: block; }
  .navbar-inner { position: relative; justify-content: space-between; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 10px); width: auto; padding: 10px; background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 140px); overflow: auto; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav > ul > li:last-child { margin-left: 0; }
  .main-nav a.top { height: 46px; justify-content: space-between; }
  .sub, .main-nav > ul > li:last-child .sub { position: static; display: none; min-width: 0; padding: 4px 0 8px 12px; box-shadow: none; border: 0; border-radius: 0; background: none; }
  .sub::before { display: none; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
  .has-sub.open > .sub { display: block !important; }
  .zone-jump { top: 80px; }
  .header-band-mobile { display: block; }
  .social,
  .store .store-badges { flex-direction:row; align-items: center; justify-content: flex-end; margin: 0 0 0 auto; }
  .header-band-mobile { flex-grow:1; }
  .header-band-mobile .logo img { height: 42px; }
  .header-band-mobile .store img { height: 30px; }
  .header-band .header-top > *:not(.header-ad) {display:none;}
  .header-top.container { align-items: center; padding-top: 0; padding-bottom: 0; }
}
@media (max-width: 767px) {
  .ad-top-mobile { display: block; }
  .container { padding: 0 14px; }
  .logo img { height: 74px; }
  .card { padding: 22px; border-radius: 22px; }
  .hero { padding: 30px 24px; }
  .intro h1 { font-size: 22px; }
  .zone { border-radius: 24px; }
  .zone-title { font-size: 17px; }
  .day, .day--primary { padding: 18px; }
  .day--primary .day-title { font-size: 19px; }
  .day--primary { border-right: 0; border-bottom: 1px solid var(--line); }
  .zone-day { padding: 20px; }
  .zone-day-head small { font-size: 18px; }
  .zone-day-head a { align-items: flex-start; gap: 14px; }
  .cover { float: none; width: 100%; max-width: none; margin: 14px 0; }
  .card.day-page { --pad: 20px; }
  .day-head { padding: 22px var(--pad) 22px; }
  .day-head .day-h1 { gap: 14px; font-size: 13px; margin-bottom: 14px; }
  .day-h1 .cal { --s: 84px; }
  .day-head .day-h2::after { margin-top: 14px; }
  .day-content { padding-bottom: 26px; }
  .day-content .excerpt, .bulletin { font-size: 15.5px; }
  .app-cta { padding: 18px; }
  .prose { padding: 26px 22px; }
  .prose h1 { font-size: 25px; }
  .archive { padding-left: 26px; }
  .archive::before { left: 6px; }
  .archive-item { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .archive-item::before { left: -27px; top: 28px; }
  .has-app-bar .footer-copy { padding-bottom: 96px; }
  .app-bar { display: flex; align-items: center; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; height: 68px; border-radius: 22px; background: rgba(23, 32, 51, .96); backdrop-filter: blur(10px); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); color: #fff; }
  .app-bar[hidden] { display: none; }
  .app-bar-link { display: flex; align-items: center; gap: 14px; flex: 1; padding-left: 12px; color: #fff; }
  .app-bar-link:hover { text-decoration: none; }
  .app-bar-link img { border-radius: 50%; width: 46px; height: 46px; }
  .app-bar-1 { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .85); line-height: 1.3; }
  .app-bar-2 { display: block; font-size: 14.5px; font-weight: 600; color: #7cc4ff; line-height: 1.3; }
  .app-bar-close { background: none; border: 0; color: rgba(255, 255, 255, .85); font-size: 26px; padding: 0 18px; height: 100%; cursor: pointer; }
  .to-top { bottom: 90px; }
  .site-footer { border-radius: 28px 28px 0 0; }
  .footer-grid { gap: 28px; padding-top: 40px; padding-bottom: 28px; }
  .layout { padding-bottom: 36px; }
    .header-ad {display:none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 500px) {
    .header-top.container {padding-left:0;}
    .header-top.container .logo { margin:0 auto 0 auto; }
    .header-top.container .store { flex-grow:0; }
    .store .store-badges {
        flex-direction: column;
        gap: 1px;

    }
    .store .store-badges a img {
        width: 65px;
        height:auto;
    }
}

@media (max-width: 1150px) and (min-width: 992px) {
    .store .store-badges {
        flex-direction: column;
        gap: 4px;
        justify-content:center;
    }
    .store .store-badges img {
        height:auto;
        width:100px;
    }
}