/* ==========================================================================
   allnews24.eu — quotidiano-digitale theme
   CSS Prefix: an24-
   Mobile-first, no external dependencies
   ========================================================================== */

/* --------------------------------------------------------------------------
   @font-face
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'PT Serif';
  src: url('../fonts/PTSerif-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PT Serif';
  src: url('../fonts/PTSerif-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PT Serif';
  src: url('../fonts/PTSerif-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Public Sans';
  src: url('../fonts/PublicSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Public Sans';
  src: url('../fonts/PublicSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Public Sans';
  src: url('../fonts/PublicSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Public Sans';
  src: url('../fonts/PublicSans-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */

:root {
  /* Colori */
  --an24-ink: #14171A;
  --an24-azzurro: #2E5AAC;
  --an24-accent: #2E5AAC;
  --an24-breaking: #CC0000;
  --an24-bg: #F9F9F9;
  --an24-surface: #FFFFFF;
  --an24-muted: #6B7280;
  --an24-border: #E5E7EB;

  /* Rubrik-Farben */
  --an24-economia: #2E5AAC;
  --an24-salute: #16A34A;
  --an24-ambiente: #8B6914;
  --an24-tecnologia: #64748B;

  /* Typografie */
  --an24-font-serif: 'PT Serif', Georgia, serif;
  --an24-font-sans: 'Public Sans', system-ui, sans-serif;

  /* Abstände */
  --an24-space-xs: 0.25rem;
  --an24-space-sm: 0.5rem;
  --an24-space-md: 1rem;
  --an24-space-lg: 1.5rem;
  --an24-space-xl: 2rem;
  --an24-space-2xl: 3rem;

  /* Radien */
  --an24-radius-sm: 3px;
  --an24-radius-md: 6px;
  --an24-radius-lg: 8px;

  /* Schatten */
  --an24-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --an24-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);

  /* Transitionen */
  --an24-transition: 0.2s ease;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--an24-font-sans);
  font-size: 1rem;
  color: var(--an24-ink);
  background-color: var(--an24-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--an24-font-serif);
  line-height: 1.25;
  color: var(--an24-ink);
}

