/* ============================================================
   IL MATTINO SERENO — style.css
   "Editorial Calm" Design System
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Colors */
  --color-primary:        #7EB8C9;
  --color-primary-dark:   #6BA3B4;
  --color-secondary:      #C4A7D7;
  --color-accent:         #F5B895;
  --color-accent-dark:    #E9A07E;
  --color-tertiary:       #A8D5BA;

  /* Backgrounds */
  --bg-primary:   #FAF7F4;
  --bg-secondary: #F0EDE8;
  --bg-card:      #FFFFFF;

  /* Text */
  --text-primary:   #3D3A38;
  --text-secondary: #7A7572;
  --text-heading:   #2C2926;
  --text-footer:    #C8C3BE;

  /* Borders & Shadows */
  --border:         #E8E3DE;
  --shadow-color:   rgba(61, 58, 56, 0.06);
  --shadow-sm:      0 2px 12px rgba(61,58,56,0.06);
  --shadow-md:      0 4px 20px rgba(61,58,56,0.06);
  --shadow-lg:      0 8px 32px rgba(61,58,56,0.10);
  --shadow-primary: 0 6px 24px rgba(126,184,201,0.25);

  /* Category Colors */
  --cat-politica:   #7EB8C9;
  --cat-economia:   #A8D5BA;
  --cat-cultura:    #C4A7D7;
  --cat-tecnologia: #7EB8C9;
  --cat-salute:     #A8D5BA;
  --cat-opinioni:   #F5B895;

  /* Spacing */
  --section-py:   80px;
  --section-py-sm: 48px;
  --card-px:      28px;
  --card-py:      28px;
  --grid-gap:     28px;
  --max-width:    1200px;
  --article-width: 720px;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-ui:      'DM Sans', system-ui, sans-serif;
  --font-quote:   'Cormorant Garamond', Georgia, serif;

  /* Radius */
  --radius-card:   12px;
  --radius-btn:    8px;
  --radius-tag:    20px;
  --radius-img:    8px;

  /* Transitions */
  --ease-out:    cubic-bezier(0.4, 0, 0.2, 1);
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s ease;

  /* Header */
  --header-height: 72px;
  --header-compact-height: 56px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Skip navigation */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  font-family: var(--font-ui);
  font-size: 14px;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

/* Focus rings */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ============================================================
   3. TYPOGRAPHY SCALE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.2;
}

p {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.75;
}

/* ============================================================
   4. UTILITY CLASSES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section-padding {
  padding: var(--section-py) 0;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.section-heading-line {
  width: 48px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 40px;
}

/* Tag / Category Pills */
.tag-pill {
  display: inline-flex;
  align-items: center;
  background: #F3EFF8;
  color: #9B7FB8;
  padding: 6px 16px;
  border-radius: var(--radius-tag);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all var(--transition);
  cursor: default;
}
.tag-pill:hover {
  background: var(--color-secondary);
  color: #fff;
}
.tag-pill.cat-politica   { background: #EFF6FA; color: var(--cat-politica); }
.tag-pill.cat-economia   { background: #EFF6F2; color: #6FA88E; }
.tag-pill.cat-cultura    { background: #F5F0FA; color: #9B7FB8; }
.tag-pill.cat-tecnologia { background: #EFF6FA; color: var(--cat-tecnologia); }
.tag-pill.cat-salute     { background: #EFF6F2; color: #6FA88E; }
.tag-pill.cat-opinioni   { background: #FEF4EC; color: #C4895A; }
.tag-pill:hover { background: var(--color-secondary); color: #fff; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-primary);
  padding: 13px 32px;
  border-radius: var(--radius-btn);
  border: 1.5px solid var(--color-primary);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}
.read-more-link:hover {
  text-decoration: underline;
  color: var(--color-accent-dark);
}

/* Image placeholder */
.img-placeholder {
  background: #E8E3DE;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-placeholder .ph-icon {
  position: absolute;
  color: #C8C3BE;
  font-size: 48px;
  pointer-events: none;
  opacity: 0;
}
.img-placeholder img[src=""],
.img-placeholder img:not([src]) {
  display: none;
}

/* ============================================================
   5. HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

/* Top bar */
.header-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 36px;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
  overflow: hidden;
}

.header-date {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-top-right a {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.header-top-right a:hover {
  color: var(--color-primary);
}

/* Main nav bar */
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 72px;
  transition: height var(--transition);
}

.site-masthead {
  flex-shrink: 0;
}

.site-masthead a {
  display: block;
}

.masthead-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
  transition: font-size var(--transition);
  display: block;
}

.masthead-tagline {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 3px;
  display: block;
  transition: opacity var(--transition);
}

/* Main nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 6px 16px;
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
  border-radius: 1px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 32px);
}

/* Header compact state */
.site-header.header-compact .header-top-bar {
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: none;
  opacity: 0;
  pointer-events: none;
}

.site-header.header-compact .header-main {
  height: var(--header-compact-height);
}

.site-header.header-compact .masthead-title {
  font-size: 22px;
}

.site-header.header-compact .masthead-tagline {
  opacity: 0;
}

/* Hamburger */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-btn);
  color: var(--text-heading);
  font-size: 24px;
  transition: background var(--transition);
  cursor: pointer;
  background: none;
  border: none;
}
.menu-toggle:hover {
  background: var(--bg-secondary);
}

/* Body spacer */
.header-spacer {
  height: calc(72px + 36px);
}

/* ============================================================
   6. MOBILE MENU OVERLAY
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-heading);
  cursor: pointer;
  background: none;
  border: none;
  transition: background var(--transition);
}
.mobile-menu-close:hover {
  background: var(--bg-secondary);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-heading);
  padding: 12px 32px;
  text-align: center;
  transition: color var(--transition);
}
.mobile-nav-link:hover {
  color: var(--color-primary);
}

/* ============================================================
   7. FOOTER
   ============================================================ */
.site-footer {
  background: var(--text-heading);
  padding: 64px 0 32px;
  color: var(--text-footer);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  display: block;
}

.footer-brand-desc {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-footer);
}

.footer-col-heading {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 20px;
  display: block;
}

.footer-nav-link {
  display: block;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-footer);
  line-height: 2.4;
  transition: color var(--transition);
}
.footer-nav-link:hover {
  color: var(--color-accent);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-footer);
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-contact-item .ph {
  color: var(--color-primary);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 0 0 32px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-family: var(--font-ui);
  font-size: 13px;
  color: #7A7572;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.footer-legal-link {
  font-family: var(--font-ui);
  font-size: 13px;
  color: #7A7572;
  padding: 0 12px;
  border-right: 1px solid #7A7572;
  transition: color var(--transition);
}
.footer-legal-link:last-child {
  border-right: none;
}
.footer-legal-link:hover {
  color: var(--color-accent);
}

/* ============================================================
   8. ARTICLE CARD COMPONENT
   ============================================================ */
.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
}

