/* ==========================================================================
   Gennaro Romanelli — foglio di stile (v3)
   Blu istituzionale, azzurro e tricolore. Titoli in Archivo, testo in Public Sans.
   Font ospitati nel tema, icone SVG in linea, foto di Gaeta: Scopri Gaeta.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Colori */
  --navy-900: #061a33;
  --navy-800: #0a2647;
  --navy-700: #0c3466;
  --navy-600: #10427f;
  --blue: #1257a6;
  --azzurro: #2f8be6;
  --cielo: #a9d1f7;
  --cielo-50: #eef5fd;
  --ink: #0e1b2e;
  --text: #1e2a3b;
  --muted: #536176;
  --line: #dde5ef;
  --line-dark: rgba(255, 255, 255, 0.16);
  --on-dark: #d3e2f3;
  --white: #ffffff;
  --verde: #009246;
  --rosso: #ce2b37;

  /* Tipografia */
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-hero: clamp(3.2rem, 1.6rem + 6.6vw, 7.4rem);
  --t-h1: clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem);
  --t-h2: clamp(1.95rem, 1.4rem + 2.2vw, 3.2rem);
  --t-h3: clamp(1.2rem, 1.08rem + 0.5vw, 1.5rem);
  --t-lead: clamp(1.08rem, 1rem + 0.4vw, 1.28rem);

  /* Spazi e forme */
  --container: 1240px;
  --narrow: 760px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 6px;
  --header-h: 88px;
  --shadow: 0 1px 2px rgba(6, 26, 51, 0.06), 0 10px 30px rgba(6, 26, 51, 0.08);
  --shadow-lg: 0 2px 6px rgba(6, 26, 51, 0.1), 0 30px 70px rgba(6, 26, 51, 0.28);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.gr-menu-open { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 90%;
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--navy-800);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.2; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
button { font: inherit; }
::selection { background: var(--cielo); color: var(--ink); }
:focus-visible { outline: 3px solid var(--azzurro); outline-offset: 3px; border-radius: 3px; }

