/*
Theme Name: Gerber Night
Theme URI: https://hotelgerber.it/
Description: The Gerber Guide — editorial dark child theme for Astra. Terracotta accent, Archivo condensed display, Spectral italic editorial, Inter body.
Author: Hotel Gerber
Author URI: https://hotelgerber.it/
Template: astra
Version: 1.0.2
Text Domain: gerber-night
Tags: editorial, dark, magazine, italian, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   The Gerber Guide — Gerber Night maquette
   Editorial dark theme · terracotta accent · Archivio + Spectral + Inter
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #161210;
  --bg-outer: #0a0805;
  --surface: #1f1814;
  --surface-2: #2a201b;
  --footer-bg: #0d0a08;
  --paper: #f0e9d8;
  /* Ink */
  --ink: #f0e9d8;
  --ink-70: #a89a82;
  --ink-40: #5c544a;
  --ink-dark: #1a1410;
  --ink-dark-70: #5a4f44;
  /* Brand */
  --terracotta: #d65a32;
  --terracotta-soft: #c9a86a;
  /* Lines */
  --line: rgba(240, 233, 216, 0.12);
  --line-strong: rgba(240, 233, 216, 0.22);
  /* Type */
  --display: "Archivo", system-ui, sans-serif;
  --serif: "Spectral", "Playfair Display", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
  /* Layout */
  --gutter: 56px;
  --gutter-sm: 24px;
  /* Photo scenes (procedural, swappable for real images later) */
  --photo-1: radial-gradient(ellipse at 30% 20%, #d4845a55, transparent 60%),
             linear-gradient(180deg, #4a2e1f 0%, #1a0f08 100%);
  --photo-2: radial-gradient(ellipse at 70% 30%, #e8a86855, transparent 55%),
             linear-gradient(135deg, #6a3a22 0%, #2a1810 60%, #0d0805 100%);
  --photo-3: radial-gradient(ellipse at 50% 40%, #c9893a44, transparent 65%),
             linear-gradient(180deg, #2a1d12 0%, #0f0805 100%);
  --photo-4: radial-gradient(ellipse at 20% 70%, #d65a3244, transparent 60%),
             linear-gradient(180deg, #1a1410 0%, #2a1d14 50%, #0a0604 100%);
  --photo-5: radial-gradient(ellipse at 80% 60%, #e6c08855, transparent 60%),
             linear-gradient(135deg, #3a281a 0%, #1a1008 100%);
  --photo-6: radial-gradient(ellipse at 50% 30%, #8a6a4a55, transparent 60%),
             linear-gradient(180deg, #25180f 0%, #100804 100%);
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.9 0 0 0 0 0.7 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-outer);
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--terracotta); color: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

/* ============================================================
   Typography utilities
   ============================================================ */
.cap {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--terracotta);
  text-transform: uppercase;
  margin: 0;
}
.cap--small { font-size: 10px; }
.cap--ink { color: var(--ink); }

.display {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  font-size: clamp(40px, 8vw, 56px);
}
.display--xl  { font-size: clamp(40px, 6.5vw, 84px); line-height: 0.95; }
.display--xxl { font-size: clamp(44px, 8vw, 96px); }
.display--lg  { font-size: clamp(36px, 6vw, 76px); }
.display--md  { font-size: clamp(36px, 6vw, 64px); }
.display--sm  { font-size: clamp(32px, 5vw, 48px); }
.display--xs  { font-size: 22px; letter-spacing: -0.02em; }
.display--num { font-size: clamp(32px, 4vw, 42px); color: var(--terracotta); }
.display--terracotta { color: var(--terracotta); }

.serif {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
  font-size: 32px;
}
.serif--italic { font-style: italic; font-weight: 500; }
.serif--xl { font-size: clamp(36px, 5vw, 56px); }
.serif--lg { font-size: clamp(28px, 4vw, 48px); }
.serif--md { font-size: clamp(24px, 3vw, 36px); }
.serif--sm { font-size: 22px; }
.serif--xs { font-size: 20px; }
.serif--xxs { font-size: 18px; }
.serif--tiny { font-size: 14px; }
.serif--16 { font-size: 16px; }
.serif--ink70 { color: var(--ink-70); }

.body {
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-70);
  margin: 0;
}
.body--lg { font-size: 16px; }
.body--md { font-size: 15px; }
.body--sm { font-size: 13px; }
.body--xs { font-size: 12px; }
.body--tiny { font-size: 11px; }
.body--ink { color: var(--ink); }
.body--ink-soft { color: rgba(240, 233, 216, 0.85); }

.meta {
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--ink-40);
  text-transform: uppercase;
  font-weight: 500;
  margin: 0;
}
.meta--terracotta { color: var(--terracotta); }
.meta--ink70 { color: var(--ink-70); }
.meta--serif {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.4px;
  font-size: 13px;
}

/* ============================================================
   Components
   ============================================================ */

/* Pill button */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 11px 24px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pill:hover, .pill:focus-visible {
  background: var(--ink);
  color: var(--bg);
  outline: none;
}
.pill--primary {
  background: var(--terracotta);
  color: var(--ink);
  border-color: var(--terracotta);
}
.pill--primary:hover, .pill--primary:focus-visible {
  background: #b94a26;
  border-color: #b94a26;
  color: var(--ink);
}
.pill--small {
  padding: 8px 18px;
  font-size: 10px;
}
.pill--icon {
  padding: 8px 16px;
  min-width: 0;
}
.pill--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink-70);
}
.pill--ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink-70); }

/* Photo placeholder — gradient + grain */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--photo-1);
}
.photo--1 { background: var(--photo-1); }
.photo--2 { background: var(--photo-2); }
.photo--3 { background: var(--photo-3); }
.photo--4 { background: var(--photo-4); }
.photo--5 { background: var(--photo-5); }
.photo--6 { background: var(--photo-6); }
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
}
.photo__darken-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(22, 18, 16, 0.4) 0%,
    rgba(22, 18, 16, 0.2) 40%,
    rgba(22, 18, 16, 0.95) 100%);
  z-index: 1;
}
.photo__darken {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 18, 16, 0.5) 0%, rgba(22, 18, 16, 0.95) 100%);
  z-index: 1;
}
.photo__darken--full {
  position: absolute;
  inset: 0;
  background: rgba(22, 18, 16, 0.85);
  z-index: 1;
}
.photo__label {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: var(--body);
  font-size: 9px;
  letter-spacing: 1.2px;
  color: rgba(240, 233, 216, 0.5);
  text-transform: uppercase;
  z-index: 2;
}
.photo--ratio-3-4 { aspect-ratio: 3 / 4; }
.photo--ratio-4-3 { aspect-ratio: 4 / 3; }
.photo--ratio-4-5 { aspect-ratio: 4 / 5; }
.photo--ratio-16-9 { aspect-ratio: 16 / 9; }
.photo--ratio-21-9 { aspect-ratio: 21 / 9; }

/* Reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Site header (overlays hero on dark pages)
   ============================================================ */
.gn-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 24px var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}
.gn-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.gn-header__mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--terracotta);
  font-weight: 600;
  flex: 0 0 auto;
}
.gn-header__wordmark {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.gn-header__nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0 0 0 auto;
}
.gn-header__nav a {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.gn-header__nav a:hover { color: var(--terracotta); }
.gn-header__nav a.is-active {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}
.gn-header__actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-left: 12px;
}
.gn-header__search {
  font-family: var(--body);
  font-size: 11px;
  color: var(--ink-70);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.gn-header__search:hover { color: var(--ink); }

/* Hamburger (hidden on desktop) */
.gn-header__hamburger {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  margin-left: auto;
  align-items: center;
  justify-content: center;
}
.gn-header__hamburger span,
.gn-header__hamburger span::before,
.gn-header__hamburger span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}
.gn-header__hamburger span::before,
.gn-header__hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.gn-header__hamburger span::before { top: -5px; }
.gn-header__hamburger span::after { top: 5px; }

/* On light/internal pages, header may need solid background — opt-in via class */
.gn-header--solid {
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

/* ============================================================
   Site footer
   ============================================================ */
.gn-footer {
  background: var(--footer-bg);
  color: var(--ink-70);
  padding: 56px var(--gutter) 28px;
  border-top: 1px solid var(--line);
}
.gn-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  align-items: flex-start;
}
.gn-footer__brand-col { display: flex; flex-direction: column; gap: 14px; }
.gn-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gn-footer__brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--terracotta);
  font-weight: 600;
}
.gn-footer__brand-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
}
.gn-footer__col-title {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--terracotta);
  text-transform: uppercase;
  margin: 0 0 14px;
}
.gn-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gn-footer__list a {
  font-family: var(--body);
  font-size: 12px;
  color: var(--ink-70);
  text-decoration: none;
  transition: color 0.2s;
}
.gn-footer__list a:hover { color: var(--ink); }
.gn-footer__newsletter {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gn-footer__newsletter-form {
  display: flex;
  gap: 6px;
}
.gn-footer__newsletter-form input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 14px;
  font-family: var(--body);
  font-size: 12px;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.gn-footer__newsletter-form input::placeholder { color: var(--ink-40); }
.gn-footer__newsletter-form input:focus { border-color: var(--ink-70); }
.gn-footer__newsletter-form button {
  padding: 8px 16px;
}
.gn-footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.gn-footer__social {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.gn-footer__social a {
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--ink-70);
  text-transform: uppercase;
  text-decoration: none;
}
.gn-footer__social a:hover { color: var(--ink); }

/* ============================================================
   Search overlay (toggled by header search button)
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 5, 0.96);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}
body.search-open .search-overlay { display: flex; }
body.search-open { overflow: hidden; }
.search-overlay__inner {
  width: 100%;
  max-width: 720px;
  text-align: center;
}
.search-overlay__close {
  position: absolute;
  top: 24px;
  right: var(--gutter);
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
}
.search-overlay__close:hover { border-color: var(--ink); }
.search-overlay input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 18px 0;
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  outline: none;
  text-align: center;
}
.search-overlay input::placeholder { color: var(--ink-40); }
.search-overlay input:focus { border-bottom-color: var(--terracotta); }

/* ============================================================
   Page sections — Home (front-page)
   ============================================================ */
.gn-home { background: var(--bg); }

.gn-home__hero {
  position: relative;
  min-height: 760px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px var(--gutter) 64px;
  overflow: hidden;
}
.gn-home__hero .photo {
  position: absolute;
  inset: 0;
}
.gn-home__hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: end;
  z-index: 2;
}
.gn-home__hero-main { max-width: 720px; }
.gn-home__hero-cta {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.gn-home__hero-side {
  border-left: 1px solid var(--line-strong);
  padding-left: 28px;
}
.gn-home__hero-side-item {
  padding: 12px 0;
}
.gn-home__hero-side-item + .gn-home__hero-side-item {
  border-top: 1px solid var(--line);
}

/* Pillars */
.gn-home__pillars {
  padding: 96px var(--gutter) 72px;
}
.gn-home__pillars-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 32px;
  flex-wrap: wrap;
}
.gn-home__pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.gn-home__pillar {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: block;
}
.gn-home__pillar .photo {
  aspect-ratio: 3 / 4;
  margin-bottom: 16px;
  position: relative;
}
.gn-home__pillar-num {
  position: absolute;
  top: 16px;
  left: 18px;
  font-family: var(--display);
  font-size: 38px;
  font-weight: 800;
  color: var(--terracotta);
  letter-spacing: -1px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.gn-home__pillar-meta {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  z-index: 2;
}
.gn-home__pillar:hover .photo { transform: scale(1.02); }
.gn-home__pillar .photo { transition: transform 0.4s ease; }

/* Editorial split */
.gn-home__editorial {
  padding: 48px var(--gutter) 96px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.gn-home__editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.gn-home__editorial-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* Latest articles */
.gn-home__latest {
  background: var(--surface);
  padding: 96px var(--gutter);
}
.gn-home__latest-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 32px;
  flex-wrap: wrap;
}
.gn-home__latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Article card (shared) */
.gn-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.gn-card .photo {
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  transition: transform 0.4s ease;
}
.gn-card:hover .photo { transform: scale(1.02); }
.gn-card__cat {
  margin-bottom: 8px;
}
.gn-card__title {
  margin-bottom: 10px;
}

/* Newsletter CTA */
.gn-home__newsletter {
  position: relative;
  padding: 120px var(--gutter);
  overflow: hidden;
  text-align: center;
}
.gn-home__newsletter .photo {
  position: absolute;
  inset: 0;
}
.gn-home__newsletter-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  z-index: 2;
}
.gn-home__newsletter-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  max-width: 480px;
  margin: 32px auto 0;
}
.gn-home__newsletter-form input {
  flex: 1;
  background: rgba(240, 233, 216, 0.08);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 13px 22px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.gn-home__newsletter-form input::placeholder { color: var(--ink-40); }
.gn-home__newsletter-form input:focus { border-color: var(--ink-70); }

/* ============================================================
   Page sections — Single article
   ============================================================ */
.gn-single { background: var(--bg); }

.gn-single__hero {
  position: relative;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 160px var(--gutter) 64px;
  overflow: hidden;
}
.gn-single__hero .photo {
  position: absolute;
  inset: 0;
}
.gn-single__hero-content {
  position: relative;
  max-width: 980px;
  z-index: 2;
}
.gn-single__byline {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
}
.gn-single__avatar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gn-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  font-weight: 600;
  flex: 0 0 auto;
}
.gn-avatar--lg { width: 44px; height: 44px; font-size: 16px; }
.gn-author-row {
  display: flex;
  flex-direction: column;
}
.gn-author-row__name {
  font-family: var(--body);
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}