a {
  color: var(--an24-azzurro);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.an24-container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.an24-main {
  padding-top: var(--an24-space-xl);
}

/* Grids (mobile-first: 1 Spalte) */

.an24-grid-2,
.an24-grid-3,
.an24-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .an24-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .an24-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .an24-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .an24-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .an24-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.an24-header {
  position: relative;
  z-index: 99;
  background-color: var(--an24-surface);
}

.an24-header__inner {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Top-Bar */

.an24-topbar {
  background-color: var(--an24-ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.35rem 0;
}

.an24-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.an24-topbar__date {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.an24-topbar__breaking {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.an24-topbar__breaking-label {
  background-color: var(--an24-breaking);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  text-transform: uppercase;
}

.an24-topbar__breaking-text {
  color: #E5E7EB;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.an24-topbar__breaking-text a {
  color: #E5E7EB;
  text-decoration: none;
}

.an24-topbar__breaking-text a:hover {
  text-decoration: underline;
}

/* Masthead */

.an24-masthead {
  padding: 1.25rem 0 0;
  background-color: var(--an24-surface);
}

.an24-masthead__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 1rem;
}

.an24-masthead__logo {
  display: inline-block;
  text-decoration: none;
}

.an24-masthead__logo:hover {
  text-decoration: none;
  opacity: 0.85;
}

.an24-masthead__logo img {
  height: 48px;
  width: auto;
  display: inline-block;
}

.an24-masthead__logo-text {
  font-family: var(--an24-font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--an24-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

.an24-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--an24-accent);
  color: #ffffff;
  font-family: var(--an24-font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
}

.an24-search-btn:hover {
  background-color: #254d99;
}

/* Nav-Bar */

.an24-navbar {
  background-color: var(--an24-surface);
  border-top: 1px solid var(--an24-border);
  border-bottom: 3px solid var(--an24-azzurro);
  position: sticky;
  top: 0;
  z-index: 100;
}

.an24-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.an24-navbar__inner::-webkit-scrollbar {
  display: none;
}

.an24-nav {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

.an24-nav-link {
  display: inline-block;
  padding: 14px 18px;
  font-family: var(--an24-font-sans);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--an24-ink);
  text-decoration: none;
  border-bottom: 4px solid transparent;
  transition: color 0.15s, border-bottom-color 0.15s;
}

.an24-nav-link:hover {
  color: var(--an24-accent);
  text-decoration: none;
  border-bottom-color: var(--an24-accent);
}

.an24-nav-link--economia:hover,
.an24-nav-link--economia.active {
  border-bottom-color: var(--an24-economia);
  color: var(--an24-economia);
}

.an24-nav-link--salute:hover,
.an24-nav-link--salute.active {
  border-bottom-color: var(--an24-salute);
  color: var(--an24-salute);
}

.an24-nav-link--ambiente:hover,
.an24-nav-link--ambiente.active {
  border-bottom-color: var(--an24-ambiente);
  color: var(--an24-ambiente);
}

.an24-nav-link--tecnologia:hover,
.an24-nav-link--tecnologia.active {
  border-bottom-color: var(--an24-tecnologia);
  color: var(--an24-tecnologia);
}

/* Breaking-Bar */

.an24-breaking-bar {
  background-color: var(--an24-breaking);
  color: #ffffff;
  padding: 0.4rem 0;
  font-weight: 700;
  font-size: 0.8rem;
}

.an24-breaking-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
}

.an24-breaking-bar__label {
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.1rem 0.5rem;
  border-radius: var(--an24-radius-sm);
}

.an24-breaking-bar__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.an24-breaking-bar__link {
  color: #ffffff;
  text-decoration: none;
}

.an24-breaking-bar__link:hover {
  text-decoration: underline;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.an24-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 0;
  background: linear-gradient(135deg, var(--an24-ink) 0%, #2a3040 100%);
}

.an24-hero__img {
  width: 100%;
  height: 460px;
  overflow: hidden;
}

.an24-hero__img img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}

.an24-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 18, 35, 0.96) 0%, rgba(10, 18, 35, 0.7) 50%, transparent 100%);
}

.an24-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: #ffffff;
}

.an24-hero__badge {
  margin-bottom: 0.75rem;
}

