:root{color-scheme:light;--navy:#122138;--blue:#1c3552;--ink:#17243a;--gold:#ebc98f;--paper:#f5f4ef;--line:#d8dce0}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.6 system-ui,sans-serif}a{color:#284d75;text-underline-offset:.18em}a:hover{text-decoration-thickness:2px}a:focus-visible{outline:3px solid #b37a27;outline-offset:4px}h1,h2,h3{font-family:Georgia,serif;line-height:1.15}h1{font-size:clamp(2rem,5.5vw,3.55rem);margin:.6em 0}h2{font-size:1.75rem}h3{font-size:1.3rem}header{background:var(--navy);color:white}header nav{max-width:69rem;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:.9rem 1.25rem}header nav div{display:flex;gap:1rem;flex-wrap:wrap}header a{color:white}.brand{font-family:Georgia,serif;font-size:1.25rem;text-decoration:none}main{max-width:58rem;margin:auto;padding:2rem 1.25rem 4rem}.home{max-width:none;min-height:100svh;background:var(--navy);color:white;display:grid;align-content:center;gap:1.5rem;padding:2.25rem max(1.2rem,calc((100vw - 66rem)/2))}.hero{display:grid;grid-template-columns:1fr .75fr;align-items:center;gap:clamp(1rem,5vw,5rem)}.hero h1{font-size:clamp(2.55rem,6.8vw,5.5rem);font-weight:400;letter-spacing:-.035em;margin:.15em 0 .35em}.logo{width:clamp(105px,17vw,190px);height:auto}.hero figure{margin:0}.hero figure img{width:100%;max-height:55vh;min-height:190px;object-fit:cover;object-position:50% 20%;display:block;border-radius:50% 50% 10px 10px / 30% 30% 10px 10px;filter:sepia(.2)}figcaption{font-size:.8rem;text-align:center}figcaption a{color:#ded9cf}.pulsanti,.azioni{display:flex;flex-wrap:wrap;gap:.7rem}.pulsanti a,.azioni a,.risorse a{padding:.7rem 1rem;border-radius:.55rem;text-decoration:none;font-weight:650}.pulsanti a{background:var(--gold);color:var(--navy);font-size:.91rem}.pulsanti a:hover{background:#f8ddae}.azioni a,.risorse a{background:var(--blue);color:white}.azioni a:hover,.risorse a:hover{background:#294e73}.home footer{font-size:.86rem;color:#e5ded3}.box{background:white;border:1px solid var(--line);border-radius:.75rem;padding:clamp(1rem,4vw,2rem);margin:1.2rem 0;scroll-margin-top:1rem}.box h2,.box h3{margin-top:0}.indice{padding-left:2.35rem;margin:0}.indice li{padding:.35rem 0;border-bottom:1px solid #eaedf0}.indice li:last-child{border:0}.indice a{display:block;padding:.22rem 0}.testo,.commento p{font-family:Georgia,serif;font-size:1.12rem;line-height:1.72}.norma{background:#eef2f6;font-weight:bold}.norma h1{font-size:clamp(1.6rem,4.4vw,2.55rem);margin:0 0 .75em}.commento .riferimento{font-size:.94rem;margin:.2rem 0;padding-left:1.1rem}.riferimento:before{content:'•';margin-left:-1.1rem;margin-right:.65rem}.risorse{display:grid;gap:.8rem;max-width:34rem}.risorse small{display:block;font-weight:400;color:#eef3f7}@media(max-width:520px){.hero{grid-template-columns:1.05fr .85fr;gap:.75rem}.hero h1{font-size:clamp(1.85rem,8.5vw,2.7rem)}.hero figure img{min-height:0;height:clamp(155px,50vw,245px)}.pulsanti a{flex:1 1 100%;text-align:center}.home footer{text-align:center}}

.home-mattone {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 100svh;
  padding: clamp(1rem, 4svh, 2.5rem) clamp(.85rem, 6vw, 7rem);
  background-color: #943f33;
  background-image:
    repeating-radial-gradient(ellipse at 34% 59%, #ffd4a41a 0 .4px, #48171121 .7px, transparent 1.9px 3.7px),
    repeating-linear-gradient(101deg, transparent 0 3px, #49140d13 4px, transparent 5px 9px),
    linear-gradient(145deg, #b55e4c, #943f33 55%, #733128);
}
.volto {position:absolute;inset:0 auto 0 0;width:48%;overflow:hidden;z-index:-1}
.volto img {position:absolute;bottom:0;left:0;height:100%;width:auto;max-width:none;transform:translateX(-49%);filter:drop-shadow(7px 3px 15px #38150c90)}
.home-menu {width:min(53%,34rem);display:grid;justify-items:center;gap:clamp(.85rem,3svh,1.6rem)}
.logo-rilievo {display:block;width:min(100%,clamp(155px,43svh,380px));height:auto;filter:drop-shadow(0 3px 1px #552019) drop-shadow(0 9px 9px #38100987)}
.home-mattone .pulsanti {display:grid;width:100%;gap:clamp(.8rem,2.1svh,1.15rem)}
.home-mattone .pulsanti a {
  display:grid;place-items:center;text-align:center;
  padding:.9em .65em;border:1px solid #ffe4c6;border-radius:1.2rem;
  background:linear-gradient(#ffe9ce,#ecc398);color:#4d241c;
  box-shadow:inset 0 3px 4px #fff4e6, inset 0 -3px 5px #a6664d70, 0 6px #6b3025,0 9px 13px #4c161a70;
  font-size:clamp(.92rem,2.4vw,1.65rem);line-height:1.2;font-weight:800;
}
.home-mattone .pulsanti a:hover {background:linear-gradient(#fff4e4,#f5d3ad)}
.home-mattone .pulsanti a:active {transform:translateY(4px);box-shadow:inset 0 2px 4px #fff4e6,0 2px #6b3025}
.home-mattone .pulsanti a:focus-visible {outline-color:white}
.home-mattone footer {text-align:center;color:#fff0e1;font-size:.8rem}
.visually-hidden {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media (max-width:600px){
  .home-menu {width:60%;max-width:24rem}
  .volto {width:38%}
  .volto img {height:100%;transform:translateX(-53%)}
}

.testo {font-size:calc(1.12rem + 1pt);line-height:1.45}
.testo p {margin:.45em 0}
.home-mattone {align-items:flex-start}
.volto img {transform:translateX(-36%);filter:drop-shadow(2px -2px 1px #f6b89970) drop-shadow(9px 7px 0 #55261ec0) drop-shadow(14px 10px 14px #37110b90)}
.logo-rilievo {width:min(100%,clamp(160px,47svh,435px))}
.home-mattone .pulsanti a {
  padding:.93em .25em;
  font-size:clamp(1.1rem,3vw,2.25rem);
  box-shadow:inset 0 4px 6px #fff4e6,inset 0 -4px 7px #a6664d70,0 9px #6b3025,0 13px 15px #4c161a80;
}
.cerca label {display:block;margin-bottom:.35rem}
.cerca div {display:flex;gap:.6rem}
.cerca input {min-width:0;flex:1;padding:.65rem;font:inherit;border:1px solid #67748a;border-radius:.5rem}
.cerca button {background:var(--blue);color:white;border:0;border-radius:.5rem;padding:.65rem 1rem;font:inherit;cursor:pointer}
.proprio-testo {line-height:1.55; overflow-wrap:anywhere}
.proprio-testo h2 {margin-top:1.65rem}
.nota-proprio {font-size:.9em}
@media(max-width:600px){
  .volto img {transform:translateX(-42%)}
  .home-mattone .pulsanti a {font-size:clamp(1rem,4.4vw,1.55rem)}
}

.biografia {
  font-family: Georgia, serif;
  font-style: italic;
  text-align: justify;
  hyphens: auto;
  line-height: 1.65;
}
.lezionario summary {
  display: list-item;
  width: fit-content;
  cursor: pointer;
  padding: .65rem 1rem;
  border-radius: .55rem;
  background: var(--blue);
  color: white;
  font-weight: 650;
}
.lezionario summary:hover {background:#294e73}
.lezionario summary:focus-visible {outline:3px solid #b37a27;outline-offset:4px}
.lezionario h3 {margin:1rem 0 .2rem}
.lezionario ul {margin:.2rem 0 .8rem}
.ora {margin:.65rem 0}
.lettura-biblica {text-align:justify;hyphens:auto}
.strofa {text-align:left}
.proprio-testo .titolo-liturgico {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 1.15rem 0 .35rem;
}