.gn-single__layout {
  padding: 80px var(--gutter);
  display: grid;
  grid-template-columns: 180px 1fr 240px;
  gap: 56px;
  max-width: 1280px;
  margin: 0 auto;
}
.gn-single__toc {
  position: sticky;
  top: 40px;
  align-self: flex-start;
}
.gn-single__toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.gn-single__toc-list li {
  font-family: var(--body);
  font-size: 12px;
  color: var(--ink-70);
  padding: 6px 0;
}
.gn-single__toc-list li.is-active {
  color: var(--terracotta);
  font-weight: 600;
}

.gn-single__article > * + * { margin-top: 18px; }
.gn-single__lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 32px;
}
.gn-single__article h2,
.gn-single__article .serif--md {
  margin-top: 48px !important;
  margin-bottom: 20px !important;
}
.gn-single__pullquote {
  border-left: 3px solid var(--terracotta);
  padding-left: 24px;
  margin: 40px 0 !important;
}
.gn-single__pullquote .serif {
  margin-bottom: 12px;
}
.gn-single__caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-40);
  margin-bottom: 32px !important;
  letter-spacing: 0.4px;
}
.gn-single__inline-photo {
  margin-top: 32px;
  margin-bottom: 12px !important;
}

.gn-single__sidebar {
  position: sticky;
  top: 40px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.gn-author-card {
  background: var(--surface);
  padding: 20px;
  border-radius: 4px;
}
.gn-author-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.gn-popular-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.gn-popular-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.gn-popular-list li:last-child { border-bottom: none; }
.gn-popular-list .meta { margin-bottom: 6px; font-size: 9px; }

.gn-single__related {
  padding: 80px var(--gutter);
  border-top: 1px solid var(--line);
}
.gn-single__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

/* ============================================================
   Page sections — Archive
   ============================================================ */
.gn-archive { background: var(--bg); }

.gn-archive__hero {
  position: relative;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px var(--gutter) 56px;
  overflow: hidden;
}
.gn-archive__hero .photo {
  position: absolute;
  inset: 0;
}
.gn-archive__hero-content {
  position: relative;
  z-index: 2;
}
.gn-archive__hero-content .body {
  max-width: 520px;
  margin-top: 18px;
}

.gn-archive__body {
  padding: 56px var(--gutter) 96px;
}
.gn-archive__filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-strong);
  gap: 24px;
  flex-wrap: wrap;
}
.gn-archive__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gn-archive__filter {
  background: transparent;
  color: var(--ink-70);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.gn-archive__filter.is-active,
.gn-archive__filter:hover {
  background: var(--terracotta);
  color: var(--ink);
  border-color: var(--terracotta);
}

.gn-archive__featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.gn-archive__featured-main .photo {
  aspect-ratio: 4 / 3;
  margin-bottom: 20px;
}
.gn-archive__featured-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.gn-archive__list-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}
.gn-archive__list-item .photo {
  aspect-ratio: 4 / 3;
}
.gn-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.gn-archive__pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
}
.gn-archive__pagination span {
  font-family: var(--body);
  font-size: 12px;
  color: var(--ink-40);
  padding: 0 4px;
}
.gn-archive__pagination .is-current {
  color: var(--ink);
  font-weight: 600;
}