.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;
}
.gr-skip {
  position: absolute; left: 16px; top: -100px; z-index: 300;
  background: var(--navy-800); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-weight: 700; text-decoration: none;
}
.gr-skip:focus { top: 12px; color: #fff; }
.gr-main:focus { outline: none; }

.gr-container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.gr-container--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.gr-section { padding: var(--section) 0; }
.gr-section--tint { background: var(--cielo-50); }
.gr-section--navy { background: var(--navy-800); color: var(--on-dark); }
.gr-section--navy h2, .gr-section--navy h3 { color: #fff; }
.gr-section--tight { padding-top: clamp(40px, 5vw, 64px); }
.gr-section--deep { background: var(--navy-900); }
.gr-section--flush { padding-top: 0; }
.gr-prose > .gr-eyebrow + h2 { margin-top: 0; }
.gr-muted { color: var(--muted); }
.gr-lead { font-size: var(--t-lead); line-height: 1.6; color: var(--muted); }
.gr-h3 { font-size: var(--t-h3); }
.gr-icon { width: 1.15em; height: 1.15em; flex: none; }

/* Tricolore */
.gr-tricolore {
  display: block; height: 4px;
  background: linear-gradient(90deg, var(--verde) 0 33.33%, #fff 33.33% 66.66%, var(--rosso) 66.66%);
}
.gr-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 700 0.76rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 1.1rem;
}
.gr-eyebrow::before {
  content: ""; width: 28px; height: 3px; flex: none; border-radius: 2px;
  background: linear-gradient(90deg, var(--verde) 0 33.33%, #e8edf3 33.33% 66.66%, var(--rosso) 66.66%);
}
.gr-eyebrow--light { color: var(--cielo); }
.gr-eyebrow--light::before { background: linear-gradient(90deg, var(--verde) 0 33.33%, #fff 33.33% 66.66%, var(--rosso) 66.66%); }
.gr-eyebrow a { color: inherit; text-decoration: none; }

.gr-section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 48px; margin-bottom: clamp(36px, 4.5vw, 56px); }
.gr-section-head h2 { margin: 0; max-width: 20ch; }
.gr-section-head p { margin: 12px 0 0; max-width: 56ch; color: var(--muted); }
.gr-section--navy .gr-section-head p { color: var(--on-dark); }

/* Bottoni */
.gr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 1.55em;
  font: 700 0.96rem/1 var(--sans); letter-spacing: 0.005em;
  border-radius: var(--radius); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.gr-btn .gr-icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.gr-btn:hover .gr-icon { transform: translateX(3px); }
.gr-btn--primary { background: var(--blue); color: #fff; }
.gr-btn--primary:hover { background: var(--navy-700); color: #fff; box-shadow: 0 8px 22px rgba(18, 87, 166, 0.3); }
.gr-btn--white { background: #fff; color: var(--navy-800); }
.gr-btn--white:hover { background: var(--cielo-50); color: var(--navy-800); }
.gr-btn--outline { border-color: var(--line); color: var(--navy-800); background: #fff; }
.gr-btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.gr-btn--outline-light { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.gr-btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }

.gr-link {
  display: inline-flex; align-items: center; gap: 0.45em;
  font: 700 0.95rem/1.4 var(--sans); color: var(--blue); text-decoration: none;
}
.gr-link .gr-icon { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.gr-link:hover { color: var(--navy-700); }
.gr-link:hover .gr-icon { transform: translateX(4px); }
.gr-link--light { color: #fff; }
.gr-link--light:hover { color: var(--cielo); }

/* Social */
.gr-social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.gr-social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--navy-800); transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.gr-social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.gr-social .gr-icon { width: 17px; height: 17px; }
.gr-social--dark a { border-color: var(--line-dark); color: #fff; }
.gr-social--dark a:hover { background: #fff; color: var(--navy-800); border-color: #fff; }
.gr-social--mini a { width: 30px; height: 30px; border: 0; color: var(--on-dark); }
.gr-social--mini a:hover { background: transparent; color: #fff; }
.gr-social--mini .gr-icon { width: 15px; height: 15px; }

/* --- Header --------------------------------------------------------------- */
/* Fisso in alto. Sulle pagine con la fascia blu (body.gr-head-dark) parte trasparente con testo bianco
   e diventa bianco allo scorrimento. Nessun backdrop-filter qui: bloccherebbe il menu mobile (position: fixed). */
.gr-main { padding-top: var(--header-h); }
.gr-head-dark .gr-main { padding-top: 0; }
.gr-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: #fff; color: var(--navy-800);
  box-shadow: 0 1px 0 var(--line);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s var(--ease);
}
.gr-header .gr-tricolore { height: 3px; }
.admin-bar .gr-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .gr-header { top: 46px; } }
.gr-head-dark .gr-header:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(6, 26, 51, 0.55) 0%, rgba(6, 26, 51, 0) 100%);
  color: #fff; box-shadow: none;
}
.gr-header.is-scrolled { background: #fff; box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(6, 26, 51, 0.08); }
.gr-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: calc(var(--header-h) - 3px); }

/* Logotipo: solo il nome, con un filo tricolore verticale */
.gr-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; min-width: 0; }
.gr-brand:hover { color: inherit; }
.gr-brand__logo { max-height: 54px; width: auto; }
.gr-brand__flag {
  flex: none; width: 4px; height: 40px; border-radius: 2px;
  background: linear-gradient(180deg, var(--verde) 0 33.33%, #fff 33.33% 66.66%, var(--rosso) 66.66%);
  box-shadow: 0 0 0 1px rgba(6, 26, 51, 0.08);
}
.gr-brand__text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.gr-brand__name {
  font: 800 1.42rem/1 var(--display); font-stretch: 84%; letter-spacing: 0.035em; text-transform: uppercase;
  color: inherit; white-space: nowrap;
}
.gr-brand__role { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--blue); white-space: nowrap; }
.gr-head-dark .gr-header:not(.is-scrolled) .gr-brand__role { color: var(--cielo); }

/* Menu */
.gr-nav { display: flex; align-items: center; gap: 30px; }
.gr-nav__list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.gr-nav-link {
  position: relative; display: inline-flex; align-items: center; height: calc(var(--header-h) - 3px);
  padding: 0 14px; font-size: 0.97rem; font-weight: 600; letter-spacing: 0.005em; color: inherit; text-decoration: none;
  opacity: 0.92; transition: opacity 0.2s;
}
.gr-nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 24px; height: 2px; border-radius: 2px;
  background: var(--azzurro); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.gr-nav-link:hover { opacity: 1; color: inherit; }
.gr-nav-link:hover::after, .gr-nav-link[aria-current="page"]::after { transform: scaleX(1); }
.gr-nav-link[aria-current="page"] { opacity: 1; }
.gr-nav__cta { min-height: 46px; padding: 0 1.35em; background: var(--blue); color: #fff; }
.gr-nav__cta:hover { background: var(--navy-700); color: #fff; }
.gr-head-dark .gr-header:not(.is-scrolled) .gr-nav__cta { background: #fff; color: var(--navy-800); }
.gr-head-dark .gr-header:not(.is-scrolled) .gr-nav__cta:hover { background: var(--cielo-50); }
.gr-nav__extra { display: none; }

.gr-menu-toggle {
  display: none; align-items: center; gap: 12px;
  background: transparent; color: inherit; border: 0; padding: 10px 0; cursor: pointer;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.gr-menu-toggle__bars { position: relative; width: 26px; height: 14px; }
.gr-menu-toggle__bars span { position: absolute; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease), top 0.3s var(--ease), opacity 0.2s; }
.gr-menu-toggle__bars span:nth-child(1) { top: 0; width: 100%; }
.gr-menu-toggle__bars span:nth-child(2) { top: 6px; width: 70%; }
.gr-menu-toggle__bars span:nth-child(3) { top: 12px; width: 100%; }
.gr-menu-toggle[aria-expanded="true"] .gr-menu-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.gr-menu-toggle[aria-expanded="true"] .gr-menu-toggle__bars span:nth-child(2) { opacity: 0; }
.gr-menu-toggle[aria-expanded="true"] .gr-menu-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 1200px) {
  .gr-menu-toggle { display: inline-flex; }
  .gr-menu-open .gr-header, .gr-menu-open.gr-head-dark .gr-header:not(.is-scrolled) { background: var(--navy-900); color: #fff; box-shadow: none; }
  .gr-menu-open .gr-brand__role { color: var(--cielo); }
  .gr-nav {
    position: fixed; left: 0; right: 0; top: var(--nav-top, var(--header-h)); bottom: 0; z-index: 59;
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: 28px;
    background: var(--navy-900); color: #fff; padding: 8px var(--gutter) 36px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .gr-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .gr-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .gr-nav-item { border-bottom: 1px solid var(--line-dark); }
  .gr-nav-link { height: auto; padding: 18px 0; opacity: 1; font: 700 1.75rem/1.1 var(--display); font-stretch: 84%; color: #fff; }
  .gr-nav-link::after { left: 0; right: auto; width: 34px; bottom: 10px; }
  .gr-nav__cta, .gr-head-dark .gr-header:not(.is-scrolled) .gr-nav__cta { width: 100%; min-height: 56px; background: #fff; color: var(--navy-800); }
  .gr-nav__extra { display: flex; flex-direction: column; gap: 16px; }
  .gr-nav__claim { margin: 0; color: var(--on-dark); font-size: 1.05rem; }
}
@media (max-width: 480px) {
  :root { --header-h: 70px; }
  .gr-brand { gap: 11px; }
  .gr-brand__flag { height: 34px; }
  .gr-brand__name { font-size: 1.12rem; letter-spacing: 0.03em; }
  .gr-brand__role { font-size: 0.58rem; letter-spacing: 0.1em; }
  .gr-menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* --- Apertura (home) ----------------------------------------------------- */
.gr-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: clamp(700px, 100vh, 940px);
  background: var(--navy-900); color: var(--on-dark);
}
.gr-hero__bg { position: absolute; inset: 0; z-index: -3; margin: 0; }
.gr-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; animation: gr-zoom 24s ease-out both; }
@keyframes gr-zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.gr-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 38, 71, 0.9) 0%, rgba(12, 52, 102, 0.72) 32%, rgba(18, 87, 166, 0.25) 60%, rgba(18, 87, 166, 0) 100%),
    linear-gradient(0deg, rgba(6, 26, 51, 0.75) 0%, rgba(6, 26, 51, 0) 32%),
    linear-gradient(180deg, rgba(6, 26, 51, 0.45) 0%, rgba(6, 26, 51, 0) 22%);
}
.gr-hero__inner {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: end;
  gap: 24px; padding-top: calc(var(--header-h) + 28px);
}
.gr-hero__text { align-self: center; padding: clamp(16px, 3vh, 48px) 0 clamp(32px, 5vh, 64px); }
.gr-hero__title {
  font: 800 clamp(3.2rem, min(1.4rem + 6.4vw, 10.5vh), 7.4rem)/0.86 var(--display); font-stretch: 76%; letter-spacing: -0.03em;
  color: #fff; margin: 0 0 0.32em; text-transform: uppercase;
}
.gr-hero__title span { display: block; }
.gr-hero__title span:last-child { color: var(--cielo); }
.gr-hero__claim { font: 500 clamp(1.12rem, 0.98rem + 0.62vw, 1.55rem)/1.4 var(--display); font-stretch: 96%; color: #fff; margin: 0 0 1.6em; max-width: 34ch; padding-left: 18px; border-left: 3px solid var(--cielo); }
.gr-hero__lead { font-size: var(--t-lead); color: var(--on-dark); max-width: 44ch; margin-bottom: 2.1rem; }
.gr-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gr-hero__social { display: flex; align-items: center; gap: 14px; margin-top: 2rem; }
.gr-hero__social > span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cielo); }

/* Ritratto scontornato, appoggiato sulla fascia dei collegamenti */
.gr-hero__person { position: relative; margin: 0; align-self: end; justify-self: end; width: min(100%, 540px, 66vh); animation: gr-sale 1.1s var(--ease) 0.1s both; }
.gr-hero__person::before {
  content: ""; position: absolute; z-index: -1; left: 8%; right: -4%; top: 4%; bottom: 10%;
  background: radial-gradient(closest-side, rgba(47, 139, 230, 0.42), rgba(47, 139, 230, 0) 72%);
}
.gr-hero__person img { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45)); }
@keyframes gr-sale { from { opacity: 0; transform: translateY(28px); } }

/* Fascia dei collegamenti in fondo all'apertura */
.gr-hero__bar { position: relative; border-top: 1px solid var(--line-dark); background: rgba(6, 26, 51, 0.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.gr-hero__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gr-hero__links li + li { border-left: 1px solid var(--line-dark); }
.gr-hero__link {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 24px 26px 22px; color: #fff; text-decoration: none; transition: background-color 0.25s;
}
.gr-hero__links li:first-child .gr-hero__link { padding-left: 0; }
a.gr-hero__link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.gr-hero__link-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--cielo); }
.gr-hero__link-value { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 700 1.08rem/1.25 var(--display); font-stretch: 92%; }
.gr-hero__link-value .gr-icon { width: 18px; height: 18px; flex: none; opacity: 0.7; transition: transform 0.25s var(--ease), opacity 0.25s; }
a.gr-hero__link:hover .gr-icon { transform: translateX(4px); opacity: 1; }
.gr-hero__photo-credit { position: absolute; right: var(--gutter); top: calc(var(--header-h) + 14px); margin: 0; font-size: 0.68rem; color: rgba(255, 255, 255, 0.5); }

@media (max-width: 960px) {
  .gr-hero { min-height: 0; }
  .gr-hero::before { background: linear-gradient(180deg, rgba(6, 26, 51, 0.5) 0%, rgba(6, 26, 51, 0.82) 38%, rgba(6, 26, 51, 0.97) 62%); }
  .gr-hero__inner { grid-template-columns: 1fr; gap: 0; padding-top: calc(var(--header-h) + 8px); }
  .gr-hero__person { order: -1; justify-self: center; width: min(86%, 420px); margin-bottom: -8px; }
  .gr-hero__text { padding: 0 0 44px; }
  .gr-hero__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gr-hero__links li:nth-child(3) { border-left: 0; }
  .gr-hero__links li:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .gr-hero__links li:first-child .gr-hero__link, .gr-hero__links li:nth-child(3) .gr-hero__link { padding-left: 0; }
  .gr-hero__photo-credit { display: none; }
}
@media (max-width: 560px) {
  .gr-hero__title { font-size: clamp(3rem, 15vw, 4.2rem); }
  .gr-hero__link { padding: 18px 16px; }
  .gr-hero__link-value { font-size: 1rem; }
}

/* Riquadri rapidi (pagina del libro) */
.gr-quick { position: relative; z-index: 2; margin-top: clamp(-90px, -7vw, -60px); }
.gr-quick__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.gr-quick__item {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 28px 28px 26px; border-left: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: background-color 0.2s;
}
.gr-quick__item:first-child { border-left: 0; }
a.gr-quick__item:hover { background: var(--cielo-50); }
.gr-quick__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.gr-quick__value { font: 700 1.2rem/1.2 var(--display); font-stretch: 92%; color: var(--navy-800); }
@media (max-width: 960px) {
  .gr-quick__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gr-quick__item:nth-child(3) { border-left: 0; }
  .gr-quick__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .gr-quick__grid { grid-template-columns: 1fr; }
  .gr-quick__item { border-left: 0; border-top: 1px solid var(--line); padding: 22px; }
  .gr-quick__item:first-child { border-top: 0; }
}

/* --- Chi sono (home) ----------------------------------------------------- */
.gr-about { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.gr-about__media { position: relative; margin: 0; }
.gr-about__media img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; border-radius: var(--radius); }
.gr-about__media figcaption { margin-top: 12px; font-size: 0.86rem; color: var(--muted); }
.gr-about__badge {
  position: absolute; right: -20px; top: 28px; background: var(--navy-700); color: #fff; border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-lg); max-width: 220px;
}
.gr-about__badge strong { display: block; font: 800 1.5rem/1.05 var(--display); font-stretch: 80%; color: #fff; }
.gr-about__badge span { display: block; font-size: 0.8rem; color: var(--on-dark); margin-top: 6px; line-height: 1.4; }
.gr-about__text .gr-lead { color: var(--text); font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); line-height: 1.5; font-weight: 500; }
.gr-facts-list { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; border-top: 2px solid var(--navy-800); }
.gr-facts-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.gr-facts-list span { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.gr-facts-list strong { display: block; font: 700 1.05rem/1.3 var(--display); font-stretch: 94%; color: var(--navy-800); margin-top: 3px; }

/* --- Il libro (sezione) -------------------------------------------------- */
.gr-book { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-800); color: var(--on-dark); }
.gr-book__bg { position: absolute; inset: 0 0 0 40%; z-index: -2; margin: 0; }
.gr-book__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.gr-book::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--navy-800) 0%, var(--navy-800) 42%, rgba(10, 38, 71, 0.7) 70%, rgba(10, 38, 71, 0.55) 100%); }
.gr-book__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.gr-book__cover { margin: 0; perspective: 1400px; justify-self: center; width: min(100%, 400px); }
.gr-book__cover img {
  width: 100%; border-radius: 3px 8px 8px 3px;
  box-shadow: -2px 0 0 rgba(255, 255, 255, 0.12) inset, 0 40px 80px rgba(0, 0, 0, 0.5), 0 10px 20px rgba(0, 0, 0, 0.3);
  transform: rotateY(-12deg) rotateX(2deg); transform-origin: left center;
  transition: transform 0.6s var(--ease);
}
.gr-book__cover:hover img { transform: rotateY(-4deg); }
.gr-book h2 { color: #fff; font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); font-stretch: 82%; font-weight: 800; margin-bottom: 0.2em; }
.gr-book__sub { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); color: var(--cielo); font-style: italic; margin-bottom: 1.4em; max-width: 40ch; }
.gr-book__text { max-width: 56ch; }
.gr-book__facts { list-style: none; margin: 30px 0 34px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.gr-book__facts li { padding: 20px 18px 18px 0; }
.gr-book__facts li + li { padding-left: 20px; border-left: 1px solid var(--line-dark); }
.gr-book__facts strong { display: block; font: 800 1.9rem/1 var(--display); font-stretch: 80%; color: #fff; }
.gr-book__facts span { display: block; font-size: 0.86rem; margin-top: 6px; line-height: 1.4; }
.gr-book__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gr-book blockquote {
  margin: 34px 0 0; padding: 0 0 0 20px; border-left: 3px solid var(--azzurro);
  font-size: 1.02rem; font-style: italic; color: var(--on-dark); max-width: 60ch;
}
.gr-book blockquote footer { margin-top: 8px; font-style: normal; font-size: 0.85rem; font-weight: 700; color: #fff; }

/* --- Priorità con foto --------------------------------------------------- */
.gr-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.gr-theme {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.gr-theme:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gr-theme__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-700); margin: 0; }
.gr-theme__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.gr-theme:hover .gr-theme__media img { transform: scale(1.05); }
.gr-theme__num {
  position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius);
  background: #fff; color: var(--navy-800); font: 800 1.05rem/1 var(--display); font-stretch: 85%;
}
.gr-theme__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.gr-theme__body h3 { font-size: 1.32rem; margin-bottom: 8px; }
.gr-theme__body h3 a { color: var(--navy-800); text-decoration: none; }
.gr-theme__body h3 a::after { content: ""; position: absolute; inset: 0; }
.gr-theme__body p { color: var(--muted); font-size: 0.97rem; margin-bottom: 16px; }
.gr-theme__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 700; color: var(--blue); }
.gr-theme__more .gr-icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.gr-theme:hover .gr-theme__more .gr-icon { transform: translateX(4px); }
.gr-theme:focus-within { outline: 3px solid var(--azzurro); outline-offset: 3px; }
.gr-theme a:focus-visible { outline: none; }

/* --- Striscia fotografica della costa ------------------------------------ */
.gr-strip__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.gr-strip__controls { display: flex; gap: 8px; }
.gr-strip__intro { margin: 0; max-width: 56ch; color: var(--on-dark); }
.gr-strip__btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-dark); background: transparent; color: #fff; cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.gr-strip__btn:hover { background: #fff; color: var(--navy-800); }
.gr-strip__btn .gr-icon { width: 20px; height: 20px; }
.gr-strip__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 30%); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
  padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2)) 8px;
  scrollbar-width: none; list-style: none; margin: 0;
}
.gr-strip__track::-webkit-scrollbar { display: none; }
.gr-strip__item { position: relative; margin: 0; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy-700); }
.gr-strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.gr-strip__item:hover img { transform: scale(1.04); }
.gr-strip__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 26, 51, 0.85) 0%, rgba(6, 26, 51, 0) 55%); }
.gr-strip__item figcaption { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; color: #fff; }
.gr-strip__item figcaption strong { display: block; font: 700 1.3rem/1.15 var(--display); font-stretch: 90%; }
.gr-strip__item figcaption span { display: block; font-size: 0.82rem; color: var(--on-dark); margin-top: 3px; }
.gr-strip__credit { margin: 18px 0 0; font-size: 0.8rem; color: var(--on-dark); }
.gr-strip__credit a { color: #fff; }
@media (max-width: 760px) { .gr-strip__track { grid-auto-columns: 78%; } }

/* --- Schede del blog ----------------------------------------------------- */
.gr-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.gr-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gr-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-700); }
.gr-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.gr-card:hover .gr-card__media img { transform: scale(1.04); }
.gr-card__placeholder { position: relative; display: block; width: 100%; height: 100%; }
.gr-card__placeholder img { opacity: 0.55; }
.gr-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.gr-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 10px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.gr-card__cat { color: var(--blue); }
.gr-card__title { font-size: 1.3rem; line-height: 1.2; margin: 0 0 10px; }
.gr-card__title a { color: var(--navy-800); text-decoration: none; }
.gr-card__title a::after { content: ""; position: absolute; inset: 0; }
.gr-card__excerpt { color: var(--muted); font-size: 0.97rem; margin-bottom: 16px; }
.gr-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 700; color: var(--blue); }
.gr-card__more .gr-icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.gr-card:hover .gr-card__more .gr-icon { transform: translateX(4px); }
.gr-card:focus-within { outline: 3px solid var(--azzurro); outline-offset: 3px; }
.gr-card a:focus-visible { outline: none; }
.gr-card--grande .gr-card__title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.gr-card--riga { flex-direction: row; }
.gr-card--riga .gr-card__media { width: 40%; flex: none; aspect-ratio: auto; }
.gr-card--riga .gr-card__title { font-size: 1.14rem; }

