/* Ada Negri 1.30.1 - Mensa: Lorenzo chef, fotografia separata dai testi */
.an-m131-eyebrow{font-size:.72rem;font-weight:850;text-transform:uppercase;letter-spacing:.13em;color:#176947;line-height:1.4}
.an-m131-link{display:inline-flex;align-items:center;gap:10px;width:max-content;max-width:100%;min-height:43px;padding:12px 18px;background:#0d4f95;color:#fff!important;border-radius:999px;text-decoration:none!important;font-weight:850;font-size:.88rem;line-height:1.35;text-align:center;box-shadow:0 7px 20px rgba(17,71,131,.15)}
.an-m131-link:hover{background:#073b77}
.an-m131-link:focus-visible,.an-m131-day a:focus-visible{outline:3px solid #eb9e36;outline-offset:3px}
.an-m131-feature{position:relative;display:grid;grid-template-columns:1fr;isolation:isolate;min-width:0;overflow:hidden;border-radius:27px;background:#ffedcf;min-height:365px;box-shadow:0 16px 35px rgba(85,75,55,.09);border:1px solid #f4e2c7;margin:26px 0 21px}
.an-m131-feature-art{position:absolute;inset:0;z-index:-1;overflow:hidden}
.an-m131-feature-art picture,.an-m131-feature-art img{display:block;width:100%;height:100%}
.an-m131-feature-art img{object-fit:cover;object-position:center 52%}
.an-m131-feature-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:15px;width:min(46%,525px);padding:40px clamp(24px,5%,60px) 57px}
.an-m131-feature-copy h3{font-family:var(--an-display,'Sora',sans-serif);font-size:clamp(1.85rem,3.5vw,3rem);line-height:1.08;letter-spacing:-.055em;font-weight:850;color:#113b6d;margin:0;text-wrap:balance}
.an-m131-feature-copy p{color:#325477;line-height:1.6;font-weight:600;font-size:clamp(.86rem,1.2vw,.98rem);margin:0;max-width:37ch}
.an-m131-feature-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 14px;padding-top:2px}
.an-m131-pill{display:inline-flex;align-items:center;padding:8px 11px;background:#e6f5e9;border:1px solid #b7dbbe;color:#146a3b;border-radius:999px;font-size:.76rem;line-height:1.3;font-weight:850}
.an-m131-days-header{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:26px 1px 17px}
.an-m131-days-header>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.an-m131-days-header strong{color:#163f77;font-family:var(--an-display,'Sora',sans-serif);font-weight:850;letter-spacing:-.035em;font-size:clamp(1.2rem,2.3vw,1.75rem);line-height:1.2}
.an-m131-days-header small{font-size:.83rem;color:#556c87;font-weight:650}
.an-m131-caption{font-size:.72rem;color:#7a8190;text-align:right}
.an-m131-week-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;min-width:0;margin-bottom:22px}
.an-m131-day{background:#fff;border-radius:19px;border:1px solid #e6e8e4;min-width:0;overflow:hidden;box-shadow:0 10px 21px rgba(26,59,94,.045)}
.an-m131-day--today{border:2px solid #189866;box-shadow:0 7px 20px rgba(18,111,70,.12)}
.an-m131-day-top{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:12px 13px;background:#eaf8eb;min-height:48px}
.an-m131-day:nth-child(even) .an-m131-day-top{background:#eaf3ff}
.an-m131-day:nth-child(3) .an-m131-day-top{background:#fff4de}
.an-m131-day-top strong{font-size:.86rem;color:#174675;line-height:1.2;font-weight:850}
.an-m131-day-top span{flex:0 0 auto;font-size:.65rem;font-weight:900;border-radius:999px;background:#0a854e;color:#fff;padding:3px 7px}
.an-m131-day-photo{display:block;width:100%;aspect-ratio:1.55/1;object-fit:cover;object-position:center;background:#f3e9d7}
.an-m131-day-photo--empty{display:grid;place-items:center;background:linear-gradient(135deg,#fff6e6,#f0f8ff);font-size:2rem}
.an-m131-day-body{display:grid;gap:9px;padding:13px 13px 16px}
.an-m131-day-body>div{display:grid;gap:3px;min-width:0}
.an-m131-day-body>div:not(:last-child){padding-bottom:8px;border-bottom:1px solid #eaf0f3}
.an-m131-course-tag{font-size:.64rem;color:#167448;letter-spacing:.04em;font-weight:850;text-transform:uppercase}
.an-m131-day-body strong{font-size:.76rem;line-height:1.45;color:#193b64;font-weight:700;overflow-wrap:break-word;hyphens:auto}
.an-m131-week-empty{background:#edf5fd;border-radius:15px;padding:16px 20px;color:#31567e;font-weight:700;line-height:1.5;margin-bottom:20px}
.an-m131-week-empty a{color:#0d4f95;text-decoration:underline}
/* In the daily dashboard, the event is compact and does not compete with the mensa feature */
.an-dashboard-v130 .an-dashboard-primary-v130{display:grid;grid-template-columns:1fr}
.an-dashboard-v130 .an-dashboard-primary-v130>article.an-dashboard-event-v130{padding:20px 23px;gap:15px;min-height:0}
.an-dashboard-v130 .an-dashboard-event-empty-v130{max-width:680px}
/* Standalone Menù mensa page */
.an-m131-menu-hero{padding:22px 0 5px;background:#fffdf8}
.an-m131-menu-banner{position:relative;isolation:isolate;overflow:hidden;min-height:385px;border-radius:26px;background:#fff2dc;display:flex;align-items:center;border:1px solid #f2e5d0;box-shadow:0 16px 36px rgba(52,62,81,.07)}
.an-m131-menu-banner picture{position:absolute;inset:0;z-index:-1}
.an-m131-menu-banner picture img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 52%}
.an-m131-menu-intro{width:min(44%,490px);padding:39px clamp(22px,5%,56px) 55px;display:flex;flex-direction:column;align-items:flex-start;gap:15px}
.an-m131-menu-intro h1{margin:0;font-family:var(--an-display,'Sora',sans-serif);font-weight:900;font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;letter-spacing:-.055em;color:#153f75;text-wrap:balance}
.an-m131-menu-intro p{margin:0;color:#335473;line-height:1.6;font-size:clamp(.87rem,1.15vw,1rem);font-weight:600;max-width:36ch}
.an-m131-menu-day-photo{display:block;width:100%;height:auto;aspect-ratio:1.62/1;object-fit:cover;object-position:center;background:#fff1e7}
.an-m125-day .an-m131-menu-day-photo + .an-m125-day-body{padding-top:8px}
.an-m125-daygrid .an-m125-day{transition:transform .18s ease,box-shadow .18s ease}
@media(hover:hover){.an-m125-daygrid .an-m125-day:hover{transform:translateY(-3px);box-shadow:0 12px 24px rgba(26,63,112,.075)}}
/* Narrow laptops: do not overlay headings on Lorenzo */
@media(max-width:1060px){
 .an-m131-feature-copy,.an-m131-menu-intro{width:48%}
 .an-m131-feature-copy h3,.an-m131-menu-intro h1{font-size:clamp(1.65rem,3.3vw,2.6rem)}
 .an-m131-week-grid{gap:8px}
 .an-m131-day-body{padding:11px 10px 13px}
 .an-m131-day-top{padding:11px 10px}
 .an-m131-day-body strong{font-size:.71rem}
}
@media(max-width:820px){
 .an-m131-week-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
 .an-m131-feature{min-height:312px}
 .an-m131-feature-copy{padding:30px 22px 48px;width:48%;gap:11px}
 .an-m131-feature-copy h3{font-size:clamp(1.55rem,3.7vw,2.1rem)}
 .an-m131-feature-copy p{font-size:.82rem}
 .an-m131-menu-banner{min-height:315px}
 .an-m131-menu-intro{gap:11px;padding:26px 22px 44px}
}
/* On phones, make the hero image independent, then show the copy underneath: no text crosses a face or dish. */
@media(max-width:680px){
 .an-m131-feature{display:flex;flex-direction:column;min-height:0;margin:21px 0 18px;border-radius:20px}
 .an-m131-feature-art{position:relative;inset:auto;z-index:auto;width:100%;height:auto;aspect-ratio:1.46/1}
 .an-m131-feature-art picture,.an-m131-feature-art img{width:100%;height:100%}
 .an-m131-feature-art img{object-fit:cover;object-position:center 45%}
 .an-m131-feature-copy{width:100%;padding:18px 19px 22px;background:#fff6e7;gap:10px}
 .an-m131-feature-copy h3{font-size:clamp(1.6rem,6.5vw,2.2rem)}
 .an-m131-feature-copy p{font-size:.86rem;max-width:unset}
 .an-m131-feature-actions{gap:9px}
 .an-m131-pill{font-size:.69rem}
 .an-m131-link{font-size:.8rem;padding:10px 15px;min-height:40px}
 .an-m131-days-header{align-items:flex-start;flex-direction:column;margin:25px 2px 13px;gap:6px}
 .an-m131-caption{text-align:left}
 .an-m131-week-grid{grid-template-columns:1fr;gap:10px}
 .an-m131-day{display:grid;grid-template-columns:112px minmax(0,1fr);grid-template-rows:40px auto;align-items:stretch;border-radius:14px}
 .an-m131-day-top{grid-column:2;grid-row:1;padding:10px 11px;min-height:0}
 .an-m131-day-top strong{font-size:.86rem}
 .an-m131-day-photo{grid-column:1;grid-row:1/3;width:100%;height:100%;min-height:128px;aspect-ratio:auto}
 .an-m131-day-body{grid-column:2;grid-row:2;gap:6px;padding:9px 11px 12px}
 .an-m131-day-body>div{display:grid;grid-template-columns:57px minmax(0,1fr);gap:6px;align-items:baseline}
 .an-m131-day-body>div:not(:last-child){padding-bottom:5px}
 .an-m131-day-body strong{font-size:.77rem;line-height:1.35;overflow-wrap:anywhere}
 .an-m131-course-tag{font-size:.63rem}
 .an-dashboard-v130 .an-dashboard-primary-v130>article.an-dashboard-event-v130{padding:16px 18px}
 .an-m131-menu-hero{padding:15px 0 6px}
 .an-m131-menu-banner{display:flex;flex-direction:column;min-height:0;border-radius:21px}
 .an-m131-menu-banner picture{position:relative;inset:auto;width:100%;display:block;aspect-ratio:1.46/1;z-index:auto}
 .an-m131-menu-banner picture img{object-fit:cover;object-position:center 40%}
 .an-m131-menu-intro{width:100%;background:#fff6e7;align-items:flex-start;padding:18px 19px 23px;gap:10px}
 .an-m131-menu-intro h1{font-size:clamp(1.7rem,7.7vw,2.5rem)}
 .an-m131-menu-intro p{max-width:unset;font-size:.87rem}
 .an-m131-menu-day-photo{display:none} /* menu accordion is more readable without photos on phones; photos in Oggi a scuola */
}
@media(max-width:360px){
 .an-m131-day{grid-template-columns:93px minmax(0,1fr)}
 .an-m131-day-body>div{grid-template-columns:52px minmax(0,1fr)}
 .an-m131-feature-actions{flex-direction:column;align-items:flex-start}
}
@media(prefers-reduced-motion:reduce){.an-m125-daygrid .an-m125-day{transition:none}}
