/*
Theme Name: I Love Lake Iseo
Theme URI: https://ilovelakeiseo.com
Author: I Love Lake Iseo
Description: Tema custom del portale del Lago d'Iseo. Dashboard-hub "Il Lago dal Vivo": template PHP nativi, nessun page builder. Design system ufficiale (Mont + Montserrat, palette Blu Abisso / Verde Smeraldo / Verde Monte / Sabbia Chiara / Rosso Iseo).
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.1
License: Proprietary
Text Domain: ilovelakeiseo
*/

/* Origine: prototipo docs/design/prototipo-home/il-lago-dal-vivo.src.html. Guscio (rail, topbar, tab bar, footer) + home. */

@font-face { font-family: 'Mont'; font-weight: 700; font-style: normal; font-display: swap; src: url('assets/fonts/Mont-Bold.woff2') format('woff2'); }

@property --sky1 { syntax: '<color>'; inherits: true; initial-value: #3E8DC2; }
@property --sky2 { syntax: '<color>'; inherits: true; initial-value: #8CC3E0; }
@property --sky3 { syntax: '<color>'; inherits: true; initial-value: #D8ECF5; }
@property --water { syntax: '<color>'; inherits: true; initial-value: #2A8C85; }

:root {
  --abisso: #1D3D4F;
  --smeraldo: #2A8C85;
  --monte: #6E8568;
  --sabbia: #F4F1EA;
  --rosso: #D9383A;

  --bg: #F4F1EA;
  --surface: #FFFFFF;
  --surface-2: #EDE8DD;
  --text: #1D3D4F;
  --text-2: #5C7480;
  --text-3: #5C7480;
  --line: rgba(29,61,79,.15);
  --line-strong: #1D3D4F;
  --rail-bg: #1D3D4F;
  --rail-fg: #F4F1EA;
  --accent: #2A8C85;
  --accent-fg: #FFFFFF;
  --live: #D9383A;
  --ok: #3E8A5A;
  --warn: #C98A2B;
  --shadow: 0 8px 24px rgba(29,61,79,.12);
  --shadow-soft: 0 2px 8px rgba(29,61,79,.08);
  --radius: 16px;
  --radius-s: 8px;
  --radius-l: 24px;
  --font-display: 'Mont', 'Montserrat', sans-serif;
  --font-body: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --text-micro: 11px;

  --sky1: #3E8DC2; --sky2: #8CC3E0; --sky3: #D8ECF5; --water: #2A8C85;
  --hero-fg: #0F2A38; --hero-fg-2: rgba(15,42,56,.72);
  --hero-chip: rgba(255,255,255,.62); --hero-chip-fg: #0F2A38;
  --wave-dur: 6s;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F212C; --surface: #17303D; --surface-2: #1F3B4A;
    --text: #F4F1EA; --text-2: #C3CCD2; --text-3: #8FA0AA;
    --line: rgba(244,241,234,.12); --line-strong: #F4F1EA;
    --rail-bg: #0B1820; --shadow: 0 8px 24px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --bg: #0F212C; --surface: #17303D; --surface-2: #1F3B4A;
  --text: #F4F1EA; --text-2: #C3CCD2; --text-3: #8FA0AA;
  --line: rgba(244,241,234,.12); --line-strong: #F4F1EA;
  --rail-bg: #0B1820; --shadow: 0 8px 24px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
.logo-box { overflow: hidden; border-radius: 14px; background: var(--abisso); flex: none; }
.logo-box img { width: 100%; height: 100%; display: block; transform: scale(2.2); transform-origin: 47% 46%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.45; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--smeraldo); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3, .big, .time-head .big, .ring .lbl b { font-family: var(--font-display); font-weight: 700; }
h1, h2, h3 { margin: 0; text-wrap: balance; line-height: 1.05; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }

.app { display: flex; min-height: 100vh; }

.rail { display: none; }
@media (min-width: 1024px) {
  .rail { display: flex; flex-direction: column; width: 92px; position: sticky; top: 0; height: 100vh; background: var(--rail-bg); color: var(--rail-fg); padding: 18px 0 16px; align-items: center; gap: 4px; flex: none; }
  .rail .logo-box { width: 56px; height: 56px; margin-bottom: 14px; }
  .rail nav { display: flex; flex-direction: column; gap: 2px; width: 100%; }
  .rail nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; font-size: var(--text-micro); font-weight: 600; letter-spacing: .02em; color: rgba(244,241,234,.66); border-left: 3px solid transparent; }
  .rail nav a svg { width: 22px; height: 22px; }
  .rail nav a:hover { color: #fff; }
  .rail nav a.active { color: #fff; border-left-color: var(--rosso); background: rgba(255,255,255,.06); }
  .rail .spacer { flex: 1; }
  .rail .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--smeraldo); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
}

.main { flex: 1; min-width: 0; padding-bottom: 92px; }
@media (min-width: 1024px) { .main { padding-bottom: 40px; } }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.topbar { display: flex; align-items: center; gap: 10px; padding: 14px 0; }
.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: .01em; flex: none; }
@media (max-width: 519px) { .topbar .brand .txt { display: none; } }
.topbar .brand .logo-box { width: 40px; height: 40px; border-radius: 12px; }
@media (min-width: 1024px) { .topbar .brand { display: none; } }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); color: var(--text-3); font-size: 14px; text-align: left; }
.search svg { width: 18px; height: 18px; flex: none; }
.search span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.search kbd { display: none; font: 600 var(--text-micro) var(--font-body); padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--text-3); }
@media (min-width: 720px) { .search kbd { display: inline-block; } }
.iconbtn { width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; }
.iconbtn svg { width: 20px; height: 20px; }
.topbar .date { display: none; font-size: 13px; color: var(--text-2); white-space: nowrap; }
@media (min-width: 720px) { .topbar .date { display: block; } }

/* HERO */
.hero { position: relative; border-radius: var(--radius-l); overflow: hidden; background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 55%, var(--sky3) 100%); color: var(--hero-fg); transition: --sky1 1.2s ease, --sky2 1.2s ease, --sky3 1.2s ease, --water 1.2s ease, color .6s; box-shadow: var(--shadow); min-height: 440px; }
.hero .stars { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1s; }
.hero[data-phase="notte"] .stars { opacity: 1; }
.hero .stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; }
.hero .sun { position: absolute; width: 64px; height: 64px; opacity: .9; border-radius: 50%; background: radial-gradient(circle, #FFF7D6 0%, #FFD98A 45%, rgba(255,217,138,0) 72%); transform: translate(-50%, -50%); transition: left 1.2s ease, top 1.2s ease, opacity .8s; pointer-events: none; filter: blur(.5px); }
.hero[data-phase="notte"] .sun { opacity: 0; }
.hero .moon { position: absolute; right: 12%; top: 16%; width: 30px; height: 30px; border-radius: 50%; background: #F4F1EA; box-shadow: -8px -4px 0 4px var(--sky1), 0 0 24px rgba(244,241,234,.55); opacity: 0; transition: opacity 1s; pointer-events: none; }
.hero[data-phase="notte"] .moon { opacity: 1; }
.hero .mountains { position: absolute; left: 0; right: 0; bottom: 0; height: 44%; pointer-events: none; }
.hero .mountains svg { width: 100%; height: 100%; display: block; }
.hero .haze { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 40%, rgba(29,61,79,.10) 100%); pointer-events: none; }

.hero-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 12px; padding: 22px 20px 18px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 24px; padding: 30px 34px 24px; align-items: center; min-height: 440px; } }
.hero-copy { display: flex; flex-direction: column; gap: 14px; }
.hero-copy .eyebrow { color: var(--hero-fg-2); font-size: var(--text-micro); display: flex; align-items: center; gap: 8px; }
.hero-copy .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(217,56,58,.6); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(217,56,58,.55); } 100% { box-shadow: 0 0 0 12px rgba(217,56,58,0); } }
.hero h1 { font-size: clamp(36px, 4.4vw, 48px); font-weight: 700; letter-spacing: -.01em; }
.hero h1 small { display: block; font-family: var(--font-body); font-size: 16px; font-weight: 500; line-height: 1.45; color: var(--hero-fg-2); margin-top: 8px; letter-spacing: 0; }
.hero .meteo { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; font-weight: 600; color: var(--hero-fg-2); }
.hero .meteo b { color: var(--hero-fg); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 13px; border-radius: 999px; background: var(--hero-chip); color: var(--hero-chip-fg); font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.35); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.chip.btn:hover { background: rgba(255,255,255,.85); }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(29,61,79,.22); backdrop-filter: blur(6px); gap: 4px; align-self: flex-start; }
.seg button { height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 13px; color: #fff; transition: background .25s, color .25s; }
.seg button.active { background: #fff; color: var(--abisso); }

.lakemap { position: relative; width: 100%; aspect-ratio: 5 / 4; max-height: 380px; }
@media (min-width: 900px) { .lakemap { aspect-ratio: auto; height: 372px; } }
.lakemap svg { width: 100%; height: 100%; display: block; overflow: visible; }
.lakemap .town { cursor: pointer; }
.lakemap .town circle.hit { fill: transparent; }
.lakemap .town circle.pt { fill: var(--hero-fg); transition: r .2s; }
.lakemap .town text { font: 600 7.4px 'Montserrat', sans-serif; fill: var(--hero-fg); paint-order: stroke; stroke: rgba(255,255,255,.55); stroke-width: 2px; }
.hero[data-phase="notte"] .lakemap .town text, .hero[data-phase="tramonto"] .lakemap .town text { stroke: rgba(15,42,56,.6); }
.lakemap .town:hover circle.pt, .lakemap .town.sel circle.pt { r: 4.2; }
.lakemap .town.sel circle.ring { fill: none; stroke: var(--hero-fg); stroke-width: 1.2; }
.lakemap .light { fill: #FFD98A; opacity: 0; transition: opacity 1s; filter: drop-shadow(0 0 3px #FFD98A); }
.hero[data-phase="notte"] .lakemap .light { opacity: .95; }
.lakemap .wave { fill: none; stroke: rgba(255,255,255,.42); stroke-width: .8; stroke-linecap: round; animation: drift var(--wave-dur) linear infinite; }
.lakemap .wave:nth-child(2n) { animation-direction: reverse; stroke: rgba(255,255,255,.28); }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-20px); } }
.lakemap .ev { fill: var(--live); stroke: #fff; stroke-width: 1; cursor: pointer; }
.lakemap .evping { fill: none; stroke: var(--live); stroke-width: 1; animation: evping 2s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes evping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3); opacity: 0; } }
.lakemap .ferry { fill: var(--hero-fg); }
.lakemap .caption { position: absolute; left: 6px; bottom: 2px; font-size: 11px; font-weight: 600; color: var(--hero-fg-2); }