.an24-hero__title {
  font-family: var(--an24-font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.an24-hero__title a {
  color: #ffffff;
  text-decoration: none;
}

.an24-hero__title a:hover {
  text-decoration: underline;
  color: #ffffff;
}

.an24-hero__excerpt {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  display: none;
}

.an24-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
}

.an24-hero__meta strong {
  color: rgba(255, 255, 255, 0.88);
}

.an24-hero__readmore {
  display: inline-block;
  background-color: var(--an24-accent);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 22px;
  margin-top: 1rem;
  text-decoration: none;
}

.an24-hero__readmore:hover {
  background-color: #254d99;
  color: #ffffff;
}

@media (min-width: 768px) {
  .an24-hero__img {
    height: 400px;
  }

  .an24-hero__img img {
    height: 400px;
  }

  .an24-hero__title {
    font-size: 2rem;
  }

  .an24-hero__excerpt {
    display: block;
  }

  .an24-hero__content {
    padding: 2rem;
  }
}

.an24-hero--nogradient {
  background: linear-gradient(135deg, var(--an24-ink) 0%, #2a3040 100%);
}

.an24-hero__img--fallback {
  height: 300px;
}

@media (min-width: 1024px) {
  .an24-hero__img {
    height: 480px;
  }

  .an24-hero__img img {
    height: 480px;
  }

  .an24-hero__title {
    font-size: 2.2rem;
  }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.an24-card {
  background-color: var(--an24-surface);
  border-radius: var(--an24-radius-lg);
  box-shadow: var(--an24-shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--an24-transition), transform var(--an24-transition);
  display: flex;
  flex-direction: column;
}

.an24-card:hover {
  box-shadow: var(--an24-shadow-md);
  transform: translateY(-2px);
}

.an24-card__image {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--an24-radius-lg) var(--an24-radius-lg) 0 0;
  aspect-ratio: 16 / 9;
  background-color: var(--an24-border);
  flex-shrink: 0;
}

.an24-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.an24-card:hover .an24-card__image img {
  transform: scale(1.03);
}

.an24-card__body {
  padding: 1.2rem;
}

.an24-card__badge {
  margin-bottom: 0.6rem;
}

.an24-card__title {
  font-family: var(--an24-font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--an24-ink);
}

.an24-card__title a {
  color: var(--an24-ink);
  text-decoration: none;
}

.an24-card__title a:hover {
  color: var(--an24-azzurro);
  text-decoration: none;
}

.an24-card__excerpt {
  font-size: 0.9rem;
  color: var(--an24-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.an24-card__meta {
  font-size: 0.8rem;
  color: var(--an24-muted);
  margin-top: 0.75rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.an24-card__byline {
  font-size: 0.72rem;
  color: var(--an24-muted);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--an24-border);
}

.an24-card__byline strong {
  color: var(--an24-ink);
}

/* Card variante senza immagine */

.an24-card--minimal {
  display: flex;
  gap: 1rem;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--an24-border);
  padding: 1rem 0;
  background: transparent;
}

.an24-card--minimal:hover {
  box-shadow: none;
  transform: none;
}

.an24-card--minimal .an24-card__image {
  flex-shrink: 0;
  width: 100px;
  aspect-ratio: 4 / 3;
  border-radius: var(--an24-radius-md);
}

.an24-card--minimal .an24-card__body {
  padding: 0;
  flex: 1;
}

.an24-card--minimal .an24-card__title {
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Rubrik-Badges
   -------------------------------------------------------------------------- */

.an24-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--an24-radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  line-height: 1;
}

.an24-badge--economia {
  background-color: var(--an24-economia);
}

.an24-badge--salute {
  background-color: var(--an24-salute);
}

.an24-badge--ambiente {
  background-color: var(--an24-ambiente);
}

.an24-badge--tecnologia {
  background-color: var(--an24-tecnologia);
}

.an24-badge--breaking {
  background-color: var(--an24-breaking);
}

/* --------------------------------------------------------------------------
   Rubrik-Sektionen
   -------------------------------------------------------------------------- */

.an24-section {
  margin-bottom: var(--an24-space-2xl);
}

.an24-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 4px solid var(--an24-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.an24-section--economia .an24-section-header {
  border-bottom-color: var(--an24-economia);
}

.an24-section--salute .an24-section-header {
  border-bottom-color: var(--an24-salute);
}

.an24-section--ambiente .an24-section-header {
  border-bottom-color: var(--an24-ambiente);
}

.an24-section--tecnologia .an24-section-header {
  border-bottom-color: var(--an24-tecnologia);
}

.an24-section-title {
  font-family: var(--an24-font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--an24-ink);
}

.an24-section--economia .an24-section-title {
  color: var(--an24-economia);
}

.an24-section--salute .an24-section-title {
  color: var(--an24-salute);
}

.an24-section--ambiente .an24-section-title {
  color: var(--an24-ambiente);
}

.an24-section--tecnologia .an24-section-title {
  color: var(--an24-tecnologia);
}

.an24-section-more {
  font-size: 0.85rem;
  color: var(--an24-azzurro);
  text-decoration: none;
  white-space: nowrap;
  margin-left: 1rem;
}

.an24-section-more:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Homepage Layouts — Featured Grid + Sidebar + Split
   -------------------------------------------------------------------------- */

/* Economia: 2fr featured card + 1fr sidebar list */
.an24-featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .an24-featured-grid {
    grid-template-columns: 1fr;
  }
}

.an24-featured-grid .an24-card__title {
  font-size: 1.25rem;
}

/* Sidebar list (titles only, stacked) */
.an24-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.an24-sidebar-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--an24-border);
}

.an24-sidebar-item:last-child {
  border-bottom: none;
}

.an24-sidebar-item__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.an24-sidebar-item__date {
  font-size: 0.72rem;
  color: var(--an24-muted);
}

.an24-sidebar-item__title {
  font-family: var(--an24-font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--an24-ink);
}

.an24-sidebar-item__title a {
  color: var(--an24-ink);
  text-decoration: none;
}

.an24-sidebar-item__title a:hover {
  color: var(--an24-azzurro);
}

/* Split 2-col: Salute + Ambiente side by side */
.an24-split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: var(--an24-space-2xl);
}

