:root {
  --vf-ink: #073142;
  --vf-text: #102335;
  --vf-muted: #637384;
  --vf-line: #dfe7ea;
  --vf-teal: #006d75;
  --vf-teal-dark: #004754;
  --vf-lime: #9bd40c;
  --vf-surface: #f7f9f7;
  --vf-card: #ffffff;
  --vf-shadow: 0 18px 45px rgba(7, 49, 66, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--vf-text);
  background: #fff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--vf-teal); }
img { display: block; max-width: 100%; height: auto; }

.vf-container {
  width: min(1220px, calc(100% - 32px));
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--vf-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--vf-ink);
  font-weight: 800;
  font-size: 30px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(135deg, var(--vf-teal), var(--vf-lime));
  transform: skew(-12deg);
  font-weight: 800;
}

.primary-nav ul {
  display: flex;
  justify-content: center;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.newsletter-button,
.search-form button,
.button-link,
.newsletter-form button,
.load-next-post {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  background: var(--vf-lime);
  color: #062638;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.search-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.search-toggle span[aria-hidden] {
  display: block;
  width: 22px;
  height: 22px;
  border: 3px solid var(--vf-ink);
  border-radius: 50%;
  position: relative;
}

.search-toggle span[aria-hidden]::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 3px;
  background: var(--vf-ink);
  right: -8px;
  bottom: -5px;
  transform: rotate(45deg);
}

.header-search {
  border-top: 1px solid var(--vf-line);
  padding: 16px 0;
  background: #fff;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form label { flex: 1; }
.search-field,
.newsletter-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--vf-line);
  padding: 0 16px;
  font: inherit;
}

.vf-ad {
  width: min(970px, calc(100% - 32px));
  min-height: 90px;
  margin: 24px auto;
  display: grid;
  place-items: center;
  border: 1px dashed #b9c6cb;
  background: #f8fbfc;
  color: var(--vf-muted);
  overflow: hidden;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.95fr);
  gap: 24px;
  padding: 28px 0 30px;
}

.lead-story {
  min-height: 510px;
  position: relative;
  overflow: hidden;
  background: var(--vf-ink);
}

.lead-image,
.lead-image img,
.lead-image .vf-image-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(1, 35, 42, 0.88));
}

.lead-copy {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 28px;
  color: #fff;
}

.lead-copy h1 {
  max-width: 760px;
  margin: 8px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead-copy p { max-width: 760px; font-size: 18px; }
.meta-line { font-size: 13px; font-weight: 800; text-transform: uppercase; }

.eyebrow {
  color: var(--vf-teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.lead-copy .eyebrow { color: var(--vf-lime); }

.hero-list {
  display: grid;
  gap: 20px;
}

.article-card {
  display: grid;
  gap: 12px;
}

.article-card.compact {
  grid-template-columns: 174px 1fr;
  align-items: start;
  gap: 18px;
}

.article-image {
  display: block;
  overflow: hidden;
  background: var(--vf-surface);
  aspect-ratio: 16 / 10;
}

.compact .article-image { aspect-ratio: 4 / 3; }
.article-image img,
.article-image .vf-image-fallback { width: 100%; height: 100%; object-fit: cover; }

.vf-image-fallback {
  background:
    linear-gradient(135deg, rgba(0, 109, 117, 0.2), rgba(155, 212, 12, 0.28)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.35) 0 12px, transparent 12px 24px);
}

.article-card h3,
.focus-box h3,
.media-box h3 {
  margin: 4px 0;
  color: var(--vf-ink);
  font-size: 21px;
  line-height: 1.18;
}

.compact h3 { font-size: 18px; }
.article-card p { margin: 0; color: var(--vf-muted); }
time { color: var(--vf-muted); font-size: 13px; text-transform: uppercase; }

.topic-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--vf-line);
  border-bottom: 1px solid var(--vf-line);
  margin-bottom: 34px;
}

.topic-strip a {
  min-height: 112px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-content: center;
  padding: 18px;
  border-right: 1px solid var(--vf-line);
}

.topic-strip strong {
  color: var(--vf-teal-dark);
  font-size: 13px;
  text-transform: uppercase;
}

.topic-strip small { grid-column: 2; color: var(--vf-muted); }
.topic-icon {
  width: 34px;
  height: 42px;
  border: 3px solid var(--vf-teal);
  border-top: 0;
  transform: skew(-10deg);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 370px;
  gap: 34px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 0 0 16px;
}