/* TIME STRIP */
.timestrip { position: relative; margin-top: -26px; z-index: 2; }
.timestrip .card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 12px; }
.time-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.time-head .big { font-size: 28px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 10px; }
.time-head .big small { font-size: 13px; font-weight: 600; color: var(--text-3); }
.time-head .now { color: var(--live); }
.quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex: none; height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.quick button.active { background: var(--abisso); color: #fff; border-color: var(--abisso); }
.quick button .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.slider { position: relative; padding: 6px 0 18px; }
.slider input { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(90deg, #6C7FA6 0%, #8CC3E0 18%, #2A8C85 55%, #E2734F 78%, #1D3D4F 100%); outline: none; margin: 0; }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--abisso); box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: grab; }
.slider input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--abisso); cursor: grab; }
.ticks { display: flex; justify-content: space-between; font-size: var(--text-micro); font-weight: 600; color: var(--text-3); padding: 8px 6px 0; }
.next { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); padding-top: 12px; }
.next::-webkit-scrollbar { display: none; }
.next .lbl { font-size: var(--text-micro); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); flex: none; }
.next .item { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.next .item b { font-family: var(--font-display); color: var(--smeraldo); }
.next .item svg { width: 16px; height: 16px; }

/* SECTIONS */
.section { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-head h2 { font-size: 28px; font-weight: 700; }
.section-head .more { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; padding: 12px 0 12px 12px; }
.persona { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.persona::-webkit-scrollbar { display: none; }
.persona button { flex: none; height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.persona button svg { width: 18px; height: 18px; }
.persona button.active { background: var(--smeraldo); border-color: var(--smeraldo); color: #fff; }

/* BENTO */
.bento { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bento.mio { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .bento.mio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bento.mio { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.bento.reflow .tile { animation: reflow .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes reflow { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.tile.span2 { grid-column: span 1; }
@media (min-width: 720px) { .tile.span2 { grid-column: span 2; } }
.bento.mio .tile { padding: 14px; gap: 8px; }
.bento.mio .tile.span2 { grid-column: span 2; }
.tile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tile-head h3 { font-size: 20px; font-weight: 700; }
.bento.mio .tile-head h3 { font-size: 16px; }
.tile-head .more { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; padding: 12px 0 12px 12px; margin: -10px 0; flex: none; }
.tile-head > div:first-child { min-width: 0; }
.tile .sub .more { padding: 12px 0 12px 12px; margin: -12px 0; }
.tile .sub { font-size: 13px; color: var(--text-3); font-weight: 600; }
.rows { display: flex; flex-direction: column; gap: 2px; }
.row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 48px; padding: 6px 0; border-top: 1px solid var(--line); }
.row > * { min-width: 0; }
.row:first-child { border-top: 0; }
.row .t { font-weight: 700; font-size: 16px; font-family: var(--font-display); }
.row .t small { display: block; font-family: var(--font-body); font-weight: 600; font-size: var(--text-micro); color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .title { font-weight: 600; font-size: 16px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.row .ph { width: 56px; height: 56px; border-radius: var(--radius-s); object-fit: cover; display: block; }
.bento.mio .row .ph { width: 44px; height: 44px; }
.row .ico { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); margin-right: 6px; vertical-align: -6px; }
.row .ico svg { width: 14px; height: 14px; }
.row .meta b { color: var(--text); font-weight: 700; }
.row .meta { font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bento.mio .row { grid-template-columns: 50px minmax(0, 1fr); min-height: 40px; padding: 6px 0; row-gap: 4px; }
.bento.mio .row .status { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 719px) { .bento.mio .tile-head .more { display: none; } .bento.mio .ring svg { width: 56px; height: 56px; } }
.bento.mio .row .title { font-size: 14px; }
.status { font-size: var(--text-micro); font-weight: 700; padding: 5px 9px; border-radius: 999px; white-space: nowrap; letter-spacing: .02em; }
.status.live { background: rgba(217,56,58,.12); color: var(--live); }
.status.soon { background: rgba(42,140,133,.14); color: var(--smeraldo); }
.status.later { background: var(--surface-2); color: var(--text-2); }
.status.free { background: rgba(110,133,104,.16); color: var(--monte); }
.big { font-size: 48px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.bento.mio .big { font-size: 36px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 13px; }
.kv div { display: flex; flex-direction: column; gap: 2px; }
.kv .k { font-size: var(--text-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.kv .v { font-weight: 700; overflow-wrap: anywhere; }
.wind { display: flex; align-items: center; gap: 10px; }
.wind .arrow { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.wind .arrow svg { width: 18px; height: 18px; transition: transform .6s; }
.suit { display: flex; gap: 6px; flex-wrap: wrap; }
.suit span { font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 999px; background: var(--surface-2); }
.suit span.ok { background: rgba(62,138,90,.14); color: var(--ok); }
.suit span.warn { background: rgba(201,138,43,.16); color: var(--warn); }
.place { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.place:first-child { border-top: 0; padding-top: 0; }
.place .ph { width: 60px; height: 60px; border-radius: var(--radius-s); flex: none; object-fit: cover; background: linear-gradient(135deg, var(--monte), var(--smeraldo)); }
.place > div:last-child { min-width: 0; }
.place .name { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.place .d { font-size: 13px; color: var(--text-2); }
.place .badge { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: var(--text-micro); font-weight: 700; color: var(--rosso); }
.place .badge svg { width: 11px; height: 11px; }
.ring { display: flex; align-items: center; gap: 14px; }
.ring svg { width: 72px; height: 72px; flex: none; }
.ring .lbl { font-size: 13px; color: var(--text-2); min-width: 0; overflow-wrap: anywhere; }
.ring .lbl b { display: block; font-size: 28px; color: var(--text); }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-weight: 700; font-size: 16px; box-shadow: var(--shadow-soft); }
.cta::after { content: '\2192'; font-weight: 700; }
.cta.ghost { background: transparent; border: 1.5px solid var(--line-strong); color: var(--text); box-shadow: none; }
.tile .foot { margin-top: auto; display: flex; gap: 8px; }
.notice { font-size: 13px; color: var(--text-2); padding: 10px 12px; border-radius: var(--radius-s); background: var(--surface-2); }

/* HOVER SYSTEM: 1) card = si alza + bordo smeraldo + foto che respira; 2) riga = sfondo sabbia; 3) pillola = bordo scuro; 4) link = freccia che avanza */
:root { --hover-border: rgba(42,140,133,.55); --t: 180ms ease; }
.comune, .story, .partner, .tile, .row, .place, .rep, .quick button, .persona button, .chip.btn, .seg button, .more, .cta, .iconbtn, .search { transition: transform var(--t), box-shadow var(--t), border-color var(--t), background-color var(--t), color var(--t); }
.comune, .story, .partner, .row, .place, .rep, .chip.btn, .more, .lakemap .town { cursor: pointer; }
.comune img, .story .img, .partner img, .place .ph, .row .ph { transition: transform 400ms ease; }
.comune:hover, .story:hover, .partner:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--hover-border); }
.comune:hover img, .partner:hover img { transform: scale(1.05); }
.story:hover .img { transform: scale(1.03); }
.story { overflow: hidden; }
.story .img, .comune img, .partner img { transform-origin: center; }
.comune.sel:hover { border-color: var(--smeraldo); }
.row, .place, .rep { margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: var(--radius-s); }
.row:hover, .place:hover, .rep:hover { background: var(--surface-2); }
.row:hover .status, .place:hover .badge { filter: saturate(1.15); }
.quick button:hover, .persona button:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--text); }
.quick button.active:hover { background: var(--abisso); color: #fff; border-color: var(--abisso); }
.persona button.active:hover { background: var(--smeraldo); color: #fff; border-color: var(--smeraldo); }
.seg button:not(.active):hover { background: rgba(255,255,255,.18); }
.more { display: inline-flex; align-items: center; gap: 4px; }
.more:hover { color: var(--abisso); text-decoration: underline; text-underline-offset: 3px; }
.cta:hover { transform: translateY(-1px); box-shadow: var(--shadow); filter: brightness(1.05); }
.cta.ghost:hover { background: var(--surface-2); box-shadow: none; }
.iconbtn:hover, .search:hover { border-color: var(--line-strong); background: var(--surface-2); }
.search:hover { color: var(--text-2); }
.tabbar a:hover { color: var(--abisso); }
.lakemap .town:hover text { fill: var(--live); }
.wa .cta:hover { filter: none; background: var(--sabbia); }
@media (hover: none) { .comune:hover, .story:hover, .partner:hover, .cta:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .comune:hover, .story:hover, .partner:hover, .cta:hover { transform: none; } .comune:hover img, .partner:hover img, .story:hover .img { transform: none; } }

/* MOBILE: primo schermo corto, binari da bordo a bordo, feedback al tap */
@media (max-width: 719px) {
  .hero { min-height: 0; }
  .hero-grid { padding: 18px 16px 14px; gap: 10px; }
  .hero h1 { font-size: 32px; }
  .hero h1 small { font-size: 15px; margin-top: 6px; }
  .hero .meteo { font-size: 13px; gap: 6px 12px; }
  .hero .sun { width: 46px; height: 46px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; scroll-snap-type: x proximity; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; backdrop-filter: none; scroll-snap-align: start; }
  .seg { align-self: stretch; }
  .seg button { flex: 1; }
  .lakemap { aspect-ratio: 4 / 3; max-height: 280px; }
  .lakemap .caption { font-size: var(--text-micro); }
  .timestrip { margin-top: -18px; }
  .timestrip .card { padding: 14px 16px 12px; gap: 10px; }
  .time-head .big { font-size: 24px; }
  .quick, .persona, .comuni { margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-snap-type: x proximity; }
  .next { margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-snap-type: x proximity; }
  .quick button, .persona button, .comune, .next .item { scroll-snap-align: start; }
  .next .lbl { display: none; }
  .tile { padding: 16px; gap: 10px; }
  .section { margin-top: 22px; gap: 12px; }
  .section-head h2 { font-size: 24px; }
  .band { margin-left: -16px; margin-right: -16px; border-radius: 0; padding: 22px 16px 20px; }
  .stories { gap: 12px; }
  .story .img { height: 150px; }
  footer { gap: 14px 24px; }
  footer .lang { margin-left: 0; }
}
@media (hover: none) {
  .comune:active, .story:active, .partner:active, .quick button:active, .persona button:active, .chip.btn:active, .cta:active, .seg button:active, .iconbtn:active { transform: scale(.97); transition-duration: 80ms; }
  .row:active, .place:active, .rep:active { background: var(--surface-2); }
  .tile:hover { transform: none; box-shadow: none; }
  .comune img, .story .img, .partner img, .place .ph, .row .ph { transition: none; }
}

/* PARTNER LOGOS: monocromatici e allineati, prendono colore al passaggio */
.plogos { display: flex; align-items: center; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; }
.plogos::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .plogos { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); overflow: visible; } .plogo { width: auto; } }
.plogo { flex: none; width: 140px; height: 64px; display: flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); color: var(--text-3); transition: color var(--t), border-color var(--t), transform var(--t), box-shadow var(--t); }
.plogo svg { width: 100%; height: 44px; display: block; }
.plogo:hover { color: var(--abisso); border-color: var(--hover-border); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
@media (max-width: 719px) { .plogos { margin: 0 -16px; padding: 4px 16px; scroll-snap-type: x proximity; } .plogo { scroll-snap-align: start; width: 128px; height: 58px; } }
@media (hover: none) { .plogo:hover { transform: none; } }
/* PORTAL */
.stories { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .stories { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.story { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.story .img { height: 170px; background: linear-gradient(160deg, var(--abisso), var(--smeraldo)); background-size: cover; background-position: center; position: relative; }
.story .img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,30,38,0) 45%, rgba(15,30,38,.6) 100%); }
.story .img.b { background: linear-gradient(160deg, #E2734F, #1D3D4F); }
.story .img.c { background: linear-gradient(160deg, var(--monte), #1D3D4F); }
.story .img span { position: absolute; left: 12px; bottom: 10px; font-size: var(--text-micro); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.28); padding: 4px 8px; border-radius: var(--radius-s); }
.story .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.story h3 { font-size: 20px; font-weight: 700; }
.story p { font-size: 13px; color: var(--text-2); }
.story .by { font-size: 12px; color: var(--text-3); font-weight: 600; }
.comuni { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.comuni::-webkit-scrollbar { display: none; }
.comune { flex: none; width: 172px; padding: 0 0 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.comune img { width: 100%; height: 96px; object-fit: cover; display: block; margin-bottom: 8px; }
.comune b, .comune span { padding: 0 12px; }
.comune b { font-size: 16px; }
.comune span { font-size: 13px; color: var(--text-3); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.comune.sel { border-color: var(--smeraldo); box-shadow: inset 0 0 0 1px var(--smeraldo); }
.sponda { flex: none; writing-mode: vertical-rl; transform: rotate(180deg); font-size: var(--text-micro); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding: 6px 0; }
.partners { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.partner { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.partner img { width: 76px; height: 76px; border-radius: var(--radius-s); object-fit: cover; flex: none; }
.partner > div { min-width: 0; }
.partner b { font-size: 16px; display: block; }
.partner span { font-size: 13px; color: var(--text-2); }
.band { background: var(--surface-2); border-radius: var(--radius-l); padding: 22px 18px 20px; }
@media (min-width: 720px) { .band { padding: 28px 28px 26px; } }
.band .tile { background: var(--surface); }
.community { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .community { grid-template-columns: 1.4fr 1fr; } }
.rep { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.rep:first-child { border-top: 0; }
.rep .tag { font-size: var(--text-micro); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--smeraldo); white-space: nowrap; padding-top: 2px; }
.rep small { display: block; color: var(--text-3); font-size: 12px; }
.wa { background: var(--abisso); color: #F4F1EA; border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.wa h3 { font-size: 20px; }
.wa p { font-size: 13px; color: rgba(244,241,234,.78); }
.wa .cta { background: #fff; color: var(--abisso); align-self: flex-start; }

footer { margin-top: 40px; padding: 28px 0 10px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 18px 32px; font-size: 13px; color: var(--text-2); align-items: center; }
footer .fbrand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
footer .fbrand .logo-box { width: 34px; height: 34px; border-radius: 10px; }
footer nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
footer nav a { padding: 12px 0; display: inline-block; }
footer .lang { margin-left: auto; display: flex; gap: 6px; }
footer .lang span { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-strong); font-weight: 600; }
footer .lang span.on { background: var(--abisso); color: #fff; border-color: var(--abisso); }

/* TABBAR mobile */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .tabbar { display: none; } }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: var(--text-micro); font-weight: 600; color: var(--text-3); min-height: 52px; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.active { color: var(--abisso); }
.tabbar a.active svg { color: var(--rosso); }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); background: var(--abisso); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; z-index: 40; white-space: nowrap; max-width: calc(100vw - 32px); }
@media (min-width: 1024px) { .toast { bottom: 28px; } }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.demo-note { margin-top: 18px; font-size: 13px; color: var(--text-3); display: flex; gap: 8px; align-items: flex-start; }
.demo-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }

@media (prefers-reduced-motion: reduce) {
  .lakemap .wave, .lakemap .evping, .hero-copy .eyebrow .dot, .bento.reflow .tile { animation: none; }
  .hero, .tile { transition: none; }
}

/* ---------- WordPress ---------- */
html { scroll-behavior: smooth; }
.iconbtn.sm { width: 44px; height: 44px; }
.iconbtn.sm svg { width: 18px; height: 18px; }
.logo-box { display: block; }
body.admin-bar .rail { top: 32px; height: calc(100vh - 32px); }
@media (max-width: 782px) { body.admin-bar .rail { top: 46px; height: calc(100vh - 46px); } }
.prose { display: flex; flex-direction: column; gap: 14px; max-width: 72ch; font-size: 16px; }
.prose h2 { font-size: 28px; margin-top: 12px; }
.prose h3 { font-size: 20px; margin-top: 8px; }
.prose p, .prose ul, .prose ol { margin: 0; color: var(--text-2); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose figure { margin: 0; }
.page-head { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 48px); }
.page-head .sub { font-size: 16px; color: var(--text-2); max-width: 64ch; }
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.comuni.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
@media (min-width: 720px) { .comuni.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .comuni.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.comuni.grid .comune { width: auto; }
.comuni.grid .comune img { height: 120px; }
.pager { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-2); }
.pager .page-numbers.current { background: var(--abisso); color: #fff; border-color: var(--abisso); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
