/*
Theme Name: AetnaNet
Theme URI: https://aetnanet.org
Author: Consorzio AetnaNet
Author URI: https://aetnanet.org
Description: Tema WordPress per AetnaNet — portale del Consorzio di Scuole in Rete della Sicilia. Testata giornalistica in stile "quality newspaper" con tipografia Newsreader/Archivo, sezioni tematiche per categoria (M.I.U.R. & Normativa, Didattica, Sindacati, Internazionale, Video, Consorzio), Ultim'ora, classifica "Più letti" e box Telegram.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aetnanet
Tags: news, blog, custom-colors, custom-menu, featured-images, sticky-post, translation-ready

AetnaNet WordPress Theme is based on Underscores https://underscores.me/, (C) 2012-2026 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

/* ==========================================================================
   0. Design tokens
   ========================================================================== */

:root {
  --accent: #0066CC;
  --accent2: #C13B2E;
  --deep: #003366;
  --ink: #16181d;
  --text-secondary: #4a4e57;
  --meta-gray: #8a8f99;
  --sub-gray: #6b707a;
  --bg-page: #edeae4;
  --bg-content: #faf9f6;
  --white: #ffffff;
  --border-fine: #e3dfd7;
  --border-chip: #d8d4cc;
  --border-input: #c9c4ba;
  --footer-border: #2a2d35;
  --ph-a: #e8e4dc;
  --ph-b: #dfdbd2;

  --mast-bg: var(--bg-content);
  --mast-ink: var(--accent);
  --mast-sub: var(--sub-gray);
  --mast-search-border: var(--border-input);

  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

/* ==========================================================================
   1. Reset & base
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol { list-style: none; margin: 0; padding: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { color: var(--ink); text-decoration: underline; }

h1, h2, h3, h4, p { margin: 0; }

button { font-family: inherit; cursor: pointer; }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; overflow: hidden; position: absolute;
  word-wrap: normal !important; margin: -1px; padding: 0;
}

/* ==========================================================================
   2. Layout helpers
   ========================================================================== */

.site-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  background: var(--bg-content);
  box-shadow: 0 0 40px rgba(22,24,29,0.12);
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: 3px solid var(--ink);
  padding-top: 14px;
  margin-bottom: 18px;
}

.section-heading--tight { margin-bottom: 6px; }

.section-heading h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
}

.section-heading h2 .amp { color: var(--meta-gray); font-weight: 400; }

.section-heading .see-all,
.see-all {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker--lg { font-size: 12px; }

.img-placeholder {
  background: repeating-linear-gradient(45deg, var(--ph-a), var(--ph-a) 12px, var(--ph-b) 12px, var(--ph-b) 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.img-placeholder span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--meta-gray);
  padding: 0 8px;
  text-align: center;
}

.img-16-9 { aspect-ratio: 16/9; }
.img-3-2 { aspect-ratio: 3/2; }

.img-16-9 img, .img-3-2 img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   3. Top bar
   ========================================================================== */

.topbar {
  background: var(--accent);
  color: rgba(255,255,255,0.88);
  font-size: 13px;
}

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

.topbar-left, .topbar-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.topbar-right { gap: 20px; font-weight: 600; }

.topbar-date { font-weight: 600; color: #ffffff; }

.topbar-sep { color: rgba(255,255,255,0.45); }

.topbar a { color: rgba(255,255,255,0.88); }
.topbar a:hover { color: #ffffff; text-decoration: underline; }

.topbar-register { color: #ffffff !important; }

.topbar-login {
  color: var(--accent) !important;
  background: #ffffff;
  padding: 4px 14px;
  border-radius: 3px;
  font-weight: 700;
}
.topbar-login:hover { color: var(--accent) !important; text-decoration: none; opacity: 0.85; }

/* ==========================================================================
   4. Masthead
   ========================================================================== */

.masthead {
  background: var(--mast-bg);
  border-bottom: 3px solid var(--ink);
  transition: background 150ms;
}

.masthead .wrap {
  padding: 30px 24px 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.masthead-brand { display: flex; flex-direction: column; gap: 4px; }

.masthead-logo {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 58px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--mast-ink);
}

.masthead-logo a { color: inherit; }
.masthead-logo a:hover { text-decoration: none; }

.masthead-logo .dot { color: var(--accent); }

.masthead-subtitle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mast-sub);
}

.masthead-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.masthead-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--mast-search-border);
  background: #ffffff;
  border-radius: 4px;
  padding: 8px 12px;
  width: 300px;
  max-width: 100%;
}

.masthead-search input {
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font-size: 14px;
  font-family: var(--font-sans);
  width: 100%;
}

