/* diocesi.cloud — Sante Messe. Solo presentazione; griglie e logica originali. */
:root{--ink:#1e293b;--green:#c2410c;--mint:#fff7ed;--paper:#f8fafc;--line:#e2e8f0;--muted:#64748b;--gold:#a16207;--red:#b91c1c}
body{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink)}
h1,h2,h3,.parish-cell h3{font-family:inherit;font-weight:700;letter-spacing:-.035em}h1{font-size:30px}h2{font-size:21px}.narrow h1{font-size:30px}
.site-header{background:#fff;border-bottom:1px solid var(--line)}.brand{color:#0f172a;letter-spacing:-.03em}.brand small{color:var(--green);font-weight:650;letter-spacing:.04em}.brand-logo{border:1px solid var(--line);border-radius:12px;padding:5px;background:#fff}
.panel{border-radius:16px;box-shadow:0 1px 2px #0f172a03}.narrow{border-top:3px solid var(--green)}
label{color:#475569}input,select{border-color:#cbd5e1;border-radius:8px;color:#1e293b}input:focus,select:focus{outline-color:var(--green)}
button,.button{border-radius:9px;font-weight:650}.secondary{border-color:#cbd5e1;background:white;color:var(--green)}.link{border-radius:4px}.eyebrow{color:#64748b;letter-spacing:.08em}.badge{border-radius:6px}.admin-table th,.schedule thead th{background:#f1f5f9;color:#475569}.season-switch{background:#f1f5f9}.day-editor legend{color:#334155}
.dc-home{display:flex;justify-content:flex-end;max-width:1600px;margin:0 auto;padding:9px 4%;font-size:12px;line-height:1.4}.dc-home a{color:#64748b;text-decoration:none}.dc-home a:hover{color:#0f172a;text-decoration:underline}.dc-home a:focus-visible{outline:2px solid var(--green);outline-offset:4px}
@media(max-width:700px){.dc-home{padding:10px 18px}h1{font-size:28px}}
@media print{.dc-home{display:none}}

.hero h1{font-size:clamp(30px,3vw,42px)}.schedule .sunday{background:#fff7ed}.schedule .sunday.no-mass{background:white}

button.delete-account{background:#a23532;border-color:#a23532;color:#fff}
/* Responsive 2026-09-26. Solo schermo sotto 1024px; desktop e stampa invariati. */
@media screen and (max-width:1023px){
  .site-header{flex-wrap:wrap}
  .site-header nav{flex-wrap:wrap;gap:8px 16px;width:100%}
  .site-header nav>a,.dc-home a{display:inline-flex;align-items:center;min-height:44px}
  .site-header nav form{max-width:100%}
  .site-header .brand{min-width:0}
  .brand>span{overflow-wrap:anywhere}
  :is(.filters,.inline-form,.season-status,.section-heading,.parish-toolbar)>*{min-width:0}
  :is(.week-grid,.church-grid,.form-grid,.stack)>*{min-width:0;max-width:100%}
  :is(h1,h2,h3,p,label,.badge,.parish-cell,.admin-table td){overflow-wrap:anywhere}
  :is(input,select){min-width:0;max-width:100%;font-size:16px}
  input:not([type=hidden]):not([type=checkbox]),select{min-height:44px}
  :is(button,.button){min-height:44px;min-width:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
  .checkbox{min-height:44px}
  input[type=checkbox]{width:24px;height:24px;min-height:24px}
  :is(.tabs,.season-switch) a{display:inline-flex;align-items:center;min-height:44px}
  :is(.contacts,.copy-panel)>summary{min-height:44px;padding-top:10px;padding-bottom:10px}
  .contacts a,.filters>a,.section-heading>a,.admin-table a,.stack>a,.narrow p>a{display:inline-flex;align-items:center;min-height:44px;overflow-wrap:anywhere;max-width:100%}
  .contacts a{display:flex}
  .mass-fields{grid-template-columns:120px minmax(0,1fr)}
  .mass-fields input,.mass-fields select{font-size:16px;min-width:0}
  .mass-fields label{min-width:0}
  .table-wrap{max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  .table-wrap:focus-visible{outline:2px solid var(--green);outline-offset:2px}
  .admin-table td:last-child{min-width:185px}
  .admin-table{font-size:14px}
  .table-wrap:has(.admin-table)::before{content:"Scorri la tabella ↔ per vedere tutte le colonne";position:sticky;left:0;display:block;width:fit-content;max-width:100%;padding:10px 14px;font-size:13px;color:var(--muted)}
  .schedule .unknown{width:44px;height:44px}
  .season-status form{max-width:100%}
}
@media screen and (max-width:700px){
  .site-header nav{font-size:14px}
  .filters label{flex-basis:100%}
  .filters{align-items:stretch}
  .schedule td{grid-template-columns:88px minmax(0,1fr);padding:14px 18px}
  .schedule td::before{font-size:14px}
  .schedule th:first-child{padding:20px 18px;overflow-wrap:anywhere}
  .schedule .other-church{font-size:14px;line-height:1.45}
  .contacts,.small-text,.notice p,.legend{font-size:14px}
  label{font-size:14px}
  .mass-edit-heading,.mass-edit-heading button{font-size:13px}
  .add-mass{font-size:14px}
  .save-bar{position:static}
  .save-bar button{font-size:15px}
  .form-grid{grid-template-columns:minmax(0,1fr)}
  .tabs{flex-wrap:wrap;gap:8px 18px}
  .season-switch{max-width:100%;flex-wrap:wrap}
  .copy-panel summary{overflow-wrap:anywhere}
}
@media screen and (max-width:480px){
  .mass-fields{grid-template-columns:minmax(0,1fr);gap:12px}
}
@media screen and (min-width:701px) and (max-width:1023px){
  .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .table-wrap:has(.schedule)::before{content:"Scorri la tabella ↔ per vedere tutti i giorni";position:sticky;left:0;display:block;width:fit-content;max-width:100%;padding:10px 14px;font-size:13px;color:var(--muted)}
}
@media screen and (max-width:1023px) and (max-height:550px){
  .save-bar{position:static}
}
/* Contiene anche i testi accessibili posizionati in assoluto nella tabella. */
@media screen{.table-wrap{position:relative}}