/* ============================================================
   Page sections — About (Chi Siamo)
   ============================================================ */
.gn-about { background: var(--bg); }

.gn-about__hero {
  position: relative;
  padding: 140px var(--gutter) 80px;
}
.gn-about__hero .display { max-width: 1200px; margin-bottom: 32px; }
.gn-about__hero .serif { max-width: 760px; }

.gn-about__cover {
  padding: 0 var(--gutter) 96px;
}
.gn-about__cover .photo { aspect-ratio: 21 / 9; }

.gn-about__history {
  padding: 0 var(--gutter) 96px;
}
.gn-about__history-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}
.gn-about__timeline {
  display: flex;
  flex-direction: column;
}
.gn-about__timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.gn-about__timeline-item:first-child {
  border-top: 1px solid var(--line-strong);
}

.gn-about__pillars {
  background: var(--surface);
  padding: 96px var(--gutter);
}
.gn-about__pillars .display { margin-bottom: 56px; }
.gn-about__pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.gn-about__pillar {
  padding-top: 24px;
  border-top: 2px solid var(--terracotta);
}
.gn-about__pillar .display {
  margin-bottom: 12px;
}

.gn-about__collab {
  padding: 96px var(--gutter);
}
.gn-about__collab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.gn-about__collab-grid .photo { aspect-ratio: 4 / 3; }

