/*
Theme Name: PuntoCuneo News
Theme URI: https://www.puntocuneo.it
Author: PuntoCuneo
Author URI: https://www.puntocuneo.it
Description: Tema giornalistico professionale per PuntoCuneo - Notizie da Cuneo e dalla Granda
Version: 2.0.0
Text Domain: puntocuneo
*/

/* ================================================================
   RESET & CUSTOM PROPERTIES
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #c0000c;
  --red-dark:   #8b0000;
  --red-light:  #f8e8e8;
  --navy:       #14213d;
  --navy-light: #1e3055;
  --gold:       #c9962a;
  --text:       #111111;
  --text-2:     #444444;
  --text-3:     #777777;
  --border:     #d8d8d8;
  --border-light: #efefef;
  --bg:         #f2f2f2;
  --white:      #ffffff;
  --ff-serif:   'Merriweather', 'Georgia', 'Times New Roman', serif;
  --ff-sans:    'Roboto', 'Arial', sans-serif;
  --ff-title:   'Playfair Display', 'Georgia', serif;
  --wrap:       1280px;
  --col-main:   840px;
  --col-side:   300px;
  --col-live:   240px;
  --gap:        20px;
  --radius:     2px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

/* ================================================================
   UTILITY
   ================================================================ */
.u-red       { color: var(--red); }
.u-bold      { font-weight: 700; }
.u-uppercase { text-transform: uppercase; letter-spacing: .6px; }
.u-serif     { font-family: var(--ff-serif); }
.u-hidden    { display: none !important; }

/* ================================================================
   TOP UTILITY BAR
   ================================================================ */
