/*
Theme Name: Libera Campania
Theme URI: https://www.liberacampania.it/
Author: Libera Campania
Description: Tema editoriale leggero per Libera Campania, ispirato al linguaggio visivo e modulare di Libera. Compatibile con editor a blocchi ed Elementor.
Version: 1.6.7
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: libera-campania
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
  --lc-yellow: #f4d314;
  --lc-orange: #f29a38;
  --lc-pink: #df3c7d;
  --lc-black: #171717;
  --lc-white: #ffffff;
  --lc-cream: #f5f1ea;
  --lc-gray-100: #f4f4f4;
  --lc-gray-200: #e5e5e5;
  --lc-gray-500: #767676;
  --lc-gray-700: #444444;
  --lc-content: 780px;
  --lc-wide: 1240px;
  --lc-radius: 0;
  --lc-shadow: 0 16px 45px rgb(0 0 0 / 0.08);
  --lc-font-body: Arial, Helvetica, sans-serif;
  --lc-font-heading: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--lc-white);
  color: var(--lc-black);
  font-family: var(--lc-font-body);
  font-size: 18px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  text-decoration-thickness: 2px;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
input[type="submit"],
input[type="button"],
.wp-element-button,
.wp-block-button__link,
.lc-button {
  border: 2px solid var(--lc-black);
  border-radius: 0;
  background: var(--lc-black);
  color: var(--lc-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.72rem 1rem;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

button:hover,
input[type="submit"]:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
.lc-button:hover {
  transform: translateY(-2px);
}

.lc-button--light {
  background: var(--lc-white);
  color: var(--lc-black);
}

.lc-button--outline {
  background: transparent;
  color: var(--lc-black);
}

:focus-visible {
  outline: 3px solid var(--lc-pink);
  outline-offset: 3px;
}

::selection {
  background: var(--lc-yellow);
  color: var(--lc-black);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.55em;
  font-family: var(--lc-font-heading);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

h1 { font-size: clamp(2.8rem, 7vw, 6.4rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 4.1rem); }
h3 { font-size: clamp(1.45rem, 2.5vw, 2.25rem); }
h4 { font-size: 1.35rem; }

p {
  margin: 0 0 1.1em;
}

blockquote {
  margin: 2rem 0;
  border-left: 8px solid var(--lc-yellow);
  padding: 0.25rem 0 0.25rem 1.3rem;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
}

hr {
  border: 0;
  border-top: 2px solid var(--lc-black);
  margin: 2.5rem 0;
}

/* Layout */
.lc-container,
.alignwide {
  width: min(calc(100% - 2rem), var(--lc-wide));
  margin-inline: auto;
}

.lc-content-width,
.alignnone,
.entry-content > :where(:not(.alignwide):not(.alignfull)) {
  width: min(calc(100% - 2rem), var(--lc-content));
  margin-inline: auto;
}

.alignfull {
  width: 100%;
  margin-inline: 0;
}

.lc-section {
  padding: clamp(4rem, 8vw, 7.5rem) 0;
}

.lc-section--cream { background: var(--lc-cream); }
.lc-section--black { background: var(--lc-black); color: var(--lc-white); }
.lc-section--yellow { background: var(--lc-yellow); }
.lc-section--pink { background: var(--lc-pink); color: var(--lc-white); }

.lc-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.2rem;
  border-bottom: 3px solid currentColor;
  padding-bottom: 1rem;
}

.lc-section-head h2 {
  margin: 0;
}

.lc-kicker,
.lc-eyebrow,
.entry-kicker {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.lc-kicker::before,
.lc-eyebrow::before,
.entry-kicker::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 8px;
  margin-right: 8px;
  background: linear-gradient(90deg, var(--lc-yellow) 0 33%, var(--lc-orange) 33% 66%, var(--lc-pink) 66% 100%);
  vertical-align: 0.05em;
}

/* Accessibility */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed !important;
  z-index: 100000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.8rem 1rem;
  background: var(--lc-white);
  color: var(--lc-black);
  font-weight: 800;
  box-shadow: var(--lc-shadow);
}

/* Header */
.lc-topbar {
  background: var(--lc-black);
  color: var(--lc-white);
  font-size: 0.78rem;
  font-weight: 700;
}

.lc-topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lc-topbar a {
  text-decoration: none;
}

.lc-topbar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.lc-site-header {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--lc-gray-200);
  background: rgb(255 255 255 / 0.98);
}

.lc-header__inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.lc-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.lc-brand .custom-logo {
  width: auto;
  max-width: min(260px, 48vw);
  max-height: 68px;
}

.lc-brand__fallback {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--lc-font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.lc-brand__bars {
  width: 12px;
  height: 46px;
  background: linear-gradient(180deg, var(--lc-yellow) 0 33%, var(--lc-orange) 33% 66%, var(--lc-pink) 66% 100%);
}

.lc-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lc-menu,
.lc-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lc-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.7rem);
}

.lc-menu > li {
  position: relative;
}

.lc-menu a {
  display: block;
  padding: 0.8rem 0;
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.lc-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0.45rem;
  height: 4px;
  background: var(--lc-pink);
  transition: right 160ms ease;
}

.lc-menu > li:hover > a::after,
.lc-menu > .current-menu-item > a::after,
.lc-menu > .current-menu-ancestor > a::after {
  right: 0;
}

.lc-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 250px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  background: var(--lc-black);
  color: var(--lc-white);
  box-shadow: var(--lc-shadow);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.lc-menu .sub-menu a {
  padding: 0.8rem 1rem;
  text-transform: none;
}

.lc-menu li:hover > .sub-menu,
.lc-menu li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.lc-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--lc-black);
  background: var(--lc-white);
  color: var(--lc-black);
}

.lc-menu-toggle span,
.lc-menu-toggle::before,
.lc-menu-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

/* Hero */
.lc-hero {
  overflow: hidden;
  background: var(--lc-black);
  color: var(--lc-white);
}

.lc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  min-height: min(720px, 78vh);
}

.lc-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3.5rem, 7vw, 7rem) clamp(1rem, 5vw, 5rem) clamp(3.5rem, 7vw, 7rem) max(1rem, calc((100vw - var(--lc-wide)) / 2));
}

.lc-hero__title {
  max-width: 12ch;
  margin-bottom: 0.35em;
}

.lc-hero__excerpt {
  max-width: 62ch;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: rgb(255 255 255 / 0.85);
}

.lc-hero__media {
  position: relative;
  min-height: 460px;
  background: var(--lc-pink);
}

