:root{--ink:#183e37;--green:#20594b;--mint:#e8f0eb;--paper:#f6f7f3;--line:#dce3dc;--muted:#5c6e65;--gold:#93692d;--white:#fff;--red:#a23532}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.5}a{color:var(--green);text-underline-offset:4px}button,input,select{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 20px;border:1px solid var(--green);border-radius:8px;background:var(--green);color:white;font-weight:650;cursor:pointer;text-decoration:none;line-height:1.35}button:hover,.button:hover{filter:brightness(.94)}button:disabled{cursor:not-allowed;opacity:.5}.secondary{background:white;color:var(--green);border-color:#c0d0c4}.link{background:transparent;border:0;color:var(--green);padding:4px;font-size:14px}.small{padding:8px 13px;font-size:13px}.danger{color:var(--red)}.site-header{max-width:1600px;margin:auto;padding:23px 4%;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:750;letter-spacing:-.6px;text-decoration:none}.brand small{display:block;font-size:11px;font-weight:500;letter-spacing:.08em;text-transform:uppercase}.brand-mark{display:grid;place-items:center;background:var(--green);color:white;width:42px;height:48px;border-radius:20px 20px 6px 6px;font-size:28px}.site-header nav{display:flex;gap:22px;align-items:center;font-size:13px}.site-header nav>a{text-decoration:none}.site-header nav form{margin:0}main{max-width:1600px;margin:auto;padding:32px 4% 64px;min-height:75vh}h1,h2,h3,p{margin-top:0}h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:42px;line-height:1.14;letter-spacing:-1px;margin-bottom:16px}h2{font-size:23px;letter-spacing:-.6px;margin-bottom:14px}h3{font-size:18px;line-height:1.3;margin-bottom:8px}.hero{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:34px 0 38px}.hero h1{font-size:clamp(38px,4.2vw,62px);max-width:760px;margin:16px 0}.hero p{color:var(--muted);font-size:18px;line-height:1.65;margin:0}.eyebrow{font-size:10px;letter-spacing:.15em;font-weight:750;text-transform:uppercase;color:var(--muted);display:block;margin-bottom:6px}.hero-symbol{width:150px;height:160px;border-radius:80px 80px 0 0;background:#e6ece4;font-family:Georgia,serif;font-size:90px;display:flex;align-items:center;justify-content:center;color:#9aad99;flex:none;margin-right:25px}.notice{padding:18px 22px;background:#f4eddf;border:1px solid #e4d8bd;border-radius:9px;margin-bottom:28px;color:#634c27}.notice p{margin:5px 0 0;font-size:14px;line-height:1.6}.disclaimer{display:flex;gap:16px}.notice-icon{border:1px solid currentColor;border-radius:50%;width:23px;height:23px;text-align:center;flex:none;line-height:22px;font-family:Georgia,serif;font-weight:bold}.notice strong{font-size:14px}.success{background:#e6f3e9;color:#205533;border-color:#bcdcc5}.error{background:#fff0ed;color:#8c2926;border-color:#e5b2a9}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:25px 0 18px}.section-heading h2,.section-heading p{margin-bottom:0}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:24px;margin-bottom:22px}.filters{display:flex;align-items:end;gap:16px;padding:20px}.filters .search{flex:2}.filters label{flex:1}label{font-weight:600;font-size:12px;display:block;color:#455c50}input,select{width:100%;display:block;padding:11px 12px;border:1px solid #cbd6cd;border-radius:6px;margin-top:7px;background:white;color:var(--ink);min-height:44px;font-size:14px}input[type=checkbox]{width:18px;min-height:18px;height:18px;margin:0;accent-color:var(--green);flex:none}input:focus,select:focus{outline:2px solid #79a08b;outline-offset:2px}button:focus-visible,a:focus-visible,summary:focus-visible,.unknown:focus-visible{outline:3px solid #b68e3f;outline-offset:3px}.table-wrap{overflow-x:auto;background:white;border:1px solid var(--line);border-radius:10px}.schedule{border-collapse:collapse;width:100%;table-layout:fixed;min-width:1060px}.schedule th,.schedule td{border-bottom:1px solid var(--line);border-right:1px solid var(--line);padding:20px 12px;vertical-align:top;text-align:center}.schedule thead th{background:#edf1eb;font-size:12px;font-weight:650;padding:16px 8px}.schedule th:first-child{width:270px;text-align:left;padding-left:22px}.schedule .parish-cell{text-align:left;font-weight:400;padding-top:25px;padding-bottom:24px}.schedule tr:last-child>*{border-bottom:0}.schedule tr>*:last-child{border-right:0}.schedule .sunday{background:#f5f7ee}.schedule .no-mass{background:white}.schedule .sunday.no-mass{background:white}.parish-cell h3{font-family:Georgia,serif;font-size:22px;font-weight:400}.church-default{font-size:12px;font-weight:650;margin:12px 0 3px}.muted{color:var(--muted)}.small-text{font-size:12px}.badge{font-size:10px;font-weight:650;letter-spacing:.025em;border-radius:5px;background:var(--mint);color:var(--green);padding:5px 8px;display:inline-block;margin:12px 0 0}.badge.summer,.badge.warning{background:#f8edcf;color:#7d5b19}.contacts{margin-top:16px;font-size:12px}.contacts summary{font-weight:650}.contacts p{margin:12px 0 6px}.contacts a{display:block;margin:7px 0;overflow-wrap:anywhere}.mass{margin-bottom:14px}.mass:last-child{margin-bottom:0}.mass time{font-size:18px;font-weight:650;font-variant-numeric:tabular-nums}.other-church{display:block;margin:3px auto 0;max-width:140px;font-size:11px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}.unknown{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:1px solid #b1bcb3;border-radius:50%;font-size:13px;font-weight:600;color:#6c7e70;cursor:help}.legend{display:flex;flex-wrap:wrap;align-items:center;gap:18px;font-size:11px;color:var(--muted);margin:20px 0}.legend>span{display:flex;align-items:center;gap:7px}.legend .unknown{width:17px;height:17px;font-size:10px}.blank-key{height:16px;width:20px;background:white;border:1px solid var(--line)}footer{border-top:1px solid var(--line);max-width:1600px;margin:auto;padding:25px 4%;display:flex;justify-content:space-between;gap:20px;font-size:12px;font-weight:650;color:var(--muted)}footer span{font-weight:400}.narrow{max-width:490px;margin:50px auto}.narrow h1{margin:15px 0}.stack{display:grid;gap:18px}.stack>button{justify-self:start}.narrow .stack>button{width:100%}.narrow .small-text{margin:22px 0 0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0 26px}.inline-form{display:flex;align-items:end;gap:12px}.inline-form label{min-width:240px}.parish-toolbar,.season-status{display:flex;justify-content:space-between;align-items:center;gap:20px}.season-status p{margin:5px 0 0;font-size:13px}.tabs{display:flex;gap:30px;border-bottom:1px solid var(--line);margin:24px 0 30px}.tabs a{padding:12px 0;text-decoration:none;color:var(--muted)}.tabs a.selected{color:var(--green);font-weight:700;border-bottom:3px solid var(--green)}.season-switch{display:flex;padding:4px;border-radius:8px;background:#e5ebe4;flex:none}.season-switch a{padding:9px 17px;text-decoration:none;border-radius:6px;font-size:13px}.season-switch a.selected{background:white;box-shadow:0 1px 4px #183e3712;font-weight:700}.week-grid{display:grid;align-items:start;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.day-editor{margin:0;min-width:0;padding:20px}.day-editor legend{background:var(--paper);padding:0 10px;font-size:18px;font-weight:700}.day-editor>label{margin-bottom:15px}.mass-edit{border-top:1px solid var(--line);margin-top:16px;padding-top:14px}.mass-edit-heading{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted)}.mass-edit-heading button{font-size:11px}.mass-fields{display:grid;grid-template-columns:95px 1fr;gap:10px;margin-top:5px}.mass-fields input,.mass-fields select{padding:9px 6px;font-size:12px}.add-mass{font-size:12px;padding:9px 12px;margin-top:17px}.day-editor .small-text{margin:18px 0 0}.save-bar{position:sticky;bottom:16px;background:var(--green);color:white;border-radius:10px;padding:14px 20px;display:flex;justify-content:space-between;align-items:center;gap:20px;box-shadow:0 8px 25px #183e3720;margin:25px 0;z-index:3}.save-bar span{font-size:13px}.save-bar button{background:white;color:var(--green)}summary{cursor:pointer;font-weight:650}details[open]>summary{margin-bottom:14px}.checkbox{display:flex;align-items:center;gap:10px;font-size:13px;margin:12px 0}.copy-panel .stack{justify-items:start}.church-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.delete-form{margin-top:16px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:28px 0}.stats .panel{display:flex;flex-direction:column;gap:5px}.stats strong{font-size:36px;line-height:1.1;font-family:Georgia,serif;font-weight:400}.stats span{font-size:12px;color:var(--muted)}.admin-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px;min-width:600px}.admin-table th,.admin-table td{padding:15px;border-bottom:1px solid var(--line)}.admin-table th{background:#edf1eb;font-weight:600}.admin-table tr:last-child td{border-bottom:0}.admin-table small{display:block;color:var(--muted);margin-top:3px}.admin-table .badge{margin:0}.actions{display:flex;align-items:center;gap:14px}.assignments{border:1px solid var(--line);border-radius:8px;margin:22px 0;padding:16px}.assignments legend{font-size:13px;font-weight:600}.empty{text-align:center;padding:50px 20px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
@media(min-width:1600px){.schedule th:first-child{width:310px}}
@media(max-width:1100px){.week-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filters{flex-wrap:wrap}.filters .search{flex-basis:100%}.site-header nav{gap:12px}.parish-toolbar{align-items:start;flex-direction:column}}
@media(max-width:700px){main{padding:24px 18px 40px}.site-header{padding:18px;align-items:start;flex-direction:column}.site-header nav{flex-wrap:wrap;gap:15px;font-size:12px}.hero{padding:16px 0 28px}.hero h1{font-size:40px}.hero p{font-size:16px}.hero-symbol{display:none}.disclaimer{padding:16px;gap:10px}.notice p{font-size:12px}.filters{padding:16px;gap:12px}.filters label{flex-basis:40%}.filters button{width:100%}.schedule{min-width:0;display:block;table-layout:auto}.schedule thead{display:none}.schedule tbody{display:block}.schedule tr{display:block;border-bottom:12px solid var(--paper)}.schedule tr:last-child{border-bottom:0}.schedule th:first-child{width:auto;padding:22px;display:block}.schedule td{display:grid;grid-template-columns:100px 1fr;text-align:left;padding:13px 22px;border-right:0;gap:6px;min-height:50px}.schedule td:before{content:attr(data-day);font-size:12px;font-weight:650;grid-column:1;grid-row:1}.schedule td>*{grid-column:2}.schedule td .sr-only{position:absolute}.schedule .mass{margin-bottom:4px}.mass time{font-size:17px}.other-church{margin:2px 0;max-width:none}.schedule .parish-cell{border-right:0}.schedule tr:last-child>*{border-bottom:1px solid var(--line)}.schedule tr:last-child>td:last-child{border-bottom:0}.legend{align-items:start;flex-direction:column;gap:12px}.section-heading{align-items:start;flex-direction:column;gap:14px}.section-heading h2{font-size:22px}.week-grid,.church-grid,.form-grid{grid-template-columns:1fr}.panel{padding:19px}.tabs{gap:18px;font-size:13px}.inline-form{width:100%}.inline-form label{min-width:0;flex:1}.season-status{align-items:start;flex-direction:column}.save-bar{padding:13px;gap:10px;bottom:8px;flex-direction:column;align-items:stretch}.save-bar button{font-size:13px}.stats{gap:10px}.stats .panel{padding:12px}.stats strong{font-size:28px}.stats span{font-size:10px}.narrow{margin:25px auto}footer{padding:22px 18px;flex-direction:column;gap:7px}h1{font-size:36px}}
@media print{body{background:white}.site-header nav,.filters,footer,.hero-symbol{display:none}main{padding:0}.hero{padding:10px 0}.hero h1{font-size:30px}.table-wrap{overflow:visible}.schedule{min-width:0;font-size:10px}.schedule th:first-child{width:23%}.schedule td,.schedule th{padding:8px}.mass time{font-size:13px}.schedule thead{display:table-header-group}.schedule tr{break-inside:avoid}.contacts{display:none}.disclaimer{margin-bottom:15px}.legend{font-size:9px}}

/* Identità diocesana */
.brand-logo{width:52px;height:52px;object-fit:contain;flex:none}.hero-symbol{background:transparent;border-radius:0}.hero-symbol img{width:150px;height:150px;object-fit:contain}


/* Agenda delle singole date: separata dalla configurazione ordinaria. */
.agenda-navigation{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:1.5rem 0;flex-wrap:wrap}
.agenda-grid{display:grid;align-items:start;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:1rem}
.agenda-day{min-width:0}.agenda-day h2 small{display:block;font-size:.65em;font-weight:400;margin-top:.3rem}
.agenda-mass{border-top:1px solid #ddd;padding:1rem 0}.celebration-heading{margin:.5rem 0}.celebration-heading time{font-weight:700}
.celebration-note{display:block;font-size:.9em;color:#50645a;white-space:pre-wrap;overflow-wrap:anywhere;margin:.35rem 0}
.agenda-controls,.agenda-add,.agenda-reset{margin:.8rem 0}.agenda-controls summary,.agenda-add summary,.agenda-reset summary{cursor:pointer}
.agenda-controls form,.agenda-add form{margin-top:1rem}.agenda-day textarea{width:100%;box-sizing:border-box;resize:vertical}
.agenda-mass.suspended .celebration-heading,.agenda-public.suspended time{text-decoration:line-through;color:#777}
.agenda-public.suspended{background:#f4f4f4}.agenda-mass.extra{border-left:3px solid #46795a;padding-left:.6rem}.agenda-mass.modified{border-left:3px solid #b18132;padding-left:.6rem}
.agenda-date{display:block;font-weight:400}.agenda-jump{margin-bottom:1rem;display:flex;flex-wrap:wrap;gap:.75rem}.agenda-jump label{flex:0 1 250px;min-width:200px}.agenda-jump>a{flex:0 0 auto}
@media(max-width:600px){.agenda-navigation{flex-direction:column;align-items:stretch;text-align:center}.agenda-jump{flex-wrap:wrap}.agenda-jump label{flex:0 0 100%;min-width:0}.agenda-grid{grid-template-columns:1fr}}
@media print{.agenda-navigation a,.agenda-jump,.agenda-controls,.agenda-add,.agenda-reset,.agenda-mass form,.tabs,.filters,.site-header nav{display:none!important}.agenda-grid{display:block}.agenda-day,.agenda-mass,.mass{break-inside:avoid}.agenda-day{margin-bottom:1rem}.celebration-note{color:#000}.schedule{min-width:0!important}.table-wrap{overflow:visible!important}}

/* Public parish pages reuse the public Agenda and existing mobile cards. */
.parish-public-link{text-decoration:underline;text-decoration-thickness:1px}.parish-public-link:hover{text-decoration-thickness:2px}.parish-public-link:focus-visible{outline:2px solid var(--green);outline-offset:4px}.parish-hero h1{overflow-wrap:anywhere}.parish-information{margin-bottom:1.5rem}.parish-information .church-grid{margin-top:1rem}.parish-information .church-contact{min-width:0;overflow-wrap:anywhere}.parish-share{margin-top:2rem}.parish-share input{width:100%;min-width:0}.parish-share button{margin-top:1rem}.parish-week-filter{align-items:end}.parish-week-filter label{flex:0 1 250px;min-width:0}
@media(max-width:700px){.parish-week-filter label{flex:0 0 100%}.parish-hero h1{font-size:32px}}
@media print{.parish-share,.parish-back{display:none}}