.gr-blog-home { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-auto-rows: 1fr; gap: 24px; }
.gr-blog-home > :first-child { grid-row: span 2; }
.gr-blog-home--uno { grid-template-columns: 1fr; }

.gr-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.gr-news-grid__lead { grid-column: 1 / -1; }
@media (min-width: 901px) {
  .gr-news-grid__lead .gr-card--grande { flex-direction: row; }
  .gr-news-grid__lead .gr-card--grande .gr-card__media { width: 58%; flex: none; }
  .gr-news-grid__lead .gr-card--grande .gr-card__body { padding: clamp(28px, 4vw, 52px); justify-content: center; }
}

.gr-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; padding: 0; }
.gr-chips a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--navy-800); font-size: 0.9rem; font-weight: 600; text-decoration: none;
}
.gr-chips a:hover { border-color: var(--blue); color: var(--blue); }
.gr-chips a[aria-current="page"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.gr-chips small { font-size: 0.75rem; opacity: 0.7; }
.gr-blog-tools { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0 32px; }
.gr-blog-tools .gr-search { width: min(100%, 360px); margin: 0 0 36px; }

.gr-pagination { margin-top: 56px; }
.gr-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gr-pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px;
  border-radius: var(--radius); border: 1px solid var(--line); color: var(--navy-800); font-weight: 700; text-decoration: none;
}
.gr-pagination .page-numbers.current { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.gr-pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.gr-pagination .gr-icon { width: 18px; height: 18px; }

.gr-empty { max-width: 640px; margin: 0 auto; text-align: center; padding: 56px 32px; border: 1px dashed #c9d4e2; border-radius: var(--radius); background: var(--cielo-50); }
.gr-empty__icon { width: 40px; height: 40px; color: var(--blue); margin: 0 auto 18px; }
.gr-empty p { color: var(--muted); }

/* --- Partecipa ----------------------------------------------------------- */
.gr-join {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px 64px; align-items: center;
  padding: clamp(40px, 6vw, 80px); border-radius: var(--radius); color: #e6f0fb;
}
.gr-join::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.16), transparent 45%), linear-gradient(120deg, var(--navy-700), var(--blue));
}
.gr-join::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--verde) 0 33.33%, #fff 33.33% 66.66%, var(--rosso) 66.66%); }
.gr-join h2 { color: #fff; max-width: 18ch; }
.gr-join p { margin: 0; max-width: 52ch; }
.gr-join__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.gr-join__actions .gr-btn { min-width: 260px; }
.gr-join__social { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.gr-join__social > span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

/* --- Intestazione pagine interne ---------------------------------------- */
.gr-pagehead { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-800); color: var(--on-dark); }
.gr-pagehead__bg { position: absolute; inset: 0; z-index: -2; margin: 0; }
.gr-pagehead__bg img { width: 100%; height: 100%; object-fit: cover; }
.gr-pagehead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 26, 51, 0.95) 0%, rgba(8, 34, 66, 0.86) 45%, rgba(10, 38, 71, 0.5) 100%); }
.gr-pagehead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--verde) 0 33.33%, #fff 33.33% 66.66%, var(--rosso) 66.66%); }
.gr-pagehead__inner { padding: calc(var(--header-h) + clamp(24px, 3.5vw, 44px)) 0 clamp(56px, 7vw, 96px); }
.gr-pagehead--media .gr-pagehead__inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.gr-pagehead__title { font-size: var(--t-h1); font-weight: 800; font-stretch: 80%; letter-spacing: -0.025em; color: #fff; margin-bottom: 0.3em; max-width: 18ch; }
.gr-pagehead__lead { font-size: var(--t-lead); color: var(--on-dark); max-width: 56ch; margin: 0; }
.gr-pagehead__media { justify-self: end; width: min(100%, 320px); margin-bottom: calc(-1 * clamp(56px, 7vw, 96px)); }
.gr-pagehead__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 38% 22%; border-radius: var(--radius) var(--radius) 0 0; }
.gr-pagehead__media img.gr-pagehead__cutout { aspect-ratio: auto; object-fit: contain; border-radius: 0; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.4)); }
.gr-pagehead--media .gr-pagehead__media { position: relative; width: min(100%, 420px); }
.gr-pagehead--media .gr-pagehead__media::before { content: ""; position: absolute; z-index: -1; inset: 6% -6% 14% 6%; background: radial-gradient(closest-side, rgba(47, 139, 230, 0.4), rgba(47, 139, 230, 0) 72%); }
.gr-pagehead__credit { position: absolute; right: var(--gutter); bottom: 12px; margin: 0; font-size: 0.68rem; color: rgba(255, 255, 255, 0.55); }
@media (max-width: 860px) {
  .gr-pagehead--media .gr-pagehead__inner { grid-template-columns: 1fr; }
  .gr-pagehead__media { justify-self: start; width: min(60vw, 240px); }
  .gr-pagehead--media .gr-pagehead__media { width: min(76vw, 320px); justify-self: center; margin-top: 8px; }
  .gr-pagehead__credit { display: none; }
}