.lc-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lc-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, transparent 48%, rgb(223 60 125 / 0.45));
  pointer-events: none;
}

.lc-hero__placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  background:
    linear-gradient(135deg, transparent 0 45%, rgb(0 0 0 / 0.12) 45% 55%, transparent 55% 100%),
    linear-gradient(90deg, var(--lc-yellow) 0 33.33%, var(--lc-orange) 33.33% 66.66%, var(--lc-pink) 66.66% 100%);
}

/* Post cards */
.lc-grid {
  display: grid;
  gap: 1.5rem;
}

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

.lc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-top: 7px solid var(--lc-yellow);
  background: var(--lc-white);
}

.lc-card:nth-child(3n + 2) { border-top-color: var(--lc-orange); }
.lc-card:nth-child(3n + 3) { border-top-color: var(--lc-pink); }

.lc-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--lc-gray-100);
}

.lc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.lc-card:hover .lc-card__media img {
  transform: scale(1.025);
}

.lc-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem 0 0;
}

.lc-card__meta {
  margin-bottom: 0.65rem;
  color: var(--lc-gray-700);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lc-card__title {
  margin-bottom: 0.6rem;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.02;
}

.lc-card__title a {
  text-decoration: none;
}

.lc-card__excerpt {
  color: var(--lc-gray-700);
  font-size: 0.96rem;
}

.lc-card__link {
  margin-top: auto;
  padding-top: 0.8rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Action tiles */
.lc-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--lc-black);
  border-left: 2px solid var(--lc-black);
}

.lc-action {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 2px solid var(--lc-black);
  border-bottom: 2px solid var(--lc-black);
  padding: 1.6rem;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.lc-action:nth-child(4n + 1):hover { background: var(--lc-yellow); }
.lc-action:nth-child(4n + 2):hover { background: var(--lc-orange); }
.lc-action:nth-child(4n + 3):hover { background: var(--lc-pink); color: var(--lc-white); }
.lc-action:nth-child(4n + 4):hover { background: var(--lc-black); color: var(--lc-white); }

.lc-action__number {
  font-size: 0.8rem;
  font-weight: 900;
}

.lc-action h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

/* CTA */
.lc-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  background: var(--lc-yellow);
  color: var(--lc-black);
}

.lc-cta h2 {
  max-width: 15ch;
  margin: 0;
}

/* Entries */
.lc-page-header {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 2.5rem;
  background: var(--lc-cream);
  border-bottom: 1px solid var(--lc-gray-200);
}

.lc-page-header__title {
  max-width: 18ch;
  margin: 0;
}

.entry-content {
  padding: 3.5rem 0 5rem;
}

.entry-content > * + * {
  margin-top: 1.4rem;
}

.entry-content > h2,
.entry-content > h3,
.entry-content > h4 {
  margin-top: 2.4rem;
}

.entry-content a:not(.wp-element-button) {
  text-decoration-color: var(--lc-pink);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4rem;
}

.entry-content .wp-block-image,
.entry-content .wp-block-gallery {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin-top: 1.2rem;
  color: var(--lc-gray-700);
  font-size: 0.82rem;
  font-weight: 700;
}

.lc-featured-image {
  width: min(100% - 2rem, var(--lc-wide));
  margin: 0 auto;
}

.lc-featured-image img {
  width: 100%;
  max-height: 760px;
  object-fit: cover;
}

/* Pagination */
.navigation.pagination,
.post-navigation {
  width: min(calc(100% - 2rem), var(--lc-wide));
  margin: 2.5rem auto 5rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-numbers,
.post-navigation a {
  display: inline-block;
  border: 2px solid var(--lc-black);
  padding: 0.55rem 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover,
.post-navigation a:hover {
  background: var(--lc-black);
  color: var(--lc-white);
}

/* Search and forms */
.search-form {
  display: flex;
  gap: 0;
  width: 100%;
}

.search-form label {
  flex: 1;
}

.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--lc-black);
  border-radius: 0;
  background: var(--lc-white);
  color: var(--lc-black);
  padding: 0.72rem 0.8rem;
}

textarea { min-height: 170px; }

/* Comments */
.comments-area {
  width: min(calc(100% - 2rem), var(--lc-content));
  margin: 0 auto 5rem;
  border-top: 3px solid var(--lc-black);
  padding-top: 2rem;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-list .children {
  list-style: none;
  margin-left: 1.2rem;
}

.comment-body {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--lc-gray-200);
}

/* Footer */
.lc-footer {
  background: var(--lc-black);
  color: var(--lc-white);
}