.util-bar {
  background: var(--navy);
  border-bottom: 1px solid var(--navy-light);
  font-size: 11.5px;
  font-family: var(--ff-sans);
  color: #b0b8c8;
  padding: 5px 0;
}
.util-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.util-bar__left  { display: flex; gap: 16px; align-items: center; }
.util-bar__right { display: flex; gap: 12px; align-items: center; }
.util-bar__date  { color: #8897b0; }
.util-bar__date i { margin-right: 5px; color: var(--red); }
.util-bar__weather { color: #b0b8c8; }
.util-bar__weather i { margin-right: 4px; color: #f0c040; }
.util-bar__pill {
  background: rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 11px;
  color: #8897b0;
}
.util-bar__pill:hover { background: var(--red); color: #fff; }
.util-bar__socials { display: flex; gap: 8px; }
.util-bar__socials a {
  width: 22px; height: 22px;
  background: rgba(255,255,255,.08);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #8897b0;
}
.util-bar__socials a:hover { background: var(--red); color: #fff; }

/* ================================================================
   MASTHEAD
   ================================================================ */
.masthead {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0 10px;
}
.masthead__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.masthead__logo a {
  font-family: var(--ff-title);
  font-size: 42px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -1px;
  line-height: 1;
  display: block;
}
.masthead__logo a span { color: var(--navy); }
.masthead__tagline {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-3);
  margin-top: 5px;
  font-family: var(--ff-sans);
  border-top: 1px solid var(--border-light);
  padding-top: 4px;
}
.masthead__banner {
  text-align: center;
  min-height: 80px;
  display: flex; align-items: center; justify-content: center;
  background: #fafafa;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-3);
  font-size: 11px;
  padding: 8px;
}
.masthead__tools { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.masthead__search-form {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color .2s;
}
.masthead__search-form:focus-within { border-color: var(--red); }
.masthead__search-form input {
  border: none; outline: none;
  padding: 7px 14px; font-size: 13px;
  width: 180px; font-family: var(--ff-sans);
  background: transparent; color: var(--text);
}
.masthead__search-form button {
  background: var(--red); color: #fff; border: none;
  padding: 0 14px; font-size: 13px;
  transition: background .2s;
}
.masthead__search-form button:hover { background: var(--red-dark); }
.btn-subscribe {
  background: var(--red); color: #fff;
  border: none; border-radius: 20px;
  padding: 8px 18px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  white-space: nowrap;
  transition: background .2s;
}
.btn-subscribe:hover { background: var(--red-dark); color: #fff; }

/* ================================================================
   PRIMARY NAVIGATION
   ================================================================ */
.primary-nav {
  background: var(--red);
  position: sticky;
  top: 0;
  z-index: 9000;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.primary-nav__inner {
  display: flex;
  align-items: stretch;
}
.primary-nav__menu {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
}
.primary-nav__item { position: relative; }
.primary-nav__link {
  display: flex; align-items: center;
  color: rgba(255,255,255,.92);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 0 15px;
  height: 42px;
  gap: 5px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.primary-nav__link:hover,
.primary-nav__item--active .primary-nav__link {
  background: rgba(0,0,0,.15);
  color: #fff;
}
.primary-nav__link i { font-size: 10px; opacity: .7; }

/* Dropdown */
.primary-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  border-top: 3px solid var(--red);
  z-index: 9001;
}
.primary-nav__item:hover .primary-nav__dropdown { display: block; }
.primary-nav__dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  font-weight: 500;
}
.primary-nav__dropdown li:last-child a { border-bottom: none; }
.primary-nav__dropdown li a:hover { color: var(--red); background: var(--bg); }

/* Mobile toggle */
.primary-nav__toggle {
  display: none;
  background: rgba(0,0,0,.15);
  border: none;
  color: #fff;
  padding: 0 16px;
  font-size: 18px;
  height: 42px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ================================================================
   LIVE TICKER
   ================================================================ */
.live-ticker {
  background: var(--navy);
  padding: 0;
  overflow: hidden;
}
.live-ticker__inner {
  display: flex;
  align-items: stretch;
  height: 36px;
}
.live-ticker__label {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 14px;
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
  padding-right: 24px;
}
.live-ticker__label .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }
.live-ticker__track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.live-ticker__items {
  display: flex;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  gap: 0;
}
.live-ticker__items:hover { animation-play-state: paused; }
.live-ticker__item { display: inline-flex; align-items: center; color: #c8d0de; font-size: 12.5px; }
.live-ticker__item a { color: #e8eaf0; padding: 0 40px 0 0; }
.live-ticker__item a:hover { color: #f0c040; }
.live-ticker__sep { color: var(--red); padding: 0 20px; font-size: 14px; }
@keyframes marquee { 0%{transform:translateX(100vw)} 100%{transform:translateX(-100%)} }

/* ================================================================
   PAGE LAYOUT WRAPPER
   ================================================================ */
.page-body { padding: 20px 0 40px; }

.layout-three-col {
  display: grid;
  grid-template-columns: var(--col-main) 1fr var(--col-live);
  gap: var(--gap);
  align-items: start;
}
.layout-two-col {
  display: grid;
  grid-template-columns: 1fr var(--col-side);
  gap: var(--gap);
  align-items: start;
}
.col-main  { min-width: 0; }
.col-side  { min-width: 0; }
.col-live  { min-width: 0; }

/* ================================================================
   SECTION LABEL
   ================================================================ */
.sec-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}
.sec-label__title {
  font-family: var(--ff-title);
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .5px;
  flex: 1;
}
.sec-label__more {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .5px;
  border: 1px solid var(--red);
  border-radius: 20px;
  padding: 2px 10px;
  white-space: nowrap;
}
.sec-label__more:hover { background: var(--red); color: #fff; }
.sec-label--white { border-bottom-color: rgba(255,255,255,.3); }
.sec-label--white .sec-label__title { color: #fff; }

/* ================================================================
   HERO BLOCK — Lead story + 2 secondary
   ================================================================ */
.hero-block {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--white);
  margin-bottom: var(--gap);
  overflow: hidden;
  border-radius: var(--radius);
}
.hero-lead { position: relative; overflow: hidden; }
.hero-lead__img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.hero-lead__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.hero-lead:hover .hero-lead__img img { transform: scale(1.04); }
.hero-lead__body {
  padding: 18px 20px 20px;
}
.hero-lead__cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--red);
  margin-bottom: 8px;
}
.hero-lead__cat::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.hero-lead__title {
  font-family: var(--ff-title);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 10px;
}
.hero-lead__title a:hover { color: var(--red); }
.hero-lead__deck {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
  font-family: var(--ff-serif);
  margin-bottom: 12px;
}
.hero-lead__meta { font-size: 11.5px; color: var(--text-3); display: flex; gap: 14px; flex-wrap: wrap; }
.hero-lead__meta i { margin-right: 4px; }

/* Secondary stories stack */
.hero-stack {
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.hero-stack__item {
  flex: 1;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: background .15s;
}
.hero-stack__item:last-child { border-bottom: none; }
.hero-stack__item:hover { background: #fafafa; }
.hero-stack__num {
  position: absolute; top: 14px; right: 14px;
  font-size: 28px; font-weight: 900;
  color: var(--border);
  font-family: var(--ff-title);
  line-height: 1;
}
.hero-stack__cat { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--red); }
.hero-stack__title { font-family: var(--ff-title); font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--text); padding-right: 30px; }
.hero-stack__title a:hover { color: var(--red); }
.hero-stack__img { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius); }
.hero-stack__img img { width: 100%; height: 100%; object-fit: cover; }
.hero-stack__meta { font-size: 11px; color: var(--text-3); margin-top: auto; }

/* ================================================================
   STORY GRID — 3 col, 2 col, 4 col
   ================================================================ */
.story-grid { display: grid; gap: var(--gap); }
.story-grid--3 { grid-template-columns: repeat(3, 1fr); }
.story-grid--2 { grid-template-columns: repeat(2, 1fr); }
.story-grid--4 { grid-template-columns: repeat(4, 1fr); }
.story-grid--1-2 { grid-template-columns: 1.6fr 1fr; }
.story-grid--2-1 { grid-template-columns: 1fr 1.6fr; }

/* ================================================================
   STORY CARD
   ================================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }

.card__thumb { overflow: hidden; position: relative; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card__thumb img { transform: scale(1.06); }
.card__thumb--16-9 { aspect-ratio: 16/9; }
.card__thumb--4-3  { aspect-ratio: 4/3; }
.card__thumb--3-2  { aspect-ratio: 3/2; }

.card__label {
  position: absolute;
  bottom: 0; left: 0;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
}
.card__label--video { background: #1565C0; }
.card__label--gallery { background: #2E7D32; }
.card__label--live { background: var(--red); animation: pulse-bg 2s infinite; }
@keyframes pulse-bg { 0%,100%{background:var(--red)} 50%{background:#e53935} }

.card__body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.card__cat  { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--red); }
.card__title {
  font-family: var(--ff-title);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  flex: 1;
}
.card__title a:hover { color: var(--red); }
.card__deck { font-size: 13px; color: var(--text-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { font-size: 11px; color: var(--text-3); display: flex; gap: 12px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border-light); }
.card__meta i { margin-right: 3px; }

/* Card variants */
.card--horizontal { flex-direction: row; }
.card--horizontal .card__thumb { width: 130px; flex-shrink: 0; }
.card--horizontal .card__thumb--16-9 { aspect-ratio: auto; height: 100%; }

.card--large .card__title { font-size: 22px; }
.card--large .card__body { padding: 18px; }

.card--mini { border: none; background: transparent; }
.card--mini .card__body { padding: 0; }
.card--mini .card__title { font-size: 14px; }
.card--mini .card__thumb { border-radius: var(--radius); }

/* ================================================================
   FEATURED SECTION — big left + list right
   ================================================================ */
.featured-section { margin-bottom: var(--gap); }
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.featured-grid__main { background: var(--white); }
.featured-grid__list {
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.featured-grid__list-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  transition: background .15s;
}
.featured-grid__list-item:last-child { border-bottom: none; }
.featured-grid__list-item:hover { background: #fafafa; }
.featured-grid__list-item .thumb { width: 90px; height: 62px; overflow: hidden; border-radius: var(--radius); flex-shrink: 0; }
.featured-grid__list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-grid__list-item .cat  { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.featured-grid__list-item .ttl { font-family: var(--ff-title); font-size: 14px; font-weight: 700; line-height: 1.35; }
.featured-grid__list-item .ttl a:hover { color: var(--red); }
.featured-grid__list-item .meta { font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* ================================================================
   SECTION BLOCK (category with section header)
   ================================================================ */
.section-block {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--gap);
}
.section-block__head {
  padding: 12px 16px 10px;
  border-bottom: 2px solid var(--red);
  background: var(--white);
  display: flex; align-items: center; justify-content: space-between;
}
.section-block__name {
  font-family: var(--ff-title);
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: .5px;
}
.section-block__name i { margin-right: 7px; color: var(--red); font-size: 14px; }
.section-block__more {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.section-block__body { padding: 14px; }

/* ================================================================
   HORIZONTALS LIST (sidebar recent/popular)
   ================================================================ */
.hlist { display: flex; flex-direction: column; }
.hlist__item {
  display: flex;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
  transition: background .15s;
}
.hlist__item:last-child { border-bottom: none; }
.hlist__item:hover { background: #fafafa; }
.hlist__num {
  font-size: 22px;
  font-weight: 900;
  color: var(--border);
  font-family: var(--ff-title);
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.hlist__thumb { width: 72px; height: 50px; overflow: hidden; border-radius: var(--radius); flex-shrink: 0; }
.hlist__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hlist__body { flex: 1; min-width: 0; }
.hlist__cat  { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--red); margin-bottom: 3px; }
.hlist__title { font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--text); font-family: var(--ff-title); }
.hlist__title a:hover { color: var(--red); }
.hlist__meta { font-size: 11px; color: var(--text-3); margin-top: 3px; }

/* ================================================================
   TABS (most read / most commented)
   ================================================================ */
.tabs { }
.tabs__nav {
  display: flex;
  border-bottom: 2px solid var(--red);
}
.tabs__btn {
  flex: 1;
  padding: 9px 10px;
  background: #f5f5f5;
  border: none;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-3);
  cursor: pointer;
  border-right: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.tabs__btn:last-child { border-right: none; }
.tabs__btn.active { background: var(--red); color: #fff; }
.tabs__btn:hover:not(.active) { background: var(--border-light); }
.tabs__panel { display: none; }
.tabs__panel.active { display: block; }

/* ================================================================
   LIVE SIDEBAR COLUMN
   ================================================================ */
.live-col { }
.live-feed__head {
  background: var(--red);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.live-feed__head-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  flex: 1;
}
.live-feed__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.live-feed__body {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.live-feed__item {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.live-feed__item:last-child { border-bottom: none; }
.live-feed__time { font-size: 10px; font-weight: 800; color: var(--red); letter-spacing: .5px; }
.live-feed__text { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text); font-family: var(--ff-title); }
.live-feed__text a:hover { color: var(--red); }

/* ================================================================
   WIDGET BOX
   ================================================================ */
.widget-box {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--gap);
}
.widget-box--dark { background: var(--navy); border-color: var(--navy); }
.widget-box__head {
  padding: 10px 14px;
  background: var(--navy);
  display: flex; align-items: center; gap: 8px;
}
.widget-box__title {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #fff;
  flex: 1;
}
.widget-box__title i { margin-right: 6px; color: var(--red); }
.widget-box__body { padding: 12px 14px; }
.widget-box--red .widget-box__head { background: var(--red); }

/* ================================================================
   NEWSLETTER BANNER
   ================================================================ */
.newsletter-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: var(--gap);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.newsletter-banner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(192,0,12,.15);
}
.newsletter-banner__icon { font-size: 32px; color: var(--red); margin-bottom: 10px; }
.newsletter-banner__title { font-family: var(--ff-title); font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.newsletter-banner__text { font-size: 13px; color: #a8b4c8; margin-bottom: 16px; line-height: 1.6; }
.newsletter-banner__form { display: flex; gap: 0; max-width: 380px; margin: 0 auto; }
.newsletter-banner__form input {
  flex: 1; padding: 10px 16px; border: none; border-radius: 3px 0 0 3px;
  font-size: 13px; font-family: var(--ff-sans); outline: none;
}
.newsletter-banner__form button {
  background: var(--red); color: #fff; border: none;
  padding: 10px 18px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; border-radius: 0 3px 3px 0;
  letter-spacing: .5px;
}
.newsletter-banner__form button:hover { background: var(--red-dark); }

/* ================================================================
   DARK BAND — Opinion/Columns section
   ================================================================ */
.opinion-band {
  background: var(--navy);
  padding: 28px 0;
  margin-bottom: var(--gap);
}
.opinion-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.opinion-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  transition: background .2s;
}
.opinion-card:hover { background: rgba(255,255,255,.08); }
.opinion-card__avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid var(--red); }
.opinion-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.opinion-card__body { flex: 1; }
.opinion-card__author { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--gold); margin-bottom: 4px; }
.opinion-card__title { font-family: var(--ff-title); font-size: 14px; font-weight: 700; line-height: 1.4; color: rgba(255,255,255,.9); }
.opinion-card__title a:hover { color: var(--gold); }

/* ================================================================
   VIDEO SECTION
   ================================================================ */
.video-card { position: relative; }
.video-card__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--red); font-size: 18px;
  transition: transform .2s, background .2s;
  pointer-events: none;
}
.video-card:hover .video-card__play { transform: translate(-50%, -50%) scale(1.12); background: #fff; }

/* ================================================================
   PHOTO GALLERY STRIP
   ================================================================ */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
}
.gallery-strip__item { position: relative; aspect-ratio: 1; overflow: hidden; cursor: pointer; }
.gallery-strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-strip__item:hover img { transform: scale(1.1); }
.gallery-strip__item::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,.2);
  opacity: 0; transition: opacity .2s;
}
.gallery-strip__item:hover::after { opacity: 1; }
.gallery-strip__count {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #fff; font-weight: 800; font-size: 18px;
  z-index: 1; text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* ================================================================
   ARTICLE — Single Post
   ================================================================ */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--gap);
  align-items: start;
}
.article { background: var(--white); border-radius: var(--radius); overflow: hidden; }
.article__hero-img { width: 100%; max-height: 480px; overflow: hidden; }
.article__hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article__hero-img figcaption { font-size: 11px; color: var(--text-3); padding: 6px 24px; font-style: italic; background: #fafafa; border-bottom: 1px solid var(--border-light); }
.article__body { padding: 28px 32px 32px; }
.article__kicker { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: var(--red); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.article__kicker::before { content: ''; display: block; width: 24px; height: 2px; background: var(--red); }
.article__title { font-family: var(--ff-title); font-size: 36px; font-weight: 900; line-height: 1.2; margin-bottom: 14px; color: var(--navy); }
.article__deck { font-family: var(--ff-serif); font-size: 19px; font-weight: 300; line-height: 1.6; color: var(--text-2); margin-bottom: 18px; border-left: 3px solid var(--red); padding-left: 16px; }
.article__meta {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
  font-size: 12.5px; color: var(--text-3); margin-bottom: 22px;
}
.article__meta .author { font-weight: 700; color: var(--navy); }
.article__meta .author a:hover { color: var(--red); }
.article__share { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 3px; font-size: 12px; font-weight: 700;
  color: #fff; border: none; cursor: pointer; transition: opacity .2s;
}
.share-btn:hover { opacity: .88; }
.share-btn--fb   { background: #1877f2; }
.share-btn--tw   { background: #1da1f2; }
.share-btn--wa   { background: #25d366; }
.share-btn--tg   { background: #0088cc; }
.share-btn--cp   { background: #757575; }
.article__content { font-family: var(--ff-serif); font-size: 17px; line-height: 1.85; color: var(--text); }
.article__content p { margin-bottom: 22px; }
.article__content h2 { font-family: var(--ff-title); font-size: 26px; font-weight: 800; margin: 32px 0 14px; color: var(--navy); padding-bottom: 8px; border-bottom: 2px solid var(--red); }
.article__content h3 { font-family: var(--ff-title); font-size: 21px; font-weight: 700; margin: 24px 0 10px; color: var(--navy); }
.article__content blockquote { border-left: 4px solid var(--red); padding: 14px 22px; margin: 24px 0; background: #fdf5f5; font-size: 19px; font-style: italic; color: var(--navy); border-radius: 0 3px 3px 0; }
.article__content a { color: var(--red); text-decoration: underline; text-decoration-color: rgba(192,0,12,.4); }
.article__content a:hover { text-decoration-color: var(--red); }
.article__content ul, .article__content ol { margin: 0 0 22px 24px; }
.article__content ul { list-style: disc; }
.article__content ol { list-style: decimal; }
.article__content li { margin-bottom: 8px; }
.article__content figure { margin: 28px 0; }
.article__content figure img { border-radius: var(--radius); }
.article__content figcaption { font-size: 12px; color: var(--text-3); margin-top: 6px; font-style: italic; font-family: var(--ff-sans); }
.article__tags { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border-light); display: flex; flex-wrap: wrap; gap: 6px; }
.article__tag {
  font-size: 12px; font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 12px;
  color: var(--text-2); transition: all .15s;
}
.article__tag:hover { background: var(--red); color: #fff; border-color: var(--red); }
.article__author-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: #f8f9fc; border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 18px; margin-top: 28px;
}
.article__author-box .avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 3px solid var(--red); }
.article__author-box .name { font-family: var(--ff-title); font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.article__author-box .bio { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.article__author-box .more { font-size: 11px; color: var(--red); font-weight: 700; text-transform: uppercase; margin-top: 6px; display: inline-block; }

/* ================================================================
   BREADCRUMB
   ================================================================ */
.breadcrumb {
  font-size: 12px; color: var(--text-3);
  padding: 10px 0 6px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
}
.breadcrumb a { color: var(--red); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { color: var(--border); margin: 0 2px; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--navy);
  color: #8897b0;
  margin-top: 40px;
}
.footer-top {
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand__logo { font-family: var(--ff-title); font-size: 30px; font-weight: 900; color: var(--red); margin-bottom: 12px; }
.footer-brand__logo span { color: rgba(255,255,255,.7); }
.footer-brand__desc { font-size: 13px; color: #6e7d96; line-height: 1.7; margin-bottom: 14px; }
.footer-brand__socials { display: flex; gap: 8px; }
.footer-brand__socials a {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #8897b0;
  border: 1px solid rgba(255,255,255,.08);
  transition: all .15s;
}
.footer-brand__socials a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.footer-col__title {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px;
  color: #fff; margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
}
.footer-col__list { display: flex; flex-direction: column; gap: 8px; }
.footer-col__list li a { font-size: 13px; color: #6e7d96; transition: color .15s; }
.footer-col__list li a:hover { color: var(--red); }
.footer-col__list li a i { width: 16px; color: var(--red); margin-right: 4px; font-size: 10px; }

.footer-mid {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex;
  gap: var(--gap);
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.footer-mid a { font-size: 12px; color: #5a6880; }
.footer-mid a:hover { color: var(--red); }

.footer-bottom {
  padding: 14px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; color: #4a5568; flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: #5a6880; }
.footer-bottom a:hover { color: var(--red); }

/* ================================================================
   ARCHIVE / CATEGORY
   ================================================================ */
.archive-hero { background: var(--red); color: #fff; padding: 20px 0; margin-bottom: var(--gap); }
.archive-hero__cat { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; opacity: .7; margin-bottom: 6px; }
.archive-hero__title { font-family: var(--ff-title); font-size: 36px; font-weight: 900; }
.archive-hero__desc { font-size: 14px; opacity: .8; margin-top: 6px; }
.archive-count { font-size: 12px; color: var(--text-3); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }

.archive-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  margin-bottom: 14px;
  transition: box-shadow .2s, border-color .2s;
}
.archive-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.09); border-color: var(--border); }
.archive-card__thumb { overflow: hidden; height: 148px; }
.archive-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.archive-card:hover .archive-card__thumb img { transform: scale(1.06); }
.archive-card__body { padding: 16px 20px; display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.archive-card__cat  { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--red); letter-spacing: 1px; }
.archive-card__title { font-family: var(--ff-title); font-size: 20px; font-weight: 800; line-height: 1.3; }
.archive-card__title a:hover { color: var(--red); }
.archive-card__deck { font-size: 13.5px; color: var(--text-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.archive-card__meta { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 28px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 13.5px; font-weight: 600;
  color: var(--text-2); background: var(--white); transition: all .15s;
}
.pagination a:hover, .pagination .current { background: var(--red); color: #fff; border-color: var(--red); }

/* ================================================================
   STICKY SIDEBAR
   ================================================================ */
.sidebar-sticky { position: sticky; top: 58px; }

/* ================================================================
   SEARCH PAGE
   ================================================================ */
.search-header { margin-bottom: 24px; }
.search-header__label { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--red); letter-spacing: 1px; margin-bottom: 6px; }
.search-header__title { font-family: var(--ff-title); font-size: 28px; font-weight: 900; color: var(--navy); }
.search-header__count { font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* ================================================================
   LOAD MORE
   ================================================================ */
.load-more-wrap { text-align: center; padding: 20px 0; }
.btn-load-more {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--red);
  border: 2px solid var(--red); border-radius: 3px;
  padding: 11px 28px; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  cursor: pointer; transition: all .2s;
}
.btn-load-more:hover { background: var(--red); color: #fff; }

/* ================================================================
   ALERTS & BADGES
   ================================================================ */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 3px;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
}
.badge--red   { background: var(--red); color: #fff; }
.badge--navy  { background: var(--navy); color: #fff; }
.badge--gold  { background: var(--gold); color: #fff; }
.badge--green { background: #2E7D32; color: #fff; }

/* ================================================================
   AD BLOCKS
   ================================================================ */
.ad-block {
  display: flex; align-items: center; justify-content: center;
  background: #f0f0f0; border: 1px dashed var(--border); color: var(--text-3);
  font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
  border-radius: var(--radius);
}
.ad-728 { height: 90px; width: 100%; margin-bottom: var(--gap); }
.ad-300 { height: 250px; width: 100%; margin-bottom: var(--gap); }
.ad-320 { height: 50px; width: 100%; margin-bottom: 12px; display: none; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1280px) {
  :root { --col-main: auto; --col-live: 220px; }
  .layout-three-col { grid-template-columns: 1fr var(--col-live); }
  .col-live { grid-column: 2; grid-row: 1 / 3; }
}
@media (max-width: 1024px) {
  .layout-three-col,
  .layout-two-col { grid-template-columns: 1fr; }
  .col-live { grid-column: 1; grid-row: auto; }
  .hero-block { grid-template-columns: 1fr; }
  .hero-stack { flex-direction: row; border-left: none; border-top: 1px solid var(--border); }
  .hero-stack__item { border-right: 1px solid var(--border-light); border-bottom: none; flex: 1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .opinion-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .archive-card { grid-template-columns: 160px 1fr; }
}
@media (max-width: 768px) {
  .masthead__inner { grid-template-columns: 1fr auto; }
  .masthead__banner { display: none; }
  .primary-nav__menu { display: none; flex-direction: column; width: 100%; background: var(--red); }
  .primary-nav__menu.open { display: flex; }
  .primary-nav__link { height: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .primary-nav__dropdown { position: static; box-shadow: none; border-top: none; background: rgba(0,0,0,.15); }
  .primary-nav__dropdown li a { color: rgba(255,255,255,.8); border-bottom-color: rgba(255,255,255,.06); }
  .primary-nav__dropdown li a:hover { background: rgba(0,0,0,.1); color: #fff; }
  .primary-nav__toggle { display: flex; }
  .hero-block { grid-template-columns: 1fr; }
  .hero-stack { flex-direction: column; }
  .story-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr; }
  .opinion-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .ad-320 { display: flex; }
  .ad-728 { display: none; }
  .archive-card { grid-template-columns: 1fr; }
  .archive-card__thumb { height: 200px; }
  .single-layout { grid-template-columns: 1fr; }
  .article__body { padding: 16px; }
  .article__title { font-size: 26px; }
  .article__deck { font-size: 16px; }
}
@media (max-width: 480px) {
  .masthead__logo a { font-size: 30px; }
  .story-grid--3, .story-grid--2, .story-grid--4 { grid-template-columns: 1fr; }
  .util-bar__left { flex-wrap: wrap; gap: 8px; }
  .newsletter-banner__form { flex-direction: column; }
  .newsletter-banner__form input { border-radius: 3px; }
  .newsletter-banner__form button { border-radius: 3px; }
}

/* ================================================================
   PAGE CONTENT – Gutenberg block fixes
   ================================================================ */
.article__content .wp-block-group { margin-bottom: 22px; }
.article__content .is-layout-flow > * + * { margin-top: 16px; }
.article__content .wp-block-table { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.article__content .wp-block-table td,
.article__content .wp-block-table th { border: 1px solid var(--border); padding: 10px 14px; font-size: 14px; }
.article__content .wp-block-table thead { background: var(--navy); color: #fff; font-weight: 700; }
.article__content .wp-block-list { margin: 0 0 22px 24px; list-style: disc; }
.article__content .wp-block-list li { margin-bottom: 8px; font-size: 16px; line-height: 1.6; }

/* ================================================================
   PAGE LAYOUT – stile pagine istituzionali
   ================================================================ */
.article__content.page-content h1 { font-family: var(--ff-title); font-size: 36px; font-weight: 900; color: var(--navy); margin-bottom: 24px; }
.article__content .page-content h2 { font-size: 24px; margin: 28px 0 12px; }

/* Sidebar widget classico */
.widget-box__body .search-form { display: flex; gap: 6px; }
.widget-box__body .search-field { flex: 1; padding: 8px 10px; border: 1px solid var(--border); border-radius: 3px; font-size: 14px; }
.widget-box__body .search-submit { padding: 8px 14px; background: var(--red); color: #fff; border: none; border-radius: 3px; font-size: 13px; font-weight: 700; cursor: pointer; }

/* Widget Recent Posts */
.widget_recent_entries ul { list-style: none; margin: 0; padding: 0; }
.widget_recent_entries ul li { padding: 8px 0; border-bottom: 1px solid var(--border-light); font-size: 13px; font-weight: 600; }
.widget_recent_entries ul li:last-child { border-bottom: none; }
.widget_recent_entries ul li a { color: var(--navy); line-height: 1.4; }
.widget_recent_entries ul li a:hover { color: var(--red); }

/* Rimuovi titolo blocco visibile */
.widget-box__title:empty { display: none; }