/* Ada Negri 1.31.0 — Sistema grafico unico, leggibile e giocoso.
   Ultimo foglio in coda: corregge gli stili stratificati senza toccare la logica WordPress. */
:root {
  --an31-ink:#103462;
  --an31-muted:#4b6078;
  --an31-blue:#0d54ad;
  --an31-cream:#fffcf5;
  --an31-line:#dbe7f2;
  --an31-shadow:0 14px 34px rgba(12,53,105,.075);
  --an31-radius:24px;
}
html {scroll-padding-top:116px}
body {font-family:var(--an-body);font-size:18px;line-height:1.6;color:#263a53}
button,a,input,select,textarea {touch-action:manipulation}
a:focus-visible,button:focus-visible,summary:focus-visible {outline:3px solid #f4a62a;outline-offset:3px}
.an-wrap {max-width:100%}
.an-eyebrow {font-size:clamp(.82rem,.9vw,.94rem)!important;letter-spacing:.095em!important;font-weight:900}
/* Layout generale: niente cornici inutilmente lontane dal contenuto. */
.an-rich-section {padding-block:clamp(38px,4.1vw,68px)!important}
.an-rich-section .an-wrap {width:min(1370px,calc(100% - 54px))}
.an-rich-heading {max-width:1040px;margin-bottom:clamp(21px,2.6vw,36px)!important}
.an-rich-heading h2 {font-family:var(--an-display);font-size:clamp(2.25rem,3.35vw,3.75rem)!important;line-height:1.08!important;letter-spacing:-.035em!important;color:#0b397b}
.an-rich-heading p {font-size:clamp(1rem,1.15vw,1.17rem)!important;line-height:1.6!important;color:var(--an31-muted);max-width:72ch}
.an-rich-section-intro {padding-block:clamp(34px,4vw,66px)!important}
.an-rich-intro {gap:clamp(18px,3.3vw,56px)!important;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)!important}
.an-rich-intro h2 {font-size:clamp(2.25rem,3.65vw,4.3rem)!important;line-height:1.07!important;letter-spacing:-.032em!important;max-width:17ch}
.an-rich-intro p {font-size:clamp(1.03rem,1.3vw,1.26rem)!important;line-height:1.65!important;max-width:56ch}
/* Le card hanno una struttura ripetibile: icona > titolo > descrizione, e spazio sensato. */
.an-rich-grid {gap:clamp(14px,1.7vw,23px)!important}
.an-rich-grid-3 {grid-template-columns:repeat(3,minmax(0,1fr))!important}
.an-rich-grid-4 {grid-template-columns:repeat(4,minmax(0,1fr))!important}
.an-rich-card, .an-season-card,.an-day-card {
  min-width:0;border-radius:var(--an31-radius)!important;
  box-shadow:var(--an31-shadow);overflow-wrap:break-word;
}
.an-rich-card {padding:clamp(21px,2vw,29px)!important;min-height:220px;display:flex;flex-direction:column;align-items:flex-start;background:#fff}
.an-rich-card>img {width:clamp(62px,5.4vw,82px)!important;height:clamp(62px,5.4vw,82px)!important;object-fit:contain;margin:0 0 17px!important;padding:9px;background:color-mix(in srgb,var(--accent,#2d76c4) 7%,#fff);border-radius:18px}
.an-rich-card h3 {font-size:clamp(1.38rem,1.65vw,1.78rem)!important;line-height:1.16!important;letter-spacing:-.02em!important;margin:0 0 11px!important}
.an-rich-card p {font-size:clamp(.98rem,1.08vw,1.13rem)!important;line-height:1.58!important;color:#4d6077!important}
.an-rich-card .an-rich-tag {margin-top:auto;padding-top:12px;font-size:.82rem!important}
.an-rich-card--linked>a,.an-rich-card--linked .an-inline-link {margin-top:auto!important}
.an-season-grid {gap:clamp(12px,1.5vw,20px)!important}
.an-season-card {padding:clamp(19px,2vw,27px)!important;min-width:0}
.an-season-card img {width:58px!important;height:58px!important;object-fit:contain;margin:0 0 15px!important}
.an-season-card h3 {font-size:clamp(1.3rem,1.5vw,1.65rem)!important;line-height:1.18!important;margin-bottom:10px!important}
.an-season-card p,.an-season-card li {font-size:clamp(.98rem,1.06vw,1.1rem)!important;line-height:1.58!important}
.an-day-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
.an-day-card {padding:clamp(22px,2.1vw,30px)!important;min-height:0!important;background:#fff}
.an-day-card strong {font-size:clamp(1.35rem,1.95vw,2rem)!important;letter-spacing:-.025em;line-height:1.2;margin:0 0 14px!important}
.an-day-card h3 {font-size:clamp(1.2rem,1.4vw,1.55rem)!important;line-height:1.2!important;margin-bottom:10px!important}
.an-day-card p {font-size:clamp(.96rem,1vw,1.08rem)!important;line-height:1.58!important}
.an-school1315 .an-school1315-numbers .an-day-grid {grid-template-columns:repeat(4,minmax(0,1fr))!important}
/* Header e footer: maggior leggibilità, senza alterare loghi o collegamenti. */
.an-site-header .an-main-menu>li>a {font-size:clamp(.88rem,.94vw,1.01rem)!important}
.an-mobile-panel a {font-size:1.02rem!important}
.an-footer h3 {font-size:1.18rem!important}
.an-footer a,.an-footer p,.an-footer-info a,.an-footer-info span {font-size:clamp(.94rem,1vw,1.05rem)!important;line-height:1.55!important}
.an-footer-grid {gap:clamp(16px,2.5vw,40px)!important}
/* HERO INTERNE: pannello blu HTML + foto ritagliata originali: zero testi incorporati. */
body .an-art-hero-v1310 {background:linear-gradient(180deg,#fffaf1,#fffdf9)!important;padding:clamp(10px,1.4vw,20px) 0 clamp(14px,1.7vw,26px)!important;border-bottom:0!important}
body .an-art-hero-v1310>.an-wrap {width:min(1440px,calc(100% - 42px))!important;max-width:none!important}
body .an-art-hero-v1310 .an-art-hero-card {
  display:grid!important;grid-template-columns:minmax(0,44%) minmax(0,56%)!important;grid-template-rows:minmax(0,1fr)!important;
  width:100%!important;height:clamp(440px,37vw,555px)!important;min-height:0!important;max-height:none!important;
  aspect-ratio:auto!important;border-radius:32px!important;overflow:hidden!important;position:relative!important;
  background:#0b4fa5!important;box-shadow:0 16px 38px rgba(8,47,104,.12)!important;
}
body .an-art-hero-v1310 .an-art-hero-media {
  grid-column:2!important;grid-row:1!important;position:relative!important;inset:auto!important;z-index:1!important;
  display:block!important;width:100%!important;height:100%!important;min-height:0!important;aspect-ratio:auto!important;
  overflow:hidden!important;background:#d6ecff!important;
}
body .an-art-hero-v1310 .an-art-hero-media img {
  display:block!important;width:100%!important;height:100%!important;max-height:none!important;max-width:none!important;
  aspect-ratio:auto!important;object-fit:cover!important;object-position:52% center!important;filter:none!important;
}
body .an-art-hero-v1310 .an-art-hero-copy {
  grid-column:1!important;grid-row:1!important;position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;inset:auto!important;
  z-index:2!important;width:100%!important;max-width:none!important;min-height:0!important;height:100%!important;
  padding:clamp(28px,3.4vw,56px)!important;overflow:visible!important;
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;
  background:linear-gradient(137deg,#095ab8,#0b3c88)!important;color:#fff!important;text-shadow:none!important;
  pointer-events:auto!important;
}
body .an-art-hero-v1310 .an-art-hero-copy .an-eyebrow {
  font-size:clamp(.75rem,.95vw,.92rem)!important;letter-spacing:.095em!important;color:#d9efff!important;
  line-height:1.4!important;margin:0 0 clamp(12px,1.5vw,21px)!important;
}
body .an-art-hero-v1310 .an-art-hero-copy h1 {
  font-family:var(--an-display)!important;font-size:clamp(2.8rem,3.9vw,4.55rem)!important;
  line-height:1.055!important;font-weight:650!important;letter-spacing:-.037em!important;
  max-width:100%!important;width:auto!important;margin:0 0 clamp(13px,1.5vw,21px)!important;
  overflow-wrap:normal!important;text-wrap:balance!important;color:#fff!important;
}
body .an-art-hero-v1310 .an-art-hero-copy p {
  font-family:var(--an-body)!important;font-size:clamp(1.02rem,1.25vw,1.23rem)!important;line-height:1.52!important;
  font-weight:650!important;max-width:37ch!important;margin:0 0 clamp(16px,2vw,28px)!important;color:rgba(255,255,255,.96)!important;
}
body .an-art-hero-v1310 .an-hero1310-actions,
body .an-art-hero-v1310 .an-school-hero-actions {display:flex!important;flex-wrap:wrap;align-items:center;gap:10px!important;width:100%;margin:0!important}
body .an-art-hero-v1310 .an-hero1310-actions a,
body .an-art-hero-v1310 .an-school-hero-btn {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  min-height:48px!important;border-radius:999px!important;padding:12px 18px!important;
  font-family:var(--an-body)!important;font-size:clamp(.88rem,.95vw,1rem)!important;
  line-height:1.25!important;font-weight:900!important;text-decoration:none!important;white-space:normal!important;
  transition:transform .18s ease!important;pointer-events:auto!important;
}
body .an-art-hero-v1310 .an-hero1310-actions a:hover,
body .an-art-hero-v1310 .an-school-hero-btn:hover {transform:translateY(-2px)!important}
body .an-art-hero-v1310 .an-hero1310-primary,
body .an-art-hero-v1310 .an-school-hero-btn--solid {background:#fff!important;color:#0a4b9a!important;border:1px solid #fff!important;box-shadow:0 8px 20px rgba(0,29,74,.13)!important}
body .an-art-hero-v1310 .an-hero1310-secondary,
body .an-art-hero-v1310 .an-school-hero-btn--ghost {background:rgba(255,255,255,.09)!important;color:#fff!important;border:1px solid rgba(255,255,255,.55)!important}
/* Sulla pagina La Scuola: tre etichette sobrie, mai mini-schede né tagli. */
body .an-art-hero-v1310 .an-school-hero-pills {display:flex!important;flex-wrap:wrap;gap:8px!important;margin:0 0 18px!important}
body .an-art-hero-v1310 .an-school-hero-pill {font-size:.87rem!important;padding:7px 12px!important;color:#fff!important;border-radius:999px!important;border:1px solid rgba(255,255,255,.2)!important;background:rgba(255,255,255,.12)!important;white-space:nowrap!important}
/* Tono giocoso ma leggibile, senza spazi vuoti non giustificati. */
.an-rich-section .an-rich-grid .an-rich-card:hover{box-shadow:0 18px 38px rgba(10,58,116,.11)}
.an-rich-section .an-rich-grid .an-rich-card{transition:box-shadow .22s ease}
.an-contact-grid{gap:clamp(18px,2.1vw,30px)!important;align-items:start}
.an-form-card,.an-contact-card{border-radius:26px!important;padding:clamp(23px,3vw,34px)!important;box-shadow:var(--an31-shadow)!important}
.an-form-card h2,.an-contact-card h2{font-size:clamp(1.65rem,2.1vw,2.45rem)!important;line-height:1.15!important}
.an-form-card label{font-size:1rem!important;margin-top:15px!important}
.an-form-card input,.an-form-card select,.an-form-card textarea{font-size:1.04rem!important;min-height:48px!important}
.an-form-card textarea{min-height:140px!important}
.an-contact-list li{font-size:1.03rem!important;line-height:1.6!important}
/* Homepage: accessi e dati visibili, spaziature controllate. */
.an-season-family-shortcuts{padding-block:clamp(14px,1.7vw,22px)!important}
.an-season-family-shortcuts-grid{gap:clamp(12px,1.4vw,19px)!important}
.an-season-family-shortcut{min-height:225px!important;padding:22px 20px!important;border-radius:25px!important}
.an-season-family-shortcut-img{width:68px!important;height:68px!important;object-fit:contain}
.an-season-family-shortcut strong{font-size:clamp(1.34rem,1.55vw,1.6rem)!important}
.an-season-family-shortcut small{font-size:1.04rem!important;line-height:1.46!important}
.an-quick {padding-block:14px 28px!important}
.an-quick-item{min-height:188px!important;padding:22px 18px!important}
.an-quick-icon{width:65px!important;height:65px!important;margin:0 auto 12px!important}
.an-quick-item strong{font-size:clamp(1.48rem,1.8vw,1.92rem)!important}
.an-quick-item span{font-size:1.02rem!important;line-height:1.45!important}
.an-section{padding-block:clamp(48px,5.2vw,86px)!important}
.an-section-head{margin-bottom:clamp(22px,3vw,42px)!important}
.an-feature,.an-lesson{border-radius:25px!important;padding:clamp(23px,2.6vw,32px)!important}
.an-feature .an-card-icon,.an-card-icon{width:70px!important;height:70px!important}
.an-feature h3,.an-lesson h3{font-size:clamp(1.5rem,1.8vw,1.85rem)!important}
.an-feature p,.an-lesson p{font-size:1.04rem!important;line-height:1.58!important}
.an-family-home-grid>a{padding:24px!important;border-radius:24px!important}
/* Mensa / famiglia: meno aria intorno e nessuna riduzione dei pasti. */
.an-m125-content{padding-top:18px!important}
.an-m125-today-feature{padding:clamp(18px,2.1vw,27px)!important}
.an-m125-week{padding:clamp(15px,1.7vw,24px)!important}
.an-m125-footcard{padding:clamp(17px,1.6vw,23px)!important}
.an-dashboard-v130 .an-today-section-title h2{font-size:clamp(2rem,3vw,3.1rem)!important}
.an-dashboard-shortcuts-v130 a{border-radius:22px!important}
/* Programmazione in cinque colonne: 3+2 su schermi medi, non miniaturizzare i testi. */
@media(max-width:1220px){
  .an-rich-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .an-school1315 .an-school1315-numbers .an-day-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .an-day-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:1050px){
  body .an-art-hero-v1310 .an-art-hero-card {display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;aspect-ratio:auto!important;border-radius:28px!important}
  body .an-art-hero-v1310 .an-art-hero-media {position:relative!important;width:100%!important;flex:none!important;height:clamp(240px,38vw,370px)!important;aspect-ratio:auto!important;inset:auto!important;order:0!important}
  body .an-art-hero-v1310 .an-art-hero-media img{width:100%!important;height:100%!important;object-position:50% 43%!important;aspect-ratio:auto!important}
  body .an-art-hero-v1310 .an-art-hero-copy {position:relative!important;inset:auto!important;order:1!important;flex:none!important;width:100%!important;min-height:0!important;height:auto!important;padding:clamp(24px,3.5vw,37px)!important;background:linear-gradient(125deg,#0955ad,#0c3b84)!important}
  body .an-art-hero-v1310 .an-art-hero-copy h1{font-size:clamp(2.5rem,4.7vw,3.7rem)!important;max-width:22ch!important}
  body .an-art-hero-v1310 .an-art-hero-copy p{font-size:1.08rem!important;max-width:58ch!important}
  .an-rich-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
  body{font-size:17px;line-height:1.6}
  body .an-art-hero-v1310{padding:10px 0 16px!important}
  body .an-art-hero-v1310>.an-wrap{width:calc(100% - 24px)!important}
  body .an-art-hero-v1310 .an-art-hero-card{border-radius:24px!important}
  body .an-art-hero-v1310 .an-art-hero-media{height:clamp(215px,61vw,315px)!important}
  body .an-art-hero-v1310 .an-art-hero-media img{object-position:52% 45%!important}
  body .an-art-hero-v1310 .an-art-hero-copy{padding:23px 22px 25px!important}
  body .an-art-hero-v1310 .an-art-hero-copy .an-eyebrow{font-size:.78rem!important;margin-bottom:9px!important}
  body .an-art-hero-v1310 .an-art-hero-copy h1{font-size:clamp(2.35rem,9vw,3.3rem)!important;line-height:1.08!important;max-width:none!important;margin:0 0 11px!important}
  body .an-art-hero-v1310 .an-art-hero-copy p{font-size:1.02rem!important;line-height:1.55!important;max-width:none!important;margin-bottom:16px!important}
  body .an-art-hero-v1310 .an-hero1310-actions,
  body .an-art-hero-v1310 .an-school-hero-actions{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
  body .an-art-hero-v1310 .an-hero1310-actions a,
  body .an-art-hero-v1310 .an-school-hero-btn{width:100%!important;min-height:47px!important;font-size:.98rem!important}
  body .an-art-hero-v1310 .an-school-hero-pills{margin-bottom:16px!important}
  .an-rich-section{padding-block:36px!important}
  .an-rich-section .an-wrap{width:calc(100% - 34px)!important}
  .an-rich-intro{grid-template-columns:1fr!important;gap:17px!important}
  .an-rich-intro h2{font-size:clamp(2.1rem,7.5vw,3rem)!important;max-width:none}
  .an-rich-intro p{font-size:1.04rem!important}
  .an-rich-heading h2{font-size:clamp(2.15rem,7vw,3.15rem)!important}
  .an-rich-grid-3,.an-rich-grid-4,.an-day-grid,.an-season-grid,
  .an-school1315 .an-school1315-numbers .an-day-grid{grid-template-columns:1fr!important;gap:13px!important}
  .an-rich-card {padding:22px!important;min-height:0!important;border-radius:23px!important}
  .an-rich-card>img{width:67px!important;height:67px!important;margin-bottom:13px!important}
  .an-rich-card h3{font-size:1.43rem!important}
  .an-rich-card p{font-size:1rem!important}
  .an-season-card,.an-day-card {padding:21px!important}
  .an-season-card h3{font-size:1.38rem!important}
  .an-day-card strong{font-size:1.8rem!important}
  .an-rich-section-intro{padding-block:37px!important}
  .an-contact-grid{grid-template-columns:1fr!important}
  .an-form-card,.an-contact-card{padding:23px!important}
  .an-season-family-shortcuts-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .an-season-family-shortcut{min-height:190px!important;padding:20px 16px!important}
  .an-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .an-quick-item{min-height:156px!important;padding:16px!important}
  .an-quick-icon{width:50px!important;height:50px!important}
  .an-quick-item strong{font-size:1.25rem!important}
  .an-quick-item span{font-size:.92rem!important}
  .an-footer-grid{gap:22px!important}
}
@media(max-width:420px){
  .an-season-family-shortcuts-grid,.an-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .an-season-family-shortcut{min-height:166px!important;padding:14px 10px!important}
  .an-quick-item{min-height:148px!important;padding:14px 10px!important}
  .an-season-family-shortcut small,.an-quick-item span{font-size:.87rem!important}
  body .an-art-hero-v1310 .an-art-hero-copy{padding:21px 19px 23px!important}
  body .an-art-hero-v1310 .an-art-hero-copy h1{font-size:clamp(2.12rem,9vw,2.7rem)!important}
}
@media(prefers-reduced-motion:reduce){
  .an-rich-card,.an-hero1310-actions a,.an-school-hero-btn{transition:none!important;transform:none!important}
}