/* ============================================================
   Page sections — Contact (Contatti)
   ============================================================ */
.gn-contact { background: var(--bg); }

.gn-contact__hero {
  padding: 140px var(--gutter) 80px;
}
.gn-contact__hero .display { margin-bottom: 32px; }
.gn-contact__hero .serif { max-width: 720px; }

.gn-contact__body {
  padding: 0 var(--gutter) 96px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.gn-contact__form {
  display: flex;
  flex-direction: column;
}
.gn-contact__field {
  margin-bottom: 24px;
}
.gn-contact__field .meta { margin-bottom: 8px; }
.gn-contact__field input,
.gn-contact__field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0;
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  resize: none;
}
.gn-contact__field input:focus,
.gn-contact__field textarea:focus {
  border-bottom-color: var(--terracotta);
}
.gn-contact__form button { align-self: flex-start; margin-top: 8px; }

.gn-contact__info-photo .photo {
  aspect-ratio: 4 / 3;
  margin-bottom: 32px;
}
.gn-contact__info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.gn-contact__info-card {
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}
.gn-contact__info-card .cap { margin-bottom: 8px; font-size: 9px; }
.gn-contact__info-card .serif { white-space: pre-line; }

/* ============================================================
   Mobile drawer & responsive
   ============================================================ */