.gr-breadcrumb { margin-bottom: clamp(28px, 4vw, 48px); }
.gr-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 0.84rem; color: var(--on-dark); }
.gr-breadcrumb li + li::before { content: "›"; margin-right: 6px; opacity: 0.6; }
.gr-breadcrumb a { color: var(--on-dark); text-decoration: none; }
.gr-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.gr-breadcrumb [aria-current] { color: #fff; font-weight: 600; }
.gr-breadcrumb--dark ol { color: var(--muted); }
.gr-breadcrumb--dark a { color: var(--muted); }
.gr-breadcrumb--dark a:hover { color: var(--blue); }
.gr-breadcrumb--dark [aria-current] { color: var(--text); }

/* --- Testo lungo -------------------------------------------------------- */
.gr-prose { font-size: 1.1rem; line-height: 1.8; }
.gr-prose > * { max-width: 70ch; }
.gr-prose--wide > * { max-width: none; }
.gr-prose h2 { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.15rem); margin: 1.7em 0 0.55em; }
.gr-prose h3 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.55rem); margin: 1.5em 0 0.5em; }
.gr-prose ul, .gr-prose ol { margin: 0 0 1.3em; }
.gr-prose li { margin-bottom: 0.45em; }
.gr-prose li::marker { color: var(--blue); }
.gr-prose blockquote, .gr-prose .wp-block-quote {
  margin: 2em 0; padding: 4px 0 4px 1.3em; border-left: 4px solid var(--blue);
  font-size: 1.28rem; line-height: 1.5; font-weight: 500; color: var(--navy-800);
}
.gr-prose blockquote cite { display: block; margin-top: 0.6em; font-style: normal; font-size: 0.88rem; color: var(--muted); }
.gr-prose img { border-radius: var(--radius); }
.gr-prose figure { margin: 2em 0; }
.gr-prose figcaption, .gr-prose .wp-element-caption { font-size: 0.88rem; color: var(--muted); margin-top: 10px; }
.gr-prose hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }
.gr-prose table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.gr-prose th, .gr-prose td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; }
.gr-prose .alignwide, .gr-prose .alignfull { max-width: none; }
.gr-prose .aligncenter { margin-left: auto; margin-right: auto; }
.gr-prose .alignleft { float: left; margin: 0.4em 1.6em 1em 0; }
.gr-prose .alignright { float: right; margin: 0.4em 0 1em 1.6em; }
.gr-prose .wp-block-button__link { background: var(--blue); color: #fff; border-radius: var(--radius); padding: 0.85em 1.6em; font-weight: 700; text-decoration: none; }
.gr-prose .wp-block-file {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cielo-50);
}
.gr-prose .wp-block-file a:not(.wp-block-file__button) { font-weight: 700; color: var(--navy-800); text-decoration: none; }
.gr-prose .wp-block-file__button { background: var(--blue) !important; color: #fff !important; border-radius: var(--radius) !important; padding: 0.6em 1.2em !important; font-size: 0.85rem !important; text-decoration: none; }

/* --- Chi sono ----------------------------------------------------------- */
.gr-bio { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.gr-bio__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.gr-bio__text > p:first-child { font-size: 1.2rem; color: var(--text); font-weight: 500; }
.gr-facts { margin: 0; border-top: 3px solid var(--navy-800); }
.gr-facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.gr-facts dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.gr-facts dd { margin: 4px 0 0; font: 700 1.1rem/1.3 var(--display); font-stretch: 92%; color: var(--navy-800); }
.gr-facts dd a { color: var(--blue); text-decoration: none; }

.gr-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.gr-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: #c9d4e2; }
.gr-timeline__item { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 40px; padding: 0 0 40px 44px; }
.gr-timeline__item:last-child { padding-bottom: 0; }
.gr-timeline__item::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); }
.gr-timeline__item:first-child::before { background: var(--blue); }
.gr-timeline__year { font: 800 1.15rem/1.3 var(--display); font-stretch: 85%; color: var(--blue); margin: 0; }
.gr-timeline__item h3 { margin-bottom: 0.35em; }
.gr-timeline__item p { color: var(--muted); margin: 0; max-width: 62ch; }

