/* il Coppolone — giornale di Muro Lucano
   palette: lana (coppola), carta, pietra, verde persiana, giallo lampione */
:root {
  --lana: #262930;
  --carta: #FBFAF7;
  --pietra: #E8E5DD;
  --persiana: #33604A;
  --persiana-scuro: #27492F;
  --lampione: #E0A93E;
  --grigio: #5C5F58;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Piazzolla", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--carta);
  color: var(--lana);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--persiana); outline-offset: 2px; }
img { max-width: 100%; display: block; }

/* ---------- masthead ---------- */
.masthead { text-align: center; padding: 1.1rem 1rem 0.4rem; }
.masthead-top {
  display: flex; justify-content: space-between; max-width: 1080px; margin: 0 auto 0.4rem;
  font-family: var(--display); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--grigio);
}
.masthead-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 5.2vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; }
.masthead-title a { text-decoration: none; color: var(--lana); }
.masthead-title em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 0.55em; vertical-align: 0.28em; margin-right: 0.08em; color: var(--persiana); }
.masthead-motto { margin: 0.3rem 0 0.9rem; font-style: italic; color: var(--grigio); font-size: 0.95rem; }

/* ---------- la gradinata (firma) ---------- */
.gradinata { color: var(--persiana); line-height: 0; }
.gradinata svg { width: 100%; height: 30px; }

/* ---------- nav categorie ---------- */
.catnav {
  background: var(--persiana); color: #fff;
  padding: 0.55rem 1rem; margin-top: -1px;
  font-family: var(--display); font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.catnav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 1.4rem; }