/* Mobile nav drawer (hidden by default — appears on body.nav-open) */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg-outer);
  z-index: 50;
  display: none;
  flex-direction: column;
  padding: 24px var(--gutter-sm);
}
body.nav-open .mobile-drawer { display: flex; }
body.nav-open { overflow: hidden; }
.mobile-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}
.mobile-drawer__close {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 20px;
}
.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-drawer__nav a {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.mobile-drawer__nav a.is-active { color: var(--terracotta); }
.mobile-drawer__actions {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Tablet */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }

  .gn-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px 32px;
  }
  .gn-footer__brand-col,
  .gn-footer__newsletter {
    grid-column: 1 / -1;
  }

  .gn-home__hero { min-height: 680px; padding-top: 120px; }
  .gn-home__hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .gn-home__hero-side {
    border-left: none;
    border-top: 1px solid var(--line-strong);
    padding-left: 0;
    padding-top: 24px;
  }

  .gn-home__pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gn-home__editorial-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .gn-home__latest-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gn-single__layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px var(--gutter);
  }
  .gn-single__toc,
  .gn-single__sidebar {
    position: static;
  }

  .gn-single__related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gn-archive__featured {
    grid-template-columns: 1fr;
  }
  .gn-archive__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gn-about__history-grid,
  .gn-about__collab-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .gn-about__pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gn-contact__body {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

/* Mobile */
@media (max-width: 700px) {
  :root { --gutter: 20px; }

  .gn-header { padding: 16px var(--gutter); }
  .gn-header__nav,
  .gn-header__actions { display: none; }
  .gn-header__hamburger { display: inline-flex; }

  .gn-header__wordmark { font-size: 16px; }

  .gn-home__hero { min-height: 600px; padding-top: 100px; padding-bottom: 40px; }

  .gn-home__pillars,
  .gn-home__latest { padding: 64px var(--gutter); }
  .gn-home__pillars-grid,
  .gn-home__latest-grid,
  .gn-single__related-grid,
  .gn-archive__grid {
    grid-template-columns: 1fr;
  }

  .gn-home__newsletter { padding: 80px var(--gutter); }
  .gn-home__newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }
  .gn-home__newsletter-form .pill { justify-content: center; }

  .gn-single__hero { min-height: 560px; padding-top: 120px; }

  .gn-archive__hero { min-height: 360px; padding-top: 100px; }
  .gn-archive__filters-bar { align-items: flex-start; flex-direction: column; }
  .gn-archive__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gn-archive__filters::-webkit-scrollbar { display: none; }
  .gn-archive__list-item {
    grid-template-columns: 100px 1fr;
    gap: 14px;
  }

  .gn-about__hero { padding: 120px var(--gutter) 56px; }
  .gn-about__pillars-grid {
    grid-template-columns: 1fr;
  }
  .gn-about__timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gn-contact__hero { padding: 120px var(--gutter) 56px; }
  .gn-contact__info-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gn-footer { padding: 48px var(--gutter) 24px; }
  .gn-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .gn-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   ASTRA OVERRIDES — neutralize parent theme chrome and constraints
   All rules scoped under body.gn so the child theme can be toggled
   on/off without leaking styles when disabled.
   ============================================================ */

/* Body baseline: ignore Astra's body background, restore ours */
body.gn {
  background: var(--bg-outer) !important;
  color: var(--ink) !important;
  font-family: var(--body) !important;
}

/* Force full-width on every Astra container that resists */
body.gn #page,
body.gn #content,
body.gn .site-content,
body.gn .ast-container,
body.gn #primary,
body.gn .content-area,
body.gn .site-main,
body.gn .site-main > article,
body.gn .entry-content,
body.gn .ast-article-single,
body.gn .ast-article-post {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  display: block !important;
  background: transparent !important;
}

/* Hide Astra's header (we render .gn-header outside it) */
body.gn .site-header,
body.gn #masthead,
body.gn #ast-desktop-header,
body.gn #ast-mobile-header,
body.gn .ast-above-header-wrap,
body.gn .ast-below-header-wrap,
body.gn .main-header-bar-wrap,
body.gn .main-header-bar,
body.gn .ast-mobile-header-wrap,
body.gn .ast-main-header-wrap,
body.gn .ast-primary-header-bar,
body.gn .ast-secondary-header-bar,
body.gn .ast-header-breadcrumb,
body.gn .ast-breadcrumbs-wrapper,
body.gn .ast-breadcrumbs-inner,
body.gn .ast-page-header,
body.gn .ast-page-title-bar,
body.gn .entry-banner,
body.gn .ast-archive-title-wrap {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* Hide Astra's footer (we render .gn-footer outside it) */
body.gn .site-footer,
body.gn #colophon,
body.gn .ast-footer-overlay,
body.gn .ast-small-footer,
body.gn .site-below-footer-wrap,
body.gn .ast-above-footer,
body.gn .ast-below-footer,
body.gn .ast-footer-copyright,
body.gn .footer-widget-area {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* Hide entry-header on the homepage only — internal pages need their titles */
body.gn.home .entry-header,
body.gn.home .ast-archive-description {
  display: none !important;
}

/* Inner pages need a content-width constraint Astra in full-width loses */
body.gn:not(.home):not(.single):not(.archive):not(.search) .entry-content {
  max-width: 100%;
}

/* Kill Astra's blue hover on buttons and links */
body.gn button:hover,
body.gn button:focus { color: inherit; }
body.gn a { color: inherit; }
body.gn a:hover,
body.gn a:focus { color: inherit; }

/* Astra reset for forms/inputs that we re-style ourselves */
body.gn input[type="text"],
body.gn input[type="email"],
body.gn input[type="search"],
body.gn input[type="tel"],
body.gn input[type="url"],
body.gn textarea {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}
body.gn input[type="text"]:focus,
body.gn input[type="email"]:focus,
body.gn input[type="search"]:focus,
body.gn input[type="tel"]:focus,
body.gn input[type="url"]:focus,
body.gn textarea:focus {
  border-color: var(--ink-70);
  box-shadow: none;
  outline: none;
}

/* Admin bar adjustment: when the WP admin bar is shown, push our absolute header down */
body.gn.admin-bar .gn-header { top: 32px; }
@media (max-width: 782px) {
  body.gn.admin-bar .gn-header { top: 46px; }
}

/* ============================================================
   BREVO / SENDINBLUE — newsletter form integration
   Plugin emits .sib_signup_form > .sib_signup_box_inside_X structure.
   Target the inside container, NOT the form, for flex layout.
   ============================================================ */

body.gn .sib_signup_form {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}
body.gn .sib_signup_form [class*="sib_signup_box_inside_"] {
  display: flex;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
  align-items: stretch;
  flex-wrap: wrap;
}

/* Hide only the email-area label paragraph, NOT all <p> (msg_disp lives there too) */
body.gn .sib_signup_form p.sib-email-area {
  font-size: 0;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 200px;
}
body.gn .sib_signup_form p.sib-email-area input.sib-email-area,
body.gn .sib_signup_form p.sib-email-area input[type="email"] {
  width: 100%;
  background: rgba(240, 233, 216, 0.08);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 13px 22px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
body.gn .sib_signup_form p.sib-email-area input.sib-email-area::placeholder {
  color: var(--ink-40);
  font-size: 14px;
}

/* Submit button — match our .pill--primary */
body.gn .sib_signup_form input.sib-default-btn,
body.gn .sib_signup_form button.sib-default-btn,
body.gn .sib_signup_form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--terracotta);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
body.gn .sib_signup_form input.sib-default-btn:hover,
body.gn .sib_signup_form button.sib-default-btn:hover,
body.gn .sib_signup_form input[type="submit"]:hover {
  background: #b94a26;
}

/* Message panel — only visible when populated */
body.gn .sib_msg_disp:empty { display: none; }
body.gn .sib_msg_disp {
  width: 100%;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 4px;
  font-family: var(--body);
  font-size: 13px;
  color: var(--ink);
  background: rgba(240, 233, 216, 0.06);
  border: 1px solid var(--line-strong);
}
body.gn .sib-alert-message-success {
  color: #8ad28f;
  border-color: rgba(138, 210, 143, 0.3);
  background: rgba(138, 210, 143, 0.08);
}
body.gn .sib-alert-message-error {
  color: #e88a6a;
  border-color: rgba(232, 138, 106, 0.3);
  background: rgba(232, 138, 106, 0.08);
}

/* In compact contexts (header pill area, footer column) shrink padding */
body.gn .gn-footer .sib_signup_form p.sib-email-area input.sib-email-area {
  padding: 9px 14px;
  font-size: 12px;
}
body.gn .gn-footer .sib_signup_form input[type="submit"] {
  padding: 8px 16px;
  font-size: 10px;
}

/* ============================================================
   CONTACT FORM 7 / WPForms — match the contact page maquette
   Underline-only inputs, no rounded boxes, terracotta focus.
   ============================================================ */

body.gn .wpcf7,
body.gn .wpcf7-form,
body.gn .wpforms-container,
body.gn .wpforms-form {
  max-width: 100%;
}

body.gn .wpcf7-form p,
body.gn .wpforms-field {
  margin: 0 0 24px;
}

body.gn .wpcf7-form label,
body.gn .wpforms-field-label {
  display: block;
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--ink-40);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px;
}

body.gn .wpcf7-form input[type="text"],
body.gn .wpcf7-form input[type="email"],
body.gn .wpcf7-form input[type="tel"],
body.gn .wpcf7-form input[type="url"],
body.gn .wpcf7-form textarea,
body.gn .wpforms-field input[type="text"],
body.gn .wpforms-field input[type="email"],
body.gn .wpforms-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 10px 0;
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  resize: none;
  box-shadow: none;
}
body.gn .wpcf7-form input:focus,
body.gn .wpcf7-form textarea:focus,
body.gn .wpforms-field input:focus,
body.gn .wpforms-field textarea:focus {
  border-bottom-color: var(--terracotta);
  outline: none;
  box-shadow: none;
}

body.gn .wpcf7-form input[type="submit"],
body.gn .wpforms-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--terracotta);
  color: var(--ink);
  border: 1.5px solid var(--terracotta);
  border-radius: 999px;
  padding: 11px 24px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
}
body.gn .wpcf7-form input[type="submit"]:hover,
body.gn .wpforms-submit:hover {
  background: #b94a26;
  border-color: #b94a26;
}

