/* Ada Negri v1.29.5 — Oggi a scuola hero layout.
   Only CSS, only existing approved imagery, no new generated assets.
   Loaded after seasonal and autumn CSS to avoid old cascade overrides. */

body .an-today-hero {
  padding: clamp(14px, 2.6vw, 34px) 0 clamp(24px, 3vw, 42px);
  border-bottom: 1px solid #efe5d8;
  background: linear-gradient(160deg, #fffaf3 0%, #fdf8f1 55%, #f8fbff 100%);
}
body.an-season-active .an-today-hero {
  background: linear-gradient(160deg, var(--an-s-bg, #fffaf3) 0%, #fffaf4 60%, #f8fbff 100%);
}
body .an-today-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  min-height: 390px;
  padding: 0;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border: 1px solid #eddfcc;
  border-radius: 28px;
  background: linear-gradient(100deg, #fffaf4 0%, #fff7eb 56%, #fff 100%);
  box-shadow: 0 18px 45px rgba(25, 62, 102, .095);
}
body .an-today-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: clamp(27px, 3.8vw, 62px);
}
body .an-today-hero .an-eyebrow {
  margin: 0;
  font-size: clamp(.7rem, .95vw, .87rem);
  line-height: 1.4;
  letter-spacing: .12em;
}
body .an-today-hero h1 {
  max-width: 100%;
  margin: 16px 0 14px;
  font-size: clamp(2.35rem, 4.35vw, 4.35rem);
  line-height: 1.08;
  letter-spacing: -.048em;
  text-wrap: balance;
}
body .an-today-hero p {
  max-width: 50ch;
  margin: 0 0 23px;
  font-size: clamp(.98rem, 1.24vw, 1.13rem);
  line-height: 1.6;
}
body .an-today-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
body .an-today-hero-actions .an-btn {
  min-height: 44px;
  width: auto;
}
body .an-today-hero-mark {
  min-width: 0;
  width: 100%;
  height: 100%;
  min-height: 390px;
  position: relative;
  display: block;
  overflow: hidden;
  align-self: stretch;
  background: #f8eee1;
}
body .an-today-hero-mark img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}
body .an-today-hero-mark::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 18%;
  background: linear-gradient(to right, #fff7eb 0%, rgba(255, 247, 235, 0) 100%);
  pointer-events: none;
}
body.an-season-active .an-today-hero .an-season-badge {
  max-width: 100%;
  margin: 14px 0 0;
}

@media (max-width: 1000px) and (min-width: 761px) {
  body .an-today-hero-inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .9fr);
    min-height: 335px;
  }
  body .an-today-hero-copy {padding: 30px 26px;}
  body .an-today-hero h1 {font-size: clamp(2rem, 4.3vw, 3.1rem);}
  body .an-today-hero p {font-size: .96rem;}
  body .an-today-hero-mark {min-height: 335px;}
}

@media (max-width: 760px) {
  body .an-today-hero {padding: 12px 0 25px;}
  body .an-today-hero-inner {
    display: flex;
    flex-direction: column-reverse;
    min-height: 0;
    gap: 0;
    border-radius: 22px;
  }
  body .an-today-hero-mark {
    flex: none;
    display: block;
    height: auto;
    min-height: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }
  body .an-today-hero-mark img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 50% 48%;
  }
  body .an-today-hero-mark::after {content: none;}
  body .an-today-hero-copy {
    width: 100%;
    padding: clamp(19px, 5.4vw, 30px);
  }
  body .an-today-hero h1 {
    margin: 13px 0 12px;
    font-size: clamp(2.15rem, 8.5vw, 3.2rem);
  }
  body .an-today-hero p {
    margin: 0 0 20px;
    font-size: .98rem;
  }
  body .an-today-hero-actions {width: 100%;}
  body .an-today-hero-actions .an-btn {min-height: 44px;}
}

@media (max-width: 365px) {
  body .an-today-hero h1 {font-size: 2.1rem;}
  body .an-today-hero-actions {gap: 8px;}
  body .an-today-hero-actions .an-btn {font-size: .84rem; padding-inline: 14px;}
}