.article-card.is-visible {
  animation: fadeInUp 0.6s ease-out forwards;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-image-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: #E8E3DE;
  position: relative;
  flex-shrink: 0;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.article-card:hover .card-image-wrap img {
  transform: scale(1.03);
}

.card-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E8E3DE;
}

.card-ph .ph {
  font-size: 48px;
  color: #C8C3BE;
}

.card-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--bg-card);
  border-top: none;
}

.card-tag {
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: auto;
}

.card-author {
  color: var(--text-primary);
  font-weight: 500;
}

.meta-dot {
  width: 3px;
  height: 3px;
  background: var(--border);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   9. HERO / BREAKING NEWS BANNER
   ============================================================ */
.hero-section {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.15;
  margin-bottom: 16px;
  animation: fadeInUp 0.7s ease-out both;
}

.hero-excerpt {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--font-ui);
  font-size: 13px;
}

.byline-author {
  font-weight: 500;
  color: var(--text-primary);
}

.byline-date,
.byline-read-time {
  color: var(--text-secondary);
}

.byline-read-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-image-wrap {
  aspect-ratio: 4/3;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #E8E3DE;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.hero-img-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #E8E3DE;
}

.hero-img-ph .ph {
  font-size: 56px;
  color: #C8C3BE;
}

.hero-img-ph span {
  font-family: var(--font-ui);
  font-size: 12px;
  color: #C8C3BE;
  text-align: center;
  max-width: 180px;
  line-height: 1.4;
}

/* ============================================================
   10. NEWS TICKER
   ============================================================ */
.ticker-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  height: 48px;
  overflow: hidden;
}

.ticker-label {
  flex-shrink: 0;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border-radius: 4px;
  margin: 0 20px;
  white-space: nowrap;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-right: 40px;
}

.ticker-item span {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-primary);
}

.ticker-sep {
  color: var(--color-secondary);
  font-size: 8px;
}

/* ============================================================
   11. MAIN NEWS GRID SECTION
   ============================================================ */
.news-grid-section {
  background: var(--bg-primary);
  padding: var(--section-py) 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

/* ============================================================
   12. OPINION CARDS
   ============================================================ */
.opinioni-section {
  background: var(--bg-secondary);
  padding: 64px 0;
}

.opinion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
}

.opinion-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border-left: 4px solid var(--color-secondary);
  padding: 36px 40px 32px;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.opinion-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.opinion-deco-quote {
  font-family: var(--font-heading);
  font-size: 80px;
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 0.7;
  display: block;
  margin-bottom: 16px;
  opacity: 0.6;
}

.opinion-text {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 20px;
  color: var(--text-heading);
  line-height: 1.6;
  margin-bottom: 24px;
}