.gr-values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.gr-values li { padding: 30px 26px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); }
.gr-values h3 { font-size: 1.3rem; }
.gr-values p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* --- Pagina del libro ---------------------------------------------------- */
.gr-bookpage-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-900); color: var(--on-dark); }
.gr-bookpage-hero .gr-book__bg { inset: 0; }
.gr-bookpage-hero .gr-book__bg img { opacity: 0.4; }
.gr-bookpage-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 26, 51, 0.97) 0%, rgba(6, 26, 51, 0.86) 50%, rgba(6, 26, 51, 0.55) 100%); }
.gr-bookpage-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--verde) 0 33.33%, #fff 33.33% 66.66%, var(--rosso) 66.66%); }
.gr-bookpage-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(40px, 7vw, 110px); align-items: center; padding: 0 0 clamp(64px, 8vw, 110px); }
.gr-bookpage-hero .gr-breadcrumb { padding-top: calc(var(--header-h) + clamp(24px, 3.5vw, 44px)); }
.gr-bookpage-hero h1 { color: #fff; font-size: clamp(3rem, 1.8rem + 4.6vw, 5.6rem); font-weight: 800; font-stretch: 78%; line-height: 0.92; margin-bottom: 0.25em; }
.gr-bookpage-hero .gr-book__sub { margin-bottom: 0.8em; }
.gr-bookpage-hero__author { font-weight: 700; color: #fff; margin-bottom: 2rem; }
.gr-route { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 36px 0 0; padding: 0; }
.gr-route::before { content: ""; position: absolute; left: 10%; right: 10%; top: 9px; height: 2px; background: repeating-linear-gradient(90deg, var(--blue) 0 10px, transparent 10px 18px); }
.gr-route li { position: relative; text-align: center; padding-top: 32px; font: 700 1.02rem/1.25 var(--display); font-stretch: 92%; color: var(--navy-800); }
.gr-route li::before { content: ""; position: absolute; left: 50%; top: 0; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); }
.gr-route li:first-child::before, .gr-route li:last-child::before { background: var(--blue); }
.gr-route small { display: block; font-family: var(--sans); font-weight: 500; font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.gr-tags-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; }
.gr-tags-list li { padding: 8px 14px; border-radius: 999px; background: var(--cielo-50); color: var(--navy-800); font-size: 0.9rem; font-weight: 600; }
.gr-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.gr-split__media { margin: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.gr-split__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }
.gr-split__media figcaption { margin-top: 10px; font-size: 0.84rem; color: var(--muted); }
.gr-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gr-feature { padding: 30px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); }
.gr-feature__num { font: 800 2.6rem/1 var(--display); font-stretch: 78%; color: var(--blue); margin-bottom: 14px; display: block; }
.gr-feature h3 { font-size: 1.3rem; }
.gr-feature p { margin: 0; color: var(--muted); }
.gr-quote-big { margin: 0 auto; max-width: 940px; text-align: center; }
.gr-quote-big .gr-icon { width: 46px; height: 46px; color: var(--azzurro); margin: 0 auto 22px; }
.gr-quote-big p { font: 600 clamp(1.35rem, 1.1rem + 1.3vw, 2.1rem)/1.38 var(--display); font-stretch: 94%; color: #fff; margin: 0; }
.gr-quote-big footer { margin-top: 24px; font-size: 0.92rem; color: var(--cielo); }
.gr-quote-big footer strong { color: #fff; }
.gr-where { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--cielo-50); border: 1px solid var(--line); border-left: 4px solid var(--blue); }
.gr-where h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); margin-bottom: 0.3em; }
.gr-where p { margin: 0; color: var(--muted); }
.gr-where__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Programma ---------------------------------------------------------- */
.gr-programma { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.gr-programma__index { position: sticky; top: calc(var(--header-h) + 32px); }
.gr-programma__index-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.gr-programma__index ol { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--navy-800); }
.gr-programma__index a {
  display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: 0.95rem; font-weight: 600; color: var(--muted); text-decoration: none; line-height: 1.35; transition: color 0.2s, padding 0.25s var(--ease);
}
.gr-programma__index a:hover, .gr-programma__index a[aria-current="true"] { color: var(--navy-800); padding-left: 6px; }
.gr-programma__index a[aria-current="true"] .gr-programma__index-num { background: var(--blue); color: #fff; }
.gr-programma__index-num { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 4px; background: var(--cielo-50); color: var(--blue); font: 800 0.8rem/1 var(--display); }
.gr-ambito { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px 40px; padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); align-items: start; }
.gr-ambito:first-child { padding-top: 0; border-top: 0; }
.gr-ambito__media { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-700); }
.gr-ambito__media img { width: 100%; height: 100%; object-fit: cover; }
.gr-ambito__media span { position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius); background: #fff; color: var(--navy-800); font: 800 1.15rem/1 var(--display); }
.gr-ambito h2 { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.2rem); }
.gr-ambito p { color: var(--muted); }
.gr-checklist { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.gr-checklist li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.gr-checklist .gr-icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--blue); color: #fff; margin-top: 1px; }

