/*
Theme Name: La Bussola Economica
Theme URI: https://example.com/la-bussola-economica
Author: Smart Italy Communications
Description: Tema editoriale WordPress ispirato a un quotidiano economico premium, con homepage configurabile, ricerca in header, pubblicita, box autore e infinite scroll.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: la-bussola-economica
*/

:root {
  --lbe-ink: #071a3d;
  --lbe-ink-soft: #25324a;
  --lbe-gold: #c48a12;
  --lbe-line: #d9d4c7;
  --lbe-paper: #fbfaf7;
  --lbe-panel: #fffdf8;
  --lbe-muted: #667085;
  --lbe-shadow: 0 18px 45px rgba(7, 26, 61, 0.14);
  --lbe-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --lbe-serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--lbe-paper);
  color: var(--lbe-ink);
  font-family: var(--lbe-sans);
  line-height: 1.55;
}

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

a:hover,
a:focus-visible {
  color: var(--lbe-gold);
}

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

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

.lbe-container {
  width: min(100% - 48px, 1820px);
  margin-inline: auto;
}

.lbe-site-header {
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 4px solid var(--lbe-ink);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
}

.lbe-header-inner {
  min-height: 112px;
  display: grid;
  grid-template-columns: 300px 1fr auto;
  align-items: center;
  gap: 34px;
}

.lbe-logo {
  font-family: var(--lbe-serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  line-height: 0.82;
  letter-spacing: 0;
}

.lbe-logo span {
  display: block;
}

.lbe-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.8vw, 34px);
  padding: 0;
  margin: 0;
}

.lbe-nav a {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--lbe-ink-soft);
}

.lbe-header-tools {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lbe-search {
  position: relative;
}

.lbe-search-toggle,
.lbe-social-link {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--lbe-ink);
  cursor: pointer;
}

.lbe-search-toggle svg,
.lbe-social-link svg {
  width: 26px;
  height: 26px;
}

.lbe-search-form {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  width: min(420px, calc(100vw - 48px));
  display: none;
  grid-template-columns: 1fr auto;
  background: var(--lbe-panel);
  border: 1px solid var(--lbe-line);
  box-shadow: var(--lbe-shadow);
  padding: 10px;
}

.lbe-search.is-open .lbe-search-form {
  display: grid;
}

.lbe-search-form input {
  min-width: 0;
  border: 1px solid var(--lbe-line);
  background: white;
  padding: 12px 14px;
  font: inherit;
  color: var(--lbe-ink);
}

.lbe-search-form button {
  border: 0;
  background: var(--lbe-ink);
  color: white;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}

.lbe-newsletter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  height: 42px;
  padding-inline: 18px;
  background: var(--lbe-ink);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
}

.lbe-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 18px;
  border-left: 1px solid var(--lbe-line);
}

.lbe-main {
  padding-block: 28px 56px;
}

.lbe-ad {
  display: grid;
  place-items: center;
  min-height: 90px;
  margin-block: 24px;
  border: 1px dashed #c6bda9;
  background: #f4efe5;
  color: #7b6b50;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  overflow: hidden;
}

.lbe-ad > * {
  max-width: 100%;
}

.lbe-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(360px, 0.95fr);
  gap: 36px;
  align-items: start;
}

.lbe-hero {
  min-height: 478px;
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(32px, 5vw, 62px);
  overflow: hidden;
  background: #101722;
  color: white;
}

.lbe-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
}

.lbe-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0.06));
}

.lbe-hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.lbe-kicker {
  display: inline-block;
  margin-bottom: 28px;
  border-bottom: 3px solid var(--lbe-gold);
  padding-bottom: 8px;
  color: #f0b429;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lbe-hero h1,
.lbe-article-header h1 {
  margin: 0;
  font-family: var(--lbe-serif);
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.lbe-hero p {
  max-width: 430px;
  margin: 26px 0 32px;
  font-size: 1.16rem;
}

.lbe-button {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 56px;
  padding: 0 32px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(7, 26, 61, 0.9);
  color: white;
  font-weight: 700;
}

.lbe-button::after {
  content: "->";
  color: var(--lbe-gold);
  font-size: 1.4rem;
}

.lbe-section-title {
  margin: 0 0 14px;
  font-family: var(--lbe-serif);
  font-size: clamp(1.8rem, 2.2vw, 2.7rem);
  line-height: 1;
}

.lbe-section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 8px;
  background: var(--lbe-gold);
}

.lbe-today-list {
  display: grid;
  gap: 18px;
}

.lbe-mini-card {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--lbe-line);
}

.lbe-mini-card h3,
.lbe-strip-card h3,
.lbe-feature h3,
.lbe-article-card h2 {
  margin: 0;
  font-family: var(--lbe-serif);
  line-height: 1.04;
  letter-spacing: 0;
}

.lbe-mini-card h3 {
  font-size: clamp(1.15rem, 1.4vw, 1.55rem);
}

.lbe-mini-card img {
  width: 190px;
  height: 92px;
  object-fit: cover;
}

.lbe-meta,
.lbe-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-top: 8px;
  color: var(--lbe-muted);
  font-size: 0.82rem;
}

.lbe-category {
  color: var(--lbe-ink);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.lbe-category:hover {
  color: var(--lbe-gold);
}

.lbe-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 20px;
}

.lbe-feature {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 22px;
  min-width: 0;
  padding-right: 28px;
  border-right: 1px solid var(--lbe-line);
}

.lbe-feature:last-child {
  border-right: 0;
}