.opinion-author-name {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
}

.opinion-author-role {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.opinion-card-full {
  grid-column: 1 / -1;
}

/* ============================================================
   13. CATEGORY HIGHLIGHTS (Section 5)
   ============================================================ */
.cat-highlights-section {
  background: var(--bg-primary);
  padding: var(--section-py) 0;
}

.cat-highlight-block {
  margin-bottom: 64px;
}
.cat-highlight-block:last-child {
  margin-bottom: 0;
}

.cat-block-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.cat-block-line {
  width: 4px;
  height: 28px;
  border-radius: 2px;
  flex-shrink: 0;
}

.cat-block-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cat-block-grid {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: var(--grid-gap);
  align-items: start;
}

.cat-large-article {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cat-large-article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.cat-large-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #E8E3DE;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-large-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.cat-large-article:hover .cat-large-image img {
  transform: scale(1.03);
}

.cat-large-body {
  padding: 24px 28px;
}

.cat-large-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.3;
  margin: 10px 0 10px;
}

.cat-large-excerpt {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-small-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cat-small-article {
  display: flex;
  gap: 14px;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cat-small-article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cat-small-image {
  width: 88px;
  height: 66px;
  border-radius: var(--radius-img);
  overflow: hidden;
  flex-shrink: 0;
  background: #E8E3DE;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-small-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-small-body {}

.cat-small-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-small-date {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-secondary);
}

/* ============================================================
   14. NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 64px 0;
}

.newsletter-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 0 32px;
}

.newsletter-icon {
  font-size: 48px;
  color: var(--color-primary);
  display: block;
  margin: 0 auto 24px;
}

.newsletter-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.newsletter-sub {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 32px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 540px;
  margin: 0 auto 16px;
}

.newsletter-input {
  flex: 1;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 14px 20px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.newsletter-input::placeholder {
  color: var(--text-secondary);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(126,184,201,0.15);
}

.newsletter-note {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-secondary);
}

/* ============================================================
   15. ARTICLE PAGE
   ============================================================ */
.article-header-section {
  background: var(--bg-primary);
  padding: 48px 0;
}

.article-header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
}

.article-headline {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.2;
  margin: 12px 0 16px;
  animation: fadeInUp 0.7s ease-out both;
}

.article-subtitle {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-secondary);
}

.meta-item.meta-author {
  font-weight: 500;
  color: var(--text-primary);
}

.meta-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
}

.article-featured-image {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #E8E3DE;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-img-caption {
  font-family: var(--font-ui);
  font-style: italic;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.5;
}

/* Article Body */
.article-body-section {
  padding: 48px 0;
}

.article-body-inner {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 0 32px;
}

.article-body p {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.85;
  margin-bottom: 28px;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 48px;
  margin-bottom: 20px;
}

.article-body a {
  color: var(--color-primary);
  text-underline-offset: 3px;
  text-decoration: underline;
}
.article-body a:hover {
  color: var(--color-primary-dark);
}

.article-body ul li {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.75;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
  list-style: none;
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* Pull Quote */
.pull-quote {
  border-left: 4px solid var(--color-secondary);
  background: #F8F5FB;
  padding: 28px 36px;
  margin: 40px 0;
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
}

.pull-quote blockquote {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 22px;
  color: var(--text-heading);
  line-height: 1.6;
  margin-bottom: 12px;
}

.pull-quote cite {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-secondary);
  font-style: normal;
}

/* In-article image */
.article-image-block {
  margin: 36px 0;
}

.article-image-block .img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-img);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #E8E3DE;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-image-block .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tags row */
.article-tags-section {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tags-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-right: 4px;
}

/* Author Bio Box */
.author-bio-box {
  max-width: var(--article-width);
  margin: 32px auto;
  padding: 0 32px;
}

.author-bio-inner {
  display: flex;
  gap: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  align-items: flex-start;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #E8E3DE;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-avatar .ph {
  font-size: 28px;
  color: #C8C3BE;
}

.author-bio-content {}