/* --- Contatti ----------------------------------------------------------- */
.gr-contatti { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.gr-recapiti { list-style: none; margin: 0 0 30px; padding: 0; border-top: 3px solid var(--navy-800); }
.gr-recapiti li { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.gr-recapiti li p { margin: 0 0 6px; }
.gr-recapiti__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--radius); background: var(--cielo-50); color: var(--blue); }
.gr-recapiti__icon .gr-icon { width: 20px; height: 20px; }
.gr-recapiti__label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.gr-recapiti a:not(.gr-link) { color: var(--navy-800); font-weight: 600; }
.gr-form-card { padding: clamp(28px, 4vw, 48px); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); box-shadow: var(--shadow); }
.gr-form-card > .gr-muted { margin-bottom: 26px; }

.gr-form { display: flex; flex-direction: column; gap: 20px; }
.gr-form__riga { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gr-campo label { display: block; font-size: 0.9rem; font-weight: 700; color: var(--navy-800); margin-bottom: 8px; }
.gr-campo__opz { font-weight: 500; color: var(--muted); font-size: 0.8rem; margin-left: 4px; }
.gr-form input[type="text"], .gr-form input[type="email"], .gr-form input[type="tel"], .gr-form input[type="url"], .gr-form select, .gr-form textarea {
  width: 100%; min-height: 52px; padding: 13px 15px; font: 500 1rem/1.4 var(--sans); color: var(--text);
  background: #fff; border: 1.5px solid #c9d4e2; border-radius: var(--radius); transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
}
.gr-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a2647' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px;
}
.gr-form textarea { min-height: 150px; resize: vertical; }
.gr-form input:focus, .gr-form select:focus, .gr-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 139, 230, 0.22); }
.gr-campo--check { display: flex; gap: 12px; align-items: flex-start; }
.gr-campo--check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blue); flex: none; }
.gr-campo--check label { font-size: 0.9rem; font-weight: 500; color: var(--muted); margin: 0; line-height: 1.55; }
.gr-form__trappola { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gr-form__invio { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.gr-form__nota { margin: 0; font-size: 0.85rem; color: var(--muted); }
.gr-avviso { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; margin-bottom: 22px; border-radius: var(--radius); border: 1px solid; }
.gr-avviso p { margin: 0; }
.gr-avviso .gr-icon { margin-top: 3px; }
.gr-avviso--successo { background: #e7f4ec; border-color: #98caa9; color: #17532c; }
.gr-avviso--errore { background: #fdecec; border-color: #eaa3a3; color: #8e2121; }

/* --- Galleria ----------------------------------------------------------- */
.gr-gallery--grid { list-style: none; margin: 0; padding: 0; columns: 3 300px; column-gap: 22px; }
.gr-gallery__item { break-inside: avoid; margin-bottom: 26px; }
.gr-gallery__item a { display: block; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; }
.gr-gallery__item img { width: 100%; transition: transform 0.8s var(--ease); }
.gr-gallery__item a:hover img { transform: scale(1.03); }
.gr-gallery__caption { margin: 10px 0 0; font-size: 0.92rem; color: var(--muted); }
.gr-gallery__caption strong { color: var(--navy-800); }
.gr-gallery--content img { border-radius: var(--radius); }
.gr-gallery--content [data-zoom] { cursor: zoom-in; }
.gr-lightbox { position: fixed; inset: 0; z-index: 400; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; background: rgba(6, 18, 34, 0.96); padding: 24px; }
.gr-lightbox[hidden] { display: none; }
.gr-lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.gr-lightbox__figure img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 4px; }
.gr-lightbox__figure figcaption { color: var(--on-dark); text-align: center; }
.gr-lightbox__btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; cursor: pointer; }
.gr-lightbox__btn:hover { background: #fff; color: var(--navy-800); }
.gr-lightbox__close { position: absolute; top: 20px; right: 20px; }
.gr-lightbox__next { justify-self: end; }
@media (max-width: 640px) {
  .gr-lightbox { grid-template-columns: 1fr; padding: 72px 12px 96px; }
  .gr-lightbox__prev, .gr-lightbox__next { position: absolute; bottom: 24px; }
  .gr-lightbox__prev { left: calc(50% - 64px); }
  .gr-lightbox__next { right: calc(50% - 64px); }
}

/* --- Trasparenza -------------------------------------------------------- */
.gr-accordion { display: flex; flex-direction: column; gap: 12px; margin: 36px 0; }
.gr-accordion__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gr-accordion__item summary { display: flex; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.gr-accordion__item summary::-webkit-details-marker { display: none; }
.gr-accordion__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: var(--radius); background: var(--cielo-50); color: var(--blue); }
.gr-accordion__icon .gr-icon { width: 20px; height: 20px; }
.gr-accordion__title { flex: 1; font: 700 1.15rem/1.25 var(--display); font-stretch: 92%; color: var(--navy-800); }
.gr-accordion__chevron { width: 22px; height: 22px; color: var(--muted); transition: transform 0.3s var(--ease); }
.gr-accordion__item[open] .gr-accordion__chevron { transform: rotate(180deg); }
.gr-accordion__body { padding: 0 22px 22px 80px; color: var(--muted); }
.gr-accordion__body p { margin: 0 0 8px; }
.gr-accordion__empty { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; font-style: italic; }
.gr-accordion__empty::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--azzurro); }
.gr-docs__note { margin-top: 30px; color: var(--muted); }

/* --- Ricerca ------------------------------------------------------------ */
.gr-search { position: relative; display: flex; gap: 8px; margin-bottom: 40px; }
.gr-search__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--muted); pointer-events: none; }
.gr-search input[type="search"] { flex: 1; min-width: 0; min-height: 50px; padding: 0 16px 0 46px; font: 500 1rem var(--sans); color: var(--text); background: #fff; border: 1.5px solid #c9d4e2; border-radius: var(--radius); }
.gr-search input[type="search"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 139, 230, 0.22); }
.gr-search .gr-btn { min-height: 50px; }
.gr-results { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--navy-800); }
.gr-results__item { padding: 26px 0; border-bottom: 1px solid var(--line); }
.gr-results__title { font-size: 1.4rem; margin-bottom: 8px; }
.gr-results__title a { color: var(--navy-800); text-decoration: none; }
.gr-results__title a:hover { color: var(--blue); text-decoration: underline; }
.gr-results__item p:last-child { color: var(--muted); margin: 0; }