.lc-footer__main {
  display: grid;
  grid-template-columns: 1.25fr 2fr;
  gap: 4rem;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.lc-footer__brand .custom-logo {
  filter: none;
  max-width: 230px;
  max-height: 90px;
  width: auto;
}

.lc-footer__description {
  max-width: 38ch;
  color: rgb(255 255 255 / 0.74);
  font-size: 0.92rem;
}

.lc-footer__menus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.lc-footer__menus h3 {
  margin-bottom: 0.9rem;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.lc-footer__menus ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lc-footer__menus li + li {
  margin-top: 0.45rem;
}

.lc-footer__menus a {
  color: rgb(255 255 255 / 0.8);
  text-decoration: none;
}

.lc-footer__menus a:hover { color: var(--lc-white); }

.lc-footer__bottom {
  border-top: 1px solid rgb(255 255 255 / 0.18);
  padding: 1.2rem 0;
  color: rgb(255 255 255 / 0.7);
  font-size: 0.75rem;
}

.lc-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* WordPress core */
.wp-caption,
.gallery-caption { max-width: 100%; }

.sticky { position: relative; }
.bypostauthor { position: relative; }

.wp-block-separator {
  border-top: 2px solid currentColor;
}

.wp-block-cover {
  min-height: 420px;
}

.wp-block-quote cite {
  font-size: 0.85rem;
  font-weight: 700;
}

.has-libera-yellow-background-color { background-color: var(--lc-yellow) !important; }
.has-libera-orange-background-color { background-color: var(--lc-orange) !important; }
.has-libera-pink-background-color { background-color: var(--lc-pink) !important; }
.has-libera-black-background-color { background-color: var(--lc-black) !important; }
.has-libera-cream-background-color { background-color: var(--lc-cream) !important; }

/* Elementor compatibility */
.elementor-page .entry-content {
  padding: 0;
}

.elementor-page .entry-content > * {
  width: auto;
  max-width: none;
  margin-inline: 0;
}

body.lc-elementor-canvas {
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .lc-menu-toggle { display: block; }

  .lc-primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--lc-white);
    border-top: 1px solid var(--lc-gray-200);
    border-bottom: 2px solid var(--lc-black);
    padding: 1rem;
  }

  .lc-primary-nav.is-open { display: block; }

  .lc-menu {
    display: block;
  }

  .lc-menu > li > a::after { display: none; }

  .lc-menu .sub-menu {
    position: static;
    min-width: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    background: var(--lc-cream);
    color: var(--lc-black);
    margin: 0 0 0.5rem 1rem;
  }

  .lc-hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .lc-hero__content {
    padding-inline: max(1rem, calc((100vw - var(--lc-wide)) / 2));
  }

  .lc-hero__media { min-height: 420px; }

  .lc-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lc-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .lc-footer__main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 700px) {
  body { font-size: 17px; }

  .lc-topbar__inner { min-height: 34px; }
  .lc-topbar__links a:not(:first-child) { display: none; }
  .lc-header__inner { min-height: 76px; }
  .lc-brand .custom-logo { max-height: 56px; }

  .lc-section-head {
    display: block;
  }

  .lc-section-head .lc-button,
  .lc-section-head > a {
    margin-top: 0.8rem;
  }

  .lc-grid--3,
  .lc-grid--2,
  .lc-actions,
  .lc-cta,
  .lc-footer__menus {
    grid-template-columns: 1fr;
  }

  .lc-action { min-height: 220px; }
  .lc-hero__media { min-height: 300px; }
  .lc-cta { align-items: start; }
  .search-form { display: block; }
  .search-submit { width: 100%; margin-top: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================================
   Libera Campania v0.2 - floating header + editorial torn hero
   ================================================================ */

:root {
  --lc-header-h: 96px;
  --lc-header-h-mobile: 78px;
  --lc-hero-edge: 78px;
}

/* Floating / sticky header */
.lc-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border: 0;
  background: var(--lc-black);
  color: var(--lc-white);
  transition: background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.admin-bar .lc-site-header { top: 32px; }

.home .lc-site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.58), rgb(0 0 0 / 0));
  box-shadow: none;
}

.admin-bar.home .lc-site-header { top: 32px; }

.home .lc-site-header.is-scrolled {
  background: rgb(18 18 18 / 0.97);
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.18);
  backdrop-filter: blur(9px);
}

.lc-header__inner {
  min-height: var(--lc-header-h);
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: clamp(0.9rem, 2.4vw, 2rem);
}

.lc-brand {
  justify-self: start;
  color: currentColor;
}

.lc-brand .custom-logo {
  max-width: min(190px, 27vw);
  max-height: 72px;
  width: auto;
  transition: max-height 200ms ease, transform 200ms ease;
}

.lc-site-header.is-scrolled .lc-brand .custom-logo { max-height: 58px; }

.lc-brand__fallback { color: var(--lc-white); }

.lc-nav { position: static; }

.lc-menu-toggle {
  display: block;
  position: relative;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: currentColor;
  padding: 0;
}

.lc-menu-toggle:hover { transform: none; }

.lc-menu-toggle span,
.lc-menu-toggle::before,
.lc-menu-toggle::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 32px;
  height: 3px;
  margin: 0;
  background: currentColor;
  transition: transform 180ms ease, top 180ms ease, opacity 180ms ease;
}

.lc-menu-toggle::before { top: 13px; }
.lc-menu-toggle span { top: 23px; }
.lc-menu-toggle::after { top: 33px; }
.lc-menu-toggle[aria-expanded="true"]::before { top: 23px; transform: rotate(45deg); }
.lc-menu-toggle[aria-expanded="true"] span { opacity: 0; }
.lc-menu-toggle[aria-expanded="true"]::after { top: 23px; transform: rotate(-45deg); }

.lc-primary-nav {
  position: fixed;
  z-index: 999;
  left: 0;
  right: 0;
  top: var(--lc-header-h);
  display: block;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  border: 0;
  background: rgb(18 18 18 / 0.985);
  color: var(--lc-white);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.admin-bar .lc-primary-nav { top: calc(var(--lc-header-h) + 32px); }

.lc-primary-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lc-primary-nav__inner { padding-block: 2rem 2.6rem; }

.lc-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgb(255 255 255 / 0.25);
}

.lc-menu > li { border-bottom: 1px solid rgb(255 255 255 / 0.25); }

.lc-menu a {
  padding: 1rem 0.4rem;
  color: var(--lc-white);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
}

.lc-menu > li > a::after { display: none; }

.lc-menu .sub-menu {
  position: static;
  min-width: 0;
  visibility: visible;
  opacity: 1;
  transform: none;
  background: transparent;
  box-shadow: none;
  margin-bottom: 0.8rem;
}

.lc-menu .sub-menu a {
  padding: 0.45rem 0.4rem;
  color: rgb(255 255 255 / 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: none;
}

.lc-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.7rem, 2vw, 1.55rem);
  color: currentColor;
}

.lc-header-tools a {
  color: currentColor;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.lc-header-lang { min-width: 36px; text-align: center; }

.lc-header-donate {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.lc-heart {
  color: #eb1673;
  font-size: 1.65rem;
  line-height: 1;
}

.lc-header-search { display: inline-flex; align-items: center; }

/* Full-bleed editorial hero */
.lc-hero {
  position: relative;
  isolation: isolate;
  min-height: min(900px, 96svh);
  overflow: hidden;
  background: var(--lc-black);
  color: var(--lc-white);
  -webkit-mask-image: url("assets/img/hero-torn-mask.svg");
  mask-image: url("assets/img/hero-torn-mask.svg");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center top;
  mask-position: center top;
}

.lc-hero--home {
  min-height: max(690px, 96svh);
  background: var(--lc-yellow);
  -webkit-mask-image: none;
  mask-image: none;
}

/* On the home hero, tear only the image/overlay, not the yellow base.
   This lets the yellow section show through the irregular lower edge. */
.lc-hero--home .lc-hero__media,
.lc-hero--home .lc-hero__shade {
  -webkit-mask-image: url("assets/img/hero-torn-mask.svg");
  mask-image: url("assets/img/hero-torn-mask.svg");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center top;
  mask-position: center top;
}

.lc-hero__media,
.lc-hero__shade {
  position: absolute;
  inset: 0;
}

.lc-territories-strip {
  position: relative;
  z-index: 2;
  margin-top: -2px;
}

.lc-hero__media { z-index: -3; background: #262626; min-height: 0; }

.lc-hero__image,
.lc-hero__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.015);
  transition: transform 1.2s cubic-bezier(.2,.72,.2,1);
}

.lc-hero.is-visible .lc-hero__image,
.lc-hero.is-visible .lc-hero__media > img { transform: scale(1); }

.lc-hero__media::after { display: none; }

.lc-hero__shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.20) 0%, rgb(0 0 0 / 0.05) 28%, rgb(0 0 0 / 0.48) 68%, rgb(0 0 0 / 0.80) 100%),
    linear-gradient(90deg, rgb(0 0 0 / 0.24), transparent 55%);
}

