/* ============================================================
   V.I.T.A. — Valli Inclusive per un Turismo Accessibile
   Foglio di stile condiviso
   ============================================================ */

/* ---------- Reset di base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

/* ---------- Variabili / palette (dai colori del logo) ---------- */
:root {
  --ink:   #262a2e;
  --slate: #555b62;
  --muted: #7d848c;
  --line:  #e7e8e2;
  --paper: #ffffff;
  --paper2:#f4f6f0;   /* off-white caldo */
  --paper3:#eef1e7;

  --sky:      #0f93b8;   /* azzurro logo (primario) */
  --sky-700:  #0a7191;   /* per testo/link AA */
  --sky-bright:#27bee3;
  --lime:     #7a9e00;   /* verde logo, scuro per testo */
  --lime-bright:#b4d23c; /* verde logo decorativo */
  --sun:      #e0852f;   /* accento caldo (autunno) */

  --shadow-sm: 0 1px 2px rgba(38,42,46,.06), 0 2px 8px rgba(38,42,46,.05);
  --shadow-md: 0 6px 24px rgba(38,42,46,.10);
  --shadow-lg: 0 18px 50px rgba(38,42,46,.16);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --fs: 1;  /* fattore scala accessibilità */
  --font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: calc(1.0625rem * var(--fs));
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.08; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { text-wrap: pretty; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(48px, 7vw, 92px) 0; }
.section--tint { background: var(--paper2); }
.section--ink { background: var(--ink); color: #eef0f2; }
.lead { font-size: calc(1.18rem * var(--fs)); color: var(--slate); max-width: 60ch; }
.center { text-align: center; margin-inline: auto; }

/* eyebrow / kicker */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: .8rem; color: var(--sky-700);
}
.kicker::before { content:""; width: 26px; height: 3px; border-radius: 3px; background: var(--lime-bright); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  min-height: 48px;
}
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--sky); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--sky-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--lime { background: var(--lime-bright); color: #2a3500; }
.btn--lime:hover { background: #a3c130; transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.65); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--outline { background: transparent; color: var(--sky-700); border-color: var(--sky); }
.btn--outline:hover { background: var(--sky); color: #fff; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 10px; z-index: 1200; font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 50px; width: auto; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand__txt b { font-family: var(--font-display); font-size: 1.18rem; color: var(--ink); letter-spacing: .02em; }
.brand__txt span { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--slate); font-weight: 600;
  padding: 10px 13px; border-radius: 10px; font-size: .98rem; white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--paper2); }
.nav-links a.is-active { color: var(--sky-700); }
.nav-links a.is-active::after { content:""; display:block; height: 3px; border-radius: 3px; background: var(--lime-bright); margin-top: 4px; }

.nav-tools { display: flex; align-items: center; gap: 8px; }

/* toolbar accessibilità */
.a11y-bar { display: flex; align-items: center; gap: 4px; background: var(--paper2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.a11y-bar button {
  width: 38px; height: 38px; border: none; background: transparent; border-radius: 999px;
  color: var(--slate); font-weight: 800; display: grid; place-items: center; font-size: .95rem;
}
.a11y-bar button:hover { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.a11y-bar button.is-on { background: var(--sky); color: #fff; }
.a11y-bar button svg { width: 19px; height: 19px; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content:""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,30,38,.55) 0%, rgba(20,30,38,.30) 38%, rgba(20,30,38,.78) 100%);
}
.hero__inner { padding: clamp(90px, 16vh, 180px) 0 clamp(56px, 9vh, 96px); max-width: 760px; }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero .vita { color: var(--lime-bright); }
.hero__sub { font-size: calc(1.22rem * var(--fs)); margin-top: 20px; color: #f1f3f5; max-width: 54ch; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4);
  padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .9rem; letter-spacing: .02em;
}
.hero__badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime-bright); box-shadow: 0 0 0 4px rgba(180,210,60,.3); }

/* page hero (interno) */
.page-hero { position: relative; color: #fff; isolation: isolate; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content:""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,30,38,.45), rgba(20,30,38,.72)); }
.page-hero__inner { padding: clamp(64px,11vh,120px) 0 clamp(44px,7vh,72px); max-width: 720px; }
.page-hero h1 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.page-hero p { color: #eef0f2; font-size: calc(1.15rem * var(--fs)); margin-top: 16px; max-width: 56ch; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.breadcrumb { font-size: .9rem; color: #dfe3e6; margin-bottom: 14px; }
.breadcrumb a { color: #fff; text-decoration: none; opacity: .9; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- header di sezione ---------- */
.section-head { max-width: 64ch; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--slate); font-size: calc(1.1rem * var(--fs)); }

/* ============================================================
   GRIGLIE & CARD
   ============================================================ */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* card "perché nasce" / valori */
.value-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .2s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.value-icon svg { width: 30px; height: 30px; }
.value-card h3 { margin-bottom: 8px; }
.value-card p { color: var(--slate); font-size: 1rem; }

/* esperienze (card colorate) */
.exp-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.exp-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 280px;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  padding: 26px; text-decoration: none; isolation: isolate;
  box-shadow: var(--shadow-md); transition: transform .2s ease;
}
.exp-card:hover { transform: translateY(-5px); }
.exp-card::after { content:""; position: absolute; inset: 0; z-index: -1; opacity: .92; background: linear-gradient(160deg, var(--exp-a, var(--sky)), var(--exp-b, var(--sky-700))); }
.exp-card p { color: rgba(255,255,255,.9); font-size: .95rem; margin-top: 4px; }
.exp-card__tag { font-weight: 800; letter-spacing: .14em; font-size: .78rem; text-transform: uppercase; opacity: .92; }
.exp-card h3 { color: #fff; margin: 6px 0 12px; font-size: 1.5rem; }
.exp-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.exp-card li { background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35); padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.exp-card .ico { position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; opacity: .9; }
.exp-card .ico svg { width: 100%; height: 100%; }
.exp-c-sport::after   { background: linear-gradient(160deg, #2f9e44, #176b2c); }
.exp-c-cultura::after { background: linear-gradient(160deg, #1f8fb3, #0a6f8c); }
.exp-c-faro::after    { background: linear-gradient(160deg, #c98328, #9a5c12); }
.exp-c-comunita::after{ background: linear-gradient(160deg, #7048c2, #4c2f8a); }
.exp-c-inclusione::after { background: linear-gradient(160deg, #d24a7a, #a32257); }
.exp-c-sapori::after  { background: linear-gradient(160deg, #8aac10, #5e7a00); }

/* ---------- chip / badge categorie ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.cat-sport     { background: #e6f4ea; color: #1c6b32; }
.cat-cultura   { background: #e2f2f8; color: #0a6f8c; }
.cat-faro      { background: #f6ead8; color: #92560f; }
.cat-comunita  { background: #ece6f7; color: #4c2f8a; }
.cat-inclusione{ background: #f9e4ed; color: #a32257; }
.cat-sapori    { background: #eef3da; color: #5e7a00; }
.dot-sport{background:#2f9e44}.dot-cultura{background:#1f8fb3}.dot-faro{background:#c98328}
.dot-comunita{background:#7048c2}.dot-inclusione{background:#d24a7a}.dot-sapori{background:#8aac10}

/* ============================================================
   EVENTI
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.filter-field { display: flex; flex-direction: column; gap: 6px; }
.filter-field label { font-size: .82rem; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: .04em; }
.filter-field select {
  appearance: none; border: 1.5px solid var(--line); background: var(--paper2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23555b62' stroke-width='2.5' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border-radius: 12px; padding: 12px 38px 12px 14px; font-size: 1rem; color: var(--ink); min-width: 190px; min-height: 48px; font-weight: 600;
}
.filter-field select:focus { border-color: var(--sky); }
.filters__count { margin-left: auto; font-weight: 700; color: var(--slate); }
.filters__reset { background: none; border: none; color: var(--sky-700); font-weight: 700; text-decoration: underline; padding: 8px; }

.event-list { display: grid; gap: 18px; margin-top: 26px; }
.event-card {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 22px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .2s;
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.event-card[data-event-modal] { cursor: pointer; }
.event-card[data-event-modal]:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.event-card--no-link { grid-template-columns: 96px 1fr; }
.event-date { text-align: center; background: var(--paper2); border-radius: 14px; padding: 12px 6px; border: 1px solid var(--line); }
.event-date .d { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--sky-700); line-height: 1; }
.event-date .m { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); margin-top: 4px; }
.event-body h3 { font-size: 1.3rem; margin-bottom: 6px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 14px 20px; color: var(--slate); font-size: .95rem; margin-top: 8px; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-meta svg { width: 16px; height: 16px; color: var(--sky-700); flex-shrink: 0; }
.event-description { color: var(--slate); margin-top: 6px; }
.event-tags { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.event-cta { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.event-cta .btn { min-height: 40px; padding: 9px 14px; font-size: .88rem; white-space: nowrap; }
.event-aside { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.event-poster { display: block; width: 88px; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); }
.event-poster img { width: 100%; max-height: 118px; object-fit: cover; }
.event-modal-content { display: none; }
.event-modal { position: fixed; inset: 0; z-index: 2000; display: none; place-items: center; padding: 24px; background: rgba(20, 29, 36, .72); }
.event-modal.is-open { display: grid; }
.event-modal__dialog { position: relative; width: min(680px, 100%); max-height: min(760px, calc(100vh - 48px)); overflow: auto; background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lg); }
.event-modal__close { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 2rem; line-height: 1; color: var(--slate); }
.event-modal__dialog h2 { margin: 14px 38px 12px 0; }
.event-modal__dialog p { color: var(--slate); line-height: 1.65; }
.event-modal-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.event-modal-meta div { padding: 12px; background: var(--paper2); border-radius: 10px; }
.event-modal-meta dt { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.event-modal-meta dd { margin: 4px 0 0; font-weight: 600; }
.event-empty { text-align: center; padding: 60px 20px; color: var(--slate); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ============================================================
   MAPPA
   ============================================================ */
.map-layout { display: grid; grid-template-columns: 300px 1fr; gap: 22px; }
.map-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); align-self: start; }
.map-side h3 { font-size: 1.2rem; margin-bottom: 6px; }
.map-side p.small { color: var(--slate); font-size: .92rem; margin-bottom: 16px; }
.map-theme-title { margin: 18px 0 4px; padding: 0 12px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.map-theme-title:first-child { margin-top: 4px; }
.layer-toggle { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.layer-toggle:hover { background: var(--paper2); }
.layer-toggle input { width: 20px; height: 20px; accent-color: var(--sky); }
.layer-toggle .swatch { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px rgba(0,0,0,.15); }
.layer-toggle .lt-label { font-weight: 600; }
.layer-toggle .lt-count { margin-left: auto; font-size: .85rem; color: var(--muted); font-weight: 700; }
#map { height: 620px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); z-index: 0; }
.leaflet-popup-content { font-family: var(--font-body); }
.map-popup__img { display: block; width: 100%; height: 120px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.map-popup h4 { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 4px; }
.map-popup p { margin: 0; color: var(--slate); font-size: .92rem; }
.map-popup .chip { margin-top: 8px; }
.map-popup__more { display: inline-flex; margin-top: 12px; color: var(--sky-700); font-weight: 800; text-decoration: none; }
.map-popup__more:hover { text-decoration: underline; }

/* ============================================================
   LUOGHI FARO / GALLERIA
   ============================================================ */
.place-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.place-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .2s; display: flex; flex-direction: column; }
.place-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.place-card__img { display: block; aspect-ratio: 4/3; overflow: hidden; }
.place-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.place-card:hover .place-card__img img { transform: scale(1.06); }
.place-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.place-card__body h3 { font-size: 1.3rem; }
.place-card__body h3 a { text-decoration: none; }
.place-card__body h3 a:hover { color: var(--sky-700); }
.place-card__body p { color: var(--slate); font-size: .98rem; flex: 1; }
.place-card__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* dettaglio luogo */
.place-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; }
.place-detail__main { min-width: 0; }
.place-detail__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.place-detail__text { color: var(--slate); font-size: calc(1.08rem * var(--fs)); }
.place-detail__text p + p { margin-top: 16px; }
.place-detail__text ul, .place-detail__text ol { margin-top: 14px; padding-left: 22px; }
.place-detail__text a { color: var(--sky-700); font-weight: 700; }
.place-detail__side { position: sticky; top: 100px; }
.detail-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.detail-panel h2 { font-size: 1.35rem; margin-bottom: 16px; }
.detail-list { display: grid; gap: 14px; margin: 0; }
.detail-list div { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.detail-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-list dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
.detail-list dd { margin: 3px 0 0; color: var(--ink); font-weight: 700; }
.detail-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--slate); font-weight: 800; }
.detail-badge svg { width: 17px; height: 17px; color: var(--sky-700); }
.detail-actions { display: grid; gap: 10px; margin-top: 22px; }
.detail-actions .btn { justify-content: center; width: 100%; }
.detail-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.detail-gallery__item { display: block; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; border: 1px solid var(--line); }
.detail-gallery__item img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .35s ease; }
.detail-gallery__item:hover img { transform: scale(1.05); }
body.lightbox-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 2000; display: none; background: rgba(20,30,38,.88); padding: 72px 88px; overflow: auto; }
.lightbox.is-open { display: grid; place-items: center; }
.lightbox__stage { max-width: min(1100px, 100%); max-height: calc(100vh - 144px); overflow: auto; text-align: center; }
.lightbox__stage img { width: auto; max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); margin: 0 auto; }
.lightbox__stage p { color: #eef0f2; margin-top: 12px; font-weight: 700; }
.lightbox__close, .lightbox__nav { position: fixed; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; transition: background .15s, transform .15s; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.24); }
.lightbox__close { top: 22px; right: 22px; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 54px; height: 70px; border-radius: 999px; font-size: 3rem; line-height: 1; }
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }

/* a11y feature row */
.a11y-feat { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--lime); font-weight: 700; }
.a11y-feat svg { width: 16px; height: 16px; }

/* ---------- categoria luoghi sub-nav ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.subnav button { border: 1.5px solid var(--line); background: #fff; color: var(--slate); padding: 10px 20px; border-radius: 999px; font-weight: 700; min-height: 44px; transition: all .15s; }
.subnav button:hover { border-color: var(--sky); color: var(--sky-700); }
.subnav button.is-active { background: var(--sky); color: #fff; border-color: var(--sky); }

/* ============================================================
   ACCESSIBILITÀ (sezione)
   ============================================================ */
.a11y-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.a11y-item { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; box-shadow: var(--shadow-sm); }
.a11y-item .ic { flex-shrink: 0; width: 50px; height: 50px; border-radius: 12px; background: #eef3da; color: var(--lime); display: grid; place-items: center; }
.a11y-item .ic svg { width: 26px; height: 26px; }
.a11y-item h3 { font-size: 1.18rem; margin-bottom: 4px; }
.a11y-item p { color: var(--slate); font-size: .98rem; }
.highlight-box { background: linear-gradient(135deg, #0f93b8, #0a7191); color: #fff; border-radius: var(--radius); padding: clamp(28px,4vw,46px); box-shadow: var(--shadow-md); }
.highlight-box h3 { color: #fff; font-size: clamp(1.4rem,2.6vw,2rem); }
.highlight-box p { color: #e6f4f9; margin-top: 10px; max-width: 60ch; }

/* ============================================================
   NEWS
   ============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .2s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.news-card__img { display: block; aspect-ratio: 16/10; overflow: hidden; position: relative; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card__img img { transform: scale(1.05); }
.news-card__type { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.95); color: var(--ink); padding: 5px 12px; border-radius: 999px; font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.news-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card__date { font-size: .85rem; color: var(--muted); font-weight: 700; }
.news-card__body h3 { font-size: 1.25rem; }
.news-card__body h3 a { text-decoration: none; }
.news-card__body h3 a:hover { color: var(--sky-700); }
.news-card__body p { color: var(--slate); font-size: .96rem; flex: 1; }
.news-card__more { font-weight: 800; color: var(--sky-700); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.news-card__more svg { width: 18px; height: 18px; transition: transform .15s; }
.news-card:hover .news-card__more svg { transform: translateX(4px); }

/* ============================================================
   FORM CONTATTI
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field textarea {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; font: inherit;
  background: var(--paper2); color: var(--ink); min-height: 50px;
}
.field input:focus, .field textarea:focus { border-color: var(--sky); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info .row { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .ic { flex-shrink:0; width: 46px; height: 46px; border-radius: 12px; background: #e2f2f8; color: var(--sky-700); display: grid; place-items: center; }
.contact-info .ic svg { width: 22px; height: 22px; }
.contact-info b { display: block; }
.contact-info a { color: var(--sky-700); }
.contact-map { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.contact-map iframe { display: block; width: 100%; height: 300px; border: 0; }
.contact-map__link { margin-top: 16px; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-ok { background: #e6f4ea; border: 1px solid #b6e0c2; color: #1c6b32; padding: 14px 18px; border-radius: 12px; font-weight: 700; display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: #cfd4d8; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 16px; letter-spacing: .02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #cfd4d8; text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: var(--lime-bright); }
.footer-brand img { height: 64px; background: #fff; padding: 8px 12px; border-radius: 12px; }
.footer-brand p { margin-top: 16px; color: #aab0b6; font-size: .95rem; max-width: 34ch; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .15s, transform .15s; }
.socials a:hover { background: var(--sky); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; color: #fff; }
.newsletter-form { display: flex; gap: 8px; margin-top: 12px; }
.newsletter-form input { flex: 1; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; border-radius: 10px; padding: 12px 14px; min-height: 46px; }
.newsletter-form input::placeholder { color: #9aa0a6; }
.newsletter-form button { background: var(--lime-bright); color: #2a3500; border: none; border-radius: 10px; padding: 0 16px; font-weight: 800; min-height: 46px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .9rem; color: #9aa0a6; }
.footer-bottom a { color: #9aa0a6; }

/* ============================================================
   CTA banner
   ============================================================ */
.cta-band { position: relative; isolation: isolate; color: #fff; border-radius: var(--radius); overflow: hidden; padding: clamp(40px,6vw,72px); text-align: center; }
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content:""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(10,111,140,.88), rgba(47,158,68,.78)); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #eef6f9; margin: 14px auto 26px; max-width: 56ch; font-size: calc(1.12rem * var(--fs)); }
.cta-band .hero__cta { justify-content: center; }

/* feature strip (stat / numeri sobri) */
.feat-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feat { display: flex; gap: 16px; align-items: flex-start; }
.feat .ic { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #e2f2f8; color: var(--sky-700); }
.feat .ic svg { width: 26px; height: 26px; }
.feat h3 { font-size: 1.15rem; margin-bottom: 4px; }
.feat p { color: var(--slate); font-size: .96rem; }

/* split media + testo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items: center; }
.split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split ul.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.split ul.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.05rem; }
.split ul.ticks svg { width: 24px; height: 24px; color: var(--lime); flex-shrink: 0; margin-top: 2px; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* partner */
.partner-cat { margin-bottom: 48px; }
.partner-cat h3 { margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.partner-cat h3::after { content:""; flex: 1; height: 1px; background: var(--line); }
.logo-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.logo-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); min-height: 130px; display: grid; place-items: center; padding: 22px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .2s; }
.logo-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.logo-box span { font-weight: 700; color: var(--slate); }
.logo-box small { display: block; color: var(--muted); font-weight: 600; margin-top: 4px; font-size: .8rem; }
.logo-box img { max-height: 80px; }
.logo-box--comune { align-content: center; gap: 10px; min-height: 190px; }
.logo-box--comune img { width: 88px; height: 88px; max-height: none; object-fit: contain; }
.logo-box--comune, .logo-box--comune:hover { color: inherit; text-decoration: none; }

/* ============================================================
   ACCESSIBILITÀ: alto contrasto
   ============================================================ */
body.high-contrast { --paper2:#fff; --paper3:#fff; --line:#000; --slate:#1a1a1a; --muted:#333; --sky-700:#005f7a; }
body.high-contrast .hero::after, body.high-contrast .page-hero::after { background: rgba(0,0,0,.72); }
body.high-contrast .nav-links a { color:#1a1a1a; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .exp-grid, .place-grid, .news-grid, .feat-strip, .partner-cat .logo-grid { grid-template-columns: repeat(2,1fr); }
  .map-layout { grid-template-columns: 1fr; }
  #map { height: 460px; }
  .split, .contact-grid, .a11y-list { grid-template-columns: 1fr; }
  .place-detail { grid-template-columns: 1fr; }
  .place-detail__side { position: static; }
  .detail-gallery { grid-template-columns: repeat(2, 1fr); }
  .lightbox { padding: 64px 68px; }
  .logo-grid { grid-template-columns: repeat(3,1fr); }

  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 14px 22px 24px; gap: 4px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform .3s ease; z-index: 999;
  }
  .nav-links.is-open { transform: none; }
  .nav-links a { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
  .nav-links a.is-active::after { display:none; }
  .nav-links a.is-active { background: var(--paper2); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4, .exp-grid, .place-grid, .news-grid, .feat-strip, .logo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .event-card { grid-template-columns: 64px 1fr; }
  .detail-gallery { grid-template-columns: 1fr; }
  .lightbox { padding: 64px 18px 28px; }
  .lightbox__stage { max-height: calc(100vh - 92px); }
  .lightbox__stage img { max-height: calc(100vh - 150px); }
  .lightbox__close { width: 42px; height: 42px; top: 12px; right: 12px; }
  .lightbox__nav { width: 42px; height: 54px; font-size: 2.3rem; top: auto; bottom: 18px; transform: none; }
  .lightbox__nav--prev { left: 18px; }
  .lightbox__nav--next { right: 18px; }
  .event-aside { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .event-cta { flex-direction: row; }
  .event-modal { padding: 14px; }
  .event-modal__dialog { padding: 28px 22px; }
  .event-modal-meta { grid-template-columns: 1fr; }
  .filters__count { width: 100%; margin-left: 0; }
  .brand__txt { display: none; }
  .a11y-bar { display: none; }
}