/* --- Articolo ----------------------------------------------------------- */
.gr-article__head { padding: clamp(28px, 4vw, 52px) 0 clamp(30px, 4vw, 44px); border-bottom: 1px solid var(--line); margin-bottom: clamp(32px, 4vw, 48px); }
.gr-article__title { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.6rem); font-weight: 800; font-stretch: 82%; letter-spacing: -0.025em; margin-bottom: 0.45em; }
.gr-article__excerpt { font-size: var(--t-lead); color: var(--muted); margin: 0 0 24px; }
.gr-byline { display: flex; align-items: center; gap: 14px; }
.gr-byline__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 40% 20%; flex: none; }
.gr-byline__text { display: flex; flex-direction: column; font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.gr-byline__text strong { color: var(--navy-800); font-size: 0.98rem; }
.gr-article__cover { margin: 0 auto clamp(36px, 5vw, 56px); }
.gr-article__cover img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radius); }
.gr-article__cover figcaption { margin-top: 10px; font-size: 0.86rem; color: var(--muted); }
.gr-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; }
.gr-tags a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--cielo-50); font-size: 0.86rem; font-weight: 600; color: var(--navy-800); text-decoration: none; }
.gr-tags a:hover { background: var(--cielo); }
.gr-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 40px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gr-share__label { margin: 0; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.gr-share ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.gr-share a, .gr-share button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy-800); cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.gr-share a:hover, .gr-share button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.gr-share .gr-icon { width: 18px; height: 18px; }
.gr-share__status { margin: 0; font-size: 0.88rem; color: var(--blue); font-weight: 600; }
.gr-author { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; align-items: center; margin: 40px 0; padding: 26px; border-radius: var(--radius); background: var(--cielo-50); border-left: 4px solid var(--blue); }
.gr-author img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 40% 20%; }
.gr-author p { margin: 0 0 8px; color: var(--muted); font-size: 0.97rem; }
.gr-author .gr-author__name { font: 800 1.2rem/1.2 var(--display); font-stretch: 90%; color: var(--navy-800); margin: 0 0 4px; }
.gr-postnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 40px 0; }
.gr-postnav__link { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
.gr-postnav__link:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.gr-postnav__link--next { grid-column: 2; text-align: right; align-items: flex-end; }
.gr-postnav__dir { display: inline-flex; align-items: center; gap: 8px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.gr-postnav__dir .gr-icon { width: 16px; height: 16px; }
.gr-postnav__title { font: 700 1.08rem/1.3 var(--display); font-stretch: 94%; color: var(--navy-800); }

.gr-comments { margin: 44px 0; }
.gr-comments__list { list-style: none; padding: 0; margin: 0 0 36px; }
.gr-comments__list .comment-body { padding: 20px 0; border-bottom: 1px solid var(--line); }
.gr-comments__list .avatar { border-radius: 50%; float: left; margin-right: 14px; }
.gr-comments__list .comment-meta { font-size: 0.88rem; color: var(--muted); }
.gr-comments__form p { margin: 0; }
.gr-comments__form label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--navy-800); margin-bottom: 8px; }