.lc-hero__content {
  min-height: inherit;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--lc-header-h) + 5rem);
  padding-bottom: clamp(7.5rem, 12vh, 10rem);
}

.lc-hero__copy {
  width: min(860px, 76vw);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lc-eyebrow--light { color: rgb(255 255 255 / 0.88); }

.lc-hero__title {
  max-width: none;
  margin: 0 auto 0.42em;
  font-size: clamp(3rem, 7.8vw, 7.6rem);
  line-height: 0.91;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.lc-highlight {
  display: inline;
  padding: 0.01em 0.09em 0.055em;
  color: var(--lc-black);
  background-image:
    linear-gradient(177deg,
      transparent 0 8%,
      #ffeb00 8% 90%,
      transparent 90% 100%);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  filter: drop-shadow(0 1px 0 rgb(0 0 0 / 0.08));
}

/*
 * Home hero marker v1.0.
 * The title keeps its natural browser wrapping. A dedicated JavaScript file
 * measures the already-rendered text lines with Range.getClientRects() and
 * draws one absolutely-positioned yellow stroke behind each line. No title
 * reconstruction, CSS keyframes or transform animation is required.
 */
.lc-hero__title {
  position: relative;
}

.lc-highlight--animated {
  position: relative;
  z-index: 2;
}

.lc-highlight--animated.lc-highlight--measured {
  padding: 0;
  background: none;
  filter: none;
}

.lc-marker-layer {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  pointer-events: none;
  overflow: visible;
}

.lc-marker-stroke {
  position: absolute;
  display: block;
  width: 0;
  min-width: 0;
  pointer-events: none;
  background:
    linear-gradient(177deg,
      transparent 0 7%,
      #ffeb00 7% 91%,
      transparent 91% 100%);
  clip-path: polygon(0 5%, 99.2% 0, 100% 89%, 1.4% 100%);
  filter: drop-shadow(0 1px 0 rgb(0 0 0 / 0.08));
  contain: layout paint;
}

.lc-marker-stroke.is-complete {
  contain: paint;
}

/* Fail-safe: if line measurement is unavailable, keep a normal static marker. */
.lc-highlight--animated.lc-highlight--fallback {
  padding: 0.01em 0.09em 0.055em;
  background-image:
    linear-gradient(177deg,
      transparent 0 8%,
      #ffeb00 8% 90%,
      transparent 90% 100%);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  filter: drop-shadow(0 1px 0 rgb(0 0 0 / 0.08));
}

.lc-highlight--article {
  padding-inline: 0.055em;
  background-image:
    linear-gradient(178deg,
      transparent 0 9%,
      #ffeb00 9% 91%,
      transparent 91% 100%);
}

.lc-hero__excerpt {
  max-width: 820px;
  margin-inline: auto;
  color: var(--lc-white);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.35;
  text-wrap: balance;
}

.lc-hero__excerpt p:last-child { margin-bottom: 0; }

.lc-hero__action { margin: 2.1rem 0 0; }

.lc-button--paper {
  min-width: 220px;
  border: 4px solid var(--lc-black);
  background: var(--lc-white);
  color: var(--lc-black);
  box-shadow: 12px 12px 0 #ffeb00;
  padding: 1rem 1.45rem;
  font-size: 1rem;
}

.lc-button--paper:hover {
  transform: translate(3px, 3px);
  box-shadow: 8px 8px 0 #ffeb00;
}

.lc-hero__placeholder {
  position: absolute;
  inset: 0;
  min-height: 0;
  background:
    radial-gradient(circle at 25% 30%, rgb(255 235 0 / 0.8), transparent 24%),
    radial-gradient(circle at 70% 35%, rgb(223 60 125 / 0.75), transparent 30%),
    linear-gradient(135deg, #393939, #141414 72%);
}

.lc-section--after-hero { background: var(--lc-white); padding-top: clamp(4.5rem, 8vw, 7.5rem); }

.lc-section--actions .lc-section-head { border-color: rgb(255 255 255 / 0.45); }
.lc-section--actions .lc-kicker::before { filter: none; }
.lc-section--actions .lc-actions { border-color: rgb(255 255 255 / 0.45); }
.lc-section--actions .lc-action { border-color: rgb(255 255 255 / 0.45); color: var(--lc-white); }

/* Torn featured images for posts/pages that use them */
.single .lc-featured-image,
.page:not(.home) .lc-featured-image {
  position: relative;
  width: 100%;
  margin: 0;
  -webkit-mask-image: url("assets/img/hero-torn-mask.svg");
  mask-image: url("assets/img/hero-torn-mask.svg");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.single .lc-featured-image img,
.page:not(.home) .lc-featured-image img {
  width: 100%;
  max-height: 740px;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .lc-primary-nav {
    top: var(--lc-header-h);
  }

  .lc-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .lc-hero__grid { display: block; }
  .lc-hero__content { padding-inline: max(1rem, calc((100vw - var(--lc-wide)) / 2)); }
  .lc-hero__media { min-height: 0; }
}

@media (max-width: 700px) {
  :root { --lc-header-h: var(--lc-header-h-mobile); }

  .admin-bar .lc-site-header,
  .admin-bar.home .lc-site-header { top: 46px; }

  .lc-header__inner {
    min-height: var(--lc-header-h-mobile);
    grid-template-columns: 44px minmax(88px, 1fr) auto;
    gap: 0.48rem;
  }

  .lc-menu-toggle { width: 42px; height: 42px; }
  .lc-menu-toggle span,
  .lc-menu-toggle::before,
  .lc-menu-toggle::after { left: 6px; width: 29px; }

  .lc-brand .custom-logo { max-width: 112px; max-height: 58px; }
  .lc-brand__fallback { font-size: 1rem; }
  .lc-brand__bars { width: 8px; height: 34px; }

  .lc-header-tools { gap: 0.65rem; }
  .lc-header-tools a { font-size: 0.7rem; }
  .lc-header-lang { display: none; }
  .lc-header-donate { flex-direction: column; gap: 0; line-height: 1; }
  .lc-heart { font-size: 1.45rem; }
  .lc-header-search svg { width: 28px; height: 28px; }

  .lc-primary-nav { top: var(--lc-header-h-mobile); max-height: calc(100svh - var(--lc-header-h-mobile)); overflow-y: auto; }
  .admin-bar .lc-primary-nav { top: calc(var(--lc-header-h-mobile) + 46px); }
  .lc-menu { grid-template-columns: 1fr; }

  .lc-hero,
  .lc-hero--home { min-height: max(670px, 94svh); }

  .lc-hero__content {
    padding-top: calc(var(--lc-header-h-mobile) + 4.5rem);
    padding-bottom: 6.2rem;
  }

  .lc-hero__copy { width: min(100%, 560px); }

  .lc-hero__title {
    width: min(10.6ch, 94vw);
    font-size: clamp(3rem, 14vw, 4.45rem);
    line-height: 0.94;
  }

  .lc-highlight { padding-inline: 0.065em; }
  .lc-hero__excerpt { max-width: 92%; font-size: 1.03rem; }
  .lc-hero__action { margin-top: 1.65rem; }
  .lc-button--paper { min-width: 190px; padding: 0.9rem 1.2rem; box-shadow: 9px 9px 0 #ffeb00; }
}

@media (prefers-reduced-motion: reduce) {
  .lc-hero__image,
  .lc-hero__media > img { transform: none; }
}

/* ============================================================
   V3 — Editorial system, full-screen navigation and home modules
   ============================================================ */

body.lc-menu-open { overflow: hidden; }

.lc-site-header.has-open-menu,
.home .lc-site-header.has-open-menu {
  background: #111;
  box-shadow: none;
}

/* Full-screen menu */
.lc-primary-nav {
  top: 0;
  height: 100svh;
  max-height: none;
  padding-top: var(--lc-header-h);
  overflow-y: auto;
  background: #111;
  transform: translateY(-1.5rem);
}

.admin-bar .lc-primary-nav {
  top: 0;
  height: calc(100svh - 32px);
  padding-top: calc(var(--lc-header-h) + 32px);
}

.lc-primary-nav.is-open { transform: translateY(0); }

.lc-primary-nav__inner {
  min-height: calc(100svh - var(--lc-header-h));
  padding-block: clamp(2.2rem, 5vw, 4.8rem) 2rem;
  display: flex;
  flex-direction: column;
}

.lc-menu-panel__intro {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.32);
}

.lc-menu-panel__eyebrow {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lc-yellow);
}

.lc-menu-panel__intro p {
  margin: 0;
  font-family: var(--lc-font-heading);
  font-size: clamp(2.2rem, 4.5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .9;
  text-transform: uppercase;
}

.lc-menu-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, .7fr);
  gap: clamp(2rem, 6vw, 7rem);
  padding-block: clamp(2rem, 4vw, 4rem);
}

.lc-menu-panel__nav .lc-menu {
  display: block;
  border: 0;
}

.lc-menu-panel__nav .lc-menu > li {
  border-top: 1px solid rgb(255 255 255 / .24);
  border-bottom: 0;
}

.lc-menu-panel__nav .lc-menu > li:last-child {
  border-bottom: 1px solid rgb(255 255 255 / .24);
}

.lc-menu-panel__nav .lc-menu > li > a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .35em .04em;
  font-family: var(--lc-font-heading);
  font-size: clamp(2rem, 4.9vw, 5.4rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.04em;
  text-transform: uppercase;
  transition: color 140ms ease, padding-left 140ms ease;
}

.lc-menu-panel__nav .lc-menu > li > a::after {
  content: "↗";
  display: inline-block;
  opacity: .3;
  font-family: var(--lc-font-body);
  font-size: .4em;
  font-weight: 400;
  transition: opacity 140ms ease, transform 140ms ease;
}

.lc-menu-panel__nav .lc-menu > li > a:hover,
.lc-menu-panel__nav .lc-menu > li > a:focus-visible {
  color: var(--lc-yellow);
  padding-left: .12em;
  text-decoration: none;
}

.lc-menu-panel__nav .lc-menu > li > a:hover::after,
.lc-menu-panel__nav .lc-menu > li > a:focus-visible::after {
  opacity: 1;
  transform: translate(.18em, -.18em);
}

.lc-menu-panel__nav .sub-menu {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  margin: -.2rem 0 1rem;
}

.lc-menu-panel__nav .sub-menu a {
  padding: .2rem 0;
  font-size: .78rem;
  text-transform: uppercase;
}

.lc-menu-panel__aside {
  display: grid;
  align-content: start;
  gap: .8rem;
}

.lc-menu-panel__cta {
  min-height: 110px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border: 3px solid var(--lc-white);
  color: var(--lc-black);
  font-family: var(--lc-font-heading);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 7px 7px 0 rgb(255 255 255 / .22);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.lc-menu-panel__cta:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 rgb(255 255 255 / .22);
  text-decoration: none;
}

.lc-menu-panel__cta--yellow { background: var(--lc-yellow); }
.lc-menu-panel__cta--orange { background: var(--lc-orange); }
.lc-menu-panel__cta--pink { background: var(--lc-pink); color: var(--lc-white); }

.lc-menu-panel__territories {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / .32);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lc-menu-panel__territories > span { color: var(--lc-yellow); }
.lc-menu-panel__territories a { color: var(--lc-white); text-decoration: none; }
.lc-menu-panel__territories a:hover { color: var(--lc-yellow); }

.lc-menu-panel__territory-list {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lc-menu-panel__territory-list li { display: inline; }
.lc-menu-panel__territory-list span { display: inline; }

/* Section headings */
.lc-section-head--editorial { position: relative; align-items: flex-end; }
.lc-section-index {
  font-family: var(--lc-font-heading);
  font-size: clamp(3.5rem, 7vw, 7.6rem);
  font-weight: 900;
  line-height: .7;
  letter-spacing: -.07em;
  opacity: .12;
}

.lc-section-head__side { display: flex; align-items: flex-end; gap: 1.2rem; }
.lc-text-link { font-size: .78rem; font-weight: 900; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.lc-text-link:hover { text-decoration: underline; }

/* Editorial cards */
.lc-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .75fr);
  grid-template-rows: repeat(2, minmax(250px, auto));
  gap: 1.15rem;
}

.lc-feature-grid > .lc-card:first-child { grid-row: 1 / span 2; }
.lc-feature-grid .lc-card {
  position: relative;
  min-height: 0;
  border-top: 0;
  background: var(--lc-black);
  color: var(--lc-white);
  overflow: hidden;
}

.lc-feature-grid .lc-card__media {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 100%;
}

.lc-feature-grid .lc-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / .04) 20%, rgb(0 0 0 / .84) 100%);
}