.masthead-search input::placeholder { color: #8a8f99; }

.masthead-search-icon { color: #8a8f99; font-size: 14px; }

.masthead-stats { font-size: 12px; color: var(--mast-sub); }

/* ==========================================================================
   5. Nav
   ========================================================================== */

.site-nav {
  background: var(--bg-content);
  border-bottom: 1px solid var(--border-chip);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-nav .wrap {
  padding-left: 24px;
  padding-right: 24px;
  display: flex;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nav-menu {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.nav-menu li { display: flex; }

.nav-menu a {
  display: flex;
  align-items: center;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 12px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 150ms;
}

.nav-menu a:hover { color: var(--accent); text-decoration: none; }

.nav-menu li.current-menu-item > a,
.nav-menu li.current-menu-parent > a {
  font-weight: 800;
  border-bottom-color: var(--accent);
}

.nav-spacer { flex: 1; }

.nav-more {
  display: flex;
  align-items: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 12px;
  white-space: nowrap;
}

/* ==========================================================================
   6. Ultim'ora
   ========================================================================== */

.breaking-news { padding: 14px 24px 0; }

.breaking-news-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--border-fine);
  border-left: 4px solid var(--accent2);
  padding: 10px 16px;
  flex-wrap: wrap;
}

.breaking-badge {
  background: var(--accent2);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  white-space: nowrap;
}

.breaking-title { font-size: 15px; font-weight: 600; }
.breaking-title a { color: inherit; }

.breaking-time {
  margin-left: auto;
  font-size: 12px;
  color: var(--meta-gray);
  white-space: nowrap;
}

/* ==========================================================================
   7. Hero
   ========================================================================== */

.hero {
  padding: 24px 24px 32px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

.hero-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
}

.hero-featured { display: flex; flex-direction: column; gap: 14px; }

.hero-featured-image { width: 100%; }

.hero-featured-body { display: flex; flex-direction: column; gap: 10px; }

.hero-featured-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.hero-featured-title a { color: var(--ink); }
.hero-featured-title a:hover { text-decoration: none; color: var(--accent); }

.hero-featured-summary {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--meta-gray);
}

.byline .author { font-weight: 700; color: var(--ink); }

.hero-secondary { display: flex; flex-direction: column; }

.hero-secondary-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-fine);
}

.hero-secondary-item:first-child { padding-top: 0; }
.hero-secondary-item:last-child { border-bottom: 0; padding-bottom: 0; }

.hero-secondary-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
}

.hero-secondary-title a { color: var(--ink); }
.hero-secondary-title a:hover { text-decoration: none; color: var(--accent); }

.hero-secondary-meta { font-size: 12px; color: var(--meta-gray); }

/* Rail */

.rail { display: flex; flex-direction: column; gap: 24px; }

.most-read {
  border-top: 3px solid var(--ink);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.most-read h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.most-read-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-fine);
}

.most-read-item:last-child { border-bottom: 0; }

.most-read-num {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 800;
  color: var(--accent2);
  line-height: 1;
  flex-shrink: 0;
}

.most-read-title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.most-read-title a { color: var(--ink); }
.most-read-title a:hover { color: var(--accent); text-decoration: none; }

.telegram-box {
  background: var(--deep);
  color: #ffffff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.telegram-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.telegram-claim {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.telegram-btn {
  align-self: flex-start;
  background: #ffffff;
  color: var(--accent) !important;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 3px;
  margin-top: 4px;
}
.telegram-btn:hover { text-decoration: none; opacity: 0.85; }

/* ==========================================================================
   8. Sections generiche
   ========================================================================== */

.section { padding-top: 0; padding-bottom: 36px; }

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

.card { display: flex; flex-direction: column; gap: 10px; }

.card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

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

.card-meta { font-size: 12px; color: var(--meta-gray); }

/* Two column text sections (Didattica / Sindacati) */

.two-col-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.text-list-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-fine);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.text-list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.text-list-item:first-child { padding-top: 0; }

.text-list-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.text-list-title a { color: var(--ink); }
.text-list-title a:hover { color: var(--accent); text-decoration: none; }

/* ==========================================================================
   9. Internazionale
   ========================================================================== */

.international-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
}

.partnership-card {
  background: #ffffff;
  border: 1px solid var(--border-fine);
  border-top: 4px solid var(--accent2);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.partnership-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
}

.partnership-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.partnership-title .flag { font-size: 16px; font-weight: 500; color: var(--meta-gray); }

.partnership-desc { font-size: 14px; line-height: 1.55; color: var(--text-secondary); }

.partnership-byline {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--meta-gray);
}

.partnership-byline .author { font-weight: 700; color: var(--ink); }

.partnership-btn {
  align-self: flex-start;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 3px;
  margin-top: 4px;
  transition: background 150ms, color 150ms;
}