.catnav a { color: #fff; text-decoration: none; padding: 0.1rem 0; border-bottom: 2px solid transparent; }
.catnav a:hover, .catnav a.on { border-bottom-color: var(--lampione); }
.catnav-toggle { display: none; }
/* hamburger: header su mobile */
@media (max-width: 760px) {
  .catnav { padding: 0; }
  .catnav-toggle {
    display: flex; align-items: center; gap: 0.6rem; width: 100%;
    background: none; border: none; color: #fff; cursor: pointer;
    font-family: var(--display); font-size: 0.9rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; padding: 0.8rem 1.1rem;
  }
  .catnav-burger { width: 20px; height: 2px; background: #fff; position: relative; display: inline-block; }
  .catnav-burger::before, .catnav-burger::after { content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: #fff; transition: transform 0.2s, top 0.2s; }
  .catnav-burger::before { top: -6px; }
  .catnav-burger::after { top: 6px; }
  .catnav.aperto .catnav-burger { background: transparent; }
  .catnav.aperto .catnav-burger::before { top: 0; transform: rotate(45deg); }
  .catnav.aperto .catnav-burger::after { top: 0; transform: rotate(-45deg); }
  .catnav-links { display: none; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 0.4rem; }
  .catnav.aperto .catnav-links { display: flex; }
  .catnav-links a { padding: 0.75rem 1.1rem; border-bottom: 2px solid transparent; border-top: 1px solid rgba(255,255,255,0.14); }
  .catnav a:hover, .catnav a.on { border-bottom-color: transparent; background: rgba(0,0,0,0.15); }
}

/* ---------- layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 2rem 1.2rem 3rem; }

.kicker { font-family: var(--display); font-weight: 600; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--persiana); margin: 0 0 0.3rem; }
.kicker a { color: var(--persiana); text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.byline { font-family: var(--display); font-size: 0.74rem; font-weight: 400; color: var(--grigio); margin: 0.4rem 0 0; }

/* prima pagina */
.front { display: grid; grid-template-columns: 1fr 300px; gap: 2.4rem; }
.lead-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 1rem; }
.lead-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 0.6rem; }
.lead-title a { text-decoration: none; }
.lead-title a:hover { color: var(--persiana-scuro); }
.lead-summary { font-size: 1.12rem; line-height: 1.5; color: #3a3d38; margin: 0; }

.brief { border-left: 1px solid var(--pietra); padding-left: 1.6rem; }
.brief-head { font-family: var(--display); font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 1rem; padding-bottom: 0.5rem; border-bottom: 3px solid var(--lana); }
.brief-item { padding: 0.75rem 0; border-bottom: 1px dotted #c9c6bd; }
.brief-item:last-child { border-bottom: 0; }
.brief-item h4 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 0.98rem; line-height: 1.25; }
.brief-item a { text-decoration: none; }
.brief-item a:hover { color: var(--persiana-scuro); }
.brief-empty { color: var(--grigio); font-style: italic; }

/* divisore a gradoni */
.sec-divider { margin: 2.6rem 0 2rem; }
.sec-divider span {
  display: block; height: 10px; width: 130px; margin: 0 auto;
  background: linear-gradient(to right,
    var(--persiana) 0 26px, transparent 26px 34px,
    var(--persiana) 34px 60px, transparent 60px 68px,
    var(--persiana) 68px 94px, transparent 94px 102px,
    var(--persiana) 102px 128px);
  clip-path: polygon(0 60%, 25% 60%, 25% 20%, 50% 20%, 50% 0, 75% 0, 75% 40%, 100% 40%, 100% 100%, 0 100%);
}

/* griglia */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.8rem; }
.card-cover { width: 100%; aspect-ratio: 3/2; object-fit: cover; margin-bottom: 0.6rem; }
.card-title { font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.22; margin: 0 0 0.4rem; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--persiana-scuro); }
.card-summary { font-size: 0.92rem; color: #3a3d38; margin: 0; }

/* pagina articolo */
.piece { max-width: 720px; margin: 0 auto; }
.piece-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 0.7rem; }
.piece-summary { font-size: 1.18rem; line-height: 1.5; color: #3a3d38; margin: 0 0 0.4rem; }
.piece-cover { width: 100%; margin: 1.4rem 0; }
.piece-body { font-size: 1.08rem; line-height: 1.75; margin-top: 1.6rem; }
.piece-body h2, .piece-body h3 { font-family: var(--display); font-weight: 800; line-height: 1.2; margin: 2rem 0 0.6rem; }
.piece-body p:first-of-type::first-letter {
  font-family: var(--display); font-weight: 800; color: var(--persiana);
  float: left; font-size: 3.4em; line-height: 0.85; padding-right: 0.12em; padding-top: 0.05em;
}
.piece-body blockquote { margin: 1.5rem 0; padding-left: 1.2rem; border-left: 4px solid var(--lampione); font-style: italic; color: #3a3d38; }
.piece-body a { color: var(--persiana-scuro); }

.related { max-width: 720px; margin: 0 auto; }
.related-head { font-family: var(--display); font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 0.6rem 0; border-bottom: 1px dotted #c9c6bd; }
.related li a { font-family: var(--display); font-weight: 600; text-decoration: none; }
.related li a:hover { color: var(--persiana-scuro); }
.related .byline { display: inline; margin-left: 0.5rem; }

/* pagina categoria */
.cathead { border-bottom: 3px solid var(--lana); margin-bottom: 1.6rem; }
.cathead-title { font-family: var(--display); font-weight: 800; font-size: 2rem; margin: 0 0 0.4rem; }
/* secondo titolo di pagina (es. le notizie sotto le squadre): un gradino sotto */
.cathead-sotto { margin-top: 1.8rem; border-bottom-width: 2px; }
.cathead-sotto .cathead-title { font-size: 1.4rem; }
.catlist { display: grid; gap: 1.6rem; }
.catrow { display: grid; grid-template-columns: 220px 1fr; gap: 1.4rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--pietra); }
.catrow:not(:has(img)) { grid-template-columns: 1fr; }
.catrow-cover { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.catrow-title { font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.25; margin: 0 0 0.3rem; }
.catrow-title a { text-decoration: none; }
.catrow-title a:hover { color: var(--persiana-scuro); }
.catrow-summary { margin: 0; color: #3a3d38; font-size: 0.95rem; }

/* vuoto / 404 */
.empty { text-align: center; padding: 4rem 1rem; color: var(--grigio); }
.empty-title { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--lana); margin-bottom: 0.4rem; }
.empty a { color: var(--persiana-scuro); }

/* ---------- footer ---------- */
.footer { margin-top: 3rem; }
.gradinata-footer { color: var(--lana); }
.gradinata-footer svg { height: 40px; }
.footer-inner { background: var(--lana); color: #cfcdc6; text-align: center; padding: 1.6rem 1rem 2.2rem; margin-top: -1px; }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: #fff; margin: 0; }
.footer-brand em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 0.6em; vertical-align: 0.25em; color: var(--lampione); }
.footer-motto { font-style: italic; margin: 0.2rem 0 0.8rem; }
.footer-note { font-family: var(--display); font-size: 0.75rem; margin: 0; }
.footer-note a { color: #cfcdc6; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .front { grid-template-columns: 1fr; }
  .brief { border-left: 0; padding-left: 0; border-top: 3px solid var(--lana); padding-top: 1rem; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .catrow { grid-template-columns: 1fr; }
  .masthead-top { font-size: 0.6rem; letter-spacing: 0.05em; gap: 0.5rem; align-items: baseline; }
  .masthead-date { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .masthead-account { white-space: nowrap; flex: 0 0 auto; }
}

/* ---- passaparola (condivisione articolo) ---- */
.share { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--pietra); }
.share-label { font-family: var(--display); font-weight: 800; font-size: 0.95rem; margin-right: 0.2rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 1.1rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--display); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; cursor: pointer; color: #fff;
}
.share-btn:hover { filter: brightness(0.92); }
.share-wa { background: #25D366; }
.share-fb { background: #1877F2; }
.share-tg { background: #2AABEE; }
.share-copy { background: transparent; color: var(--persiana-scuro); border-color: var(--persiana); }
.share-copy:hover { background: #eef3ef; filter: none; }
@media (max-width: 560px) {
  .share-btn { flex: 1; justify-content: center; padding: 0.7rem 0.6rem; }
  .share-label { flex-basis: 100%; margin: 0; }
}

/* ---- servizi utili in prima pagina ---- */
.servizi { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 1.8rem; }
.servizi:has(.servizio:only-child) { grid-template-columns: 1fr; }
.servizi:has(.servizio:nth-child(3)) { grid-template-columns: 1fr 1fr 1fr; }
.servizio { background: #fff; border: 1px solid var(--pietra); border-top: 4px solid var(--lampione); padding: 0.9rem 1.1rem 1rem; }
.servizio-head { font-family: var(--display); font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.07em; margin: 0 0 0.45rem; color: var(--persiana-scuro); }
.servizio-main { font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin: 0 0 0.15rem; }
.servizio-sub { font-family: var(--serif); font-size: 0.92rem; color: var(--grigio); margin: 0 0 0.3rem; }
.servizio-nota { font-size: 0.78rem; color: var(--grigio); font-style: italic; margin: 0.2rem 0 0; }
.servizio-locali { font-size: 0.82rem; color: var(--grigio); margin: 0.4rem 0 0.2rem; display: flex; flex-direction: column; gap: 0.1rem; }
.servizio-locali a { color: var(--persiana-scuro); }
.servizio-link { font-size: 0.78rem; color: var(--persiana-scuro); }
.raccolta-chips { margin: 0.1rem 0 0.4rem; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.rifiuto { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.01em; }
.rifiuto-sm { padding: 0.1rem 0.5rem; font-size: 0.74rem; font-weight: 600; margin-left: 0.2rem; }
.raccolta-nulla { color: var(--grigio); font-style: italic; }

/* pagina guida alla raccolta differenziata */
.rd-settimana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.4rem; max-width: 760px; margin: 0 0 1.8rem; }
.rd-giorno { background: #fff; border: 1px solid var(--pietra); border-radius: 8px; padding: 0.5rem 0.2rem; text-align: center; }
.rd-giorno-lbl { display: block; font-family: var(--display); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--grigio); margin-bottom: 0.4rem; }
.rd-giorno-tipi { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; min-height: 2rem; justify-content: center; }
.rd-pallino { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.rd-vuoto { color: var(--pietra); }
.rd-schede { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; max-width: 900px; margin-bottom: 1.5rem; }
.rd-scheda { border: 1px solid var(--pietra); border-radius: 10px; overflow: hidden; background: #fff; }
.rd-scheda-head { padding: 0.7rem 1rem; }
.rd-scheda-head h3 { font-family: var(--display); font-weight: 800; font-size: 1.15rem; margin: 0; }
.rd-giorni { font-size: 0.8rem; font-weight: 600; opacity: 0.92; text-transform: capitalize; }
.rd-scheda-corpo { padding: 0.8rem 1rem 1rem; }
.rd-come { font-size: 0.88rem; color: var(--grigio); margin: 0 0 0.7rem; line-height: 1.45; }
.rd-liste { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.rd-liste-tit { font-family: var(--display); font-weight: 700; font-size: 0.9rem; margin: 0 0 0.3rem; }
.rd-liste ul { margin: 0; padding-left: 1.1rem; font-size: 0.86rem; line-height: 1.5; }
.rd-liste li { margin-bottom: 0.2rem; }
.rd-no { color: var(--grigio); }
.rd-extra { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.8rem; max-width: 900px; margin-bottom: 1.5rem; }
.rd-extra-item { background: #f6f4ef; border: 1px solid var(--pietra); border-radius: 8px; padding: 0.8rem 1rem; }
.rd-extra-tit { font-family: var(--display); font-weight: 700; margin: 0 0 0.2rem; }
.rd-extra-det { font-size: 0.86rem; color: var(--grigio); margin: 0; line-height: 1.45; }
.rd-destino { font-size: 0.82rem; color: var(--persiana-scuro); margin: 0.7rem 0 0; padding-top: 0.6rem; border-top: 1px dashed var(--pietra); line-height: 1.4; }
.rd-locandine { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; max-width: 900px; }
.rd-locandina { margin: 0; }
.rd-locandina img { width: 100%; border-radius: 10px; border: 1px solid var(--pietra); display: block; }
.rd-locandina figcaption { font-size: 0.8rem; color: var(--grigio); margin-top: 0.4rem; text-align: center; }
@media (max-width: 560px) { .rd-liste { grid-template-columns: 1fr; } .rd-pallino { width: 13px; height: 13px; } }
@media (max-width: 700px) {
  .servizi, .servizi:has(.servizio:nth-child(3)) { grid-template-columns: 1fr; }
}
@media (min-width: 701px) and (max-width: 980px) {
  .servizi:has(.servizio:nth-child(3)) { grid-template-columns: 1fr 1fr; }
  .servizi:has(.servizio:nth-child(3)) .servizio:nth-child(3) { grid-column: 1 / -1; }
}

/* ---- l'albo in parole povere ---- */
.catnav-albo { color: var(--persiana-scuro); font-weight: 800; }
/* ---- avvisi urgenti e canale WhatsApp ---- */
.avvisi { max-width: 760px; margin: 0.9rem auto 0; padding: 0 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.avviso { display: flex; gap: 0.7rem; align-items: flex-start; background: #fff; border: 1px solid var(--pietra); border-left: 4px solid var(--lampione); border-radius: 12px; padding: 0.7rem 0.85rem; text-decoration: none; color: inherit; }
a.avviso { transition: box-shadow 0.15s, border-color 0.15s; }
a.avviso:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.08); }
a.avviso:active { transform: scale(0.995); }
.avviso-icona { flex: 0 0 auto; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; background: #fdf3d8; border-radius: 9px; font-size: 1.15rem; }
.avviso-corpo { display: flex; flex-direction: column; min-width: 0; }
.avviso-testo { font-family: var(--serif); font-size: 0.96rem; line-height: 1.4; color: var(--lana); }
.avviso-testo strong { font-family: var(--display); }
.avviso-fonte { font-size: 0.76rem; color: var(--grigio); margin-top: 0.25rem; font-weight: 600; }

/* ---- sezione Attrazioni: cosa vedere a Muro Lucano ---- */
.attr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; margin: 0.4rem 0 1.4rem; }
.attr-card { background: #fff; border: 1px solid var(--pietra); border-radius: 14px; padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.attr-card:hover { border-color: var(--persiana); box-shadow: 0 6px 20px rgba(38,73,47,0.09); transform: translateY(-2px); }
.attr-tag { align-self: flex-start; font-family: var(--display); font-weight: 700; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: #fff; background: var(--tag, var(--persiana)); padding: 0.18rem 0.6rem; border-radius: 999px; margin-bottom: 0.6rem; }
.attr-nome { font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.15; margin: 0 0 0.35rem; color: var(--lana); }
.attr-occhiello { font-family: var(--display); font-weight: 600; font-size: 0.9rem; line-height: 1.3; color: var(--persiana); margin: 0 0 0.55rem; }
.attr-desc { font-family: var(--serif); font-size: 1rem; line-height: 1.55; color: var(--lana); margin: 0 0 0.9rem; }
.attr-scopri { display: inline-flex; align-items: center; gap: 0.35rem; margin: auto 0 0; font-family: var(--display); font-weight: 700; font-size: 0.9rem; color: var(--persiana-scuro); }
.attr-scopri svg { width: 17px; height: 17px; transition: transform 0.15s; }
.attr-card:hover .attr-scopri svg { transform: translateX(3px); }
.attr-nota { text-align: center; font-family: var(--serif); font-size: 0.95rem; color: var(--grigio); margin: 0.5rem 0 0; }
.attr-nota a { color: var(--persiana); font-weight: 600; }
@media (max-width: 680px) { .attr-grid { grid-template-columns: 1fr; gap: 1rem; } .attr-nome { font-size: 1.25rem; } }

/* ---- scheda attrazione (pagina di dettaglio) ---- */
.scheda-attr { max-width: 720px; }
.scheda-attr .attr-tag { margin-bottom: 0.7rem; }
.scheda-attr-lead { font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 2.6vw, 1.25rem); line-height: 1.35; color: var(--persiana); margin: 0 0 1.3rem; }
.scheda-attr-intro { font-family: var(--serif); font-size: 1.12rem; line-height: 1.7; }
.scheda-attr-intro p { margin: 0 0 0.9rem; }
.scheda-attr-sez { margin: 1.9rem 0 0; }
.scheda-attr-sez h2 { font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1.18; margin: 0 0 0.6rem; color: var(--lana); }
.scheda-attr-sez p { font-family: var(--serif); font-size: 1.08rem; line-height: 1.7; margin: 0 0 0.85rem; }
.scheda-attr-box { border-radius: 14px; padding: 1.1rem 1.3rem; margin: 1.8rem 0 0; }
.scheda-attr-box h3 { display: flex; align-items: center; gap: 0.4rem; font-family: var(--display); font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; margin: 0 0 0.5rem; }
.scheda-attr-box h3 svg { width: 18px; height: 18px; }
.scheda-attr-box p { font-family: var(--serif); font-size: 1.02rem; line-height: 1.6; margin: 0; }
.scheda-attr-sapere { background: #f4f1ea; border: 1px solid var(--pietra); }
.scheda-attr-sapere h3 { color: var(--persiana); }
.scheda-attr-visita { background: #eef3ef; border: 1px solid #d5e2d8; }
.scheda-attr-visita h3 { color: var(--persiana-scuro); }
.attr-continua { max-width: 720px; margin: 2.4rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--pietra); }
.attr-continua-tit { font-family: var(--display); font-weight: 800; font-size: 1.15rem; margin: 0 0 1rem; }
.attr-continua-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.attr-mini { display: flex; flex-direction: column; gap: 0.35rem; background: #fff; border: 1px solid var(--pietra); border-radius: 12px; padding: 0.9rem 1rem; text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.15s; }
.attr-mini:hover { border-color: var(--persiana); transform: translateY(-2px); }
.attr-mini-nome { font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.2; color: var(--lana); }
@media (max-width: 560px) { .attr-continua-grid { grid-template-columns: 1fr; } }

/* ---- galleria/slider in cima alla scheda ---- */
.attr-slider { position: relative; margin: 0 0 1.4rem; border-radius: 14px; overflow: hidden; background: #eceae4; }
.attr-slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.attr-slider-track::-webkit-scrollbar { display: none; }
.attr-slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 16 / 10; background: #eceae4; }
.attr-slide img { width: 100%; height: 100%; object-fit: cover; }
.attr-credit { position: absolute; right: 0; bottom: 0; max-width: 85%; font-family: var(--display); font-size: 0.68rem; line-height: 1.3; color: #fff; background: rgba(20,22,20,0.55); padding: 0.22rem 0.5rem; border-top-left-radius: 8px; text-align: right; }
.attr-credit a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.attr-credit a:hover { text-decoration: none; }
.attr-slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: none; border-radius: 999px; background: rgba(255,255,255,0.9); color: var(--lana); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.18); transition: opacity 0.15s, background 0.15s; }
.attr-slider-nav:hover { background: #fff; }
.attr-slider-nav svg { width: 22px; height: 22px; }
.attr-slider-nav.prev { left: 0.6rem; }
.attr-slider-nav.next { right: 0.6rem; }
.attr-slider-dots { position: absolute; left: 0; right: 0; bottom: 0.6rem; display: flex; justify-content: center; gap: 0.4rem; }
.attr-dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.55); box-shadow: 0 0 0 1px rgba(0,0,0,0.15); transition: background 0.15s, transform 0.15s; }
.attr-dot.on { background: #fff; transform: scale(1.25); }

/* ---- mappa nella scheda ---- */
.attr-mappa { margin: 1.8rem 0 0; }
.attr-mappa-tit { display: flex; align-items: center; gap: 0.4rem; font-family: var(--display); font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--persiana-scuro); margin: 0 0 0.7rem; }
.attr-mappa-tit svg { width: 18px; height: 18px; }
.attr-mappa-approx { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--grigio); font-size: 0.82rem; }
.attr-mappa-box { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--pietra); background: #eceae4; }
.attr-mappa-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.attr-mappa-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.7rem; font-family: var(--display); font-weight: 700; font-size: 0.9rem; color: var(--persiana-scuro); text-decoration: none; }
.attr-mappa-link:hover { text-decoration: underline; }
.attr-mappa-link svg { width: 16px; height: 16px; }

/* ---- menu a tutto schermo (mobile): aperto dal pulsante "Menu" della appbar ---- */
.navmodal[hidden] { display: none; }
.navmodal { position: fixed; inset: 0; z-index: 1000; background: var(--persiana-scuro); color: #fff; display: flex; flex-direction: column; opacity: 0; transition: opacity 0.2s ease; }
.navmodal.mostra { opacity: 1; }
/* testata e piede più scuri del corpo: la sezione centrale con le voci resta in risalto */
.navmodal-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.2rem; background: rgba(0,0,0,0.22); border-bottom: 1px solid rgba(255,255,255,0.14); }
.navmodal-brand { font-family: var(--display); font-weight: 800; font-size: 1.35rem; }
.navmodal-brand em { font-style: italic; font-weight: 400; }
.navmodal-x { background: none; border: none; color: #fff; cursor: pointer; padding: 0.3rem; line-height: 0; }
.navmodal-x svg { width: 26px; height: 26px; }
.navmodal-links { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; padding: 0.3rem 0; -webkit-overflow-scrolling: touch; }
.navmodal-links a { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; font-family: var(--display); font-weight: 700; font-size: 1.12rem; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; text-decoration: none; padding: 0.95rem 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.09); }
.navmodal-links a::after { content: '›'; opacity: 0.4; font-size: 1.4rem; font-weight: 400; }
.navmodal-links a.on { color: var(--lampione); }
/* coccarda sulla voce in cima alla classifica delle letture; margin-right:auto
   la tiene incollata all'etichetta, con la freccia › che resta a destra */
.navmodal-links .menu-top { margin-right: auto; background: var(--lampione); color: var(--lana); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; padding: 0.2rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.navmodal-links a.on .menu-top { color: var(--lana); }
.navmodal-links a:active { background: rgba(0,0,0,0.22); }
.navmodal-foot { display: flex; gap: 1.5rem; align-items: center; padding: 1.05rem 1.4rem; background: rgba(0,0,0,0.22); border-top: 1px solid rgba(255,255,255,0.14); font-family: var(--display); font-weight: 600; font-size: 0.95rem; }
.navmodal-foot a, .navmodal-linklike { color: #fff; text-decoration: none; background: none; border: none; font: inherit; cursor: pointer; padding: 0; }
.navmodal-foot a:active, .navmodal-linklike:active { color: var(--lampione); }
body.nav-lock { overflow: hidden; }

/* ---- ticker avvisi: notiziario a riga singola tra il menu e la call-to-action ---- */
.ticker { display: flex; align-items: stretch; background: #fff; border-top: 1px solid var(--pietra); border-bottom: 1px solid var(--pietra); overflow: hidden; }
.ticker-label { flex: 0 0 auto; display: flex; align-items: center; gap: 0.45rem; background: var(--lampione); color: var(--lana); font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.74rem; padding: 0 0.95rem; white-space: nowrap; }
.ticker-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--lana); animation: tickerpulse 1.4s ease-in-out infinite; }
@keyframes tickerpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
.ticker-viewport { position: relative; flex: 1 1 auto; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.2rem, #000 calc(100% - 2.2rem), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 2.2rem, #000 calc(100% - 2.2rem), transparent); }
.ticker-track { display: inline-flex; align-items: center; white-space: nowrap; will-change: transform; padding: 0.5rem 0; }
.ticker-track.run { animation: tickerscroll linear infinite; }
.ticker:hover .ticker-track.run { animation-play-state: paused; }
@keyframes tickerscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { position: relative; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0 1.7rem; color: var(--lana); text-decoration: none; font-family: var(--serif); font-size: 0.92rem; line-height: 1.25; }
.ticker-item::after { content: '◆'; position: absolute; right: -0.3rem; top: 50%; transform: translateY(-50%); color: var(--lampione); font-size: 0.5rem; }
.ticker-ic { font-size: 1rem; }
a.ticker-item:hover .ticker-txt { text-decoration: underline; }
.ticker-src { font-family: var(--display); font-weight: 600; font-size: 0.72rem; color: var(--grigio); text-transform: uppercase; letter-spacing: 0.04em; }
/* fallback per prefers-reduced-motion: nessuno scorrimento automatico, si trascina a mano */
.ticker-viewport.no-anim { overflow-x: auto; scrollbar-width: none; }
.ticker-viewport.no-anim::-webkit-scrollbar { display: none; }
@media (max-width: 560px) {
  .ticker-label { font-size: 0.68rem; padding: 0 0.7rem; }
  .ticker-item { font-size: 0.86rem; padding: 0 1.3rem; }
}

/* ---- barra di navigazione in basso (app-like), solo mobile ---- */
.appbar { display: none; }
@media (max-width: 760px) {
  .appbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
    background: var(--persiana-scuro); border-top: 1px solid rgba(0,0,0,0.2);
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -3px 14px rgba(0,0,0,0.18);
  }
  .appbar a, .appbar-menu {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
    padding: 0.5rem 0.2rem 0.55rem; text-decoration: none; border: none; background: none; cursor: pointer;
    font-family: var(--display); font-size: 0.68rem; font-weight: 600; color: rgba(255,255,255,0.82);
  }
  .appbar a.on { color: #fff; }
  .appbar a.on .appbar-i { transform: translateY(-1px); }
  .appbar a.on::after { content: ''; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--lampione); }
  .appbar a { position: relative; }
  /* icone SVG lineari: ereditano il bianco via currentColor, niente hack sui colori */
  .appbar-i { display: block; line-height: 0; opacity: 0.8; transition: opacity 0.15s, transform 0.15s; }
  .appbar-i svg { width: 23px; height: 23px; display: block; }
  .appbar a.on .appbar-i, .appbar-menu:active .appbar-i { opacity: 1; }
  body { padding-bottom: 4.2rem; }  /* spazio per non coprire i contenuti */
  /* testata compatta su mobile */
  .masthead { padding: 0.55rem 1rem 0.2rem; }
  .masthead-title { font-size: 1.6rem; }
  .masthead-motto { display: none; }
  .masthead-top { font-size: 0.56rem; letter-spacing: 0.04em; margin-bottom: 0.15rem; }
  .gradinata:not(.gradinata-footer) { display: none; }
}

/* ---- cruscotto "Oggi a Muro" ---- */
.om-lab { display: flex; align-items: center; gap: 0.6rem; max-width: 960px; margin: 1.3rem auto 0.7rem; padding: 0 1rem; }
.om-lab h2 { font-family: var(--display); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--persiana-scuro); margin: 0; }
.om-rule { flex: 1; height: 1px; background: var(--pietra); }
.om { max-width: 960px; margin: 0 auto 1.6rem; padding: 0 0.8rem; display: grid; gap: 0.55rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .om { grid-template-columns: repeat(3, 1fr); padding: 0 1rem; } }
@media (min-width: 900px) { .om { grid-template-columns: repeat(5, 1fr); } }
/* su mobile lo slider "in evidenza" scorre in orizzontale (col dito o in automatico) */
@media (max-width: 639px) {
  .om-slider {
    position: relative;
    display: flex; grid-template-columns: none; flex-wrap: nowrap;
    overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 0.6rem; padding: 0.1rem 0.8rem 0.6rem; margin-bottom: 0.7rem;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .om-slider::-webkit-scrollbar { display: none; }
  .om-slider > .om-tile { flex: 0 0 86%; scroll-snap-align: start; }
  .om-slider > .om-avviso { flex: 0 0 90%; grid-column: auto; }
  /* le utilità restano una griglia ferma sotto lo slider */
  .om-util { margin-bottom: 1.4rem; }
  .om-util .om-piu { grid-column: 1 / -1; }
}
.om-tile { background: #fff; border: 1px solid var(--pietra); border-radius: 16px; padding: 0.85rem 0.9rem; box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 6px 18px rgba(0,0,0,0.045); text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
a.om-tile { transition: box-shadow 0.15s, transform 0.1s; }
a.om-tile:hover { box-shadow: 0 3px 14px rgba(51,96,74,0.13); }
a.om-tile:active { transform: scale(0.99); }
.om-k { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grigio); display: flex; align-items: center; gap: 0.3rem; }
.om-v { font-family: var(--serif); font-size: 1.02rem; line-height: 1.2; }
.om-s { font-size: 0.74rem; color: var(--grigio); }
.om-dots { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.om-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; flex: none; }
.om-chip { align-self: flex-start; background: var(--persiana); color: #fff; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em; padding: 0.15rem 0.5rem; border-radius: 6px; text-transform: uppercase; }
.om-avviso { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; gap: 0.7rem; background: #fdf3d8; border-color: color-mix(in srgb, var(--lampione) 45%, var(--pietra)); border-left: 4px solid var(--lampione); }
.om-avviso-ico { flex: 0 0 auto; width: 2.1rem; height: 2.1rem; border-radius: 10px; background: #fff; display: grid; place-items: center; font-size: 1.15rem; }
.om-avviso-corpo { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.om-avviso .om-v { font-size: 0.98rem; }
.om-avviso-go { font-family: var(--display); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; color: #b07d16; margin-top: 0.1rem; }

/* ---- feed notizie (stile app) ---- */
.feed { max-width: 680px; margin: 0 auto 1.6rem; padding: 0 1rem; display: flex; flex-direction: column; gap: 1rem; }
.ph { background-image: linear-gradient(135deg, var(--persiana), var(--persiana-scuro)); }
.lead2 { text-decoration: none; color: inherit; display: block; }
.lead2-cover { display: block; aspect-ratio: 16/10; border-radius: 16px; background-size: cover; background-position: center; position: relative; box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 22px rgba(0,0,0,0.06); }
.lead2-kick { position: absolute; top: 0.7rem; left: 0.7rem; background: var(--lampione); color: #23261f; font-family: var(--display); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 6px; }
.lead2-title { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; line-height: 1.18; margin: 0.6rem 0 0.35rem; text-wrap: balance; }
.lead2-sum { font-family: var(--serif); font-size: 1rem; line-height: 1.5; color: var(--grigio); margin: 0; }
.lead2-by { font-size: 0.72rem; color: var(--grigio); margin: 0.5rem 0 0; }
.feed-row { display: flex; gap: 0.85rem; text-decoration: none; color: inherit; padding-top: 1rem; border-top: 1px solid var(--pietra); align-items: flex-start; }
.feed-thumb { width: 92px; height: 68px; flex: none; border-radius: 12px; background-size: cover; background-position: center; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.feed-corpo { display: flex; flex-direction: column; min-width: 0; }
.feed-kick { font-family: var(--display); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--persiana); }
.feed-tit { font-family: var(--serif); font-weight: 700; font-size: 1.02rem; line-height: 1.22; margin-top: 0.25rem; }
.feed-by { font-size: 0.68rem; color: var(--grigio); margin-top: 0.35rem; }
/* ---- la bacheca del paese (feed misto per giorno) ---- */
.bch-day { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.6rem; }
.bch-day:first-child { margin-top: 0; }
.bch-day span { font-family: var(--display); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--persiana-scuro); background: var(--carta, #faf7f0); border: 1px solid var(--pietra); padding: 0.22rem 0.7rem; border-radius: 999px; }
.bch-day::after { content: ''; flex: 1; height: 1px; background: var(--pietra); }
.bch-day + .post, .bch-day + .bch-riga { border-top: none; padding-top: 0; }
/* la tessera unica del feed, nell'essenza di un post social: testata, immagine, corpo */
.post { display: flex; flex-direction: column; gap: 0.45rem; text-decoration: none; color: inherit; border-top: 1px solid var(--pietra); padding-top: 1rem; }
.post-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.post-kick { font-family: var(--display); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--persiana); }
.post-src { font-size: 0.7rem; color: var(--grigio); white-space: nowrap; }
.post-img { display: block; aspect-ratio: 16/10; border-radius: 14px; background-size: cover; background-position: center; box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 6px 16px rgba(0,0,0,0.06); }
.post-tit { font-family: var(--serif); font-weight: 700; font-size: 1.08rem; line-height: 1.25; text-wrap: balance; }
.post-sub { font-family: var(--serif); font-size: 0.92rem; line-height: 1.45; color: var(--grigio); }
.bch-riga { display: flex; gap: 0.7rem; align-items: flex-start; text-decoration: none; color: inherit; border-top: 1px solid var(--pietra); padding-top: 1rem; }
.bch-ico { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 10px; background: var(--carta, #faf7f0); border: 1px solid var(--pietra); display: grid; place-items: center; font-size: 1rem; }
.bch-corpo { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.bch-tit { font-family: var(--serif); font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.bch-sub { font-size: 0.7rem; color: var(--grigio); }
.bch-estratto { font-family: var(--serif); font-size: 0.85rem; line-height: 1.4; color: var(--grigio); padding-left: 0.7rem; border-left: 2px solid var(--pietra); margin-top: 0.15rem; }

/* meteo in home: il momento attuale + le prossime 24 ore da scorrere col dito */
.om-tile.om-meteo { grid-column: 1 / -1; gap: 0.55rem; }
.om-meteo-now { display: flex; align-items: center; gap: 0.7rem; }
.om-meteo-ico { font-size: 2rem; line-height: 1; flex: none; }
.om-meteo-t { font-family: var(--display); font-size: 1.9rem; font-weight: 800; line-height: 1; flex: none; }
.om-meteo-d { font-family: var(--serif); font-size: 0.95rem; line-height: 1.3; display: flex; flex-direction: column; min-width: 0; }
.om-meteo-ore { display: flex; gap: 0.3rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -0.9rem; padding: 0.1rem 0.9rem 0.15rem; }
.om-meteo-ore::-webkit-scrollbar { display: none; }
.om-ora { flex: 0 0 auto; min-width: 3.1rem; display: flex; flex-direction: column; align-items: center; gap: 0.05rem; background: var(--carta, #faf7f0); border: 1px solid var(--pietra); border-radius: 10px; padding: 0.4rem 0.25rem; }
.om-ora-h { font-size: 0.62rem; color: var(--grigio); }
.om-ora-i { font-size: 1.1rem; line-height: 1.3; }
.om-ora-t { font-weight: 700; font-size: 0.82rem; }
.om-ora-p { font-size: 0.6rem; color: #2563eb; }

/* evento con locandina: card con l'immagine in alto e la data sovrapposta a sinistra */
.ev.ev-card { flex-direction: column; gap: 0; padding: 0; overflow: hidden; border-radius: 12px; }
.ev-cover { position: relative; width: 100%; aspect-ratio: 16 / 9; background-size: cover; background-position: center top; }
.ev-cover .ev-data { position: absolute; top: 0.7rem; left: 0.7rem; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.ev-card .ev-corpo { padding: 0.85rem 1.2rem 1rem; width: 100%; }

.wa-strip { display: flex; align-items: center; justify-content: center; gap: 0.75rem; background: #1FAF38; color: #fff; text-decoration: none; font-family: var(--display); padding: 0.55rem 1rem; }
.wa-strip:hover { background: #179A2F; }
.wa-logo { flex: none; }
.wa-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.wa-txt strong { font-weight: 800; font-size: 0.92rem; }
.wa-sub { font-size: 0.74rem; opacity: 0.92; font-weight: 400; }
.wa-btn { flex: none; background: #fff; color: #128C1F; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.02em; padding: 0.42rem 0.95rem; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,0.18); white-space: nowrap; }
.wa-strip:hover .wa-btn { transform: scale(1.04); }
/* variante della fascia per i club (sezione Sport): verde persiana, non WhatsApp */
.cta-squadra { background: var(--persiana); }
.cta-squadra:hover { background: var(--persiana-scuro); }
.cta-squadra .wa-btn { color: var(--persiana-scuro); }
@media (max-width: 480px) { .wa-sub { display: none; } }

/* ---- il pulsante "+" (crea un contenuto) e il how-to della prima visita ----
   (selettori doppi .fab.fab-crea: queste regole stanno PRIMA del blocco base .fab
    e a parità di specificità perderebbero — giallo, z-index e posizione inclusi) */
.fab.fab-crea { z-index: 910; background: var(--lampione); color: #23261f; }
.fab.fab-crea:hover { filter: brightness(1.06); }
.fab.fab-crea[aria-expanded="true"] svg { transform: rotate(45deg); }
.fab.fab-crea svg { transition: transform 0.18s; }
/* il velo scuro dietro al foglietto "Racconta il paese": gli dà risalto e copre anche la appbar */
.fab-velo { position: fixed; inset: 0; z-index: 902; background: rgba(24,26,21,0.6); animation: velofade 0.18s ease-out; }
.fab-velo[hidden] { display: none; }
@keyframes velofade { from { opacity: 0; } to { opacity: 1; } }
.fab-sheet.fab-sheet-crea { z-index: 905; border-radius: 14px; transform-origin: bottom right; animation: sheetpop 0.18s ease-out; }
@keyframes sheetpop { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  /* sul telefono il "+" sta sopra la barra di navigazione */
  .fab.fab-crea { bottom: calc(4.6rem + env(safe-area-inset-bottom, 0)); }
  .fab-sheet.fab-sheet-crea { bottom: calc(8.7rem + env(safe-area-inset-bottom, 0)); }
}
.fab.fab-brilla { z-index: 960; animation: fabbrilla 1.6s ease-out infinite; }
@keyframes fabbrilla {
  0% { box-shadow: 0 4px 14px rgba(0,0,0,0.3), 0 0 0 0 rgba(240,195,68,0.75); }
  70% { box-shadow: 0 4px 14px rgba(0,0,0,0.3), 0 0 0 22px rgba(240,195,68,0); }
  100% { box-shadow: 0 4px 14px rgba(0,0,0,0.3), 0 0 0 0 rgba(240,195,68,0); }
}
.howto { position: fixed; inset: 0; z-index: 950; background: rgba(24,26,21,0.78); display: flex; align-items: flex-end; justify-content: flex-end; padding: 1.2rem; padding-bottom: calc(9rem + env(safe-area-inset-bottom, 0)); }
/* display:flex qui sopra vincerebbe sull'attributo hidden del browser: va ribadito */
.howto[hidden] { display: none; }
.howto-card { background: #fff; border-radius: 18px; border-top: 5px solid var(--lampione); padding: 1.3rem 1.3rem 1.1rem; max-width: 340px; box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
.howto-kick { font-family: var(--display); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--persiana); margin: 0 0 0.3rem; }
.howto-tit { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; line-height: 1.2; margin: 0 0 0.5rem; }
.howto-txt { font-family: var(--serif); font-size: 0.95rem; line-height: 1.5; color: var(--grigio); margin: 0 0 1rem; }
.howto-btn { display: block; width: 100%; border: none; cursor: pointer; background: var(--persiana-scuro); color: #fff; font-family: var(--display); font-weight: 800; font-size: 0.95rem; padding: 0.7rem 1rem; border-radius: 12px; }
.howto-btn:hover { filter: brightness(1.12); }
.howto-skip { display: block; width: 100%; border: none; cursor: pointer; background: none; color: var(--grigio); font-family: var(--display); font-size: 0.82rem; padding: 0.6rem 0 0.1rem; }
body.howto-lock { overflow: hidden; }

.pills { display: flex; gap: 0.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0.2rem 0 0.9rem; margin: -0.4rem 0 0.6rem; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: 0 0 auto; font-family: var(--display); font-weight: 600; font-size: 0.9rem; padding: 0.42rem 1rem; border-radius: 999px; border: 1.5px solid var(--pietra); background: #fff; color: var(--persiana-scuro); cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.pill:hover { border-color: var(--persiana-scuro); }
.pill.on { background: var(--persiana-scuro); border-color: var(--persiana-scuro); color: #fff; }

.fab { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60; width: 3.4rem; height: 3.4rem; border-radius: 50%; border: none; background: var(--persiana-scuro); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.3); }
.fab:hover { filter: brightness(1.15); }
.fab[hidden] { display: none; }
.fab-sheet { position: fixed; right: 1.1rem; bottom: 5.2rem; z-index: 60; background: #fff; border: 1px solid var(--pietra); border-top: 4px solid var(--lampione); box-shadow: 0 6px 20px rgba(0,0,0,0.25); padding: 0.8rem 1rem; min-width: 240px; max-width: calc(100vw - 2.2rem); max-height: 60vh; overflow-y: auto; }
.fab-sheet-head { font-family: var(--display); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--persiana-scuro); margin: 0 0 0.5rem; }
.fab-sheet a { display: flex; flex-direction: column; gap: 0.05rem; padding: 0.5rem 0.2rem; text-decoration: none; color: inherit; border-top: 1px solid var(--carta-scura, #eee); }
.fab-sheet a:first-child { border-top: none; }
.fab-sheet a strong { font-family: var(--display); font-size: 0.92rem; }
.fab-sheet a span { font-size: 0.88rem; color: var(--persiana-scuro); }
.fab-sheet a:hover { background: var(--carta, #faf7f0); }

.orari { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 2rem; align-items: start; }
.orario-card[hidden] { display: none; }
.orario-righe { list-style: none; margin: 0.5rem 0 0.4rem; padding: 0; font-family: var(--serif); font-size: 0.95rem; line-height: 1.55; }
.orario-righe li { padding-left: 1rem; text-indent: -1rem; }
.orario-righe li::before { content: '· '; color: var(--lampione); font-weight: 700; }

.albo-intro { max-width: 640px; margin-bottom: 2rem; }
.albo-title { font-family: var(--display); font-weight: 800; font-size: 1.9rem; margin: 0 0 0.5rem; }
.albo-sub { font-family: var(--serif); font-size: 1.02rem; line-height: 1.6; color: var(--grigio); margin: 0; }
.atto { background: #fff; border: 1px solid var(--pietra); border-left: 4px solid var(--persiana); padding: 1.1rem 1.4rem 1.2rem; margin-bottom: 0.9rem; max-width: 760px; }
.atto-meta { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--grigio); margin: 0 0 0.25rem; }
.atto-title { font-family: var(--display); font-weight: 600; font-size: 1.02rem; margin: 0 0 0.5rem; color: var(--grigio); }
.atto-testo { font-family: var(--serif); font-size: 1.08rem; line-height: 1.65; margin: 0 0 0.5rem; }
.atto-links { margin: 0; font-size: 0.85rem; }
.atto-links a { color: var(--persiana-scuro); }
/* condivisione del singolo atto: tondi discreti in stile Coppolone
   (bianco, bordo verdone, solo icona) sotto ogni voce */
.share-mini { margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px dashed var(--pietra); gap: 0.5rem; }
.share-mini-eti { font-family: var(--display); font-weight: 600; font-size: 0.78rem; color: var(--grigio); margin-right: 0.2rem; }
.share-mini .share-tondo { flex: 0 0 auto; width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; background: #fff; border: 1px solid var(--persiana); color: var(--persiana-scuro); }
.share-mini .share-tondo:hover { background: #eef3ef; filter: none; }
/* l'atto raggiunto da un link condiviso si accende */
.atto { scroll-margin-top: 90px; }
.atto:target { border-left-color: var(--lampione); background: #fffdf4; }
.albo-nota { font-size: 0.8rem; color: var(--grigio); font-style: italic; max-width: 760px; margin-top: 1.6rem; }
.albo-cerca { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; max-width: 760px; margin: 0 0 1.4rem; }
.albo-cerca input[type=search] { flex: 1 1 240px; min-width: 180px; padding: 0.55rem 0.7rem; border: 1px solid var(--pietra); border-radius: 6px; font-family: var(--serif); font-size: 0.95rem; }
.albo-cerca select { padding: 0.55rem 0.5rem; border: 1px solid var(--pietra); border-radius: 6px; background: #fff; font-size: 0.9rem; }
.albo-cerca button { padding: 0.55rem 1.1rem; border: none; border-radius: 6px; background: var(--persiana); color: #fff; font-weight: 600; cursor: pointer; }
.albo-cerca button:hover { background: var(--persiana-scuro); }
.albo-reset { font-size: 0.85rem; color: var(--grigio); }
.albo-conta { font-size: 0.85rem; color: var(--grigio); max-width: 760px; margin: 0 0 0.9rem; }
@media (max-width: 560px) { .albo-cerca input[type=search] { flex-basis: 100%; } .albo-cerca select { flex: 1 1 45%; } }
/* calendario eventi */
.ev-mese { font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin: 1.8rem 0 0.8rem; text-transform: capitalize; border-bottom: 2px solid var(--persiana); padding-bottom: 0.3rem; max-width: 760px; }
.ev { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--pietra); padding: 1rem 1.2rem; margin-bottom: 0.7rem; max-width: 760px; align-items: flex-start; text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.ev:hover { border-color: var(--persiana); box-shadow: 0 2px 10px rgba(51,96,74,0.12); }
.ev-range { color: var(--persiana-scuro); font-weight: 700; }
.ev-piu { display: inline-block; margin-top: 0.4rem; font-size: 0.82rem; color: var(--persiana-scuro); font-weight: 600; }
/* scheda dettaglio evento */
.scheda-ev { max-width: 720px; margin: 0 auto; }
.scheda-cat { display: inline-block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--persiana-scuro); font-weight: 700; margin: 0.3rem 0; }
.scheda-info { background: #f6f4ef; border: 1px solid var(--pietra); border-radius: 8px; padding: 0.9rem 1.2rem; margin: 1rem 0; }
.scheda-riga { display: flex; gap: 0.6rem; align-items: baseline; margin: 0.3rem 0; font-size: 1.05rem; }
.scheda-ic { flex: 0 0 auto; }
.scheda-img { display: block; max-width: 100%; border-radius: 10px; margin: 1.2rem 0; }
.scheda-desc { font-family: var(--serif); font-size: 1.1rem; line-height: 1.7; }
.scheda-desc p { margin: 0 0 0.8rem; }

/* vetrina prossimi eventi in home */
.home-eventi { margin: 1.5rem 0; }
.home-eventi-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.8rem; }
.home-eventi-tutti { font-size: 0.85rem; color: var(--persiana-scuro); text-decoration: none; font-weight: 600; }
.home-eventi-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.7rem; }
.home-ev { display: flex; gap: 0.8rem; align-items: center; background: #fff; border: 1px solid var(--pietra); border-radius: 8px; padding: 0.7rem 0.9rem; text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.home-ev:hover { border-color: var(--persiana); box-shadow: 0 2px 10px rgba(51,96,74,0.12); }
.home-ev-data { flex: 0 0 auto; text-align: center; background: var(--persiana); color: #fff; border-radius: 7px; padding: 0.35rem 0.5rem; min-width: 2.9rem; }
.home-ev-g { display: block; font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1; }
.home-ev-m { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; }
.home-ev-corpo { display: flex; flex-direction: column; min-width: 0; }
.home-ev-tit { font-family: var(--display); font-weight: 600; font-size: 0.98rem; line-height: 1.2; }
.home-ev-meta { font-size: 0.78rem; color: var(--grigio); margin-top: 0.15rem; }

/* banner anteprima redazione (articolo non pubblicato) */
.anteprima-banner { max-width: 760px; margin: 0 auto 1.2rem; background: #fff7e6; border: 1px solid #e8c26a; border-left: 5px solid #d99a1c; border-radius: 8px; padding: 0.8rem 1.1rem; font-size: 0.9rem; color: #6b4e12; }

/* gallerie foto */
.gal-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gal-card { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--pietra); border-radius: 10px; overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.gal-card:hover { border-color: var(--persiana); box-shadow: 0 3px 12px rgba(51,96,74,0.14); }
.gal-card-img { position: relative; aspect-ratio: 4/3; background: #eee; overflow: hidden; }
.gal-card-img img { width: 100%; height: 100%; object-fit: cover; }
/* copertina a slider: le foto si dissolvono una nell'altra */
.gal-slider img { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.gal-slider img.attiva { opacity: 1; }
/* titolo in risalto sulla parte bassa della copertina; colore scelto in redazione */
.gal-card-velo { position: absolute; inset: 40% 0 0 0; background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.72)); }
.gal-card-tit { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.8rem 0.95rem; }
.gal-card-tit h3 { font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: 1.12; margin: 0; text-shadow: 0 1px 8px rgba(0,0,0,0.45); }
.gal-card-meta { font-size: 0.8rem; opacity: 0.85; margin: 0.25rem 0 0; }
.gal-arrivo { max-width: 900px; background: #eaf3ee; border: 1px solid var(--persiana); border-radius: 8px; padding: 0.7rem 1rem; font-size: 0.95rem; }
/* mosaico: celle quadrate, una ogni tanto raddoppia (colonna+riga); dense riempie i buchi */
.gal-griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); grid-auto-flow: dense; gap: 0.5rem; }
.gal-cella.grande { grid-column: span 2; grid-row: span 2; }
.gal-cella.grande .gal-thumb { aspect-ratio: auto; flex: 1; min-height: 0; }
.gal-thumb { position: relative; padding: 0; border: none; background: #eee; cursor: pointer; aspect-ratio: 1; overflow: hidden; border-radius: 6px; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.gal-thumb:hover img { transform: scale(1.05); }
/* foto oscurate: la tessera resta nel mosaico ma la foto è irriconoscibile */
.gal-osc { cursor: default; }
.gal-osc img { filter: blur(22px) saturate(0.5) brightness(0.5); transform: scale(1.3); }
.gal-osc:hover img { transform: scale(1.3); }
.osc-velo { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255,255,255,0.85); font-family: var(--display); font-weight: 700; font-size: 0.68rem; line-height: 1.6; text-align: center; pointer-events: none; }
/* conteggio reazioni nell'angolo della foto: pillola bianca stile Messenger */
.gal-reaz { position: absolute; left: 0.35rem; bottom: 0.35rem; display: flex; align-items: center; gap: 0.15rem; background: #fff; color: #2b2b2b; border-radius: 999px; padding: 0.14rem 0.5rem; font-size: 0.72rem; font-family: var(--display); font-weight: 700; box-shadow: 0 1px 6px rgba(0,0,0,0.3); pointer-events: none; }
.gal-reaz[hidden] { display: none; }
/* deterrente al salvataggio al volo: niente long-press/trascina (il download "vero" è /foto-hd) */
.gal-thumb img, .lb-img { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.gal-cella { display: flex; flex-direction: column; min-width: 0; }
/* lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 1000; align-items: center; justify-content: center; }
.lightbox.aperto { display: flex; }
.lb-img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.lb-close { position: absolute; top: 1rem; right: 1.2rem; background: none; border: none; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 2.5rem; width: 3rem; height: 4rem; cursor: pointer; border-radius: 6px; }
.lb-prev { left: 0.6rem; } .lb-next { right: 0.6rem; }
.lb-barra { position: absolute; bottom: 1rem; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 0 0.8rem; }
/* barra icone: WhatsApp, share nativo, reaction */
.lb-icone { display: flex; gap: 0.7rem; }
.lb-ico { position: relative; display: flex; align-items: center; justify-content: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: rgba(255,255,255,0.16); border: none; color: #fff; font-size: 1.35rem; line-height: 1; cursor: pointer; text-decoration: none; transition: transform 0.12s, background 0.12s; }
.lb-ico:hover { background: rgba(255,255,255,0.28); }
.lb-ico:active { transform: scale(0.88); }
.lb-ico.fatto { background: #25D366; }
.lb-react-n { position: absolute; top: -0.25rem; right: -0.35rem; background: #e0245e; color: #fff; font-family: var(--display); font-weight: 800; font-size: 0.62rem; line-height: 1; border-radius: 999px; padding: 0.18rem 0.34rem; }
.lb-react.pop { animation: lbPop 0.45s ease; }
@keyframes lbPop { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 65% { transform: scale(0.9); } 100% { transform: scale(1); } }
/* picker delle emoji: sboccia dal pulsante reaction */
.lb-picker { display: flex; gap: 0.15rem; background: #fff; border-radius: 999px; padding: 0.3rem 0.55rem; box-shadow: 0 8px 30px rgba(0,0,0,0.35); animation: pickerSu 0.16s ease; transform-origin: bottom center; }
.lb-picker[hidden] { display: none; }
@keyframes pickerSu { from { transform: scale(0.4) translateY(12px); opacity: 0; } }
.lb-picker button { position: relative; background: none; border: none; border-radius: 50%; font-size: 1.55rem; line-height: 1; padding: 0.3rem 0.35rem; cursor: pointer; transition: transform 0.12s; animation: emojiSu 0.25s backwards; }
@keyframes emojiSu { from { transform: translateY(14px) scale(0.4); opacity: 0; } }
.lb-picker button:hover { transform: scale(1.3) translateY(-4px); }
.lb-picker button.attiva { background: #eaf3ee; box-shadow: inset 0 0 0 2px var(--persiana); }
.lb-picker button i { position: absolute; bottom: -0.15rem; right: -0.05rem; font-style: normal; font-family: var(--display); font-weight: 800; font-size: 0.58rem; background: #333; color: #fff; border-radius: 999px; padding: 0.1rem 0.28rem; }
/* sciame di emoji stile TikTok quando lasci una reazione */
.lb-float { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lb-float span { position: absolute; bottom: 6.5rem; font-size: 1.8rem; opacity: 0; animation: volaSu 1.4s ease-out forwards; }
@keyframes volaSu {
  0% { transform: translate(0, 0) scale(0.4) rotate(0); opacity: 0; }
  12% { opacity: 1; transform: translate(0, -12px) scale(1.25) rotate(0); }
  100% { transform: translate(var(--drift, 0), -46vh) scale(1) rotate(var(--rot, 0)); opacity: 0; }
}
.lb-hd { background: #fff; color: var(--persiana-scuro); padding: 0.55rem 1.2rem; border-radius: 999px; border: none; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 0.9rem; cursor: pointer; }
/* richiesta di cancellazione: presente ma discreta */
.lb-rim { background: none; border: none; color: rgba(255,255,255,0.65); font-size: 0.78rem; text-decoration: underline; cursor: pointer; padding: 0.1rem; }
.lb-rim:hover { color: #fff; }
/* condivisione della pagina, in testa alla galleria */
.gal-condividi { display: flex; gap: 0.5rem; margin: 0.7rem 0 0; }
@media (max-width: 560px) { .lb-img { max-height: 66vh; } .lb-nav { width: 2.2rem; height: 3.2rem; font-size: 1.8rem; } }
/* modal iscrizione al volo (reaction/HD senza accesso) */
.gal-modal { position: fixed; inset: 0; background: rgba(20,20,20,0.6); z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.gal-modal[hidden] { display: none; }
.gal-modal-card { position: relative; background: #fff; border-radius: 14px; padding: 1.3rem 1.3rem 1.1rem; width: 100%; max-width: 380px; animation: pickerSu 0.18s ease; }
.gal-modal-x { position: absolute; top: 0.5rem; right: 0.7rem; background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: #888; }
.gal-modal-card h3 { font-family: var(--display); font-weight: 800; margin: 0 0 0.3rem; font-size: 1.25rem; }
.gm-sotto { font-size: 0.88rem; color: #555; margin: 0 0 0.9rem; }
.gm-errore { background: #fdeaea; border: 1px solid #e5b4b4; color: #8a1f1f; border-radius: 8px; padding: 0.5rem 0.7rem; font-size: 0.85rem; margin: 0 0 0.7rem; }
.gal-modal-card form { display: flex; flex-direction: column; gap: 0.55rem; }
.gm-riga { display: flex; gap: 0.55rem; }
.gm-riga input { min-width: 0; flex: 1; }
.gal-modal-card input, .gal-modal-card textarea { width: 100%; border: 1px solid var(--pietra); border-radius: 8px; padding: 0.6rem 0.7rem; font-size: 0.95rem; font-family: inherit; resize: vertical; }
.gm-invia { margin-top: 0.2rem; }
.gm-switch { font-size: 0.85rem; text-align: center; margin: 0.8rem 0 0; }
@media (max-width: 640px) {
  .gal-modal { align-items: flex-end; padding: 0; }
  .gal-modal-card { max-width: none; border-radius: 16px 16px 0 0; padding-bottom: max(1.1rem, env(safe-area-inset-bottom)); animation: gmSali 0.22s ease; }
  @keyframes gmSali { from { transform: translateY(60%); } }
}
.ev-data { flex: 0 0 auto; text-align: center; background: var(--persiana); color: #fff; border-radius: 8px; padding: 0.4rem 0.6rem; min-width: 3.2rem; }
.ev-giorno-sett { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.9; }
.ev-giorno { display: block; font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.1; }
.ev-corpo { flex: 1; }
.ev-quando { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grigio); margin: 0 0 0.2rem; }
.ev-cat { color: var(--persiana-scuro); font-weight: 600; }
.ev-titolo { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin: 0 0 0.35rem; }
.ev-desc { font-family: var(--serif); font-size: 1rem; line-height: 1.55; margin: 0; color: var(--grigio); }

/* pulsanti e form pubblici */
.btn { display: inline-block; padding: 0.6rem 1.3rem; border: none; border-radius: 6px; background: var(--persiana); color: #fff; font-weight: 600; font-size: 0.95rem; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--persiana-scuro); }
.field-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.field-row > div { flex: 1; min-width: 140px; }

/* barra account nella testata */
.masthead-account { font-size: 0.82rem; color: var(--grigio); }
.masthead-account a { color: var(--persiana-scuro); text-decoration: none; }
.masthead-account a:hover { text-decoration: underline; }
.linklike-account { background: none; border: none; padding: 0; color: var(--persiana-scuro); cursor: pointer; font: inherit; text-decoration: underline; }
.catnav-segnala { font-weight: 700 !important; }

/* pagine registrazione / accesso / segnala */
.auth-wrap { max-width: 560px; margin: 1rem auto 2rem; }
.auth-form { display: flex; flex-direction: column; gap: 0.3rem; background: #fff; border: 1px solid var(--pietra); padding: 1.4rem; border-radius: 8px; }
.auth-form label { font-weight: 600; font-size: 0.9rem; margin-top: 0.6rem; }
.auth-form input:not([type=radio]):not([type=file]), .auth-form textarea { padding: 0.6rem 0.7rem; border: 1px solid var(--pietra); border-radius: 6px; font-family: var(--serif); font-size: 1rem; width: 100%; }
.auth-form .btn { margin-top: 1rem; align-self: flex-start; }
.auth-hint { font-weight: 400; color: var(--grigio); font-size: 0.82rem; }
.auth-errore { background: #fbeaea; color: #a12; border: 1px solid #e5b8b8; padding: 0.7rem 1rem; border-radius: 6px; max-width: 560px; }
.auth-alt { margin-top: 1rem; font-size: 0.92rem; }
.auth-alt a { color: var(--persiana-scuro); }
/* ===== la porta del giornale: /entra e /registrati =====
   Una tessera sola al centro: testata verde persiana col marchio, la gradinata
   (lo skyline del paese) che ritaglia in bianco il bordo della fascia, modulo
   arioso sotto. Il giallo lampione accende solo l'articolo «il» del marchio. */
.porta { position: fixed; inset: 0; z-index: 1050; background: rgba(24,26,21,0.6); overflow-y: auto; display: flex; align-items: center; justify-content: center; padding: 1.2rem 0.9rem; -webkit-overflow-scrolling: touch; }
.porta-card { width: 100%; max-width: 440px; margin: auto; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 50px rgba(20,22,26,0.35); animation: porta-appare 0.22s ease-out; }
@keyframes porta-appare { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .porta-card { animation: none; } }
.porta-testa { position: relative; background: var(--persiana); color: #fff; text-align: center; padding: 1.5rem 1rem 0; }
.porta-x { position: absolute; top: 0.7rem; right: 0.7rem; background: none; border: none; color: #fff; opacity: 0.75; cursor: pointer; padding: 0.35rem; line-height: 0; }
.porta-x:hover { opacity: 1; }
.porta-x svg { width: 22px; height: 22px; }
.porta-maniglia { display: none; }
.porta-brand { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.75rem; letter-spacing: -0.015em; line-height: 1; }
.porta-brand em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 0.6em; vertical-align: 0.3em; margin-right: 0.1em; color: var(--lampione); }
.porta-motto { margin: 0.45rem 0 1.2rem; font-family: var(--serif); font-style: italic; font-size: 0.92rem; opacity: 0.82; }
.porta-gradinata { line-height: 0; color: #fff; }
.porta-gradinata svg { display: block; width: 100%; height: 34px; }
.porta-corpo { padding: 1.5rem 1.5rem 1.7rem; }
.porta-corpo[hidden] { display: none; }
.porta-tit { margin: 0 0 0.35rem; font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.01em; }
.porta-sub { margin: 0 0 1.1rem; color: var(--grigio); font-size: 0.95rem; line-height: 1.5; }
.porta-corpo label { display: block; font-weight: 600; font-size: 0.88rem; margin: 0.95rem 0 0.3rem; }
.porta-corpo .field-row > div { flex: 1 1 10rem; }
.porta-corpo .field-row label { margin-top: 0; }
.porta-corpo .field-row ~ label { margin-top: 0.95rem; }
.porta-corpo input:not([type=checkbox]) { width: 100%; padding: 0.7rem 0.8rem; border: 1px solid var(--pietra); border-radius: 8px; font-family: var(--serif); font-size: 1rem; background: var(--carta); transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.porta-corpo input:not([type=checkbox]):focus { outline: none; background: #fff; border-color: var(--persiana); box-shadow: 0 0 0 3px rgba(51,96,74,0.16); }
.porta-btn { width: 100%; margin-top: 1.3rem; padding: 0.85rem 1rem; font-size: 1.02rem; border-radius: 9px; }
.porta-privacy { margin: 0.9rem 0 0; font-size: 0.8rem; color: var(--grigio); line-height: 1.5; }
.porta-privacy a { color: var(--persiana-scuro); }
.porta-indietro { margin: 1.1rem 0 0; font-size: 0.9rem; }
.porta-indietro a { color: var(--persiana-scuro); }
.porta-alt { text-align: center; margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--pietra); font-size: 0.93rem; }
.porta-alt a { color: var(--persiana-scuro); font-weight: 600; }
.porta .auth-errore { max-width: none; margin: 0 0 1rem; font-size: 0.92rem; }
.porta-avviso { margin: 0 0 1rem; padding: 0.6rem 0.8rem; background: rgba(224,169,62,0.14); border: 1px solid rgba(224,169,62,0.5); border-radius: 8px; font-size: 0.88rem; line-height: 1.45; }

/* interruttore «Resta collegato» */
label.porta-switch { display: flex; align-items: center; gap: 0.65rem; margin: 1.1rem 0 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.porta-switch input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.porta-switch-slitta { flex: 0 0 auto; width: 2.6rem; height: 1.5rem; border-radius: 999px; background: var(--pietra); position: relative; transition: background 0.18s ease; }
.porta-switch-slitta::after { content: ''; position: absolute; top: 0.18rem; left: 0.2rem; width: 1.14rem; height: 1.14rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.18s ease; }
.porta-switch input:checked + .porta-switch-slitta { background: var(--persiana); }
.porta-switch input:checked + .porta-switch-slitta::after { transform: translateX(1.05rem); }
.porta-switch input:focus-visible + .porta-switch-slitta { outline: 3px solid var(--persiana); outline-offset: 2px; }
.porta-switch-testo { font-size: 0.88rem; font-weight: 600; }

/* su mobile la porta è un foglietto dal basso, come gli altri modal del sito */
@media (max-width: 640px) {
  .porta { align-items: flex-end; padding: 2.2rem 0 0; }
  .porta-card { max-width: none; margin: auto 0 0; border-radius: 18px 18px 0 0; animation-name: porta-sale; }
  @keyframes porta-sale { from { opacity: 0.4; transform: translateY(40px); } to { opacity: 1; transform: none; } }
  .porta-maniglia { display: block; position: absolute; top: 0.55rem; left: 50%; transform: translateX(-50%); width: 44px; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.45); }
  .porta-testa { padding-top: 1.8rem; }
}

/* mostra/nascondi password (stesso occhietto del login redazione) */
.pw-wrap { position: relative; display: block; }
/* anche .porta-corpo davanti: senza, la regola più specifica degli input della
   porta vincerebbe sul padding e l'occhietto coprirebbe il testo */
.pw-wrap input, .porta-corpo .pw-wrap input:not([type=checkbox]) { padding-right: 2.9rem; box-sizing: border-box; }
.pw-eye { position: absolute; top: 50%; right: 0.5rem; transform: translateY(-50%); background: none; border: none; padding: 0.3rem; cursor: pointer; font-size: 1.15rem; line-height: 1; opacity: 0.65; }
.pw-eye:hover { opacity: 1; }

/* registrazione: le due strade, descritte per quello che permettono di fare */
.reg-scelte { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1.2rem; }
.reg-scelta { display: flex; align-items: center; gap: 0.9rem; text-align: left; width: 100%; background: var(--carta); border: 1px solid var(--pietra); border-radius: 11px; padding: 1rem 1.05rem; cursor: pointer; text-decoration: none; color: inherit; font: inherit; transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.reg-scelta:hover, .reg-scelta:focus-visible { background: #fff; border-color: var(--persiana); box-shadow: 0 3px 12px rgba(39,73,47,0.13); }
.reg-scelta-icona { flex: 0 0 auto; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: rgba(51,96,74,0.1); font-size: 1.3rem; line-height: 1; }
.reg-scelta-testo { display: flex; flex-direction: column; gap: 0.22rem; }
.reg-scelta-testo strong { font-family: var(--display); font-weight: 800; font-size: 1.02rem; color: var(--persiana-scuro); line-height: 1.25; }
.reg-scelta-testo span { font-size: 0.88rem; color: var(--grigio); line-height: 1.45; }
.reg-scelta-freccia { margin-left: auto; font-size: 1.55rem; color: var(--persiana); opacity: 0.5; flex: 0 0 auto; }

/* form guidato «Crea la tua squadra» */
.club-passi { font-family: var(--display); font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--persiana-scuro); margin: 0 0 0.2rem; }
.club-passo { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.club-passo[hidden] { display: none; }
.auth-form select { padding: 0.6rem 0.7rem; border: 1px solid var(--pietra); border-radius: 6px; font-family: var(--serif); font-size: 1rem; width: 100%; background: #fff; }
.club-nav { display: flex; gap: 0.7rem; margin-top: 1rem; }
.club-nav .btn { margin-top: 0; }
.btn-chiaro { background: #fff; color: var(--persiana-scuro); border: 1px solid var(--pietra); }
.segnala-firma { border: 1px solid var(--pietra); border-radius: 6px; padding: 0.8rem 1rem; margin-top: 0.6rem; }
.segnala-firma legend { font-weight: 600; font-size: 0.9rem; padding: 0 0.4rem; }
.segnala-firma .radio { display: block; font-weight: 400; margin: 0.2rem 0; }
.segnala-ok { background: #eaf3ee; border: 1px solid var(--persiana); border-radius: 8px; padding: 1.5rem; text-align: center; }
.segnala-ok a { color: var(--persiana-scuro); }

/* commenti sotto gli articoli */
.commenti { max-width: 720px; margin: 2rem auto 0; }
.commento { border-top: 1px solid var(--pietra); padding: 0.9rem 0; }
.commento-autore { font-weight: 600; font-size: 0.92rem; margin: 0 0 0.2rem; }
.commento-data { font-weight: 400; color: var(--grigio); font-size: 0.8rem; margin-left: 0.4rem; }
.commento-testo { font-family: var(--serif); font-size: 1rem; line-height: 1.55; margin: 0; white-space: pre-wrap; }
.commenti-vuoto { color: var(--grigio); font-style: italic; }
.commenti-login { background: #f5f3ee; border: 1px solid var(--pietra); border-radius: 6px; padding: 0.9rem 1.1rem; }
.commenti-login a { color: var(--persiana-scuro); font-weight: 600; }
.commento-form { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 1.2rem; }
.commento-form textarea { padding: 0.7rem; border: 1px solid var(--pietra); border-radius: 6px; font-family: var(--serif); font-size: 1rem; }
.commento-form .btn { align-self: flex-start; }
.segn-foto { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.6rem 0; }
.segn-foto img { height: 90px; width: auto; border-radius: 6px; border: 1px solid var(--pietra); }

/* footer: proponi evento */
.footer-cta { margin: 0.8rem 0; }
.footer-evento { background: #fff; color: var(--persiana-scuro); border: 1px solid #fff; border-radius: 20px; padding: 0.5rem 1.1rem; font-weight: 700; font-size: 0.9rem; cursor: pointer; }
.footer-evento:hover { background: rgba(255,255,255,0.85); }

/* modal proponi evento */
.modal-ev { display: none; position: fixed; inset: 0; background: rgba(20,25,20,0.6); z-index: 1000; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 4vh 1rem; }
.modal-ev.aperto { display: flex; }
.modal-ev-box { background: #fff; border-radius: 12px; max-width: 520px; width: 100%; padding: 1.6rem 1.6rem 1.8rem; position: relative; }
.modal-ev-box h3 { font-family: var(--display); font-weight: 800; font-size: 1.35rem; margin: 0 0 0.3rem; color: #222; }
.modal-ev-sub { color: var(--grigio); margin: 0 0 1rem; }
.modal-ev-close { position: absolute; top: 0.6rem; right: 0.9rem; background: none; border: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--grigio); }
.modal-ev-back { background: none; border: none; color: var(--persiana-scuro); cursor: pointer; padding: 0; margin-bottom: 0.6rem; font-size: 0.9rem; }
.modal-ev-scelte { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.modal-ev-scelta { flex: 1; min-width: 180px; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; background: #f6f4ef; border: 1px solid var(--pietra); border-radius: 10px; padding: 1.2rem 0.8rem; cursor: pointer; font-size: 1.8rem; }
.modal-ev-scelta span { font-family: var(--display); font-weight: 700; font-size: 1rem; color: #222; }
.modal-ev-scelta small { font-size: 0.78rem; color: var(--grigio); font-weight: 400; }
.modal-ev-scelta:hover { border-color: var(--persiana); background: #eef2ec; }
.modal-ev form label { display: block; font-weight: 600; font-size: 0.9rem; margin-top: 0.7rem; }
.modal-ev form input:not([type=file]), .modal-ev form textarea, .modal-ev form select { width: 100%; padding: 0.55rem 0.7rem; border: 1px solid var(--pietra); border-radius: 6px; font-family: var(--serif); font-size: 1rem; margin-top: 0.2rem; }
.modal-ev form input[type=file] { margin-top: 0.3rem; }
.modal-ev form .btn { margin-top: 1.1rem; }
.modal-ev .field-row label { flex: 1; min-width: 110px; }
.modal-ev form label.modal-consenso { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 400; font-size: 0.85rem; color: var(--grigio); }
/* il selettore va battuto in specificità: la regola generale dei campi dà width:100%
   anche al checkbox, che largo quanto il modal spingeva il testo sul bordo destro */
.modal-ev form label.modal-consenso input { width: auto; margin: 0.15rem 0 0; flex: none; }

/* scelta della foto: un invito grande da toccare, poi l'anteprima di ciò che hai scelto */
.file-nascosto { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.modal-ev form .file-scegli { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.8rem; padding: 1rem; border: 1.5px dashed var(--persiana); border-radius: 12px; background: #f4f7f3; cursor: pointer; color: var(--persiana-scuro); }
.file-scegli-ico { flex: none; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.file-scegli-txt { display: flex; flex-direction: column; gap: 0.1rem; }
.file-scegli-txt strong { font-family: var(--display); font-size: 0.95rem; }
.file-scegli-txt span { font-size: 0.78rem; color: var(--grigio); }
.file-anteprima { margin-top: 0.8rem; border: 1px solid var(--pietra); border-radius: 12px; overflow: hidden; }
.file-anteprima img { display: block; width: 100%; max-height: 240px; object-fit: cover; }
.file-anteprima-info { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.5rem 0.8rem; }
.file-anteprima-nome { font-size: 0.78rem; color: var(--grigio); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.modal-ev form .file-cambia { flex: none; font-family: var(--display); font-weight: 700; font-size: 0.78rem; color: var(--persiana-scuro); border: 1px solid var(--pietra); border-radius: 999px; padding: 0.3rem 0.8rem; cursor: pointer; margin: 0; display: inline-block; }

/* "cosa mostra": chips nostre al posto della tendina di sistema */
.modal-etichetta { display: block; font-weight: 600; font-size: 0.9rem; margin-top: 0.9rem; }
.modal-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; max-height: 7.4rem; overflow-y: auto; padding-bottom: 0.15rem; }
.chip-mini { flex: none; font-family: var(--display); font-weight: 600; font-size: 0.8rem; padding: 0.34rem 0.75rem; border-radius: 999px; border: 1.5px solid var(--pietra); background: #fff; color: var(--persiana-scuro); cursor: pointer; }
.chip-mini.on { background: var(--persiana-scuro); border-color: var(--persiana-scuro); color: #fff; }

/* il pulsante d'invio resta in vista anche quando il modulo scorre */
.modal-azioni { position: sticky; bottom: -1px; background: #fff; padding: 0.7rem 0 0.15rem; margin-top: 0.9rem; box-shadow: 0 -10px 14px -12px rgba(0,0,0,0.35); }
.modal-ev form .modal-azioni .btn { width: 100%; margin: 0; }
@media (max-width: 640px) { .modal-azioni { padding-bottom: calc(env(safe-area-inset-bottom, 0) * 0.5); } }
.modal-ev fieldset.modal-firma { border: 1px solid var(--pietra); border-radius: 8px; margin: 0.7rem 0 0; padding: 0.55rem 0.8rem 0.7rem; }
.modal-firma legend { font-weight: 600; font-size: 0.9rem; padding: 0 0.3rem; }
.modal-ev .radio { display: flex; gap: 0.45rem; align-items: center; font-weight: 400; margin-top: 0.35rem; }
.modal-ev .radio input { width: auto; margin: 0; }

/* su mobile i modal diventano bottom sheet: scivolano dal basso, larghezza piena,
   maniglia in alto, pulsante d'invio comodo per il pollice */
@media (max-width: 640px) {
  .modal-ev { padding: 0; align-items: flex-end; }
  .modal-ev-box {
    max-width: none; border-radius: 18px 18px 0 0;
    max-height: 92dvh; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 1.1rem 1.1rem calc(1.5rem + env(safe-area-inset-bottom, 0));
  }
  .modal-ev-box::before { content: ''; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--pietra); margin: 0 auto 0.9rem; }
  .modal-ev.aperto .modal-ev-box { animation: sheetsu 0.22s ease-out; }
  .modal-ev form .btn { width: 100%; padding: 0.85rem 1rem; font-size: 1rem; border-radius: 12px; }
}
@keyframes sheetsu { from { transform: translateY(36px); opacity: 0.6; } to { transform: none; opacity: 1; } }

/* ---- albo: navigatore giornaliero (‹ 15 Luglio ›) ---- */
.albo-giorno {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  max-width: 760px; margin: 0 0 1.3rem; padding: 0.5rem 0.6rem;
  background: #fff; border: 1px solid var(--pietra); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.albo-gfreccia {
  flex: 0 0 auto; width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  border-radius: 9px; text-decoration: none; font-size: 1.5rem; line-height: 1;
  color: #fff; background: var(--persiana); transition: background 0.15s;
}
.albo-gfreccia:hover { background: var(--persiana-scuro); }
.albo-gfreccia.off { background: var(--pietra); color: var(--grigio); cursor: default; opacity: 0.55; }
.albo-gdata { text-align: center; line-height: 1.25; min-width: 0; }
.albo-gdata strong {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: 1.1rem; color: var(--lana);
}
.albo-gconta { font-size: 0.76rem; color: var(--grigio); font-weight: 600; }

/* ===== Foto dei lettori: form «Manda una tua foto» ===== */
.tua-foto {
  max-width: 720px; margin: 2.2rem auto; padding: 1.2rem 1.3rem;
  background: #fff; border: 1px solid var(--pietra); border-radius: 14px;
}
.tua-foto-tit {
  display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.35rem;
  font-family: var(--display); font-size: 1.15rem;
}
.tua-foto-tit svg { width: 22px; height: 22px; color: var(--persiana); flex: none; }
.tua-foto-sub { margin: 0 0 0.8rem; color: var(--grigio); font-size: 0.92rem; line-height: 1.5; }
.tua-foto-sub a { color: var(--persiana); }
.tua-foto-ok {
  margin: 0 0 0.8rem; padding: 0.6rem 0.8rem; border-radius: 10px;
  background: #ecf5ee; border: 1px solid #bcd8c3; color: var(--persiana-scuro); font-weight: 600;
}
.tua-foto-errore {
  margin: 0 0 0.8rem; padding: 0.6rem 0.8rem; border-radius: 10px;
  background: #fbeeee; border: 1px solid #e3bcbc; color: #8a2f2f; font-weight: 600;
}
.tua-foto-piega summary {
  cursor: pointer; font-weight: 700; color: var(--persiana);
  padding: 0.45rem 0; user-select: none;
}
.tua-foto-form { display: grid; gap: 0.75rem; padding-top: 0.5rem; }
.tua-foto-form label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.9rem; }
.tua-foto-form input[type="text"], .tua-foto-form input[type="number"],
.tua-foto-form input[type="date"], .tua-foto-form select, .tua-foto-form input[type="file"] {
  font: inherit; font-weight: 400; padding: 0.5rem 0.6rem;
  border: 1px solid var(--pietra); border-radius: 8px; background: var(--carta); color: var(--lana);
  max-width: 100%;
}
.tua-foto-riga { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 560px) { .tua-foto-riga { grid-template-columns: 1fr; } }
.tua-foto-hint { font-weight: 400; color: var(--grigio); font-size: 0.82rem; }
.tua-foto-consenso { display: flex !important; gap: 0.5rem; align-items: flex-start; font-weight: 500 !important; font-size: 0.88rem !important; line-height: 1.45; }
.tua-foto-consenso input { margin-top: 0.2rem; }
.tua-foto-invia {
  justify-self: start; font: inherit; font-weight: 700; cursor: pointer;
  padding: 0.6rem 1.3rem; border: 0; border-radius: 999px;
  background: var(--persiana); color: #fff;
}
.tua-foto-invia:hover { background: var(--persiana-scuro); }
.tua-foto-nota { margin: 0; color: var(--grigio); font-size: 0.8rem; }
.tua-foto-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ===== Galleria storica: Muro nel tempo — ora è una gal-card come le altre ===== */

/* il filtro per epoca: uno scroller orizzontale di pastiglie, appiccicato in alto */
.galstorica-filtri {
  position: sticky; top: 0; z-index: 40;
  display: flex; gap: 0.4rem; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 900px; margin: 0.8rem auto 0; padding: 0.55rem 1rem;
  background: var(--carta);
  box-shadow: 0 6px 8px -8px rgba(38, 41, 48, 0.35);
}
.galstorica-filtri::-webkit-scrollbar { display: none; }
.galstorica-chip {
  flex: none; font: inherit; font-family: var(--display); font-weight: 600; font-size: 0.88rem;
  cursor: pointer; padding: 0.32rem 0.9rem; border: 1px solid var(--pietra); border-radius: 999px;
  background: #fff; color: var(--lana);
}
.galstorica-chip.attivo { background: var(--persiana); border-color: var(--persiana); color: #fff; }

/* il muro di foto: una fotografia per riga, a tutto schermo su mobile;
   le didascalie vivono nel lightbox */
.galstorica { max-width: 900px; margin: 0 auto 2.5rem; padding: 0; }
.galstorica-epoca {
  display: flex; align-items: center; gap: 0.8rem; margin: 1.6rem 0 0.6rem; padding: 0 1rem;
  font-family: var(--display); font-size: 1.15rem;
}
.galstorica-epoca::after { content: ""; flex: 1; height: 1px; background: var(--pietra); }
.galstorica-griglia { display: grid; grid-template-columns: 1fr; gap: 10px; }
.galstorica-tile {
  position: relative; margin: 0; overflow: hidden; background: var(--pietra);
}
@media (min-width: 700px) {
  .galstorica-griglia { gap: 14px; }
  .galstorica-tile { border-radius: 10px; }
}
.galstorica-apri { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.galstorica-apri img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* la versione a colori sta sopra quella in bianco e nero: si rivela dal centro
   verso l'esterno con un alone sfumato (maschera radiale che cresce) */
.galstorica-img-colore, .gallight-img-colore {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(circle, #000 0%, #000 55%, transparent 100%);
  mask-image: radial-gradient(circle, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: 0% 0%; mask-size: 0% 0%;
  transition: -webkit-mask-size 1.1s ease-in-out, mask-size 1.1s ease-in-out;
}
.galstorica-img-colore { object-fit: cover; }
.galstorica-tile.colori .galstorica-img-colore,
.gallight-quadro.colori .gallight-img-colore {
  -webkit-mask-size: 300% 300%; mask-size: 300% 300%;
}
.galstorica-tile-colore {
  position: absolute; right: 10px; bottom: 10px; width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(251, 250, 247, 0.88); color: var(--lana);
  box-shadow: 0 1px 6px rgba(20, 22, 26, 0.35);
}
.galstorica-tile-colore svg { width: 1.3rem; height: 1.3rem; transition: transform 0.5s; }
.galstorica-tile-colore.attivo { background: var(--lampione); color: #fff; }
.galstorica-tile-colore.attivo svg { transform: rotate(180deg); }

/* lightbox: la foto ingrandita con la sua storia */
.gallight {
  position: fixed; inset: 0; z-index: 200; display: flex;
  background: rgba(20, 22, 26, 0.96); color: #fff;
}
.gallight[hidden] { display: none; }
.gallight-fig { margin: auto; width: min(100%, 860px); padding: 0 0.6rem; }
.gallight-quadro { position: relative; }
.gallight-img {
  display: block; width: 100%; max-height: 72vh; object-fit: contain;
  border-radius: 8px; background: #000;
}
.gallight-img-colore { max-height: 72vh; object-fit: contain; border-radius: 8px; }
.gallight-quadro.subito .gallight-img-colore { transition: none; }
.gallight-colore[hidden] { display: none; }
.gallight-colore {
  display: block; margin: 0.7rem auto 0;
  font: inherit; font-family: var(--display); font-weight: 700; font-size: 0.85rem;
  padding: 0.45rem 1rem; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(251, 250, 247, 0.92); color: var(--lana); white-space: nowrap;
}
.gallight-dida { margin: 0.7rem 0.2rem 0; display: grid; gap: 0.25rem; }
.gallight-dida p { margin: 0; }
.gallight-riga1 { font-family: var(--display); font-size: 0.95rem; }
.gallight-luogo { color: var(--lampione); font-weight: 600; }
.gallight-testo { font-family: var(--serif); font-size: 0.95rem; line-height: 1.45; }
.gallight-credito { color: rgba(255, 255, 255, 0.65); font-size: 0.8rem; }
.gallight-x {
  position: absolute; top: 0.7rem; right: 0.7rem; width: 2.4rem; height: 2.4rem; z-index: 2;
  border: 0; border-radius: 50%; cursor: pointer; font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.14); color: #fff;
}
.gallight-freccia {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; cursor: pointer;
  font-size: 1.6rem; line-height: 1; background: rgba(255, 255, 255, 0.14); color: #fff;
}
.gallight-freccia:disabled { opacity: 0.25; cursor: default; }
.gallight-prev { left: 0.5rem; }
.gallight-next { right: 0.5rem; }
@media (max-width: 700px) {
  .gallight-freccia { top: auto; bottom: 0.8rem; transform: none; }
}

/* ---- Annuari sportivi: indice per stagione ---- */
.sq-stagione { margin: 0 0 1.8rem; }
.sq-stagione-tit { display: flex; align-items: center; gap: 0.8rem; font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--lana); margin: 1.2rem 0 0.9rem; }
.sq-stagione-tit::after { content: ""; flex: 1; height: 1px; background: var(--pietra); }
.sq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.sq-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pietra); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.sq-card:hover { border-color: var(--persiana); box-shadow: 0 6px 20px rgba(38,73,47,0.09); transform: translateY(-2px); }
.sq-card:hover .attr-scopri svg { transform: translateX(3px); }
.sq-foto { position: relative; display: block; aspect-ratio: 16 / 9; background: #eceae4; }
.sq-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sq-foto-vuota { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; color: #c9c6bd; }
.sq-tag { position: absolute; left: 0.7rem; bottom: 0.7rem; margin: 0; }
.sq-corpo { display: flex; flex-direction: column; padding: 0.9rem 1.1rem 1.1rem; flex: 1; }
.sq-nome { font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1.15; margin: 0 0 0.3rem; color: var(--lana); }
.sq-meta { font-family: var(--display); font-weight: 600; font-size: 0.88rem; color: var(--grigio); margin: 0 0 0.7rem; }
.sq-corpo .attr-scopri { margin-top: auto; }
@media (max-width: 680px) { .sq-grid { grid-template-columns: 1fr; gap: 1rem; } }

/* slider dei club nella categoria Sport: scudetti-pulsante verso l'annuario,
   con la firma dei colori sociali (--club-c1/--club-c2) sul bordo basso */
.club-slider { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.15rem 0.15rem 0.55rem; margin: 0 0 1.3rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.club-slider::-webkit-scrollbar { display: none; }
.club-btn { position: relative; overflow: hidden; flex: 0 0 auto; display: flex; align-items: center; gap: 0.55rem; background: #fff; border: 1px solid var(--pietra); border-radius: 14px; padding: 0.6rem 1.05rem 0.75rem 0.8rem; text-decoration: none; color: var(--lana); box-shadow: 0 1px 2px rgba(38,41,48,0.08); transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s; }
.club-btn::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--club-c1) 50%, var(--club-c2) 50%); }
.club-btn:hover { border-color: var(--persiana); box-shadow: 0 2px 7px rgba(38,41,48,0.14); }
.club-btn:active { transform: scale(0.96); }
.club-btn img { width: 32px; height: 32px; object-fit: contain; }
.club-btn-tondo { width: 32px; height: 32px; border-radius: 50%; background: var(--club-c1); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 0.78rem; text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.club-btn-nome { font-family: var(--display); font-weight: 800; font-size: 0.98rem; white-space: nowrap; }

/* la diretta: punteggio e cronaca del telecomando attorno al video */
.dir-quadro { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--pietra); border-radius: 14px; overflow: hidden; padding-bottom: 1.2rem; }
.dir-fascia { height: 6px; }
.dir-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.8rem; padding: 1.2rem 1rem 0.3rem; font-family: var(--display); font-weight: 800; }
.dir-squadra { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; font-size: 1rem; text-align: center; line-height: 1.2; }
.dir-scudetto { height: 30px; }
.dir-numeri { font-size: 2.6rem; line-height: 1; display: flex; align-items: baseline; gap: 0.35rem; }
.dir-trattino { color: var(--grigio); font-size: 1.8rem; }
.dir-stato { text-align: center; margin: 0.2rem 0 0; font-family: var(--display); font-weight: 700; color: var(--grigio); }
.dir-stato.dir-live { color: #a02c2c; }
.dir-meta { text-align: center; font-size: 0.82rem; color: var(--grigio); margin: 0.25rem 1rem 0.9rem; }
.dir-video { aspect-ratio: 16 / 9; background: #000; }
.dir-video iframe { width: 100%; height: 100%; border: none; display: block; }
.dir-solo-link { text-align: center; margin: 0.5rem 0 0; }
/* la maschera pre-video: sigla da regia coi colori sociali (anteprima redazione) */
.dir-maschera { display: flex; align-items: center; justify-content: center; background:
  linear-gradient(160deg, rgba(0,0,0,0.82), rgba(0,0,0,0.6)),
  linear-gradient(120deg, var(--m1) 50%, var(--m2) 50%); }
.dir-maschera-int { text-align: center; color: #fff; padding: 1rem; }
.dir-m-scudetto { height: 56px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
.dir-m-match { font-family: var(--display); font-weight: 800; font-size: 1.15rem; margin: 0.5rem 0 0.3rem; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.dir-m-sub { font-family: var(--display); font-weight: 700; font-size: 0.85rem; margin: 0; opacity: 0.9; }
.dir-m-sub span { font-weight: 400; font-size: 0.72rem; opacity: 0.75; }
.dir-niente-video { text-align: center; color: var(--grigio); font-family: var(--serif); margin: 0.4rem 1.2rem; }
.dir-cronaca { padding: 0.4rem 1.2rem 0; }
.dir-cronaca h3 { font-family: var(--display); font-weight: 800; margin: 0.8rem 0 0.4rem; }
.dir-eventi { list-style: none; margin: 0; padding: 0; }
.dir-eventi li { padding: 0.5rem 0; border-bottom: 1px solid var(--pietra); font-family: var(--serif); }
.dir-eventi .dir-ev-fase { font-family: var(--display); font-weight: 800; color: var(--persiana-scuro); }
.dir-vuota { color: var(--grigio); font-family: var(--serif); }
.dir-altre { max-width: 860px; margin: 0 auto 0.8rem; text-align: center; font-size: 0.88rem; color: var(--grigio); font-family: var(--display); }
.dir-altre a { color: var(--persiana-scuro); font-weight: 700; }
.dir-card { display: block; text-decoration: none; color: var(--lana); margin-bottom: 0.7rem; transition: border-color 0.15s; }
.dir-card:hover { border-color: var(--persiana); }
.dir-card strong { font-family: var(--display); font-size: 1.05rem; }
.dir-prossime { max-width: 560px; margin: 1.5rem auto; }
.dir-prossime h3 { font-family: var(--display); font-weight: 800; }
.dir-pross-riga { background: #fff; border: 1px solid var(--pietra); border-radius: 10px; padding: 0.8rem 1rem; }
.dir-pross-riga span { color: var(--grigio); font-size: 0.88rem; }
@media (max-width: 640px) { .dir-quadro { border-radius: 0; margin: 0 -1.2rem; border-left: none; border-right: none; } }

/* invito agli annuari dalla categoria Sport */
.sq-invito { display: flex; flex-direction: column; gap: 0.15rem; background: #eef3ef; border: 1px solid #d5e2d8; border-radius: 12px; padding: 0.9rem 1.2rem; margin: 0 0 1.4rem; text-decoration: none; color: var(--lana); transition: border-color 0.15s; }
.sq-invito:hover { border-color: var(--persiana); }
.sq-invito strong { font-family: var(--display); font-weight: 800; color: var(--persiana-scuro); }
.sq-invito span { font-family: var(--serif); font-size: 0.95rem; color: var(--grigio); }

/* ---- scheda-annuario della squadra ---- */
.scheda-sq { max-width: 860px; }
.sq-testata { margin: 0 0 1.2rem; }
.sq-titolo { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 4.5vw, 2.4rem); line-height: 1.1; margin: 0.5rem 0 0.35rem; color: var(--lana); }
.sq-occhiello { font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--persiana); margin: 0; }
.sq-fotona { margin: 0 0 1.4rem; }
.sq-fotona img { width: 100%; border-radius: 14px; display: block; }
.sq-fotona figcaption { font-family: var(--display); font-size: 0.82rem; color: var(--grigio); margin-top: 0.45rem; }
.sq-racconto { font-family: var(--serif); font-size: 1.08rem; line-height: 1.7; max-width: 720px; }
.sq-racconto p { margin: 0 0 0.9rem; }

.rosa-sez { margin: 1.9rem 0 0; }
.rosa-sez-tit { display: flex; align-items: center; gap: 0.8rem; font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--lana); margin: 0 0 0.9rem; }
.rosa-sez-tit::after { content: ""; flex: 1; height: 1px; background: var(--pietra); }
.rosa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.9rem; }
.rosa-tessera { margin: 0; background: #fff; border: 1px solid var(--pietra); border-radius: 12px; overflow: hidden; }
.rosa-foto { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; background: #eceae4; color: #c9c6bd; }
.rosa-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rosa-foto svg { width: 46%; height: 46%; }
.rosa-num { position: absolute; right: 0.45rem; top: 0.45rem; min-width: 1.7em; text-align: center; font-family: var(--display); font-weight: 800; font-size: 0.85rem; color: #fff; background: var(--persiana-scuro); border-radius: 999px; padding: 0.14rem 0.4rem; }
.rosa-tessera figcaption { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.55rem 0.65rem 0.7rem; }
.rosa-nome { font-family: var(--display); font-weight: 700; font-size: 0.95rem; line-height: 1.2; color: var(--lana); }
.rosa-ruolo { font-family: var(--display); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--persiana); }
.rosa-note { font-family: var(--serif); font-size: 0.82rem; line-height: 1.35; color: var(--grigio); }
@media (max-width: 480px) { .rosa-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- annuari: copertina, scudetto, colori sociali, bacheca titoli ---- */
.sq-cover { margin: 0 0 1.2rem; }
.sq-cover img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 14px; display: block; }
.sq-testata-riga { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.sq-scudetto { height: 56px; max-width: 72px; object-fit: contain; }
.sq-colori { display: inline-flex; gap: 3px; padding: 3px; background: #fff; border: 1px solid var(--pietra); border-radius: 999px; }
.sq-colori span { width: 16px; height: 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }
.sq-strip { display: flex; height: 5px; }
.sq-strip span { flex: 1; }
.sq-scudetto-mini { height: 24px; max-width: 30px; object-fit: contain; vertical-align: -4px; margin-right: 0.35rem; }
.sq-bacheca { background: #fdf8ec; border: 1px solid #ecdfc0; border-radius: 14px; padding: 1rem 1.3rem; margin: 1.6rem 0 0; max-width: 720px; }
.sq-bacheca-tit { font-family: var(--display); font-weight: 800; font-size: 1.05rem; margin: 0 0 0.5rem; color: var(--lana); }
.sq-bacheca ul { margin: 0; padding: 0 0 0 1.2rem; }
.sq-bacheca li { font-family: var(--serif); font-size: 1.02rem; line-height: 1.7; color: var(--lana); }

/* ---------- il Coppolone in tasca: banner installazione + modal app ---------- */
.app-banner {
  position: fixed; left: 0.6rem; right: 0.6rem; z-index: 905;
  bottom: calc(4.2rem + env(safe-area-inset-bottom, 0));
  display: flex; align-items: center; gap: 0.65rem;
  background: var(--persiana-scuro); color: var(--carta);
  border-radius: 14px; padding: 0.6rem 0.7rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}
.app-banner[hidden] { display: none; }
.app-banner img { border-radius: 9px; flex: none; }
.app-banner-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.app-banner-txt strong { font-family: var(--display); font-size: 0.92rem; }
.app-banner-txt span { font-size: 0.76rem; opacity: 0.85; }
.app-banner-btn {
  flex: none; border: 0; border-radius: 9px; padding: 0.5rem 0.9rem; cursor: pointer;
  background: var(--lampione); color: #262930; font-family: var(--display); font-weight: 700; font-size: 0.88rem;
}
.app-banner-x { flex: none; border: 0; background: none; color: var(--carta); opacity: 0.7; font-size: 1.25rem; line-height: 1; padding: 0.2rem 0.35rem; cursor: pointer; }
@media (min-width: 701px) { .app-banner { display: none; } }

/* nel modal app le due voci stanno in colonna, come righe cliccabili */
.modal-ev-scelte-col { flex-direction: column; }
.modal-ev-scelte-col .modal-ev-scelta { flex-direction: column; align-items: flex-start; text-align: left; font-size: 1rem; text-decoration: none; padding: 0.9rem 1rem; width: 100%; }
.modal-ev-scelte-col .modal-ev-scelta strong { font-family: var(--display); font-size: 1.02rem; color: #222; }
.modal-ev-scelte-col .modal-ev-scelta span { font-family: var(--serif); font-weight: 400; font-size: 0.82rem; color: var(--grigio); }
.app-guida { margin: 0.4rem 0 0.2rem 1.2rem; padding: 0; font-size: 0.92rem; line-height: 1.55; }
.app-guida li { margin-bottom: 0.25rem; }
@media (max-width: 760px) {
  body.con-app-banner .fab.fab-crea { bottom: calc(8.8rem + env(safe-area-inset-bottom, 0)); }
  body.con-app-banner .fab-sheet.fab-sheet-crea { bottom: calc(12.9rem + env(safe-area-inset-bottom, 0)); }
}

/* La fascia «in campo adesso»: compare in cima alla home solo a partita in
   corso, col punteggio vivo (aggiornato dalla pagina ogni 30s) */
.live-strip {
  display: flex; align-items: center; gap: 0.6rem;
  max-width: 960px; margin: 0.9rem auto -0.3rem; padding: 0.6rem 0.9rem;
  border-radius: 12px; text-decoration: none;
  background: var(--lana); color: var(--carta);
}
@media (max-width: 991px) { .live-strip { margin-left: 0.8rem; margin-right: 0.8rem; } }
.live-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #E5484D; animation: live-batte 1.4s ease-in-out infinite; }
@keyframes live-batte { 50% { opacity: 0.35; transform: scale(0.8); } }
.live-che { flex: none; font-family: var(--display); font-weight: 800; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: #E5484D; }
.live-match { flex: 1; min-width: 0; font-family: var(--display); font-weight: 700; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-punti { color: var(--lampione); padding: 0 0.15rem; }
.live-vai { flex: none; font-family: var(--display); font-weight: 700; font-size: 0.82rem; color: var(--lampione); }
@media (max-width: 480px) { .live-che { display: none; } }