.lc-feature-grid .lc-card__media img { height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(.2,.72,.2,1); }
.lc-feature-grid .lc-card:hover .lc-card__media img { transform: scale(1.035); }
.lc-feature-grid .lc-card__body { position: relative; z-index: 2; margin-top: auto; padding: clamp(1.25rem, 3vw, 2.6rem); }
.lc-feature-grid .lc-card__meta { color: var(--lc-yellow); }
.lc-feature-grid .lc-card__title { max-width: 16ch; font-size: clamp(1.75rem, 3.6vw, 4.3rem); }
.lc-feature-grid > .lc-card:not(:first-child) .lc-card__title { font-size: clamp(1.5rem, 2vw, 2.4rem); }
.lc-feature-grid .lc-card__title a { color: inherit; text-decoration: none; }
.lc-feature-grid .lc-card__excerpt,
.lc-feature-grid .lc-card__link { display: none; }
.lc-feature-grid .lc-card::after {
  content: "↗";
  position: absolute;
  z-index: 3;
  right: 1.25rem;
  top: 1.25rem;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: var(--lc-yellow);
  color: var(--lc-black);
  font-weight: 900;
}

/* Territory band */
.lc-territories-strip {
  padding: clamp(3.3rem, 6vw, 5.4rem) 0;
  background: var(--lc-yellow);
  color: var(--lc-black);
}