.author-bio-name {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.author-bio-role {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.author-bio-text {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}

/* Related Articles */
.related-section {
  background: var(--bg-primary);
  padding: 48px 0 64px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   16. CATEGORY ARCHIVE PAGE
   ============================================================ */
.category-header {
  padding: 48px 0;
}

.category-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.category-description {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.category-count {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: transparent;
  text-decoration: none;
}

.page-btn:hover {
  background: var(--bg-secondary);
}

.page-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.page-btn.page-prev,
.page-btn.page-next {
  width: auto;
  padding: 0 14px;
  gap: 6px;
}

/* ============================================================
   17. CHI SIAMO PAGE
   ============================================================ */
.mission-hero {
  background: var(--bg-secondary);
  padding: var(--section-py) 0;
}

.mission-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.mission-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.mission-subtitle {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
}

.mission-text {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.8;
  text-align: left;
  margin-bottom: 20px;
}

/* Values Grid */
.values-section {
  background: var(--bg-primary);
  padding: var(--section-py) 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  font-size: 36px;
  display: block;
  margin: 0 auto 16px;
}

.value-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.value-desc {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Team Grid */
.team-section {
  background: var(--bg-secondary);
  padding: var(--section-py) 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  padding-bottom: 28px;
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.team-avatar-wrap {
  margin: 32px auto 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: #E8E3DE;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-avatar-wrap .ph {
  font-size: 40px;
  color: #C8C3BE;
}

.team-name {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 16px 24px 4px;
}

.team-role {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--color-primary);
  margin: 0 24px 12px;
}

.team-bio {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  padding: 0 28px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Contact CTA */
.contact-cta-section {
  background: var(--bg-primary);
  padding: 64px 0;
  text-align: center;
}

.contact-cta-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.contact-cta-text {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ============================================================
   18. CONTATTI PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 48px;
  align-items: start;
}

.contact-form-heading {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 13px 18px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-secondary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(126,184,201,0.15);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 256 256'%3E%3Cpath d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80A8 8 0 0 1 53.66 90.34L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32z' fill='%237A7572'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
}

.form-error {
  display: none;
  font-family: var(--font-ui);
  font-size: 12px;
  color: #C0605A;
  margin-top: 5px;
}

.form-note {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* Contact Info Card */
.contact-info-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.contact-info-heading {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text-primary);
  line-height: 2.2;
}

.contact-info-item .ph {
  color: var(--color-primary);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.hours-line {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 2;
}

/* ============================================================
   19. LEGAL PAGES
   ============================================================ */
.legal-page {
  background: var(--bg-primary);
  padding: var(--section-py) 0;
}

.legal-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
}

.legal-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.legal-date {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section-title {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.legal-text {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-list {
  margin: 12px 0 12px 20px;
}

.legal-list li {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.75;
  list-style: disc;
  margin-bottom: 4px;
}

/* ============================================================
   20. PAGE HEADER (Generic)
   ============================================================ */
.page-header {
  background: var(--bg-secondary);
  padding: 48px 0;
  text-align: center;
}

.page-header-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.page-header-sub {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Form Success Page */
.form-success-section {
  padding: var(--section-py) 0;
  text-align: center;
}

.form-success-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 48px 40px;
}

.form-success-icon {
  font-size: 56px;
  color: var(--color-tertiary);
  display: block;
  margin: 0 auto 24px;
}

.form-success-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.form-success-text {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ============================================================
   21. CSS ANIMATIONS / KEYFRAMES
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tickerScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Nav stagger */
.nav-link {
  animation: slideInDown 0.4s ease-out both;
}
.nav-link:nth-child(1) { animation-delay: 0.05s; }
.nav-link:nth-child(2) { animation-delay: 0.10s; }
.nav-link:nth-child(3) { animation-delay: 0.15s; }
.nav-link:nth-child(4) { animation-delay: 0.20s; }
.nav-link:nth-child(5) { animation-delay: 0.25s; }
.nav-link:nth-child(6) { animation-delay: 0.30s; }
.nav-link:nth-child(7) { animation-delay: 0.35s; }

/* ============================================================
   22. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Large tablet: 992–1199px */
@media (max-width: 1199px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet: 768–991px */
@media (max-width: 991px) {
  :root {
    --section-py: 56px;
  }
  .site-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-image-wrap {
    order: -1;
  }
  .hero-title {
    font-size: 32px;
  }
  .cat-block-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .opinion-grid {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 0 24px;
  }
}

/* Mobile: 576–767px */
@media (max-width: 767px) {
  :root {
    --section-py: var(--section-py-sm);
    --card-px: 20px;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .hero-title {
    font-size: 28px;
  }
  .article-headline {
    font-size: 28px;
  }
  .section-heading {
    font-size: 26px;
  }
  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .meta-divider {
    display: none;
  }
  .author-bio-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .header-top-bar {
    display: none;
  }
  .header-spacer {
    height: 72px;
  }
  .cat-highlight-block {
    margin-bottom: 48px;
  }
}

/* Small mobile: <576px */
@media (max-width: 575px) {
  .container {
    padding: 0 16px;
  }
  .hero-title {
    font-size: 24px;
  }
  .article-headline {
    font-size: 24px;
  }
  .mission-title {
    font-size: 30px;
  }
  .page-header-title {
    font-size: 28px;
  }
  .legal-title {
    font-size: 26px;
  }
  .card-body {
    padding: 18px 20px 22px;
  }
  .opinion-card {
    padding: 28px 24px 24px;
  }
  .contact-info-card {
    padding: 24px 20px;
  }
  .form-success-card {
    padding: 36px 24px;
  }
}