.partnership-btn:hover {
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
}

.intl-articles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.intl-articles .card-title { font-size: 19px; }

/* ==========================================================================
   10. Video
   ========================================================================== */

.video-section { background: var(--deep); color: #ffffff; }

.video-section .wrap { padding-top: 32px; padding-bottom: 40px; }

.video-section .section-heading {
  border-top: 0;
  padding-top: 0;
  margin-bottom: 20px;
}

.video-section .section-heading h2 { color: #ffffff; }
.video-section .see-all { color: rgba(255,255,255,0.75); }
.video-section .see-all:hover { color: #ffffff; }

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

.video-card { display: flex; flex-direction: column; gap: 10px; }

.video-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, rgba(0,0,0,0.22), rgba(0,0,0,0.22) 12px, rgba(0,0,0,0.32) 12px, rgba(0,0,0,0.32) 24px);
}

.video-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.video-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
  z-index: 1;
  border: 0;
}

.video-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}

.video-title a { color: #ffffff; }
.video-title a:hover { text-decoration: underline; }

.video-meta { font-size: 12px; color: rgba(255,255,255,0.75); }

/* ==========================================================================
   11. Consorzio
   ========================================================================== */

.consorzio-section {
  padding-top: 32px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.consorzio-heading {
  border-top: 3px solid var(--ink);
  padding-top: 14px;
  margin-bottom: 14px;
}

.consorzio-heading h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
}

.consorzio-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.school-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.chip {
  border: 1px solid var(--border-chip);
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  transition: border-color 150ms, color 150ms;
}

.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.chip-more { color: var(--accent); font-size: 13px; font-weight: 700; padding: 7px 6px; }

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

.office-link {
  border: 1px solid var(--border-chip);
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 12px;
  text-align: center;
  transition: border-color 150ms, color 150ms;
}

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

/* ==========================================================================
   12. Footer
   ========================================================================== */

.site-footer { background: var(--ink); color: #a9aeb8; }

.footer-columns {
  padding: 40px 24px 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand { display: flex; flex-direction: column; gap: 10px; }

.footer-brand-logo {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
}

.footer-brand-logo a { color: #ffffff; }
.footer-brand-logo a:hover { text-decoration: none; }
.footer-brand-logo .dot { color: var(--accent); }

.footer-brand-desc { font-size: 13px; line-height: 1.6; max-width: 340px; }

.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }

.footer-col-title {
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  margin-bottom: 4px;
}

.footer-col a { color: #a9aeb8; }
.footer-col a:hover { color: #ffffff; }

.footer-bottom { border-top: 1px solid var(--footer-border); }

.footer-bottom-inner {
  padding: 16px 24px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   13. Inner pages (single / archive / page / search / 404)
   ========================================================================== */

.page-header {
  padding: 32px 24px 18px;
  border-bottom: 3px solid var(--ink);
}

.page-header h1, .page-header .page-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
}

.page-header .archive-description {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.single-article { padding: 32px 24px 48px; max-width: 820px; margin: 0 auto; }

.single-article .entry-kicker { margin-bottom: 12px; }

.single-article .entry-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}

.single-article .entry-summary {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.single-article .entry-byline { margin-bottom: 24px; }

.single-article .entry-thumbnail { margin-bottom: 28px; }

.single-article .entry-content {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}

.entry-content p { margin-bottom: 1.3em; }

.entry-content h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  margin: 1.6em 0 0.6em;
}

.entry-content h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  margin: 1.4em 0 0.5em;
}

.entry-content a { text-decoration: underline; }
.entry-content img { margin: 1.5em 0; }
.entry-content blockquote {
  border-left: 4px solid var(--accent);
  margin: 1.5em 0;
  padding: 4px 0 4px 20px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-secondary);
}
.entry-content ul, .entry-content ol { margin: 0 0 1.3em 1.4em; list-style: revert; }

.entry-tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }

.archive-grid {
  padding: 32px 24px 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pagination {
  padding: 0 24px 48px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  border: 1px solid var(--border-chip);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.pagination .current { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.pagination a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.page-content { padding: 32px 24px 48px; max-width: 820px; margin: 0 auto; font-size: 16px; line-height: 1.7; }

.search-no-results, .error-404 {
  padding: 60px 24px;
  text-align: center;
}

.comments-area { max-width: 820px; margin: 0 auto; padding: 0 24px 48px; }
.comments-title { font-family: var(--font-serif); font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.comment-list { margin-bottom: 24px; }
.comment-body { border-bottom: 1px solid var(--border-fine); padding: 16px 0; }
.comment-author { font-weight: 700; font-size: 14px; }
.comment-metadata { font-size: 12px; color: var(--meta-gray); margin-bottom: 8px; }
.comment-form input, .comment-form textarea {
  width: 100%;
  border: 1.5px solid var(--border-input);
  border-radius: 4px;
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  margin-bottom: 12px;
}
.comment-form .submit {
  background: var(--accent);
  color: #ffffff;
  border: 0;
  padding: 10px 22px;
  border-radius: 3px;
  font-weight: 700;
}

.comment-form p { margin: 0 0 12px; }
.comment-reply-title { font-family: var(--font-serif); font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.required { color: var(--accent2); }
.search-form { display: flex; gap: 8px; margin-top: 16px; justify-content: center; }
.search-form .search-field {
  border: 1.5px solid var(--border-input);
  border-radius: 4px;
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  min-width: 260px;
}
.search-form .search-submit {
  background: var(--accent);
  color: #ffffff;
  border: 0;
  padding: 10px 18px;
  border-radius: 3px;
  font-weight: 700;
}

/* ==========================================================================
   14. Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-main { grid-template-columns: 1fr; }
  .rail { flex-direction: row; flex-wrap: wrap; }
  .rail > * { flex: 1 1 300px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col-section { grid-template-columns: 1fr; gap: 8px; }
  .international-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .consorzio-section { grid-template-columns: 1fr; gap: 8px; }
  .consorzio-section > * + * { margin-top: 24px; }
  .footer-columns { grid-template-columns: 1fr 1fr; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .masthead .wrap { flex-direction: column; align-items: flex-start; }
  .masthead-right { align-items: flex-start; width: 100%; }
  .masthead-search { width: 100%; }
  .masthead-logo { font-size: 42px; }
  .topbar .wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-main { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .offices-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-columns { grid-template-columns: 1fr; padding: 32px 24px 24px; }
  .footer-bottom-inner { flex-direction: column; gap: 4px; }
  .archive-grid { grid-template-columns: 1fr; padding: 24px 20px 40px; }
  .wrap, .hero, .section, .breaking-news, .masthead .wrap, .site-nav .wrap, .topbar .wrap { padding-left: 16px; padding-right: 16px; }
  .single-article .entry-title { font-size: 30px; }
}

/* ==========================================================================
   12. Pagina articolo — esperienza di lettura
   ========================================================================== */

/* Barra di avanzamento lettura */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 99;
  background: transparent;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 80ms linear;
}

/* Corpo del testo in serif, misura di lettura da quotidiano */
.single-article .entry-content {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.75;
  max-width: 720px;
}
.single-article .entry-header { max-width: 720px; }
.single-article .entry-title { font-size: clamp(28px, 5vw, 42px); letter-spacing: -0.01em; }

/* Immagini d'epoca allineate con attributi HTML anni 2000 */
.entry-content img { max-width: 100%; height: auto; }
.entry-content img[align="left"] { margin: 4px 18px 10px 0; }
.entry-content img[align="right"] { margin: 4px 0 10px 18px; }

/* Byline + condivisione sulla stessa riga */
.single-article .entry-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border-fine);
  border-bottom: 1px solid var(--border-fine);
  margin-bottom: 28px;
}
.single-article .entry-byline .byline { margin: 0; }
.single-article .entry-byline .byline .author a { color: var(--ink); text-decoration: none; font-weight: 700; }
.single-article .entry-byline .byline .author a:hover { color: var(--accent); }

/* Pulsanti di condivisione */
.share-row { display: flex; align-items: center; gap: 8px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-chip);
  background: #fff;
  color: var(--sub-gray);
  cursor: pointer;
  padding: 0;
  transition: color 150ms, border-color 150ms, background 150ms;
}
.share-btn:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.share-btn.copied { color: #fff; background: #1F7A55; border-color: #1F7A55; }
.share-btn svg { display: block; }

.entry-footer { max-width: 720px; }
.entry-share-bottom {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-fine);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.share-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sub-gray);
}

/* Box autore */
.author-box {
  max-width: 720px;
  margin-top: 32px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border-fine);
  border-top: 3px solid var(--ink);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.author-box-avatar img { border-radius: 50%; display: block; }
.author-box-kicker {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 4px;
}
.author-box-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.author-box-name:hover { color: var(--accent); }
.author-box-bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 8px 0 0;
}
.author-box-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.author-box-link:hover { text-decoration: underline; }

/* Navigazione precedente / successivo */
.post-nav {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--border-fine);
}
.post-nav-item { text-decoration: none; }
.post-nav-next { text-align: right; }
.post-nav-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sub-gray);
  margin-bottom: 6px;
}
.post-nav-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.post-nav-item:hover .post-nav-title { color: var(--accent); }

/* Correlati */
.related-section { padding-top: 8px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .card-grid-3 { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .single-article .entry-content { font-size: 18px; }
  .author-box { flex-direction: column; }
}