@media (max-width: 768px) {
  .an24-split-2 {
    grid-template-columns: 1fr;
  }
}

.an24-split-2 .an24-section {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Ultime Notizie Strip
   -------------------------------------------------------------------------- */

.an24-ultime {
  background-color: var(--an24-ink);
  color: #ffffff;
  padding: var(--an24-space-xl) 0;
  margin-bottom: var(--an24-space-xl);
}

.an24-ultime__heading {
  font-family: var(--an24-font-serif);
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.an24-ultime__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.an24-ultime__item {
  border-left: 3px solid var(--an24-azzurro);
  padding-left: 1rem;
}

.an24-ultime__title {
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.an24-ultime__title a {
  color: #ffffff;
  text-decoration: none;
}

.an24-ultime__title a:hover {
  text-decoration: underline;
  color: rgba(255, 255, 255, 0.85);
}

.an24-ultime__badge {
  margin-bottom: 7px;
}

.an24-ultime__date {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (min-width: 768px) {
  .an24-ultime__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .an24-ultime__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Artikel-Seite
   -------------------------------------------------------------------------- */

.an24-article-header {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--an24-space-xl);
}

.an24-breadcrumbs {
  font-size: 0.8rem;
  color: var(--an24-muted);
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.an24-breadcrumbs a {
  color: var(--an24-muted);
  text-decoration: none;
}

.an24-breadcrumbs a:hover {
  color: var(--an24-azzurro);
  text-decoration: underline;
}

.an24-breadcrumbs__sep {
  color: var(--an24-border);
}

.an24-article-header__title {
  font-family: var(--an24-font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.an24-article-header__subtitle {
  font-size: 1.1rem;
  color: var(--an24-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.an24-meta-bar {
  font-size: 0.85rem;
  color: var(--an24-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin: 1rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid var(--an24-border);
  border-bottom: 1px solid var(--an24-border);
}

.an24-meta-bar__author {
  font-weight: 500;
  color: var(--an24-ink);
}

.an24-reading-time {
  white-space: nowrap;
}

.an24-article-hero {
  max-width: 720px;
  margin: 0 auto var(--an24-space-xl);
  border-radius: var(--an24-radius-lg);
  overflow: hidden;
}

.an24-article-hero img {
  width: 100%;
  height: auto;
  border-radius: var(--an24-radius-lg);
}

.an24-article-hero figcaption {
  font-size: 0.8rem;
  color: var(--an24-muted);
  margin-top: 0.5rem;
  padding: 0 0.25rem;
}

/* Artikel-Body */

.an24-article-body {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.an24-article-body p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--an24-ink);
}

.an24-article-body h2 {
  font-family: var(--an24-font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--an24-border);
  line-height: 1.25;
}

.an24-article-body h3 {
  font-family: var(--an24-font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.an24-article-body h4 {
  font-family: var(--an24-font-sans);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.an24-article-body blockquote {
  border-left: 4px solid var(--an24-azzurro);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--an24-muted);
  font-family: var(--an24-font-serif);
}

.an24-article-body blockquote p {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.an24-article-body img {
  max-width: 100%;
  border-radius: var(--an24-radius-md);
  height: auto;
}

.an24-article-body figure {
  margin: 2rem 0;
}

.an24-article-body figcaption {
  font-size: 0.8rem;
  color: var(--an24-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

.an24-article-body ul,
.an24-article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.an24-article-body ul {
  list-style: disc;
}

.an24-article-body ol {
  list-style: decimal;
}

.an24-article-body li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.an24-article-body a {
  color: var(--an24-azzurro);
  text-decoration: underline;
}

.an24-article-body strong {
  font-weight: 700;
}

.an24-article-body em {
  font-style: italic;
}

/* Author-Box */

.an24-author-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background-color: var(--an24-bg);
  border-radius: var(--an24-radius-lg);
  margin-top: var(--an24-space-2xl);
}

.an24-author-box__avatar {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background-color: var(--an24-azzurro);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  font-family: var(--an24-font-sans);
}

.an24-author-box__info {
  flex: 1;
}

.an24-author-box__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--an24-ink);
  margin-bottom: 0.25rem;
}

.an24-author-box__bio {
  font-size: 0.9rem;
  color: var(--an24-muted);
  line-height: 1.5;
}

/* Related */

.an24-related {
  margin-top: var(--an24-space-2xl);
}

.an24-related__title {
  font-family: var(--an24-font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--an24-border);
}

.an24-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .an24-related__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .an24-article-header__title {
    font-size: 2.2rem;
  }
}

@media (min-width: 1024px) {
  .an24-article-header__title {
    font-size: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   Archiv-Seite
   -------------------------------------------------------------------------- */

/* Header */
.an24-archive-header {
  padding: 32px 0;
  color: #ffffff;
  margin-bottom: 0;
}

.an24-archive-header--economia { background-color: var(--an24-economia); }
.an24-archive-header--salute   { background-color: var(--an24-salute); }
.an24-archive-header--ambiente { background-color: var(--an24-ambiente); }
.an24-archive-header--tecnologia { background-color: var(--an24-tecnologia); }

.an24-archive-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.an24-archive-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 6px;
}

.an24-archive-title {
  font-family: var(--an24-font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.an24-archive-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  line-height: 1.5;
}

.an24-archive-stats {
  margin-top: 14px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
}

/* 2-column layout: main + sidebar */
.an24-archive-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
}

@media (max-width: 900px) {
  .an24-archive-body { grid-template-columns: 1fr; }
  .an24-archive-aside { display: none; }
}

/* Featured article */
.an24-archive-featured {
  background: var(--an24-surface);
  box-shadow: var(--an24-shadow-sm);
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

@media (max-width: 600px) {
  .an24-archive-featured { grid-template-columns: 1fr; }
}

.an24-archive-featured-img {
  display: block;
  overflow: hidden;
  min-height: 220px;
}

.an24-archive-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.an24-archive-featured-img--placeholder {
  min-height: 220px;
}

.an24-archive-featured-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.an24-archive-featured-kicker { margin-bottom: 10px; }

.an24-archive-featured-title {
  font-family: var(--an24-font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 10px;
}

.an24-archive-featured-title a {
  color: var(--an24-ink);
  text-decoration: none;
}

.an24-archive-featured-title a:hover {
  color: var(--an24-azzurro);
}

.an24-archive-featured-excerpt {
  font-size: 0.85rem;
  color: var(--an24-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.an24-archive-featured-meta {
  font-size: 0.72rem;
  color: var(--an24-muted);
}

.an24-archive-featured-meta strong { color: var(--an24-ink); }

/* Card grid */
.an24-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 500px) {
  .an24-archive-grid { grid-template-columns: 1fr; }
}

/* Archive card inner (flat classes, used only in archive grid) */
.an24-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.an24-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.an24-card-date {
  font-size: 0.72rem;
  color: var(--an24-muted);
  font-weight: 500;
}

.an24-card-title {
  font-family: var(--an24-font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--an24-ink);
}

.an24-card-title a {
  color: var(--an24-ink);
  text-decoration: none;
}

.an24-card-title a:hover { color: var(--an24-azzurro); }

.an24-card-excerpt {
  font-size: 0.85rem;
  color: var(--an24-muted);
  line-height: 1.55;
  flex: 1;
}

.an24-card-byline {
  font-size: 0.72rem;
  color: var(--an24-muted);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--an24-border);
}

.an24-card-byline strong { color: var(--an24-ink); }

/* Newsletter widget (sidebar) */
.an24-newsletter-widget {
  color: #fff;
  padding: 20px;
  margin-bottom: 20px;
}

.an24-newsletter-widget-title {
  font-family: var(--an24-font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.an24-newsletter-widget p {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 14px;
  line-height: 1.5;
}

.an24-newsletter-input {
  width: 100%;
  padding: 9px 12px;
  border: none;
  font-family: var(--an24-font-sans);
  font-size: 0.82rem;
  margin-bottom: 8px;
  box-sizing: border-box;
}

.an24-newsletter-btn {
  width: 100%;
  background: var(--an24-ink);
  color: #fff;
  border: none;
  padding: 10px;
  font-family: var(--an24-font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
}

/* Aside widgets */
.an24-aside-widget {
  background: var(--an24-surface);
  box-shadow: var(--an24-shadow-sm);
  padding: 18px;
  margin-bottom: 20px;
}

.an24-aside-widget-title {
  font-family: var(--an24-font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--an24-ink);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--an24-azzurro);
  margin-bottom: 14px;
}

.an24-aside-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--an24-muted);
  background: #F3F4F6;
  padding: 5px 10px;
  margin: 0 4px 6px 0;
}

.an24-aside-rubriche-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--an24-border);
  font-size: 0.84rem;
}

.an24-aside-rubriche-item:last-child { border-bottom: none; }

.an24-aside-rubriche-name {
  font-weight: 600;
  text-decoration: none;
}

.an24-aside-rubriche-name:hover { text-decoration: underline; }

.an24-aside-rubriche-count {
  font-size: 0.72rem;
  color: var(--an24-muted);
  background: #F3F4F6;
  padding: 2px 7px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.an24-footer {
  background-color: var(--an24-ink);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--an24-space-2xl) 0 0;
  margin-top: var(--an24-space-2xl);
}

.an24-footer__inner {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.an24-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: var(--an24-space-xl);
}

@media (min-width: 768px) {
  .an24-footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.an24-footer__col-title {
  font-family: var(--an24-font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 1rem;
}

.an24-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.an24-footer__nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--an24-transition);
}

.an24-footer__nav a:hover {
  color: #ffffff;
  text-decoration: none;
}

.an24-footer__logo-text {
  font-family: var(--an24-font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.an24-footer__tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.an24-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  margin-top: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.an24-footer__bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.an24-footer__bottom a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.an24-footer__copyright {
  margin: 0;
}

.an24-footer__col {
  min-width: 0;
}

.an24-footer__col--about .an24-footer__tagline {
  margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   Hero image element
   -------------------------------------------------------------------------- */

.an24-hero__imgel {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   404 / Search
   -------------------------------------------------------------------------- */

.an24-404 {
  text-align: center;
  padding: 4rem 0;
}

.an24-404__code {
  font-family: var(--an24-font-serif);
  font-size: 6rem;
  font-weight: 700;
  color: var(--an24-border);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.an24-404__title {
  font-family: var(--an24-font-serif);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.an24-404__text {
  font-size: 1rem;
  color: var(--an24-muted);
  margin-bottom: 2rem;
}

.an24-404__inner {
  max-width: 600px;
  margin: 0 auto;
}

.an24-404__search {
  margin-bottom: 2rem;
}

.an24-404__rubriche {
  margin-top: 2rem;
}

.an24-404__nav-label {
  font-size: 0.9rem;
  color: var(--an24-muted);
  margin-bottom: 0.75rem;
}

.an24-404__nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.an24-404__nav-item {
  list-style: none;
}

.an24-404__home-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--an24-azzurro);
  font-size: 0.9rem;
  text-decoration: none;
}

.an24-404__home-link:hover {
  text-decoration: underline;
}

.an24-search-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 0;
  border-radius: var(--an24-radius-md);
  overflow: hidden;
  border: 1px solid var(--an24-border);
}

.an24-search-form__input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: none;
  outline: none;
  font-family: var(--an24-font-sans);
  color: var(--an24-ink);
  background-color: var(--an24-surface);
}

.an24-search-form__btn {
  padding: 0.75rem 1.25rem;
  background-color: var(--an24-azzurro);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-family: var(--an24-font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color var(--an24-transition);
}

.an24-search-form__btn:hover {
  background-color: #234a8f;
}

.an24-search__form {
  margin-bottom: var(--an24-space-xl);
}

.an24-search__home-link {
  display: inline-block;
  margin-top: var(--an24-space-lg);
  color: var(--an24-azzurro);
  font-size: 0.9rem;
  text-decoration: none;
}

.an24-search__home-link:hover {
  text-decoration: underline;
}

/* Suchresultate */

.an24-search-results__header {
  margin-bottom: var(--an24-space-xl);
}

.an24-search-results__term {
  font-family: var(--an24-font-serif);
  font-size: 1.6rem;
}

.an24-search-results__count {
  font-size: 0.9rem;
  color: var(--an24-muted);
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.an24-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--an24-space-xl) 0;
}

.an24-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background-color: var(--an24-surface);
  border: 1px solid var(--an24-border);
  color: var(--an24-ink);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color var(--an24-transition), border-color var(--an24-transition);
  min-width: 2.5rem;
}

.an24-pagination .page-numbers:hover {
  background-color: var(--an24-bg);
  border-color: var(--an24-azzurro);
  color: var(--an24-azzurro);
  text-decoration: none;
}

.an24-pagination .page-numbers.current {
  background-color: var(--an24-azzurro);
  color: #ffffff;
  border-color: var(--an24-azzurro);
  font-weight: 700;
}

.an24-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.an24-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.an24-line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.an24-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.an24-text-muted {
  color: var(--an24-muted);
}

.an24-text-center {
  text-align: center;
}

.an24-mt-auto {
  margin-top: auto;
}

.an24-divider {
  border: none;
  border-top: 1px solid var(--an24-border);
  margin: var(--an24-space-xl) 0;
}

.an24-no-results {
  font-size: 1rem;
  color: var(--an24-muted);
  padding: var(--an24-space-xl) 0;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Pages (page.php)
   -------------------------------------------------------------------------- */

.an24-page__header {
  margin-bottom: var(--an24-space-xl);
}

.an24-page__title {
  font-family: var(--an24-font-serif);
  font-size: 2rem;
  font-weight: 700;
}

.an24-page__body {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.an24-page__body p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Index / Fallback (index.php)
   -------------------------------------------------------------------------- */

.an24-index__title {
  font-family: var(--an24-font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--an24-space-xl);
}

.an24-index__list {
  display: flex;
  flex-direction: column;
  gap: var(--an24-space-lg);
}

.an24-index__item {
  border-bottom: 1px solid var(--an24-border);
  padding-bottom: var(--an24-space-lg);
}

.an24-index__item-title {
  font-family: var(--an24-font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.an24-index__item-title a {
  color: var(--an24-ink);
  text-decoration: none;
}

.an24-index__item-title a:hover {
  color: var(--an24-azzurro);
}

.an24-index__item-meta {
  font-size: 0.85rem;
  color: var(--an24-muted);
  margin-bottom: 0.5rem;
}

.an24-index__item-imgwrap {
  display: block;
  margin: 0.75rem 0;
  border-radius: var(--an24-radius-md);
  overflow: hidden;
  max-width: 300px;
}

.an24-index__item-excerpt {
  font-size: 0.95rem;
  color: var(--an24-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Sidebar & Widgets
   -------------------------------------------------------------------------- */

.an24-sidebar {
  margin-top: var(--an24-space-xl);
}

.an24-widget {
  margin-bottom: var(--an24-space-xl);
}

.an24-widget__title {
  font-family: var(--an24-font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--an24-space-md);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--an24-border);
}

/* WP page-links (multi-page posts) */

.an24-page-links {
  margin-top: var(--an24-space-xl);
  font-size: 0.9rem;
  color: var(--an24-muted);
}

/* --------------------------------------------------------------------------
   WordPress Standard-Klassen
   -------------------------------------------------------------------------- */

.wp-post-image {
  width: 100%;
  height: auto;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.8rem;
  color: var(--an24-muted);
  margin-top: 0.4rem;
  font-style: italic;
  text-align: center;
}

/* WP Generated Content */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.gallery-item img {
  width: 100%;
  border-radius: var(--an24-radius-md);
}

/* --------------------------------------------------------------------------
   Responsive — Anpassungen Tablet (min 768px)
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
  .an24-container {
    padding-left: 28px;
    padding-right: 28px;
  }

  .an24-masthead__logo-text {
    font-size: 1rem;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Anpassungen Desktop (min 1024px)
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
  .an24-container {
    padding-left: 40px;
    padding-right: 40px;
  }

  .an24-main {
    padding-top: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .an24-header,
  .an24-navbar,
  .an24-breaking-bar,
  .an24-footer,
  .an24-ultime,
  .an24-related,
  .an24-author-box {
    display: none;
  }

  .an24-article-body {
    max-width: 100%;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
}

/* Screen-reader only — visually hidden but accessible */
.an24-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