.lc-territories-strip__head {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) 1.3fr;
  align-items: end;
  gap: 2rem;
  padding-bottom: 1.3rem;
  border-bottom: 4px solid var(--lc-black);
}

.lc-territories-strip__head h2 { margin: 0; text-align: right; }
.lc-territories-strip .lc-kicker::before { background: var(--lc-black); }

.lc-territory-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 4px solid var(--lc-black);
}

.lc-territory-links li { min-width: 0; }

.lc-territory-links a {
  min-height: 135px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .7rem;
  padding: 1.1rem .8rem 1rem;
  border-right: 2px solid var(--lc-black);
  font-family: var(--lc-font-heading);
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 130ms ease, color 130ms ease;
}

.lc-territory-links li:first-child a { border-left: 2px solid var(--lc-black); }
.lc-territory-links a:hover { background: var(--lc-black); color: var(--lc-white); }

/* Actions become strong horizontal rows */
.lc-actions--rows { display: block; border: 0; }
.lc-actions--rows .lc-action {
  min-height: 0;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.1rem, 2vw, 1.8rem) .2rem;
  border: 0;
  border-top: 1px solid rgb(255 255 255 / .42);
  background: transparent;
  text-decoration: none;
  transition: padding-inline 150ms ease, background 150ms ease, color 150ms ease;
}

.lc-actions--rows .lc-action:last-child { border-bottom: 1px solid rgb(255 255 255 / .42); }
.lc-actions--rows .lc-action__number { align-self: center; margin: 0; color: var(--lc-yellow); }
.lc-actions--rows .lc-action h3 { margin: 0; font-size: clamp(2rem, 4.5vw, 5rem); }
.lc-action__arrow { font-size: clamp(1.7rem, 3.5vw, 3.5rem); line-height: 1; }
.lc-actions--rows .lc-action:hover { padding-inline: 1rem; color: var(--lc-black); }
.lc-actions--rows .lc-action:nth-child(4n + 1):hover { background: var(--lc-yellow); }
.lc-actions--rows .lc-action:nth-child(4n + 2):hover { background: var(--lc-orange); }
.lc-actions--rows .lc-action:nth-child(4n + 3):hover { background: var(--lc-pink); color: var(--lc-white); }
.lc-actions--rows .lc-action:nth-child(4n + 4):hover { background: var(--lc-white); }
.lc-actions--rows .lc-action:hover .lc-action__number { color: currentColor; }

/* News cards */
.lc-news-grid .lc-card {
  border-top-width: 8px;
  background: transparent;
  box-shadow: none;
}
.lc-news-grid .lc-card__media { height: auto; aspect-ratio: 16 / 10; overflow: hidden; }
.lc-news-grid .lc-card__media img { height: 100%; object-fit: cover; }
.lc-news-grid .lc-card__body { padding: 1.15rem 0 .5rem; }
.lc-news-grid .lc-card__title { font-size: clamp(1.55rem, 2.3vw, 2.45rem); }
.lc-news-grid .lc-card__excerpt { font-size: .95rem; }
/* Paper-style CTA, visually aligned with the hero "Leggi ora" button. */
.lc-news-grid .lc-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 154px;
  margin-top: 1.2rem;
  border: 3px solid var(--lc-black);
  background: var(--lc-white);
  color: var(--lc-black);
  box-shadow: 7px 7px 0 #ffeb00;
  padding: .72rem 1rem;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .045em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.lc-news-grid .lc-card__link:hover,
.lc-news-grid .lc-card__link:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 5px 5px 0 #ffeb00;
}


/* Multicolor participation band */
.lc-community-band {
  position: relative;
  overflow: hidden;
  background: var(--lc-black);
  color: var(--lc-white);
  padding: clamp(5rem, 9vw, 8.5rem) 0;
}

.lc-community-band__stripe {
  position: absolute;
  width: 36vw;
  height: 54px;
  right: -8vw;
  transform: rotate(-7deg);
  transform-origin: right center;
  opacity: .98;
}
.lc-community-band__stripe--yellow { top: 8%; background: var(--lc-yellow); }
.lc-community-band__stripe--orange { top: calc(8% + 48px); background: var(--lc-orange); }
.lc-community-band__stripe--pink { top: calc(8% + 96px); background: var(--lc-pink); }

.lc-community-band__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: end;
  gap: clamp(2rem, 7vw, 7rem);
}
.lc-community-band h2 { max-width: 14ch; font-size: clamp(3rem, 7vw, 7rem); }
.lc-community-band p { max-width: 760px; font-size: clamp(1rem, 1.7vw, 1.35rem); }
.lc-community-band .lc-kicker::before { filter: none; }
.lc-community-band__button { white-space: nowrap; }