/* --- 404 ---------------------------------------------------------------- */
.gr-404 { padding: clamp(64px, 10vw, 130px) 0; text-align: center; }
.gr-404__num { font: 800 clamp(7rem, 4rem + 14vw, 13rem)/0.85 var(--display); font-stretch: 70%; color: var(--cielo-50); -webkit-text-stroke: 2px var(--blue); margin: 0 0 20px; }
.gr-404 .gr-eyebrow { justify-content: center; }
.gr-404__title { font-size: var(--t-h2); }
.gr-404 .gr-search { max-width: 560px; margin: 30px auto; }
.gr-404__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 26px; }

/* --- Footer ------------------------------------------------------------- */
.gr-footer { background: var(--navy-900); color: var(--on-dark); font-size: 0.95rem; }
.gr-footer a { color: var(--on-dark); text-decoration: none; }
.gr-footer a:hover { color: #fff; text-decoration: underline; }
.gr-footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 44px; padding: clamp(64px, 7vw, 96px) 0 clamp(44px, 5vw, 64px); }
.gr-footer__name { font: 800 2rem/1.05 var(--display); font-stretch: 85%; color: #fff; margin: 0 0 8px; }
.gr-footer__role { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cielo); margin-bottom: 20px; }
.gr-footer__text { max-width: 40ch; margin-bottom: 24px; }
.gr-footer__title { font: 700 0.74rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line-dark); }
.gr-footer__links, .gr-footer__contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gr-footer__contacts li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.gr-footer__contacts .gr-icon { width: 18px; height: 18px; color: var(--cielo); margin-top: 2px; }
.gr-footer__party strong { color: #fff; }
.gr-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding: 22px 0 26px; border-top: 1px solid var(--line-dark); font-size: 0.85rem; color: #93a7c0; }
.gr-footer__bottom p { margin: 0; }
.gr-footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; }
.gr-footer__legal a { color: #93a7c0; }

/* --- Comparsa allo scorrimento ----------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--delay, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
  .gr-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gr-footer__brand { grid-column: 1 / -1; }
  .gr-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gr-programma { grid-template-columns: 240px minmax(0, 1fr); }
  .gr-ambito { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .gr-about, .gr-book__grid, .gr-bookpage-hero__grid, .gr-contatti, .gr-bio, .gr-programma, .gr-join, .gr-where, .gr-split { grid-template-columns: 1fr; }
  .gr-about__badge { right: 12px; top: 12px; }
  .gr-book__bg { inset: 0; }
  .gr-book::before { background: linear-gradient(180deg, rgba(10, 38, 71, 0.8), var(--navy-800) 60%); }
  .gr-book__cover { width: min(70%, 300px); }
  .gr-bookpage-hero__grid > figure { order: -1; }
  .gr-split__media { position: static; }
  .gr-split__media img { aspect-ratio: 16 / 10; }
  .gr-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gr-blog-home { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .gr-blog-home > :first-child { grid-row: auto; }
  .gr-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gr-features { grid-template-columns: 1fr; }
  .gr-bio__aside, .gr-programma__index { position: static; }
  .gr-programma__index ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .gr-timeline__item { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .gr-themes, .gr-news-grid, .gr-values { grid-template-columns: 1fr; }
  .gr-card--riga { flex-direction: column; }
  .gr-card--riga .gr-card__media { width: 100%; aspect-ratio: 16 / 10; }
  .gr-facts-list { grid-template-columns: 1fr; }
  .gr-book__facts { grid-template-columns: 1fr; }
  .gr-book__facts li { padding: 16px 0; }
  .gr-book__facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .gr-form__riga { grid-template-columns: 1fr; }
  .gr-footer__top { grid-template-columns: 1fr; gap: 36px; }
  .gr-postnav { grid-template-columns: 1fr; }
  .gr-postnav__link--next { grid-column: auto; }
  .gr-programma__index ol { grid-template-columns: 1fr; }
  .gr-accordion__body { padding-left: 22px; }
  .gr-hero__actions .gr-btn, .gr-book__actions .gr-btn { flex: 1 1 auto; }
  .gr-join__actions { width: 100%; }
  .gr-join__actions .gr-btn { width: 100%; min-width: 0; }
  .gr-route { grid-template-columns: 1fr; gap: 0; }
  .gr-route::before { left: 9px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--blue) 0 10px, transparent 10px 18px); }
  .gr-route li { text-align: left; padding: 0 0 18px 36px; }
  .gr-route li::before { left: 0; margin-left: 0; }
  .gr-author { grid-template-columns: 64px minmax(0, 1fr); }
  .gr-author img { width: 64px; height: 64px; }
  .gr-search { flex-direction: column; }
  .gr-search__icon { top: 25px; }
}

/* --- Movimento ridotto -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* --- Stampa ------------------------------------------------------------- */
@media print {
  .gr-header, .gr-footer, .gr-join, .gr-share, .gr-postnav, .gr-strip { display: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* --- Richieste di novembre 2026 --------------------------------------- */
/* Chi sono: una sola foto in primo piano accanto al testo */
.gr-about--bio { align-items: start; }
.gr-bio-photo { position: sticky; top: calc(var(--header-h) + 56px); }
.gr-bio-photo img { aspect-ratio: 1 / 1; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.gr-bio-text > p:first-child { font-size: 1.22rem; font-weight: 500; color: var(--navy-800); }
.gr-bio-closing { margin-top: 1.6em; padding: 20px 24px; border-left: 4px solid var(--blue); background: var(--cielo-50); font-weight: 600; color: var(--navy-800); }

/* Aderisci al comitato, con il logo */
.gr-join--comitato { grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 0.9fr); }
.gr-join__logo { width: clamp(130px, 14vw, 180px); aspect-ratio: 1; }
.gr-join__logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.25)); }
@media (max-width: 900px) {
  .gr-join--comitato { grid-template-columns: 1fr; }
  .gr-bio-photo { position: static; max-width: 480px; }
}

/* I progetti */
.gr-project { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(28px, 4vw, 52px); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.gr-project__cover { margin: 0; }
.gr-project__cover img { width: 100%; border-radius: 3px 8px 8px 3px; box-shadow: 0 24px 50px rgba(6, 26, 51, 0.3); }
.gr-project h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-stretch: 82%; font-weight: 800; }
.gr-project h2 a { color: var(--navy-800); text-decoration: none; }
.gr-project .gr-lead { font-style: italic; }
@media (max-width: 760px) { .gr-project { grid-template-columns: 1fr; } .gr-project__cover { max-width: 260px; } }

.gr-bio-photo--tall img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 0%; }