/* CF7 response messages */
body.gn .wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--body);
  font-size: 13px;
  color: var(--ink);
}
body.gn .wpcf7 form.sent .wpcf7-response-output {
  border-color: rgba(138, 210, 143, 0.3);
  background: rgba(138, 210, 143, 0.08);
  color: #8ad28f;
}
body.gn .wpcf7 form.invalid .wpcf7-response-output,
body.gn .wpcf7 form.failed .wpcf7-response-output {
  border-color: rgba(232, 138, 106, 0.3);
  background: rgba(232, 138, 106, 0.08);
  color: #e88a6a;
}
body.gn .wpcf7-not-valid-tip {
  color: #e88a6a;
  font-size: 11px;
  margin-top: 4px;
}

/* ============================================================
   FEATURED IMAGE inside .photo wrapper
   When a real <img> is rendered inside .photo, position it absolute
   to fill the gradient placeholder. The grain + darken overlays
   stay on top via z-index.
   ============================================================ */
.photo > img,
.photo > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.photo > .photo__darken,
.photo > .photo__darken-bottom,
.photo > .photo__darken--full {
  z-index: 1;
}
.photo::after {
  z-index: 2;
}
.photo__label,
.photo > .gn-home__pillar-num,
.photo > .gn-home__pillar-meta {
  z-index: 3;
}

/* WordPress core block alignments inside articles */
body.gn .gn-single__article .alignwide,
body.gn .gn-single__article .alignfull {
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  width: auto;
  max-width: none;
}
body.gn .gn-single__article figure {
  margin: 32px 0;
}
body.gn .gn-single__article figure img {
  width: 100%;
  height: auto;
}
body.gn .gn-single__article figure figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-40);
  letter-spacing: 0.4px;
  margin-top: 8px;
}

