/* ============================================================
   Visit Calice al Cornoviglio — stile ricavato dal mockup grafico
   Font self-hosted (nessuna chiamata a Google Fonts)
   ============================================================ */

@font-face { font-family:'Playfair Display'; font-weight:500; font-style:normal; font-display:swap; src:url(fonts/playfair-display-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family:'Playfair Display'; font-weight:700; font-style:normal; font-display:swap; src:url(fonts/playfair-display-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family:'Playfair Display'; font-weight:800; font-style:normal; font-display:swap; src:url(fonts/playfair-display-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family:'Playfair Display'; font-weight:400; font-style:italic; font-display:swap; src:url(fonts/playfair-display-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family:'Playfair Display'; font-weight:500; font-style:italic; font-display:swap; src:url(fonts/playfair-display-latin-500-italic.woff2) format('woff2'); }
@font-face { font-family:'Figtree'; font-weight:400; font-style:normal; font-display:swap; src:url(fonts/figtree-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family:'Figtree'; font-weight:600; font-style:normal; font-display:swap; src:url(fonts/figtree-latin-600-normal.woff2) format('woff2'); }

:root {
  --crema:      #FBF1E8;
  --crema-2:    #F3E6D9;
  --foresta:    #1F3125;
  --foglia:     #3E5542;
  --inchiostro: #1F3125;
  --sfumato:    #57604F;
  --filo:       rgba(31, 49, 37, 0.16);

  /* colori delle sezioni: gli stessi quadratini del menu */
  --c-percorsi: #899600;
  --c-storia:   #FA8A00;
  --c-eventi:   #0093AD;
  --c-visita:   #E10060;
  --c-dove:     #013F00;
  --c-meteo:    #FFC801;
  --c-contatti: #1F3125;

  --display: 'Playfair Display', 'Bodoni 72', Didot, Georgia, serif;
  --testo:   'Figtree', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --raggio:  8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--inchiostro);
  font-family: var(--testo);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--c-eventi); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.035em;
  margin: 0;
  color: var(--foresta);
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ---------- banner anteprima ---------- */
.anteprima {
  background: var(--foresta);
  color: var(--crema);
  text-align: center;
  font-size: 13.5px;
  padding: 8px 14px;
}
.anteprima strong { font-weight: 600; }

/* ---------- menu ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--crema);
  transition: box-shadow .2s;
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--filo); }
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.nav__logo img { height: 46px; width: auto; }

.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 0; border-radius: var(--raggio);
  background: var(--foresta); cursor: pointer; padding: 0;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--crema); position: relative; content: "";
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after  { position: absolute; top: 6px; }

.nav__menu {
  display: none;
  position: absolute; left: 0; right: 0; top: 76px;
  background: var(--crema);
  padding: 8px 28px 26px;
  border-bottom: 1px solid var(--filo);
}
.nav.is-open .nav__menu { display: block; }
.nav__menu ul { list-style: none; margin: 0; padding: 0; }
.nav__menu li a.voce { padding: 12px 0; font-size: 22px; }
.nav__menu .bottone { margin-top: 18px; }

.voce {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 18px;
  letter-spacing: -.01em; word-spacing: .1em; text-decoration: none; color: var(--foresta);
  white-space: nowrap;
}
.voce::before {
  content: ""; width: .62em; height: .62em; background: var(--q, var(--foresta)); flex: none;
}
.voce:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
[data-q="percorsi"] { --q: var(--c-percorsi); }
[data-q="storia"]   { --q: var(--c-storia); }
[data-q="eventi"]   { --q: var(--c-eventi); }
[data-q="visita"]   { --q: var(--c-visita); }
[data-q="dove"]     { --q: var(--c-dove); }
[data-q="meteo"]    { --q: var(--c-meteo); }
[data-q="contatti"] { --q: var(--c-contatti); }

/* bottone scuro con foglia (come nel mockup) */
.bottone {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center;
  min-width: 132px; min-height: 54px;
  padding: 8px 60px 8px 16px;
  background: var(--foresta); color: var(--crema);
  border-radius: var(--raggio);
  font-family: var(--display); font-weight: 700; font-size: 19px; line-height: .92;
  letter-spacing: -.02em; text-decoration: none;
}
.bottone::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: url(img/bottone-foglia.png) no-repeat right center / auto 100%;
}
.bottone:hover { background: #17251C; }
.bottone--chiaro { background: var(--crema); color: var(--foresta); }
.bottone--chiaro::after { opacity: .2; }

.nav__azioni { display: flex; align-items: center; gap: 14px; }
.nav__menu .nav__azioni { margin-top: 18px; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .02em;
  text-decoration: none; color: var(--foresta); border: 1.5px solid var(--foresta);
  border-radius: 999px; padding: 6px 15px; white-space: nowrap; transition: background .15s ease, color .15s ease;
}
.lang-switch:hover { background: var(--foresta); color: var(--crema); }
@media (min-width: 1120px) { .nav__menu .nav__azioni { margin: 0; } }

@media (min-width: 1120px) {
  .nav__toggle { display: none; }
  .nav__menu {
    display: flex !important; position: static; padding: 0; border: 0; background: none;
    align-items: center; gap: 30px; flex: 1; justify-content: space-between; margin-left: 34px;
  }
  .nav__menu ul { display: flex; gap: 26px; }
  .nav__menu li a.voce { padding: 0; font-size: 18px; }
  .nav__menu .bottone { margin: 0; }
}

/* ---------- palcoscenico: hero + progetto sulla stessa foto ---------- */
.stage { background: var(--crema); position: relative; overflow: hidden; }
.art { position: relative; }
.art__photo { display: block; width: 100%; }

.hero-copy { padding: 34px 28px 30px; position: relative; z-index: 2; }
.kicker { font-weight: 600; font-size: 14px; margin: 0 0 12px; color: var(--foresta); letter-spacing: 0; }
.hero-copy h1 { font-size: clamp(42px, 12.5vw, 62px); max-width: 12.5em; }
.hero-copy .lede { font-size: 19px; line-height: 1.32; margin: 20px 0 26px; max-width: 26em; }

.project { position: relative; z-index: 2; background: var(--foresta); color: var(--crema); padding: 52px 28px 8px; }
.art__foot { background: var(--foresta); padding: 30px 28px 52px; position: relative; z-index: 2; }
.project .kicker { color: var(--crema); }
.project h2 { color: var(--crema); font-size: clamp(38px, 10.5vw, 54px); margin-bottom: 22px; }
.project p { margin: 0 0 14px; max-width: 34em; font-size: 16px; }
.project p.firma { margin-top: 22px; }

/* foto ritagliata sul castello (mobile) */
.photo-frame { position: relative; height: 300px; overflow: hidden; background: var(--crema); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%); mask-image: linear-gradient(to bottom, transparent 0, #000 24%); }
.photo-frame .art__photo {
  position: absolute; bottom: -56px; left: 50%; width: auto; height: 470px; max-width: none;
  transform: translateX(-50%);
}
.photo-frame::after { /* sfuma il fondo della foto nel verde della sezione */
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(to bottom, rgba(31,49,37,0), var(--foresta) 92%);
}

/* badge a casetta col ciclista */
.badge {
  position: relative; container-type: inline-size;
  width: 264px; aspect-ratio: 478 / 537.5; margin: 0 0 0 auto;
  color: var(--foresta);
}
.badge__forma { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge__logo { position: absolute; left: 45%; top: 49%; width: 49%; height: auto; }
.badge__stats {
  position: absolute; left: 9%; right: 5%; top: 60.5%; bottom: 3.5%;
  display: grid; grid-template-rows: repeat(3, 1fr);
  font-family: var(--display); font-feature-settings: "onum" 1, "pnum" 1; font-variant-numeric: oldstyle-nums proportional-nums;
}
.stat { display: flex; align-items: center; gap: 3cqw; }
.stat b { font-weight: 800; font-size: 13.4cqw; line-height: .9; letter-spacing: -.03em; }
.stat i { font-style: normal; font-weight: 700; font-size: 5.6cqw; margin-left: -1cqw; }
.stat span { font-weight: 500; font-size: 4.7cqw; line-height: 1.02; letter-spacing: -.01em; }
.stat--alto span { margin-left: 1cqw; }

/* --- desktop: stessa composizione del mockup, in scala --- */
@media (min-width: 900px) {
  .art {
    width: max(100%, 1800px); margin-left: 50%; transform: translateX(-50%);
    aspect-ratio: 3200 / 1475; container-type: inline-size;
  }
  .photo-frame { display: contents; }
  .photo-frame::after { display: none; }
  .photo-frame .art__photo {
    position: absolute; inset: 0; left: 0; bottom: auto; width: 100%; height: 100%;
    max-width: none; transform: none; object-fit: cover;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 5%); mask-image: linear-gradient(to bottom, transparent 0, #000 5%);
  }
  .art__foot { display: contents; }
  .art::after {                        /* leggibilita' del testo chiaro sul fogliame */
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(ellipse 34cqw 22cqw at 42% 90%, rgba(10,24,14,.5), transparent 72%);
  }
  .hero-copy { position: absolute; left: 30.7%; top: 3.1%; padding: 0; width: 44%; }
  .kicker { font-size: max(12px, .6cqw); margin-bottom: .55cqw; }
  .hero-copy h1 { font-size: 2.32cqw; line-height: .93; width: 24.6cqw; max-width: none; }
  .hero-copy .lede { font-size: max(16px, .95cqw); line-height: 1.3; width: 23cqw; margin: 1.05cqw 0 1.25cqw; }
  .hero-copy .bottone { font-size: max(16px, .84cqw); min-width: 6.1cqw; min-height: 2.75cqw; padding: .4cqw 3cqw .4cqw .8cqw; }

  .project {
    position: absolute; left: 30.4%; top: 69.2%; width: 39cqw; padding: 0; background: none;
    text-shadow: 0 1px 14px rgba(8,20,12,.38);
  }
  .project .kicker { font-size: max(13px, .62cqw); margin-bottom: .5cqw; }
  .project h2 { font-size: 2.32cqw; line-height: .92; width: 18.8cqw; margin-bottom: 0; }
  .project p { font-size: max(13.5px, .66cqw); line-height: 1.25; max-width: 25cqw; margin: .7cqw 0 0; }
  .project p.firma { margin-top: .8cqw; }

  .badge { position: absolute; z-index: 2; left: 57.2%; top: 66.2%; width: 11.95cqw; margin: 0; }
}

@media (min-width: 900px) and (max-width: 1119px) {
  .art { width: 1800px; }
}

/* ---------- sezioni ---------- */
.sezione { padding: 88px 0; }
.sezione--tinta { background: var(--crema-2); }
.titolo-sez { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.titolo-sez::before {
  content: ""; width: .5em; height: .5em; background: var(--q); flex: none; margin-top: .06em;
}
.titolo-sez { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: .95; font-size: clamp(38px, 5vw, 58px); color: var(--foresta); }
.intro { color: var(--sfumato); max-width: 58ch; margin: 0; }

/* percorsi */
.griglia-percorsi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 46px; }
@media (max-width: 960px) { .griglia-percorsi { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .griglia-percorsi { grid-template-columns: 1fr; } }
.percorso {
  display: block; text-decoration: none; background: #FFFAF5; border-radius: var(--raggio);
  overflow: hidden; border: 1px solid var(--filo);
  transition: transform .18s, box-shadow .18s;
}
.percorso:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(31,49,37,.55); }
.percorso__foto { height: 170px; position: relative; }
.percorso__foto small {
  position: absolute; left: 12px; bottom: 10px; font-size: 11.5px; color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.28); padding: 3px 8px; border-radius: 3px;
}
.percorso__corpo { padding: 20px 22px 24px; }
.percorso h3 { font-size: 27px; line-height: 1; margin-bottom: 12px; }
.dati { display: flex; gap: 16px; font-size: 14.5px; color: var(--sfumato); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.difficolta { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; }
.difficolta::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--d); }
.d-facile { --d: #5C8A5C; } .d-media { --d: #C98A3D; } .d-impegnativa { --d: #B5432D; }
.percorso__vai { display: block; margin-top: 16px; font-weight: 600; font-size: 14.5px; color: var(--foglia); }

/* capitoli: storia / eventi / visita / dove */
.capitolo { padding: 64px 0; border-top: 1px solid var(--filo); }
.capitolo .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
@media (max-width: 820px) { .capitolo .wrap { grid-template-columns: 1fr; gap: 18px; } }
.capitolo .titolo-sez { margin: 0; }
.capitolo p { margin: 0; color: var(--sfumato); max-width: 52ch; }
.in-arrivo {
  display: inline-block; margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--foresta);
  border: 1px solid var(--filo); padding: 3px 11px; border-radius: 999px; background: var(--crema);
}
.poi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 30px; margin-top: 28px; }
@media (max-width: 560px) { .poi { grid-template-columns: 1fr; } }
.poi h4 { font-size: 24px; line-height: 1; margin-bottom: 6px; letter-spacing: -.02em; font-weight: 700; }
.poi p { font-size: 15px; }

/* meteo */
.meteo-card {
  margin-top: 34px; background: #FFFAF5; border: 1px solid var(--filo); border-radius: var(--raggio);
  padding: 30px 34px; display: flex; align-items: center; gap: 34px; flex-wrap: wrap;
}
.temp { font-family: var(--display); font-weight: 800; font-size: 76px; line-height: 1; letter-spacing: -.04em; font-feature-settings: "onum" 1; }
.meteo-card p { margin: 2px 0; color: var(--sfumato); font-size: 15.5px; }
.previsioni { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.previsioni li { background: #FFFAF5; border: 1px solid var(--filo); border-radius: var(--raggio); padding: 14px 12px; text-align: center; }
.previsioni .g { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--sfumato); }
.previsioni .t { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; margin: 6px 0 2px; letter-spacing: -.02em; }
.previsioni .t small { font-size: 16px; font-weight: 500; color: var(--sfumato); }
.previsioni .d, .previsioni .p { font-size: 13.5px; color: var(--sfumato); margin: 2px 0 0; }
/* icone meteo della striscia giornaliera */
.meteo-icona { display: block; width: 48px; height: 52px; margin: 6px auto 0; }
.meteo-icona svg { display: block; overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  .mi-sole { animation: mi-ruota 18s linear infinite; }
  .meteo-icona--sole .mi-sole { animation: mi-ruota 18s linear infinite, mi-respira 3.5s ease-in-out infinite; }
  .mi-nuvola { animation: mi-scorri 6s ease-in-out infinite; }
  .mi-nuvola.mi-r2 { animation-duration: 8s; animation-direction: reverse; }
  .mi-goccia { animation: mi-cade 1.1s linear infinite; }
  .mi-fiocco { animation: mi-nevica 2.4s linear infinite; }
  .mi-r2 { animation-delay: .35s; }
  .mi-r3 { animation-delay: .7s; }
  .mi-fiocco.mi-r2 { animation-delay: .8s; }
  .mi-fiocco.mi-r3 { animation-delay: 1.6s; }
  .mi-lampo { animation: mi-lampeggia 3s steps(1) infinite; }
  .mi-nebbia { animation: mi-scorri 4s ease-in-out infinite; }
}
@keyframes mi-ruota { to { rotate: 360deg; } }
@keyframes mi-respira { 50% { scale: 1.08; } }
@keyframes mi-scorri { 50% { translate: 3px 0; } }
@keyframes mi-cade { 0% { translate: 0 -3px; opacity: 0; } 30% { opacity: 1; } 100% { translate: -2px 6px; opacity: 0; } }
@keyframes mi-nevica { 0% { translate: 0 -3px; opacity: 0; } 30% { opacity: 1; } 100% { translate: 1px 7px; opacity: 0; } }
@keyframes mi-lampeggia { 0%, 100% { opacity: 1; } 8% { opacity: .2; } 12% { opacity: 1; } 16% { opacity: .2; } 20% { opacity: 1; } }
@media (max-width: 640px) { .previsioni { grid-template-columns: repeat(2, 1fr); } .temp { font-size: 60px; } }
.nota { margin-top: 22px; font-size: 14.5px; color: var(--sfumato); border-left: 4px solid var(--c-meteo); padding-left: 14px; max-width: 64ch; }

/* allerta protezione civile: 4 bollini, quello di oggi evidenziato */
.allerta { margin-top: 18px; }
.allerta__titolo { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--sfumato); margin: 0 0 10px; }
.allerta__bollini { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.bollino {
  --col: var(--sfumato);
  display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--sfumato);
  background: #FFFAF5; border: 1px solid var(--filo); border-radius: 999px; padding: 8px 16px 8px 12px;
  opacity: .55;
}
.bollino__pallino { width: 13px; height: 13px; border-radius: 50%; background: var(--col); flex: none; }
.bollino--verde     { --col: #3DA35D; }
.bollino--gialla    { --col: #F2C438; }
.bollino--arancione { --col: #F08A24; }
.bollino--rossa     { --col: #D64545; }
.bollino.oggi { opacity: 1; border-color: var(--col); color: var(--inchiostro); box-shadow: 0 0 0 2px color-mix(in srgb, var(--col) 25%, transparent); }
.bollino__oggi { display: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; background: var(--col); color: #fff; border-radius: 999px; padding: 2px 8px; }
.bollino.oggi .bollino__oggi { display: inline-block; }
@media (max-width: 480px) {
  .allerta__bollini { gap: 8px; }
  .bollino { font-size: 13.5px; padding: 7px 13px 7px 11px; }
}

/* fascia comune */
.fascia { background: var(--foglia); color: var(--crema); padding: 76px 0; }
.fascia .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
@media (max-width: 820px) { .fascia .wrap { grid-template-columns: 1fr; gap: 34px; } }
.fascia h2 { color: var(--crema); font-size: clamp(34px, 4.4vw, 52px); }
.fascia p { max-width: 54ch; margin: 18px 0 26px; color: #E6EDE1; }
.qr { background: var(--crema); border-radius: var(--raggio); padding: 14px; width: fit-content; }
.qr img { display:block; mix-blend-mode: multiply; }

/* footer */
.piede { background: var(--foresta); color: #C9D2C3; padding: 56px 0 30px; font-size: 14.5px; }
.piede .wrap { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.piede img { height: 54px; width: auto; margin-bottom: 16px; }
.piede h5 { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; margin: 0 0 12px; color: var(--crema); }
.piede ul { list-style: none; margin: 0; padding: 0; }
.piede li { margin-bottom: 8px; }
.piede a { text-decoration: none; color: #E6EDE1; }
.piede a:hover { text-decoration: underline; }
.piede .colonne { display: flex; gap: 64px; flex-wrap: wrap; }
.piede .nota-piede { margin-top: 44px; color: #8E9A88; font-size: 13px; width: 100%; }

/* ---------- pagina percorso ---------- */
.p-hero { background: var(--foresta); color: var(--crema); padding: 54px 0 56px; }
.p-hero .indietro { display: inline-block; margin-bottom: 26px; font-weight: 600; font-size: 15px; text-decoration: none; color: #D8E3D0; }
.p-hero .indietro:hover { text-decoration: underline; }
.p-hero .kicker { color: #D8E3D0; display: flex; align-items: center; gap: 9px; }
.p-hero .kicker::before { content: ""; width: 10px; height: 10px; background: var(--c-percorsi); }
.p-hero h1 { color: var(--crema); font-size: clamp(40px, 6.2vw, 78px); max-width: 15em; }
.p-hero .sommario { max-width: 58ch; color: #DCE4D4; margin: 22px 0 0; font-size: 18px; }
.barra-dati { display: flex; gap: 46px; flex-wrap: wrap; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(251,241,232,.22); }
.barra-dati .n { font-family: var(--display); font-weight: 800; font-size: 38px; line-height: 1; letter-spacing: -.03em; font-feature-settings: "onum" 1; }
.barra-dati .l { font-size: 14px; color: #C4CFBC; margin-top: 6px; }
.p-foto { margin-top: 38px; height: 340px; border-radius: var(--raggio); background: linear-gradient(135deg, #3E5542, #16241B); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: 14px; }

.tappe { margin-top: 30px; }
.tappa { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 22px 0; border-top: 1px solid var(--filo); }
.tappa:first-child { border-top: 0; }
.tappa .n { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: .9; color: var(--c-percorsi); font-feature-settings: "onum" 1; }
.tappa h4 { font-size: 26px; line-height: 1; margin-bottom: 8px; letter-spacing: -.025em; }
.tappa p { margin: 0; color: var(--sfumato); font-size: 16px; max-width: 54ch; }
.gpx h2 { font-size: 34px; margin-bottom: 10px; }
.gpx p { color: var(--sfumato); margin: 0 0 22px; }
.mappa { margin-top: 26px; height: 380px; border: 1.5px dashed var(--filo); border-radius: var(--raggio); background: #FFFAF5; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--sfumato); font-size: 15px; }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.mappa-viva { margin-top: 26px; height: 440px; border-radius: var(--raggio); background: #E7DDD0; z-index: 0; }
.sottotitolo { font-size: 26px; margin: 40px 0 8px; letter-spacing: -.025em; }
.profilo { width: 100%; height: auto; display: block; margin-top: 10px; }
.profilo .g { stroke: var(--filo); stroke-width: 1; }
.profilo .t { font-family: var(--testo); font-size: 13px; fill: var(--sfumato); }
.profilo .area { fill: rgba(62,85,66,.28); }
.profilo .linea { fill: none; stroke: var(--foresta); stroke-width: 2.4; stroke-linejoin: round; }
.credito { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--filo); font-size: 15px; color: var(--sfumato); }
.credito p { margin: 0; }
.credito a:not(.bottone) { color: var(--foresta); font-weight: 600; }
.credito .bottone { border: 1px solid var(--foresta); }

.partner { margin-top: 26px; }
.partner p { margin: 0 0 10px; font-size: 13px; color: #8E9A88; }
.partner img { height: 58px; width: auto; background: var(--crema); padding: 8px 14px; border-radius: var(--raggio); }
.credito__logo { display: inline-block; margin-bottom: 14px; }
.credito__logo img { height: 56px; width: auto; }

/* contenuti dei capitoli */
.capitolo .titolo-sez { position: sticky; top: 100px; align-self: start; }
@media (max-width: 820px) { .capitolo .titolo-sez { position: static; margin-bottom: 22px; } }
.blocchi { display: block; }
.blocco + .blocco { margin-top: 38px; padding-top: 34px; border-top: 1px solid var(--filo); }
.blocco h3 { font-size: 30px; line-height: 1; letter-spacing: -.03em; margin: 0 0 12px; }
.blocco p { margin: 0 0 12px; max-width: 60ch; }
.blocchi > .in-arrivo { margin-top: 34px; }
.blocco .in-arrivo { margin-top: 6px; }
.cronologia { display: grid; grid-template-columns: 8.5em 1fr; gap: 14px 22px; margin: 18px 0 0; max-width: 60ch; }
.cronologia dt { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: -.02em; font-feature-settings: "onum" 1; color: var(--foresta); }
.cronologia dd { margin: 0; color: var(--sfumato); }
@media (max-width: 560px) { .cronologia { grid-template-columns: 1fr; gap: 2px; } .cronologia dd { margin-bottom: 14px; } }
.elenco-semplice { margin: 4px 0 14px; padding-left: 1.2em; color: var(--sfumato); }
.elenco-semplice li { margin-bottom: 4px; }
.luoghi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 30px; margin-top: 18px; }
@media (max-width: 560px) { .luoghi { grid-template-columns: 1fr; } }
.luoghi h4 { font-size: 22px; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 3px; font-weight: 700; }
.luoghi .loc { display: block; font-size: 13.5px; font-weight: 600; color: var(--foglia); margin-bottom: 4px; }
.luoghi p { font-size: 15px; margin: 0; color: var(--sfumato); }

/* ---------- il badge arriva da sotto e il testo si accende ---------- */
.art__foot { overflow: hidden; }
@media (min-width: 900px) { .art__foot { overflow: visible; } }
@keyframes casetta-su {
  from { opacity: 1; transform: translateY(125%); }
  to   { opacity: 1; transform: none; }
}
@keyframes accendi {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .badge__forma, .js .badge__logo, .js .stat { opacity: 0; }
  .js .badge.is-in .badge__forma { animation: casetta-su 1.15s cubic-bezier(.16, .84, .3, 1.04) .25s both; }
  .js .badge.is-in .badge__logo  { animation: accendi .6s ease-out 1.25s both; }
  .js .badge.is-in .stat:nth-child(1) { animation: accendi .6s ease-out 1.5s both; }
  .js .badge.is-in .stat:nth-child(2) { animation: accendi .6s ease-out 1.68s both; }
  .js .badge.is-in .stat:nth-child(3) { animation: accendi .6s ease-out 1.86s both; }
}

/* ---------- logo Bici in Comune ---------- */
.bic-logo { width: 200px; background: var(--crema); border-radius: var(--raggio); padding: 14px 16px; }
.bic-logo img { width: 100%; height: auto; }
.art__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 34px; }
.art__foot .badge { align-self: flex-end; }
.partner--bic img { width: 132px; height: auto; background: var(--crema); padding: 10px 12px; border-radius: var(--raggio); }
@media (min-width: 900px) {
  .art__foot { display: contents; }
  .bic-logo { display: none; }
}
@media (min-width: 1180px) {
  .bic-logo {
    display: block; position: absolute; z-index: 2; right: 71.2%; bottom: 3.4%;
    width: 10.4cqw; padding: .8cqw .9cqw; border-radius: var(--raggio);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .js .bic-logo { opacity: 0; }
  .js .bic-logo.is-in { animation: accendi .8s ease-out both; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 1180px) {
  .js .bic-logo.is-in { animation: casetta-su 1.15s cubic-bezier(.16, .84, .3, 1.04) .75s both; }
}

/* capitolo con foto accanto al testo */
.capitolo--foto .wrap { grid-template-columns: minmax(0, .6fr) minmax(0, 2.2fr); }
.blocco--foto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.foto { margin: 0; position: relative; overflow: hidden; border-radius: var(--raggio); aspect-ratio: 4 / 3; background: var(--crema-2); }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto--miele img { object-position: 64% 50%; }
.foto figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 11.5px; color: rgba(255,255,255,.92); background: rgba(0,0,0,.4); padding: 3px 8px; border-radius: 3px; }
.blocco--foto .cronologia { grid-template-columns: 1fr; gap: 2px; margin-top: 12px; }
.blocco--foto .cronologia dd { margin-bottom: 14px; }
@media (max-width: 1100px) {
  .blocco--foto { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 820px) {
  .capitolo--foto .wrap { grid-template-columns: 1fr; }
}

/* legenda difficoltà sulla mappa dei percorsi a tratti colorati (REL) */
.legenda-difficolta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 0; padding: 0; font-size: 14px; color: var(--verde-scuro, #1F3125); }
.legenda-difficolta li { display: flex; align-items: center; gap: 8px; }
.legenda-difficolta .pallino { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex: none; }

/* i loghi "Bici in Comune" sono ora link alla pagina dell'evento */
a.bic-logo, a.partner--bic { display: block; text-decoration: none; color: inherit; transition: transform .15s ease, opacity .15s ease; }
a.bic-logo:hover, a.partner--bic:hover { opacity: .85; }

/* il logo Bici in Comune nella scheda evento: stesso riquadro delle foto, ma senza ritaglio (non è una foto) */
.foto--bic { background: var(--crema); }
.foto--bic img { object-fit: contain; padding: 20px; box-sizing: border-box; }

/* logo Bici in Comune nella colonna sinistra della sezione Eventi (sotto il titolo, allineato al blocco) */
#eventi .wrap { grid-template-rows: auto 1fr; }
#eventi .titolo-sez { grid-column: 1; grid-row: 1; }
#eventi .loghi-eventi { grid-column: 1; grid-row: 2; }
#eventi .blocchi { grid-column: 2; grid-row: 1 / span 2; }
.loghi-eventi { display: flex; flex-direction: column; align-items: center; gap: 28px; margin-top: 195px; align-self: start; justify-self: end; }
.bic-logo-eventi { display: block; width: 200px; background: var(--crema); border-radius: var(--raggio); padding: 14px 16px; text-decoration: none; transition: opacity .15s ease; align-self: start; justify-self: end; }
.bic-logo-eventi img { width: 100%; height: auto; display: block; }
.bic-logo-eventi:hover { opacity: .85; }
@media (max-width: 820px) {
  .loghi-eventi { margin-top: 22px; justify-self: stretch; flex-direction: row; align-items: center; gap: 20px; min-width: 0; max-width: 100%; }
  .bic-logo-eventi { width: 110px; flex: none; }
  .c2c-logo-eventi { flex: 0 1 200px; min-width: 0; width: auto; }
  #eventi .wrap { grid-template-rows: none; }
  #eventi .titolo-sez, #eventi .loghi-eventi, #eventi .blocchi { grid-column: 1; }
  #eventi .loghi-eventi { grid-row: 2; }
  #eventi .blocchi { grid-row: 3; }
}

/* stemma del Comune accanto alla dicitura nel footer */
.firma-comune { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.firma-comune img { width: 34px; height: auto; flex: none; margin-bottom: 0; }
.lockup-comune {
  font-family: var(--testo); font-weight: 600; font-size: 12px; line-height: 1.25;
  letter-spacing: .01em; color: var(--crema); margin: 0; padding-right: 10px;
  border-right: 1px solid rgba(201,210,195,.35);
}
.lockup-comune span { font-weight: 400; text-transform: none; }

/* bottone SOS e pannello geolocalizzazione, su tutte le pagine */
.sos-btn {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 64px; height: 64px; border-radius: 50%; padding: 0;
  background: #E20E18; border: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  cursor: pointer; transition: transform .15s ease;
}
.sos-btn img { display: block; width: 100%; height: 100%; }
.sos-btn:hover { transform: scale(1.06); }
.sos-btn:focus-visible { outline: 3px solid var(--foresta); outline-offset: 3px; }
.sos-overlay {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(20,20,16,.55);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.sos-overlay.is-open { display: flex; }
.sos-card {
  background: var(--crema); border-radius: var(--raggio, 10px);
  max-width: 380px; width: 100%; padding: 28px 24px 24px; position: relative;
  font-family: var(--testo);
}
.sos-card h3 { font-family: var(--display); font-weight: 700; margin: 0 0 10px; font-size: 22px; color: #E20E18; }
.sos-card p.sos-status { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: var(--foresta); }
.sos-coords {
  background: #fff; border-radius: 8px; padding: 12px 14px;
  font-family: 'SFMono-Regular', Consolas, monospace; font-size: 15px; margin-bottom: 16px;
  word-break: break-all; color: var(--foresta);
}
.sos-call {
  display: block; width: 100%; box-sizing: border-box; text-align: center;
  background: #E20E18; color: #fff; text-decoration: none;
  padding: 14px; border-radius: 8px; font-weight: 700; font-size: 17px; margin-bottom: 10px;
}
.sos-call:hover { background: #B80B13; }
.sos-maps-link { display: block; text-align: center; font-size: 14px; color: var(--foresta); }
.sos-close {
  position: absolute; top: 10px; right: 12px; background: none; border: none;
  font-size: 24px; line-height: 1; cursor: pointer; color: var(--foresta); padding: 6px;
}

/* seconda riga stemma nel footer: Comune di Rocchetta di Vara, in collaborazione */
.firma-comune--collab { margin-top: 16px; }

/* ---- Varianti dentro la pagina della tappa ---- */
.variante { background: var(--crema-2); border-top: 4px solid var(--c-storia); }
.etichetta-variante { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 14px; padding: 7px 14px; border-radius: 18px; line-height: 1.3;
  background: var(--c-storia); color: #fff; font-weight: 600; font-size: 15px; letter-spacing: .01em; }
.etichetta-variante::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.barra-dati--chiara { border-top-color: var(--filo); gap: 36px; }
.barra-dati--chiara .n { font-size: 32px; color: var(--foresta); }
.barra-dati--chiara .l { color: var(--sfumato); }
.variante .profilo .area { fill: rgba(250,138,0,.22); }
.variante .profilo .linea { stroke: #C96E00; }
.legenda-difficolta .tratteggio { width: 22px; height: 0; border-top: 3px dashed var(--c-storia); display: inline-block; flex: none; }
.tag-variante { display: inline-flex; align-items: center; gap: 7px; margin-left: 12px; font-size: 13.5px; font-weight: 600; color: #B86500; }
.tag-variante::before { content: ""; width: 16px; border-top: 2px dashed var(--c-storia); }
.difficolta:empty + .tag-variante, .dati + .tag-variante { margin-left: 0; }
.variante__partenza { margin: 10px 0 0; color: var(--sfumato); font-size: 15px; }

/* Menu: il logo non si comprime e le voci restano su una riga */
.nav__logo { flex: none; }
@media (min-width: 1120px) {
  .nav__menu li a.voce { white-space: nowrap; }
}
@media (min-width: 1120px) and (max-width: 1379px) {
  .nav__menu { margin-left: 22px; gap: 16px; }
  .nav__menu ul { gap: 16px; }
  .nav__menu li a.voce { font-size: 16px; }
  .nav__azioni { gap: 10px; }
}
.nav__azioni .bottone { white-space: nowrap; }

/* Punti di interesse sulle mappe delle tappe */
.legenda-difficolta .pallino-poi { width: 13px; height: 13px; border-radius: 50%; background: #D7261E; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); display: inline-block; flex: none; }
.lungo-percorso { margin: 10px 0 0; font-size: 15px; color: var(--sfumato); }
.lungo-percorso strong { color: var(--foresta); }

/* Popup dei punti di interesse */
.poi-tip { font-family: var(--testo, inherit); font-weight: 600; font-size: 14px; padding: 4px 9px; border-radius: 6px; }
.poi-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: 12px; overflow: hidden; }
.poi-popup .leaflet-popup-content { margin: 0; width: 250px !important; }
.poi-pop img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.poi-pop, .poi-pop__testo p { font-family: var(--testo); }
.poi-pop__testo { padding: 12px 14px 14px; }
#mappa path.leaflet-interactive:focus { outline: none; }
.poi-pop__testo strong { display: block; font-family: var(--display, serif); font-size: 18px; line-height: 1.15; color: var(--foresta); margin-bottom: 4px; }
.poi-pop__testo p { margin: 0 !important; font-size: 14px; line-height: 1.45; color: #3b4136; }
.leaflet-container .poi-popup--foto a.leaflet-popup-close-button { color: #fff; background: rgba(0,0,0,.45); border-radius: 50%; width: 26px; height: 26px; line-height: 24px; font-size: 20px; top: 8px; right: 8px; text-align: center; }
.leaflet-container .poi-popup--foto a.leaflet-popup-close-button:hover { background: rgba(0,0,0,.65); color: #fff; }
.poi-pop__credito { display: block; margin-top: 8px; font-size: 11.5px; color: #7a8072; }

/* Credito fotografico sulle immagini delle tappe */
.credito-foto { position: absolute; right: 8px; bottom: 6px; max-width: calc(100% - 16px); font-size: 10.5px; line-height: 1.3; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); text-align: right; pointer-events: none; }
.p-foto .credito-foto { right: 12px; bottom: 10px; font-size: 12px; }

/* Bandierine dei punti di interesse sul profilo altimetrico */
.profilo .band .asta { stroke: #3a3a3a; stroke-width: 1.2; }
.profilo .band .drappo { fill: #D7261E; }
.profilo .band .piede { fill: #D7261E; stroke: #fff; stroke-width: 1.5; }
.profilo .band .bn { font-family: var(--testo); font-size: 13px; font-weight: 600; fill: var(--foresta); paint-order: stroke; stroke: var(--crema); stroke-width: 3px; }
/* su telefono il profilo si scorre di lato, così le etichette restano leggibili */
.profilo-scorri { width: 100%; }
@media (max-width: 700px) {
  .profilo-scorri { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .profilo-scorri .profilo { min-width: 720px; }
}

/* Popup: segnalazione foto DEMO e collegamento a Street View */
.poi-pop__foto { position: relative; }
.poi-demo { position: absolute; left: 8px; top: 8px; background: #D7261E; color: #fff; font-family: var(--testo); font-weight: 700; font-size: 11px; letter-spacing: .04em; padding: 3px 7px; border-radius: 4px; }
.leaflet-container a.poi-sv { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--foresta); text-decoration: underline; text-underline-offset: 3px; }
.nota-tempi { margin: 10px 0 0; font-size: 13px; opacity: .75; }

/* Icone dei tempi di percorrenza (bici e a piedi) */
.ico-tempo { display: inline-block; height: .82em; width: auto; vertical-align: -0.05em; margin-right: .22em; }
.percorso .dati .ico-tempo { height: 1.05em; vertical-align: -0.2em; margin-right: .3em; opacity: .85; }
.fonte-diff { margin: 14px 0 0; font-size: 13px; opacity: .7; }

/* logo Bici in Comune: bollino tondo senza riquadro crema */
.bic-logo, .bic-logo-eventi { background: none; padding: 0; border-radius: 50%; }
.partner--bic img { background: none; padding: 0; border-radius: 50%; }
@media (min-width: 1180px) { .bic-logo { padding: 0; } }

/* bottone evento Bici in Comune: riquadro con le proporzioni della grafica, così non viene tagliata ai lati */
.percorso__foto[style*="evento-bottone"] { height: auto; aspect-ratio: 2000 / 687; background-size: cover !important; }

/* testata evento Bici in Comune: su schermi stretti mostrala intera invece di ritagliarla */
@media (max-width: 1000px) {
  .p-foto[style*="evento-interno-vincitore"] { height: auto; aspect-ratio: 2400 / 706; }
}

/* "Il progetto": ancorato in basso sulla foto, così cresce verso l'alto e non viene mai tagliato */
@media (min-width: 900px) {
  .project { top: auto; bottom: 3.2%; }
}

/* Festa del Castagno: logo accanto al titolo nella sezione Eventi */
.blocco__testa { display: flex; align-items: center; justify-content: flex-start; gap: 14px 30px; flex-wrap: wrap; margin-bottom: 12px; }
.blocco__testa h3 { margin: 0; }
.logo-castagno { width: 190px; height: auto; flex: none; }
@media (max-width: 560px) { .logo-castagno { width: 160px; } }

/* Orari e contatti musei (revisione Comune 28/9) */
.blocco .orari { margin-top: 10px; font-size: .95em; line-height: 1.5; }
.blocco .orari a { color: inherit; }
.piede .colonne li a { overflow-wrap: anywhere; }

/* Pagine legali e link nel piede */
.piede .nota-piede { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.piede__legali a { color: #F1E6D8; text-decoration: underline; text-underline-offset: 3px; }
.legale { padding-block: 64px 96px; }
.legale__testo { max-width: 760px; }
.legale__testo h1 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(38px, 6vw, 60px); line-height: 1.05; margin: 0 0 10px; color: var(--foresta); }
.legale__testo h2 { font-family: "Playfair Display", Georgia, serif; font-size: 24px; margin: 40px 0 10px; color: var(--foresta); }
.legale__testo p, .legale__testo li { color: var(--sfumato); line-height: 1.65; max-width: 68ch; }
.legale__testo ul { padding-left: 20px; display: grid; gap: 10px; }
.legale__testo a { color: var(--foresta); }
.legale__testo .agg { font-size: 14px; }
.legale__testo .rimando { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--filo); }
.da-compilare { background: #FFE8A3; color: #3A2E00 !important; padding: 1px 6px; }

/* logo Cammino 2 Castelli sotto il bollino Bici in Comune (sezione Eventi) */
.c2c-logo-eventi { display: block; width: 230px; transition: opacity .15s ease; }
.c2c-logo-eventi img { width: 100%; height: auto; display: block; }
.c2c-logo-eventi:hover { opacity: .85; }

/* blocco iscrizione evento (modulo PDF) */
.iscrizione { margin-bottom: 34px; padding-bottom: 30px; border-bottom: 1px solid var(--filo); }
.iscrizione a:not(.bottone) { color: var(--foresta); font-weight: 600; }
.bottoni { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.bottoni .bottone--chiaro { border: 1.5px solid var(--foresta); }

/* contatti attività ospitalità */
.luoghi p a { color: var(--foresta); font-weight: 600; text-decoration: none; }
.luoghi p a:hover { text-decoration: underline; }

/* logo Festa del Castagno nella colonna loghi (desktop), accanto al titolo del blocco */
#eventi .loghi-eventi { grid-row: 1 / span 2; margin-top: 0; }
.logo-castagno--colonna { width: 200px; margin-bottom: 170px; }
.logo-castagno--mobile { display: none; }
@media (max-width: 820px) {
  #eventi .loghi-eventi { grid-row: 2; margin-top: 22px; }
  .logo-castagno--colonna { display: none; }
  .logo-castagno--mobile { display: block; }
}

/* allerta: avviso del Comune e fonte (gestiti da allerta.js) */
.allerta__avviso { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: #FFFAF5; border: 1px solid var(--filo); border-left: 5px solid var(--col, var(--sfumato)); }
.allerta__avviso[hidden] { display: none; }
.allerta__avviso strong { display: block; margin-bottom: 4px; }
.allerta__avviso p { margin: 0; white-space: pre-line; }
.allerta__avviso .allerta__validita { margin-top: 6px; font-size: 13px; color: var(--sfumato); }
.allerta__fonte { margin: 10px 0 0; font-size: 13px; color: var(--sfumato); }

/* Visit Calice - bottone installa e finestra istruzioni */
.btn-install[hidden] { display: none !important; }
#vc-install-help {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, .55);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px;
}
#vc-install-help .vc-ih-box {
  background: #fff; color: #1d1d1b;
  max-width: 420px; width: 100%;
  border-radius: 14px; padding: 20px 20px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  font: 16px/1.45 inherit;
}
#vc-install-help .vc-ih-t { font-weight: 700; font-size: 18px; margin: 0 0 8px; }
#vc-install-help .vc-ih-x { margin: 0 0 16px; }
#vc-install-help button {
  width: 100%; padding: 12px; border: 0; border-radius: 10px;
  background: var(--foglia, #2F4A32); color: #fff; font-weight: 600; font-size: 16px;
}

/* finestra "Scarica l'app": istruzioni e QR */
#vc-install-help { align-items: center; }
#vc-install-help .vc-ih-box { text-align: left; color: var(--inchiostro, #1F3125); background: var(--crema, #FBF1E8); }
#vc-install-help .vc-ih-t { font-family: var(--display); font-size: 22px; }
#vc-install-help .vc-ih-x ol { margin: 0 0 8px; padding-left: 20px; }
#vc-install-help .vc-ih-x li { margin-bottom: 6px; }
#vc-install-help .vc-ih-qr { display: block; margin: 4px auto 14px; background: #fff; padding: 10px; border-radius: 10px; }
#vc-install-help .vc-ih-n { font-size: 13.5px; color: var(--sfumato, #57604F); margin: 0 0 14px; }
.fascia .bottoni .bottone--chiaro { border: 0; }

/* Brividi al Castello: logo nella colonna (desktop) e accanto al titolo (mobile), come la Festa del Castagno */
.logo-brividi--colonna { display: block; width: 190px; transition: opacity .15s ease; }
.logo-brividi--colonna img { width: 100%; height: auto; display: block; }
.logo-brividi--colonna:hover { opacity: .85; }
.logo-brividi--mobile { display: none; width: 110px; height: auto; flex: none; }
@media (max-width: 820px) {
  .logo-brividi--colonna { display: none; }
  .logo-brividi--mobile { display: block; }
}
.mappa-evento { margin: 18px 0 20px; }
.mappa-evento svg { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 1px 0 rgba(31,49,37,.08), 0 6px 18px rgba(31,49,37,.08); }
.mappa-evento figcaption { font-size: 14px; line-height: 1.45; margin-top: 8px; color: var(--foresta); }
.mappa-evento figcaption a { font-weight: 600; white-space: nowrap; }
.mappa-evento__zoom { display: block; cursor: zoom-in; }

/* simbolo dei gradi: il ° di Playfair e' troppo grande e staccato, lo prendiamo da Figtree */
@font-face { font-family:'Gradi VC'; font-weight:100 900; font-style:normal; font-display:swap; src:url(fonts/figtree-latin-600-normal.woff2) format('woff2'); unicode-range:U+00B0; }
.temp, .previsioni .t { font-family: 'Gradi VC', var(--display); }

/* icona grande nel riquadro del meteo attuale, a destra */
.meteo-card .meteo-icona--ora { width: 112px; height: 120px; margin: 0 0 0 auto; flex: none; }
.meteo-icona--ora svg { width: 100%; height: 100%; }
@media (max-width: 640px) { .meteo-card .meteo-icona--ora { width: 76px; height: 82px; } }

/* rev22: bollino GARA RINVIATA (evento 18 ottobre) */
.rinviato { display: inline-block; margin: 0 0 12px; padding: 7px 16px; border-radius: 999px; background: #C62828; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.rinviato--foto { position: absolute; top: 14px; right: 14px; margin: 0; padding: 9px 18px; font-size: 15px; transform: rotate(-4deg); box-shadow: 0 4px 14px rgba(0,0,0,.28); border: 2px solid #fff; z-index: 2; }
.p-foto .rinviato--foto { top: 22px; right: 22px; font-size: clamp(16px, 2.4vw, 26px); padding: 12px 26px; }
.rinviato-nota { margin: 6px 0 18px; font-size: 17px; font-weight: 600; }
.rinviato, .blocco p.rinviato, .p-hero p.rinviato { color: #fff !important; }
/* rinviato mobile */
@media (max-width: 640px) {
  .rinviato--foto, .p-foto .rinviato--foto { top: 8px; right: 8px; font-size: 11px; padding: 5px 11px; letter-spacing: .06em; border-width: 1.5px; transform: rotate(-3deg); }
  .rinviato { font-size: 12px; padding: 6px 13px; }
}

/* rev22: allerta per giorno (oggi, domani, tendenza) */
.allerta__giorni { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.allerta__giorno { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; padding: 10px 14px; border-radius: 12px; background: #FFFAF5; border: 1px solid var(--filo); border-left: 5px solid var(--col, var(--filo)); font-size: 15px; line-height: 1.35; }
.allerta__quando { color: var(--sfumato); }
.allerta__quando strong { color: var(--inchiostro); margin-right: 2px; }
.allerta__livello { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--inchiostro); }
.allerta__giorno--tendenza .allerta__livello { font-weight: 400; color: var(--sfumato); }