.lbe-feature .lbe-section-title {
  grid-column: 1 / -1;
}

.lbe-feature img {
  width: 100%;
  aspect-ratio: 1.95 / 1;
  object-fit: cover;
}

.lbe-feature h3 {
  font-size: 1.14rem;
}

.lbe-feature-list {
  display: grid;
  gap: 12px;
}

.lbe-feature-list article + article {
  padding-top: 12px;
  border-top: 1px solid var(--lbe-line);
}

.lbe-more-link {
  grid-column: 1 / -1;
  color: var(--lbe-ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.lbe-more-link::after {
  content: " ->";
  color: var(--lbe-gold);
}

.lbe-reading-strip {
  margin-top: 32px;
  padding: 16px;
  border: 1px solid #eadcc2;
  background: linear-gradient(90deg, #fffaf0, #fffdf8);
}

.lbe-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.lbe-strip-card {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 22px;
  min-width: 0;
  padding-right: 28px;
  border-right: 1px solid var(--lbe-line);
}

.lbe-strip-card:last-child {
  border-right: 0;
}

.lbe-strip-card img {
  width: 250px;
  aspect-ratio: 1.78 / 1;
  object-fit: cover;
}

.lbe-strip-card h3 {
  font-size: 1.25rem;
}

.lbe-strip-card p {
  margin: 10px 0 0;
  color: var(--lbe-ink-soft);
  font-size: 0.92rem;
}

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

.lbe-article-card {
  border-bottom: 1px solid var(--lbe-line);
  padding-bottom: 24px;
}

.lbe-article-card img {
  width: 100%;
  aspect-ratio: 1.65 / 1;
  object-fit: cover;
  margin-bottom: 16px;
}

.lbe-article-card h2 {
  font-size: 1.55rem;
}

.lbe-page-title {
  margin: 0 0 28px;
  font-family: var(--lbe-serif);
  font-size: clamp(2.2rem, 4vw, 4.5rem);
}

.lbe-single-wrap {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(260px, 360px);
  justify-content: center;
  gap: 72px;
}

.lbe-article-header {
  margin-bottom: 26px;
}

.lbe-article-header h1 {
  color: var(--lbe-ink);
}

.lbe-featured-image {
  width: 100%;
  margin: 26px 0;
  aspect-ratio: 1.75 / 1;
  object-fit: cover;
}

.lbe-content {
  font-family: var(--lbe-serif);
  color: #111827;
  font-size: 1.18rem;
  line-height: 1.78;
}

.lbe-content a {
  color: var(--lbe-ink);
  border-bottom: 1px solid var(--lbe-gold);
}

.lbe-content blockquote {
  margin: 28px 0;
  padding-left: 24px;
  border-left: 4px solid var(--lbe-gold);
  color: var(--lbe-ink);
  font-size: 1.35rem;
}

.lbe-author-box {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  margin-top: 42px;
  padding: 24px;
  border-top: 4px solid var(--lbe-ink);
  background: var(--lbe-panel);
  box-shadow: 0 1px 0 var(--lbe-line);
}

.lbe-author-box img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
}

.lbe-author-box h2 {
  margin: 0 0 6px;
  font-family: var(--lbe-serif);
  font-size: 1.45rem;
}

.lbe-author-box p {
  margin: 0;
  color: var(--lbe-ink-soft);
}

.lbe-next-article {
  margin-top: 44px;
  padding: 26px;
  border: 1px solid var(--lbe-line);
  background: white;
}

.lbe-next-article span {
  display: block;
  color: var(--lbe-gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lbe-next-article strong {
  display: block;
  margin-top: 8px;
  font-family: var(--lbe-serif);
  font-size: 1.55rem;
  line-height: 1.1;
}

.lbe-load-more {
  display: flex;
  justify-content: center;
  margin: 38px 0 0;
}

.lbe-load-more button {
  min-height: 46px;
  border: 1px solid var(--lbe-ink);
  background: transparent;
  color: var(--lbe-ink);
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
}

.lbe-load-more button[disabled] {
  opacity: 0.55;
  cursor: wait;
}

.lbe-sidebar {
  position: sticky;
  top: 140px;
}

.lbe-site-footer {
  border-top: 4px solid var(--lbe-ink);
  padding: 34px 0;
  background: #f4f1ea;
  color: var(--lbe-ink);
}

.lbe-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

@media (max-width: 1180px) {
  .lbe-header-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 0;
  }

  .lbe-nav ul {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .lbe-header-tools {
    justify-content: space-between;
  }

  .lbe-home-grid,
  .lbe-single-wrap {
    grid-template-columns: 1fr;
  }

  .lbe-feature-grid,
  .lbe-strip-grid,
  .lbe-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lbe-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .lbe-container {
    width: min(100% - 28px, 1820px);
  }

  .lbe-header-tools {
    flex-wrap: wrap;
  }

  .lbe-socials {
    padding-left: 0;
    border-left: 0;
  }

  .lbe-hero {
    min-height: 440px;
    padding: 28px;
  }

  .lbe-mini-card,
  .lbe-feature,
  .lbe-strip-card,
  .lbe-author-box {
    grid-template-columns: 1fr;
  }

  .lbe-mini-card img,
  .lbe-strip-card img {
    width: 100%;
    height: auto;
  }

  .lbe-feature-grid,
  .lbe-strip-grid,
  .lbe-archive-grid {
    grid-template-columns: 1fr;
  }

  .lbe-feature,
  .lbe-strip-card {
    padding-right: 0;
    border-right: 0;
  }
}