/* WordPress block: headings inside .gn-single__article inherit serif */
body.gn .gn-single__article h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 20px;
}
body.gn .gn-single__article h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 12px;
}
body.gn .gn-single__article p {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 18px;
}
body.gn .gn-single__article a {
  color: var(--terracotta);
  text-decoration: underline;
  text-decoration-color: rgba(214, 90, 50, 0.4);
  text-underline-offset: 4px;
}
body.gn .gn-single__article a:hover {
  text-decoration-color: var(--terracotta);
}
body.gn .gn-single__article ul,
body.gn .gn-single__article ol {
  margin: 0 0 18px 24px;
  padding: 0;
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
}
body.gn .gn-single__article blockquote {
  border-left: 3px solid var(--terracotta);
  padding-left: 24px;
  margin: 40px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1.3;
  color: var(--ink);
}

/* Active menu state (WP outputs current-menu-item on <li>, not the <a>) */
body.gn .gn-header__nav .current-menu-item > a,
body.gn .gn-header__nav .current_page_item > a,
body.gn .gn-header__nav .current-menu-parent > a,
body.gn .gn-header__nav a.is-active {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}
body.gn .mobile-drawer__nav .current-menu-item > a,
body.gn .mobile-drawer__nav .current_page_item > a,
body.gn .mobile-drawer__nav a.is-active {
  color: var(--terracotta);
}

/* WP login bar / edit-page banner adjustments inside our header */
body.gn #wpadminbar {
  background: var(--footer-bg);
}

/* ============================================================
   PHASE-2 FIXES — robustness for real WP content (long titles,
   variable category counts, fewer posts than design slots).
   ============================================================ */

/* Hero: switch from fixed height + absolute content to flex column
 * + min-height. Real Italian titles are 3-5x longer than the maquette
 * placeholders and were overflowing into the header.
 */
body.gn .gn-home__hero,
body.gn .gn-single__hero,
body.gn .gn-archive__hero {
  height: auto !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 140px;
  padding-bottom: 64px;
}
body.gn .gn-home__hero    { min-height: 760px; }
body.gn .gn-single__hero  { min-height: 720px; padding-top: 160px; }
body.gn .gn-archive__hero { min-height: 460px; padding-bottom: 56px; }

body.gn .gn-home__hero-content,
body.gn .gn-single__hero-content,
body.gn .gn-archive__hero-content {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  padding: 0 var(--gutter);
  z-index: 2;
}

/* On admin-bar pages, push hero top padding further down */
body.gn.admin-bar .gn-home__hero,
body.gn.admin-bar .gn-archive__hero { padding-top: 172px; }
body.gn.admin-bar .gn-single__hero { padding-top: 192px; }

/* Header always sits above hero content */
body.gn .gn-header { z-index: 50; }

/* More conservative display sizes — Italian titles run long */
body.gn .gn-home__hero .display--xl  { font-size: clamp(40px, 6.5vw, 84px); line-height: 0.95; }
body.gn .gn-single__hero .display--lg { font-size: clamp(36px, 6vw, 76px); }
body.gn .gn-archive__hero .display--xxl { font-size: clamp(44px, 8vw, 96px); }
body.gn .gn-about__hero .display--xxl   { font-size: clamp(48px, 9vw, 104px); }
body.gn .gn-contact__hero .display--xxl { font-size: clamp(48px, 9vw, 104px); }

/* Pillars grid adapts to the actual number of categories rendered.
 * Without this, a site with only 2 populated categories shows a half-empty row.
 */
body.gn .gn-home__pillars-grid--1 { grid-template-columns: minmax(0, 320px); }
body.gn .gn-home__pillars-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 800px; }
body.gn .gn-home__pillars-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1100px; }
body.gn .gn-home__pillars-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) {
  body.gn .gn-home__pillars-grid--3,
  body.gn .gn-home__pillars-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
}
@media (max-width: 700px) {
  body.gn .gn-home__pillars-grid--2,
  body.gn .gn-home__pillars-grid--3,
  body.gn .gn-home__pillars-grid--4 { grid-template-columns: 1fr; max-width: 480px; }
}

/* Side rail can wrap to second line on narrow desktops without breaking layout */
body.gn .gn-home__hero-content {
  align-items: end;
}
@media (max-width: 1100px) {
  body.gn .gn-home__hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  body.gn .gn-home__hero-side {
    border-left: none;
    border-top: 1px solid var(--line-strong);
    padding-left: 0;
    padding-top: 24px;
  }
}

/* Hero side rail: ensure the title-column doesn't push the rail off-screen
 * when the title is very long
 */
body.gn .gn-home__hero-side { align-self: end; }