/* Footer */
.lc-footer { background: #0f0f0f; color: var(--lc-white); }
.lc-footer__statement {
  overflow: hidden;
  border-top: 1px solid rgb(255 255 255 / .25);
  border-bottom: 1px solid rgb(255 255 255 / .25);
}
.lc-footer__statement p {
  margin: 0;
  padding: .24em 0 .18em;
  font-family: var(--lc-font-heading);
  font-size: clamp(4rem, 12vw, 12.5rem);
  font-weight: 900;
  line-height: .78;
  letter-spacing: -.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lc-footer__statement p span { color: var(--lc-yellow); }
.lc-footer__main { padding-block: clamp(3.5rem, 6vw, 6rem); }
.lc-footer__brand { align-self: start; }
.lc-footer__brand .custom-logo { filter: brightness(0) invert(1); }
.lc-footer__menus { align-items: start; }
.lc-footer__menus h3 { color: var(--lc-yellow); }
.lc-footer__territories { border-top: 1px solid rgb(255 255 255 / .22); }
.lc-footer__territories .lc-container {
  min-height: 74px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem 1.5rem;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.lc-footer__territories span { color: var(--lc-yellow); }
.lc-footer__territories a { text-decoration: none; }
.lc-footer__territories a:hover { color: var(--lc-yellow); }
.lc-footer__bottom { border-top: 1px solid rgb(255 255 255 / .22); background: #080808; }

@media (max-width: 1024px) {
  .lc-menu-panel__grid { grid-template-columns: 1fr; }
  .lc-menu-panel__aside { grid-template-columns: repeat(3, 1fr); }
  .lc-menu-panel__cta { min-height: 90px; }
  .lc-feature-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .lc-feature-grid > .lc-card:first-child { grid-column: 1 / -1; grid-row: auto; min-height: 560px; }
  .lc-feature-grid > .lc-card:not(:first-child) { min-height: 330px; }
  .lc-territory-links { grid-template-columns: repeat(3, 1fr); }
  .lc-territory-links li:nth-child(3) a { border-right: 2px solid var(--lc-black); }
  .lc-community-band__inner { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 700px) {
  .lc-primary-nav {
    height: 100svh;
    padding-top: var(--lc-header-h-mobile);
  }
  .admin-bar .lc-primary-nav { height: calc(100svh - 46px); padding-top: calc(var(--lc-header-h-mobile) + 46px); }
  .lc-primary-nav__inner { min-height: calc(100svh - var(--lc-header-h-mobile)); padding-top: 1.3rem; }
  .lc-menu-panel__intro { gap: .55rem; padding-bottom: .7rem; }
  .lc-menu-panel__intro p { font-size: 2rem; }
  .lc-menu-panel__grid { gap: 1.2rem; padding-block: 1.2rem; }
  .lc-menu-panel__nav .lc-menu > li > a { font-size: clamp(2rem, 11vw, 3.6rem); padding-block: .29em; }
  .lc-menu-panel__nav .sub-menu { display: none; }
  .lc-menu-panel__aside { grid-template-columns: 1fr; gap: .55rem; }
  .lc-menu-panel__cta { min-height: 68px; padding: .8rem 1rem; font-size: 1.25rem; border-width: 2px; box-shadow: 5px 5px 0 rgb(255 255 255 / .2); }
  .lc-menu-panel__territories { gap: .4rem .8rem; font-size: .68rem; }

  .lc-section-index { font-size: 3.6rem; }
  .lc-section-head__side { display: block; text-align: right; }
  .lc-section-head__side .lc-section-index { display: block; margin-bottom: .45rem; }

  .lc-feature-grid { display: block; }
  .lc-feature-grid .lc-card { min-height: 360px !important; margin-bottom: .8rem; }
  .lc-feature-grid .lc-card:first-child { min-height: 500px !important; }
  .lc-feature-grid .lc-card__title,
  .lc-feature-grid > .lc-card:not(:first-child) .lc-card__title { font-size: clamp(1.8rem, 9vw, 3rem); }

  .lc-territories-strip { padding-block: 2.8rem; }
  .lc-territories-strip__head { grid-template-columns: 1fr; gap: .4rem; }
  .lc-territories-strip__head h2 { text-align: left; font-size: 2.7rem; }
  .lc-territory-links { display: block; border-bottom-width: 3px; }
  .lc-territory-links a {
    min-height: 0;
    padding: .82rem .15rem;
    border: 0;
    border-top: 2px solid var(--lc-black);
    font-size: 1.7rem;
  }
  .lc-territory-links li:first-child a { border-left: 0; }

  .lc-actions--rows .lc-action { grid-template-columns: 42px minmax(0, 1fr) auto; gap: .55rem; }
  .lc-actions--rows .lc-action h3 { font-size: clamp(1.75rem, 8vw, 2.7rem); }
  .lc-actions--rows .lc-action__number { font-size: .7rem; }
  .lc-action__arrow { font-size: 1.6rem; }

  .lc-community-band { padding-block: 4.5rem 5.4rem; }
  .lc-community-band__stripe { width: 63vw; right: -19vw; height: 31px; }
  .lc-community-band__stripe--orange { top: calc(8% + 27px); }
  .lc-community-band__stripe--pink { top: calc(8% + 54px); }
  .lc-community-band h2 { max-width: 8.5ch; font-size: clamp(3rem, 14vw, 4.8rem); }
  .lc-community-band__button { width: min(100%, 270px); }

  .lc-footer__statement p { font-size: clamp(4rem, 23vw, 7.2rem); }
  .lc-footer__territories .lc-container { align-items: flex-start; flex-direction: column; padding-block: 1.2rem; gap: .45rem; }
}

/* V3.0.1 final interaction polish */
.lc-header__inner { position: relative; z-index: 2; }
.lc-primary-nav { z-index: 1; }

@media (max-width: 700px) {
  .lc-footer__statement p {
    white-space: normal;
    max-width: 100%;
    font-size: clamp(3.6rem, 19vw, 5.8rem);
    line-height: .82;
    padding-block: .28em .32em;
  }
}


/* V4: compact mobile editorial flow */
@media (max-width: 700px) {
  .lc-feature-grid .lc-card { min-height: 270px !important; }
  .lc-feature-grid .lc-card:first-child { min-height: 420px !important; }
  .lc-feature-grid .lc-card__body { padding: 1.15rem; }
  .lc-feature-grid .lc-card__title,
  .lc-feature-grid > .lc-card:not(:first-child) .lc-card__title { font-size: clamp(1.65rem, 7.6vw, 2.6rem); }

  .lc-news-grid {
    display: block;
  }

  .lc-news-grid .lc-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: start;
    gap: .9rem;
    margin: 0;
    padding: .9rem 0;
    border-top-width: 4px;
  }

  .lc-news-grid .lc-card__media {
    width: 108px;
    aspect-ratio: 1 / 1;
    align-self: start;
  }

  .lc-news-grid .lc-card__body {
    min-width: 0;
    padding: 0;
  }

  .lc-news-grid .lc-card__meta {
    margin-bottom: .35rem;
    font-size: .62rem;
    line-height: 1.25;
  }

  .lc-news-grid .lc-card__title {
    margin: 0;
    font-size: clamp(1.2rem, 5.6vw, 1.55rem);
    line-height: 1.02;
  }

  .lc-news-grid .lc-card__excerpt,
  .lc-news-grid .lc-card__link {
    display: none;
  }
}

@media (max-width: 390px) {
  .lc-news-grid .lc-card { grid-template-columns: 92px minmax(0, 1fr); gap: .75rem; }
  .lc-news-grid .lc-card__media { width: 92px; }
}


/* ============================================================
   V5 — Territorial brand beside logo + small live-site polish
   ============================================================ */
.lc-brand {
  min-width: 0;
}

.lc-brand__territorial {
  display: inline-block;
  color: currentColor;
  font-family: var(--lc-font-heading);
  font-size: clamp(.92rem, 1.35vw, 1.28rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.025em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgb(0 0 0 / .28);
  transition: font-size 180ms ease, opacity 180ms ease;
}

.lc-site-header.is-scrolled .lc-brand__territorial {
  font-size: clamp(.86rem, 1.18vw, 1.08rem);
}

/* Keep the large footer wordmark fully inside the viewport on desktop. */
@media (min-width: 701px) {
  .lc-footer__statement p {
    font-size: clamp(3.9rem, 9.7vw, 10.2rem);
    letter-spacing: -.06em;
  }
}

@media (max-width: 700px) {
  .lc-header__inner {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: .38rem;
  }

  .lc-brand {
    gap: .46rem;
    overflow: hidden;
  }

  .lc-brand .custom-logo {
    max-width: 78px;
    max-height: 50px;
    flex: 0 0 auto;
  }

  .lc-brand__territorial {
    max-width: 8.8rem;
    overflow: hidden;
    font-size: clamp(.69rem, 3.2vw, .86rem);
    line-height: 1;
    text-overflow: ellipsis;
  }

  .lc-site-header.is-scrolled .lc-brand__territorial {
    font-size: clamp(.66rem, 3vw, .8rem);
  }

  /* Editorial section numbers stay on the right instead of dropping under titles. */
  .lc-section-head.lc-section-head--editorial {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: .8rem;
  }

  .lc-section-head--editorial > .lc-section-index {
    align-self: end;
    justify-self: end;
    margin: 0 0 .05rem;
  }

  .lc-section-head__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .32rem;
    text-align: right;
  }

  .lc-section-head__side .lc-section-index {
    margin: 0;
  }

  .lc-section-head__side .lc-text-link {
    font-size: .66rem;
  }
}

@media (max-width: 390px) {
  .lc-brand .custom-logo { max-width: 66px; }
  .lc-brand__territorial { max-width: 7.2rem; font-size: .66rem; }
  .lc-header-tools { gap: .48rem; }
  .lc-header-search svg { width: 25px; height: 25px; }
}


/* ============================================================
   V13 — Desktop header/hero alignment
   Both the floating header and hero content share the same .lc-container.
   Remove the legacy split-hero viewport padding on wide screens so the
   hero copy stays on the exact page centre at every desktop width.
   ============================================================ */
@media (min-width: 1025px) {
  body.home .lc-hero__content {
    width: min(calc(100% - 2rem), var(--lc-wide));
    margin-inline: auto;
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
    align-items: center;
  }

  body.home .lc-hero__copy {
    width: min(860px, 100%);
    margin-inline: auto;
    text-align: center;
  }

  body.home .lc-hero__title,
  body.home .lc-hero__excerpt,
  body.home .lc-hero__action,
  body.home .lc-eyebrow--light {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

/* ============================================================
   V14 — Page titles use the Libera magenta/lilac marker.
   The inline span + box-decoration-break creates one brush block
   per wrapped line, matching the editorial treatment used elsewhere.
   ============================================================ */
.lc-highlight--page {
  padding: 0.012em 0.075em 0.06em;
  color: var(--lc-black);
  background-image:
    linear-gradient(178deg,
      transparent 0 9%,
      var(--lc-pink) 9% 91%,
      transparent 91% 100%);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  filter: drop-shadow(0 1px 0 rgb(0 0 0 / 0.08));
}


/* ============================================================
   V16.5 — Footer cleanup + compact archive index
   ============================================================ */
.lc-footer__main {
  grid-template-columns: minmax(260px, .9fr) minmax(0, 2fr);
  align-items: start;
}

.lc-footer__archive h2 {
  margin: 0 0 1.25rem;
  color: var(--lc-white);
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: .95;
  letter-spacing: -.035em;
}

.lc-footer__archive-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

.lc-footer__archive-list li + li {
  margin-top: .48rem;
}

.lc-footer__archive-list a {
  color: rgb(255 255 255 / .82);
  text-decoration-color: rgb(255 255 255 / .5);
  text-underline-offset: .16em;
}

.lc-footer__archive-list a:hover {
  color: var(--lc-yellow);
  text-decoration-color: var(--lc-yellow);
}

.lc-footer__archive-more {
  display: inline-flex;
  width: auto;
  padding: .8rem 1rem;
  font-size: .75rem;
}

.lc-archive-index__content {
  padding-block: clamp(3rem, 6vw, 6rem);
}

.lc-archive-index__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 1px;
  background: var(--lc-black);
}

.lc-archive-index__list li {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1.25rem;
  background: var(--lc-white);
  color: var(--lc-black);
  font-weight: 800;
}

.lc-archive-index__list a {
  color: inherit;
  text-decoration: none;
}

.lc-archive-index__list a:hover {
  text-decoration: underline;
  text-decoration-color: var(--lc-pink);
  text-decoration-thickness: 3px;
  text-underline-offset: .15em;
}

@media (max-width: 900px) {
  .lc-footer__main {
    grid-template-columns: 1fr;
  }

  .lc-archive-index__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .lc-archive-index__list {
    grid-template-columns: 1fr;
  }
}
