/* Palette e tipografia tratte dal set di identità visiva v2 dell'Ufficio.
   I colori --event-* rimangono indipendenti e identificano le Chiese. */
@font-face{font-family:Figtree;src:url('/assets/fonts/Figtree.ttf') format('truetype');font-style:normal;font-weight:300 900;font-display:swap}
@font-face{font-family:Figtree;src:url('/assets/fonts/Figtree-Italic.ttf') format('truetype');font-style:italic;font-weight:300 900;font-display:swap}
@font-face{font-family:'Cormorant Garamond';src:url('/assets/fonts/CormorantGaramond.ttf') format('truetype');font-style:normal;font-weight:300 700;font-display:swap}
@font-face{font-family:'Cormorant Garamond';src:url('/assets/fonts/CormorantGaramond-Italic.ttf') format('truetype');font-style:italic;font-weight:300 700;font-display:swap}
:root{--blue:#01509F;--navy:#01336E;--gold:#F5C018;--red:#E31B26;--olive:#2F7A43;--cream:#FAF7F0;--green:var(--blue);--line:#dee3e9;--muted:#59687b;font-family:Figtree,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--cream);color:#233a55}
body{background:var(--cream)}
button:hover{background:#edf2f8}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-color:var(--blue)}
.sidebar{background:var(--navy);color:var(--cream);border-right:0;padding-top:24px;position:relative}
.sidebar::before{content:'';position:absolute;inset:0 0 auto;height:4px;background:var(--gold)}
.brand{display:flex;flex-direction:column;gap:0;text-align:center;text-decoration:none;font-family:Figtree,sans-serif;line-height:1.5;margin-bottom:0}
.office-logo{width:112px;height:112px;object-fit:contain;display:block;margin:12px;flex-shrink:0}
.office-name{font-size:14px;line-height:1.45;font-weight:600;color:#fff}
.office-diocese{font-size:11px;line-height:1.6;letter-spacing:.3px;margin-top:9px;color:#dce5f1}
.sidebar-intro{font-family:'Cormorant Garamond',Georgia,serif;color:var(--cream);font-size:24px;text-align:center;line-height:1.15;margin:25px 0 24px}
.quote-reference{display:block;color:var(--gold);font-family:Figtree,sans-serif;font-size:9px;font-weight:650;letter-spacing:2px;margin-top:10px}
.nav{color:#e5ecf6;border:1px solid transparent}
.nav:hover{background:#124580}
.nav.active{background:#164b86;color:#fff;border-color:#5174a0;border-left:3px solid var(--gold)}
.count{background:#fff2be;color:var(--navy)}
.sidebar-section{margin-top:29px}
.sidebar .eyebrow{color:#f5d774;font-size:9px;letter-spacing:1.5px}
.sidebar .muted,.sidebar-footer{color:#d0dded}
.church-option{color:#eef2f8}
.church-option input{outline:1px solid #c2d1e3;border-radius:2px;outline-offset:1px}
.sidebar .text-button{color:#f6d877}
.sidebar-note{background:#0b3d76;border-color:#4d6d95;color:#fff}
.sidebar-note p{color:#d4e0ee}
.note-symbol{color:var(--gold)}
.sidebar-footer{font-size:8px;line-height:1.7}
header{border-bottom:1px solid #dce1e6;padding-bottom:24px;position:relative}
header::after{content:'';width:48px;height:3px;background:var(--gold);position:absolute;bottom:-2px;left:0}
.eyebrow{color:var(--blue);text-transform:uppercase}
h1{font-family:'Cormorant Garamond',Georgia,serif;font-size:47px;font-weight:600;letter-spacing:-.7px;color:var(--navy);line-height:1.05;margin:13px 0 10px}
h2{color:var(--navy)}
.subtitle{font-size:13px}
.demo-pill{color:var(--olive);border-color:#c8dacb;background:#f3f8ef}
.views{background:#e9edf3}
.views .selected{color:var(--navy);box-shadow:0 1px 4px #01336e16}
.views button:hover{background:#f3f6fa}
.weekday-row{background:#f5f7fa}
.weekday,.date-picker-label,input[type=date]{color:#56677b}
.day-cell.outside{background:#fbfaf6}
.month-grid .event-chip .chip-label{display:block}
.day-number{color:#344c66}
.day-number.today{background:var(--navy);color:white;box-shadow:0 2px 0 var(--gold)}
.outside .day-number{color:#728094}
.search span,.search-row select{color:#53677f}
.empty,.agenda-info,.time-labels{color:var(--muted)}
.empty strong{color:var(--navy)}
.primary{background:var(--blue);border-color:var(--blue)}
.primary:hover{background:var(--navy)}
.detail-title{font-family:'Cormorant Garamond',Georgia,serif;font-size:36px;color:var(--navy);font-weight:600;line-height:1.1}
dialog{color:#233a55;background:var(--cream)}
dialog::backdrop{background:#012d665c}
.demo-note{background:#fff3c9;color:#574b2b}
.about h2{font-family:'Cormorant Garamond',Georgia,serif;font-size:31px;line-height:1.15;white-space:normal;margin-left:0}
.about{color:#53647a}
footer{color:#59687b}
footer>span:first-child{font-family:'Cormorant Garamond',Georgia,serif;font-size:18px;font-style:italic;color:var(--navy)}
footer .footer-reference{font-family:Figtree,sans-serif;font-size:9px;font-style:normal;margin-left:6px;color:var(--blue)}
#toast{background:var(--navy);border-top:2px solid var(--gold)}
@media(max-width:1100px) and (min-width:761px){.office-name{font-size:12px}.office-diocese{font-size:10px}.sidebar-intro{font-size:22px}.church-option{font-size:12px}h1{font-size:41px}}
@media(max-width:760px){
  .sidebar{padding:16px 13px 10px}
  .brand{display:grid;grid-template-columns:78px 1fr;column-gap:12px;text-align:left;align-items:center;min-height:92px}
  .office-logo{grid-column:1;grid-row:1/3;width:66px;height:66px;margin:6px}
  .office-name{grid-column:2;grid-row:1;align-self:end;font-size:13px;line-height:1.3}
  .office-diocese{grid-column:2;grid-row:2;align-self:start;margin-top:5px;font-size:10px;line-height:1.4}
  .office-diocese br{display:none}
  .office-diocese br::after{content:' '}
  .nav{color:#e5ecf6}
  .nav.active{border-left-width:1px;border-bottom:2px solid var(--gold)}
  .church-option{color:var(--navy);padding:8px;background:#fff;line-height:1.4}
  .church-option input{outline:0}
  .sidebar-section{margin-top:12px}
  .sidebar .count{font-size:10px}
  main{padding-top:22px}
  h1{font-size:38px;line-height:1.08}
  header{padding-bottom:20px}
  header .eyebrow{font-size:9px;letter-spacing:1.2px}
  .title-row{gap:8px}
  .subtitle{font-size:12px;line-height:1.5}
  .demo-pill{font-size:9px;padding:6px 8px}
  .detail-title{font-size:32px}
  footer>span:first-child{font-size:18px}
}

.festival-review{font-size:12px;line-height:1.6;color:#435870;background:#edf3fa;border-radius:8px;padding:10px 14px;margin:0 0 14px}
.verification-badge{display:inline-block;font-size:10px;font-weight:600;line-height:1.5;padding:3px 7px;border-radius:5px;margin:5px 5px 5px 0}
.verification-badge.verified{color:#245d3d;background:#e6f3ed}
.verification-badge.pending,.pending-caption{color:#784d10;background:#fff0cf}
.pending-caption{font-size:9px;padding:2px 4px;border-radius:3px}
.festival-sources{font-size:13px;line-height:1.6;background:#f7f8fa;border:1px solid #e1e6ed;padding:14px;border-radius:10px;margin:16px 0;overflow-wrap:anywhere}
.festival-sources ul{margin:10px 0;padding-left:20px}.festival-sources p{margin:8px 0}.festival-sources a{color:#01509f;text-decoration:underline}
.detail-title{white-space:normal;overflow-wrap:anywhere;max-width:100%;margin-right:20px}
#event-detail{min-width:0}