.section-heading h2,
.focus-box h2,
.media-box h2,
.newsletter-box h2 {
  color: var(--vf-ink);
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
}

.section-heading a {
  color: var(--vf-teal);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

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

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 10px;
  border-top: 1px solid var(--vf-line);
}

.mini-grid .article-card.compact {
  grid-template-columns: 126px 1fr;
}

.focus-box,
.newsletter-box {
  background: var(--vf-surface);
  padding: 26px;
  box-shadow: var(--vf-shadow);
}

.focus-box img,
.focus-box .vf-image-fallback {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  margin: 20px 0;
}

.button-link { margin-top: 10px; background: var(--vf-teal-dark); color: #fff; }

.media-newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 22px;
  margin-top: 34px;
  margin-bottom: 34px;
}

.media-box {
  background: linear-gradient(135deg, var(--vf-teal-dark), #007981);
  color: #fff;
  padding: 24px;
}

.media-box h2,
.media-box h3 { color: #fff; }

.media-preview {
  display: grid;
  grid-template-columns: minmax(220px, 44%) 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 14px;
}

.media-preview span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 3px solid #fff;
  border-radius: 50%;
  font-size: 28px;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 20px;
}

.site-footer {
  border-top: 1px solid var(--vf-line);
  padding: 34px 0;
  background: #fbfcfc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 40px;
  color: var(--vf-muted);
}

.footer-brand { font-size: 25px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.footer-social { display: flex; gap: 12px; align-items: center; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--vf-teal-dark);
  color: #fff;
  font-weight: 800;
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 320px;
  gap: 56px;
  padding: 44px 0;
}

.single-article {
  padding-bottom: 42px;
  margin-bottom: 42px;
  border-bottom: 1px solid var(--vf-line);
}

.continue-label {
  display: inline-flex;
  padding: 6px 10px;
  margin: 0 0 18px;
  background: var(--vf-lime);
  color: var(--vf-ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.single-header h1 {
  color: var(--vf-ink);
  margin: 8px 0 12px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--vf-muted);
  font-weight: 700;
  font-size: 14px;
}

.single-featured { margin: 28px 0; }
.single-featured img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.entry-content {
  font-size: 19px;
  line-height: 1.75;
}

.entry-content a { color: var(--vf-teal); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
  margin: 28px 0;
  padding-left: 24px;
  border-left: 5px solid var(--vf-lime);
  color: var(--vf-ink);
  font-size: 24px;
  font-weight: 700;
}

.author-box {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--vf-surface);
}

.author-box img { border-radius: 50%; }
.author-box h2 { margin: 0; color: var(--vf-ink); }
.article-sidebar { position: sticky; top: 110px; align-self: start; }
.article-sidebar .vf-ad { width: 100%; min-height: 300px; }

.next-loader {
  display: grid;
  place-items: center;
  min-height: 120px;
}

.next-loader.is-loading::before {
  content: "Caricamento...";
  color: var(--vf-muted);
}

.archive-page { padding: 42px 0; }
.archive-header {
  max-width: 760px;
  margin-bottom: 28px;
}

.archive-header h1 {
  margin: 0 0 14px;
  color: var(--vf-ink);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

.pagination-nav { margin-top: 34px; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto auto; }
  .primary-nav { grid-column: 1 / -1; overflow-x: auto; }
  .primary-nav ul { justify-content: start; min-width: max-content; }
  .home-hero,
  .home-grid,
  .media-newsletter,
  .single-layout { grid-template-columns: 1fr; }
  .topic-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article-sidebar { position: static; }
}

@media (max-width: 720px) {
  .vf-container { width: min(100% - 24px, 1220px); }
  .header-inner {
    min-height: 72px;
    gap: 12px;
  }
  .brand { font-size: 22px; }
  .newsletter-button { display: none; }
  .home-hero { padding-top: 18px; }
  .lead-story { min-height: 430px; }
  .lead-copy { left: 18px; right: 18px; bottom: 20px; }
  .hero-list,
  .card-grid,
  .mini-grid,
  .topic-strip,
  .footer-grid,
  .newsletter-form { grid-template-columns: 1fr; }
  .article-card.compact,
  .mini-grid .article-card.compact,
  .media-preview,
  .author-box { grid-template-columns: 1fr; }
  .topic-strip a { border-right: 0; border-bottom: 1px solid var(--vf-line); }
  .single-header h1 { font-size: 38px; }
}

