/* BeNews City — design system dei siti delle città
   Impostazione da portale turistico: fondo bianco e luminoso, un colore principale come guida,
   un colore d'accento per inviti e accenti, una tinta vivace per sezione. Colori del tema e delle sezioni
   vengono dalla riga «site» del portale (il layout li scrive in :root e in [data-tone="…"]): qui i predefiniti.
   Tipografia: Inter per l'interfaccia, Inter Tight per titoli e logo, Source Serif 4 per la lettura dei testi lunghi. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/inter-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url("/fonts/inter-tight-600.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 700; font-display: swap; src: url("/fonts/inter-tight-700.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 700; font-display: swap; src: url("/fonts/inter-tight-800.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-display: swap; src: url("/fonts/source-serif-4-400.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/source-serif-4-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 500; font-display: swap; src: url("/fonts/source-serif-4-500.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap; src: url("/fonts/source-serif-4-600.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 700; font-display: swap; src: url("/fonts/source-serif-4-700.woff2") format("woff2"); }

:root {
  --white: #ffffff;
  --sand: #fff6ea;
  --sand-2: #fbe9d2;
  --aqua-50: #eaf7fa;
  --aqua-100: #d3eef4;
  --ink: #0e2a47;
  --ink-2: #3b5168;
  --ink-3: #6c7f93;
  --line: #e3e9ef;
  --sea: #0e7c9b;
  --aqua: #19a7c4;
  --navy: #0e2a47;
  --navy-2: #163a5e;
  --orange: #f47b20;
  --orange-2: #d9661a;
  --tone: var(--sea);
  --tone-soft: color-mix(in srgb, var(--tone) 12%, #fff);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;

  --r-xl: 0px;      /* hero e foto grandi: squadrati */
  --r-l: 14px;      /* card, pannelli, riquadri */
  --r: 10px;        /* elementi medi */
  --r-s: 6px;       /* etichette e dettagli */
  --r-btn: 10px;    /* pulsanti e campi */
  --r-pill: 999px;  /* menu, filtri, scorciatoie */
  --shadow: 0 1px 2px rgb(14 42 71 / .05), 0 10px 30px -14px rgb(14 42 71 / .18);
  --shadow-l: 0 2px 6px rgb(14 42 71 / .06), 0 30px 60px -24px rgb(14 42 71 / .32);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--sea); }
p a, .prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
button { font: inherit; }

.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.17em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-s); }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--ink-3); }

/* ---------- Testo ricorrente ---------- */
.kicker, .eyebrow { display: inline-flex; align-items: center; gap: .5em; font: 600 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--tone); }
.kicker .icon, .eyebrow .icon { width: 1.25em; height: 1.25em; }
.eyebrow { color: #fff; }
.display { font-size: clamp(28px, 3.4vw, 40px); text-wrap: balance; letter-spacing: -.02em; }
.display--xl { font-size: clamp(36px, 5.2vw, 60px); }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--ink-2); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: 15px; color: var(--sea); }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.byline { color: var(--ink-3); font-size: 15px; display: flex; gap: .4em; align-items: center; }

/* ---------- Pulsanti ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 22px; border-radius: var(--r-btn); border: 1px solid transparent; font: 700 15px/1 var(--sans); cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-1px); }
.button--small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.button--primary { background: var(--orange); color: #fff; }
.button--primary:hover { background: var(--orange-2); color: #fff; }
.button--dark { background: var(--navy); color: #fff; }
.button--dark:hover { background: var(--navy-2); color: #fff; }
.button--light { background: #fff; color: var(--ink); }
.button--light:hover { color: var(--sea); }
.button--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.icon-button:hover { background: var(--aqua-50); color: var(--sea); }
.icon-button .icon { width: 22px; height: 22px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); max-width: calc(var(--container) + 2 * var(--gutter)); margin: auto; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; flex: none; }
.logo { height: 46px; width: auto; display: block; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav__item { position: relative; }
.main-nav__item > a { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-radius: var(--r-pill); font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.main-nav__item > a .icon { display: none; }
.main-nav__item > a:hover, .main-nav__item > a.is-active { background: var(--aqua-50); color: var(--sea); }
.main-nav__panel { position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; width: 330px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-l); padding: 18px; opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s, translate .2s; }
.main-nav__item:hover .main-nav__panel, .main-nav__item:focus-within .main-nav__panel { opacity: 1; visibility: visible; }
.main-nav__lead { font-size: 13.5px; line-height: 1.45; color: var(--ink-3); margin-bottom: 10px; }
.main-nav__panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.main-nav__panel a { display: block; padding: 8px 10px; border-radius: var(--r-s); font-size: 15px; font-weight: 600; }
.main-nav__panel a:hover { background: var(--aqua-50); color: var(--sea); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-cta .icon { width: 1.2em; height: 1.2em; }
.menu-toggle { display: none; }
.menu-toggle .when-open { display: none; }

@media (max-width: 1100px) { .header-cta { display: none; } }
@media (max-width: 960px) {
  .menu-toggle { display: inline-grid; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto; padding: 12px var(--gutter) 40px; display: none; margin: 0; }
  body.menu-open { overflow: hidden; }
  body.menu-open .main-nav { display: block; }
  body.menu-open .menu-toggle .when-open { display: block; }
  body.menu-open .menu-toggle .when-closed { display: none; }
  .header-actions { margin-left: auto; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav__item { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .main-nav__item > a { font-size: 24px; font-weight: 700; color: var(--ink); padding: 8px 0; letter-spacing: -.02em; }
  .main-nav__item > a .icon { display: inline; width: 26px; height: 26px; color: var(--orange); }
  .main-nav__panel { position: static; translate: none; width: auto; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 4px 36px; }
  .main-nav__lead { display: none; }
  .main-nav__panel ul { grid-template-columns: 1fr 1fr; }
  .main-nav__panel a { padding: 6px 0; font-size: 15px; color: var(--ink-2); font-weight: 500; }
}

/* ---------- Cornici immagine ---------- */
.frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--aqua-50); border-radius: inherit; }
.frame > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.frame--empty { display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--tone); background: var(--tone-soft); background-image: repeating-linear-gradient(135deg, rgb(255 255 255 / .35) 0 1px, transparent 1px 12px); }
.frame__icon { width: 26%; max-width: 48px; height: auto; aspect-ratio: 1; stroke-width: 1.4; opacity: .9; }
.frame__label { font: 700 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.frame--wide { aspect-ratio: 16 / 9; border-radius: var(--r-l); }
.frame--thumb { aspect-ratio: 1; border-radius: var(--r-s); width: 100%; }
.frame--thumb .frame__label { display: none; }

/* ---------- Hero home ---------- */
.hero { position: relative; min-height: min(78vh, 700px); display: grid; align-items: center; color: #fff; overflow: hidden; background: var(--navy); }
.hero__image, .page-hero__image, .banner__image, .article-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__image { object-position: 70% 50%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 30 50 / .72) 0%, rgb(10 30 50 / .35) 55%, rgb(10 30 50 / .1) 100%), linear-gradient(0deg, rgb(10 30 50 / .55), transparent 40%); }
.hero__content { position: relative; padding-block: 96px 72px; }
.hero__title { max-width: 880px; }
.hero__title { font-size: clamp(40px, 6vw, 80px); line-height: 1; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 18px; text-wrap: balance; }
.hero__title em { font-style: normal; color: #ffd4b0; }
.hero__text { max-width: 620px; font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; opacity: .95; }
.hero-search { margin-top: 28px; max-width: 620px; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 6px 6px 6px 18px; color: var(--ink); box-shadow: var(--shadow-l); }
.hero-search .icon { color: var(--sea); width: 22px; height: 22px; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 16px var(--sans); color: var(--ink); padding: 10px 0; }
.hero-search input::placeholder { color: var(--ink-3); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill); background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .3); color: #fff; font-size: 14px; font-weight: 600; }
.hero-chips a:hover { background: #fff; color: var(--sea); }
.hero-chips .icon { width: 1.2em; height: 1.2em; }
@media (max-width: 760px) { .hero { min-height: 0; } .hero__content { padding-block: 64px 40px; } }

/* ---------- Striscia sezioni ---------- */
.section-strip { padding-block: 28px 0; }
.section-strip__inner { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.section-strip a { display: grid; gap: 4px; padding: 18px 16px 16px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--tone); transition: box-shadow .2s; }
.section-strip a:hover { box-shadow: var(--shadow); color: inherit; }
/* La tinta del colore di ogni card: --tone-soft si calcola una volta sola, in :root, con il colore del tema. */
.section-strip__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--tone) 12%, #fff); color: var(--tone); margin-bottom: 8px; }
.section-strip__icon .icon { width: 22px; height: 22px; }
.section-strip strong { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.section-strip small { color: var(--ink-3); font-size: 13px; font-weight: 500; }
@media (max-width: 960px) { .section-strip__inner { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .section-strip__inner { grid-template-columns: repeat(2, 1fr); gap: 8px; } .section-strip a { padding: 14px; } }

/* ---------- Blocchi ---------- */
.intro { padding-block: clamp(56px, 7vw, 96px) clamp(16px, 3vw, 32px); }
.intro__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; margin-top: 12px; }
.intro .display { font-size: clamp(30px, 3.8vw, 48px); }
.block { padding-block: clamp(40px, 6vw, 80px); }
.block--paper { background: var(--sand); }
.block__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.block__head > div { display: grid; gap: 8px; }
.block__head--light, .block__head--light .kicker { color: #fff; }
.block__head--light .link-arrow { color: #ffd4b0; }
.block__note { max-width: 460px; color: var(--ink-3); font-size: 15px; }
.band { padding-block: clamp(48px, 7vw, 96px); }
.band--sea { background: linear-gradient(135deg, var(--navy) 0%, #11506b 60%, var(--sea) 100%); color: #fff; }
.band--sea .kicker { color: #ffd4b0; }
@media (max-width: 760px) { .intro__grid { grid-template-columns: 1fr; } }

/* ---------- Mosaico ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 270px 270px; gap: 14px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-l); color: #fff; isolation: isolate; }
.tile:first-child { grid-column: span 2; grid-row: span 2; }
.tile:nth-child(2) { grid-column: span 2; }
.tile .frame { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.tile__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(10 30 50 / .85)); }
.tile__copy { position: absolute; inset: auto 0 0 0; padding: 22px; display: grid; gap: 4px; }
.tile__copy small { display: inline-flex; width: fit-content; padding: 4px 10px; border-radius: var(--r-pill); background: var(--orange); font: 700 11.5px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.tile__copy strong { font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -.02em; padding-right: 50px; line-height: 1.15; }
.tile:first-child .tile__copy strong { font-size: clamp(26px, 3vw, 38px); }
.tile__go { position: absolute; right: 20px; bottom: 22px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); transition: background .2s, color .2s; }
.tile:hover { color: #fff; }
.tile:hover .frame > img { transform: scale(1.04); }
.tile:hover .tile__go { background: var(--orange); color: #fff; }
@media (max-width: 900px) { .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 220px 220px; } .tile:nth-child(2) { grid-column: span 1; } .tile:first-child { grid-row: span 1; } }
@media (max-width: 560px) { .mosaic { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 240px; } .tile:first-child, .tile:nth-child(2) { grid-column: auto; } }

/* ---------- Card ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card-grid--four { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s, border-color .25s; }
.card:hover { box-shadow: var(--shadow); }
.card:hover .frame > img { transform: scale(1.04); }
.card__media { display: block; border-radius: var(--r-l) var(--r-l) 0 0; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.card__body .kicker { font-size: 12.5px; }
.card__title { font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__deck { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.card__meta { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.card__meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Itinerari ---------- */
.route-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.route-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-l); overflow: hidden; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); color: #fff; transition: transform .25s; }
.route-card:hover { color: #fff; }
.route-card .frame { aspect-ratio: 16 / 10; }
.route-card__body { display: grid; gap: 6px; padding: 18px 20px 22px; }
.route-card__body small { display: inline-flex; width: fit-content; padding: 4px 10px; border-radius: var(--r-pill); background: var(--route, var(--orange)); color: #fff; font: 700 11.5px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.route-card__body strong { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.route-card__text { font-size: 14.5px; opacity: .85; }
.route-card__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; font-weight: 600; opacity: .9; margin-top: 4px; }
.route-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.route-cards--light .route-card { background: #fff; color: var(--ink); border-color: var(--line); }
.route-cards--light .route-card:hover { color: var(--ink); box-shadow: var(--shadow-l); }
.route-cards--light .route-card__meta { color: var(--ink-3); }
@media (max-width: 900px) { .route-cards { grid-template-columns: 1fr; } .route-card { flex-direction: row; } .route-card .frame { width: 38%; aspect-ratio: auto; min-height: 160px; } }
@media (max-width: 520px) { .route-card { flex-direction: column; } .route-card .frame { width: 100%; aspect-ratio: 16 / 9; min-height: 0; } }

/* ---------- Feature / banner ---------- */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.feature__media .frame { aspect-ratio: 5 / 4; border-radius: var(--r-l); }
.feature__copy { display: grid; gap: 18px; justify-items: start; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } }
.banner { position: relative; min-height: 480px; display: grid; align-items: center; color: #fff; overflow: hidden; background: var(--navy); }
.banner__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 30 50 / .82), rgb(10 30 50 / .2) 70%); }
.banner__copy { position: relative; display: grid; gap: 16px; justify-items: start; }
.banner__copy > p:not(.eyebrow) { max-width: 520px; font-size: 18px; opacity: .92; }
.banner .display { font-size: clamp(40px, 5vw, 64px); }

/* ---------- Hero pagine ---------- */
.page-hero { position: relative; min-height: 420px; display: grid; align-items: end; color: #fff; background: var(--tone); overflow: hidden; }
.page-hero--compact { min-height: 380px; }
.page-hero--immersive { min-height: min(78vh, 720px); }
.page-hero--editorial { min-height: 0; color: var(--ink); background: var(--tone-soft); border-bottom: 1px solid var(--line); }
.page-hero--editorial .page-hero__content { padding-block: 48px 40px; }
.page-hero--editorial .eyebrow { color: var(--tone); }
.page-hero--editorial .page-hero__text { color: var(--ink-2); }
.page-hero--editorial .breadcrumbs { color: var(--ink-3); }
.page-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 30 50 / .15), rgb(10 30 50 / .8)); }
.page-hero__content { position: relative; padding-block: 80px 44px; display: grid; gap: 14px; }
.page-hero__title { font-size: clamp(36px, 5.4vw, 66px); max-width: 900px; text-wrap: balance; font-weight: 800; letter-spacing: -.03em; }
.page-hero__text { max-width: 680px; font-size: 18px; font-weight: 500; opacity: .94; }


.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; font-size: 13.5px; font-weight: 500; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin: 0 8px; opacity: .5; }
.breadcrumbs a { opacity: .85; }
.breadcrumbs a:hover { opacity: 1; }
.breadcrumbs [aria-current] { opacity: .7; }
.page-hero .breadcrumbs a:hover, .article-hero .breadcrumbs a:hover { color: #fff; }

/* ---------- Capitoli ---------- */
.chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; padding-bottom: 72px; }
.chapter { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.chapter:hover { box-shadow: var(--shadow); }
.chapter__media { position: relative; display: block; }
.chapter__media .frame { aspect-ratio: 16 / 10; border-radius: 0; }
.chapter:hover .frame > img { transform: scale(1.04); }
.chapter__number { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: var(--r-pill); background: #fff; color: var(--tone); font: 700 13px/1 var(--sans); }
.chapter__body { display: grid; gap: 10px; justify-items: start; padding: 18px 20px 22px; }
.chapter__title { font-size: 22px; letter-spacing: -.02em; }
.chapter__body > p:not(.kicker) { color: var(--ink-2); font-size: 15px; }
.chapter__links { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 2px; width: 100%; }
.chapter__links a { display: flex; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.chapter__links .icon { color: var(--tone); }

.other-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; padding-bottom: 80px; }
.other-sections--grid { padding-bottom: 0; margin-top: 16px; }
.other-sections a { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--r-l); background: var(--tone-soft); transition: transform .2s; }
.other-sections a:hover { box-shadow: var(--shadow); color: inherit; }
.other-sections a > .icon { width: 36px; height: 36px; padding: 8px; border-radius: var(--r); background: #fff; color: var(--tone); }
.other-sections span { display: grid; }
.other-sections small { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.other-sections strong { font-size: 16px; font-weight: 700; }

/* ---------- Sottosezione ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 20; background: rgb(255 255 255 / .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav__inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 8px 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.subnav a:hover { background: var(--tone-soft); color: var(--tone); }
.subnav a.is-active { background: var(--tone); color: #fff; }
.spotlight { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(40px, 6vw, 72px); }
.spotlight__media { border-radius: var(--r-l); overflow: hidden; display: block; }
.spotlight__media .frame { aspect-ratio: 3 / 2; }
.spotlight__body { display: grid; gap: 16px; justify-items: start; }
@media (max-width: 820px) { .spotlight { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; }
.chip span { color: var(--ink-3); font-weight: 500; }
.chip:hover { border-color: var(--tone); color: var(--tone); }
.group + .group { margin-top: 56px; }
.group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.group__head h2 { font-size: clamp(22px, 2.4vw, 28px); }
.group__head span { color: var(--ink-3); font-size: 14px; font-weight: 500; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.link-list a { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 10px; padding-right: 16px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); transition: box-shadow .2s; }
.link-list a:hover { box-shadow: var(--shadow); color: inherit; }
.link-list a > .icon { color: var(--tone); }
.link-list span { display: grid; gap: 2px; }
.link-list small { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--tone); font-weight: 700; }
.link-list strong { font-size: 16px; font-weight: 700; line-height: 1.3; }
.link-list--compact { grid-template-columns: 1fr; }

/* ---------- Articolo ---------- */
.preview-bar { background: #fff3cd; color: #6b4e00; padding: 10px var(--gutter); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.article-hero { position: relative; min-height: min(76vh, 660px); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--tone); }
.article-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 30 50 / .1) 30%, rgb(10 30 50 / .85)); }
.article-hero__content { position: relative; padding-block: 120px 48px; display: grid; gap: 14px; }
.article-hero__title { font-size: clamp(40px, 6.5vw, 84px); line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.article-hero__deck { max-width: 720px; font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; opacity: .94; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; font-weight: 500; color: var(--ink-3); }
.article-meta span { display: inline-flex; gap: 7px; align-items: center; }
.article-meta--light { color: rgb(255 255 255 / .85); }
.article-head { display: grid; gap: 16px; justify-items: start; padding-top: clamp(32px, 5vw, 56px); padding-bottom: 28px; max-width: 920px; margin-left: max(0px, calc((100% - var(--container)) / 2 - var(--gutter))); }
.article-head .breadcrumbs { color: var(--ink-3); }
.article-head__title { font-size: clamp(32px, 4.6vw, 56px); text-wrap: balance; letter-spacing: -.025em; }
.article-head__deck { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 760px; font-weight: 500; }
.article-figure { margin: 0 auto 8px; }
.article-figure--doc .frame { aspect-ratio: 16 / 8; background: radial-gradient(circle at 50% 40%, #fffdf9, #f1e6d5); }
.article-figure--doc .frame > img { object-fit: contain; padding: 6%; }
.credit { display: flex; gap: 6px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 24px 0 0; }
.facts > div { padding: 14px 18px; border-radius: var(--r); background: var(--tone-soft); }
.facts dt { font: 700 12px/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--tone); display: flex; gap: 6px; align-items: center; }
.facts dd { margin: 6px 0 0; font-size: 17px; font-weight: 700; }
.facts--route > div { background: color-mix(in srgb, var(--route) 12%, #fff); }
.facts--route dt { color: var(--route); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); padding-block: 40px 64px; }
.article-main { min-width: 0; max-width: 740px; }
.article-aside__sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 28px; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } .article-aside__sticky { position: static; } .toc { display: none; } }

.practical { margin: 0 0 28px; border: 1px solid var(--line); border-radius: var(--r-l); background: #fff; overflow: hidden; }
.practical h2 { display: flex; gap: 8px; align-items: center; font: 700 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--tone); padding: 14px 18px; background: var(--tone-soft); }
.practical dl { margin: 0; }
.practical dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.practical dt { font-weight: 700; color: var(--ink-2); }
.practical dd { margin: 0; }
.practical__note { padding: 10px 18px 14px; font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line); }
@media (max-width: 560px) { .practical dl > div { grid-template-columns: 1fr; gap: 2px; } }
.parent-link, .document-link { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-bottom: 28px; padding: 14px 18px; border-radius: var(--r); background: var(--tone-soft); }
.parent-link > .icon:first-child, .document-link > .icon:first-child { width: 26px; height: 26px; color: var(--tone); }
.parent-link span, .document-link span { display: grid; }
.parent-link small, .document-link small { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; }
.parent-link strong, .document-link strong { font-size: 16px; font-weight: 700; line-height: 1.3; }
.parent-link:hover, .document-link:hover { color: inherit; box-shadow: var(--shadow); }

.toc__title { font: 700 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--ink-2); }
.toc li.toc__level-3 a { padding-left: 26px; font-size: 13.5px; }
.toc li a:hover, .toc li a.is-current { color: var(--tone); border-left-color: var(--tone); font-weight: 700; }
.aside-links { display: grid; gap: 4px; }
.aside-links a { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 8px; margin-inline: -8px; border-radius: var(--r-s); }
.aside-links a:hover { background: var(--tone-soft); color: inherit; }
.aside-links span { display: grid; gap: 1px; }
.aside-links small { font-size: 11px; color: var(--tone); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.aside-links strong { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.aside-back { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 700; color: var(--sea); }

/* ---------- Prosa ---------- */
.prose { font: 400 19px/1.7 var(--serif); color: #1f3147; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-family: var(--display); font-size: clamp(24px, 2.4vw, 30px); margin-top: 1.9em; }
.prose h3 { font-family: var(--display); font-size: 21px; margin-top: 1.6em; }
.prose h4 { font: 700 13px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--tone); margin-top: 1.6em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose a { color: var(--sea); }
.prose a.auto-link { text-decoration-style: dotted; text-decoration-color: var(--orange); }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--tone); }
.prose .story-lead { font-size: 1.18em; line-height: 1.6; color: var(--ink); font-weight: 500; }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2em; }
.prose blockquote, .prose .historic-quotation { margin-inline: 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--orange); font-style: italic; color: var(--ink-2); }
.prose figure { margin-inline: 0; }
.prose .story-inline-image img, .prose figure img { width: 100%; border-radius: var(--r-l); }
.prose figcaption { font: 500 14px/1.45 var(--sans); color: var(--ink-3); margin-top: 8px; }
.prose .image-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.prose .image-pair img { aspect-ratio: 4 / 3; object-fit: cover; }
.prose .chronology-list { border-left: 2px solid var(--line); margin-left: 8px; padding-left: 0; }
.prose .chronology-entry { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0 12px 24px; }
.prose .chronology-entry + .chronology-entry { margin-top: 0; }
.prose .chronology-list .chronology-entry::before { content: ""; position: absolute; left: -7px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--tone); }
.prose .chronology-entry time { font: 700 17px/1.4 var(--sans); color: var(--tone); }
.prose .chronology-entry p { margin: 0; }
.prose .chronology-note { font-size: .92em; color: var(--ink-3); font-style: italic; }
.prose .glossary-entry { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 6px 20px; padding: 12px 0; margin: 0; border-bottom: 1px solid var(--line); }
.prose .glossary-entry + .glossary-entry { margin-top: 0; }
.prose .glossary-entry dt { font-family: var(--sans); font-weight: 700; color: var(--tone); }
.prose .glossary-entry dd { margin: 0; }
.prose .latin-inscription { background: var(--sand); border-radius: var(--r-l); padding: 22px 26px; }
.prose .latin-inscription blockquote { border: 0; padding: 0; font: 700 14px/1.7 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); font-style: normal; }
.prose .context-box { background: var(--tone-soft); border-radius: var(--r); padding: 18px 22px; font: 15.5px/1.6 var(--sans); }
.prose .context-box > span:first-child { display: block; font: 700 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--tone); margin-bottom: 8px; }
.prose .context-box ul { margin: 0; }
.prose .story-list { list-style: none; padding: 0; }
.prose .story-list li { position: relative; padding-left: 22px; }
.prose .story-list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.prose table, .prose .editorial-table { width: 100%; border-collapse: collapse; font: 15px/1.45 var(--sans); display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--aqua-50); font-weight: 700; }
.prose details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; font-size: 16px; }
.prose summary { cursor: pointer; font: 700 15px/1.4 var(--sans); color: var(--sea); }
.prose details[open] summary { margin-bottom: 12px; }
.prose .document-facsimile img { box-shadow: var(--shadow); }
.prose .visit-sequence { list-style: none; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.prose .visit-sequence li { counter-increment: step; background: var(--tone-soft); border-radius: var(--r); padding: 16px; font: 14.5px/1.5 var(--sans); margin: 0; }
.prose .visit-sequence li::before { content: counter(step, decimal-leading-zero); display: block; font: 700 24px/1 var(--sans); color: var(--tone); margin-bottom: 8px; }
.prose .visit-sequence strong { display: block; font-size: 16px; margin-bottom: 4px; }
@media (max-width: 560px) {
  .prose { font-size: 18px; }
  .prose .chronology-entry { grid-template-columns: 1fr; gap: 2px; }
  .prose .glossary-entry, .prose .image-pair { grid-template-columns: 1fr; }
}

.deep-dives { margin: 40px 0 0; border: 1px solid var(--line); border-left: 4px solid var(--tone); background: #fff; padding: 18px 22px 10px; }
.deep-dives__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.deep-dives__head h2 { font-size: 22px; margin-top: 4px; }
.deep-dives__head .muted { font-size: 13px; }
.deep-dives__list { list-style: none; margin: 0; padding: 0; }
.deep-dives__list a { display: grid; grid-template-columns: 30px 1fr auto; gap: 14px; align-items: center; padding: 11px 4px; border-top: 1px solid var(--line); }
.deep-dives__list a:hover { background: var(--tone-soft); color: inherit; }
.deep-dives__list a > .icon { color: var(--tone); }
.deep-dives__n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tone); color: #fff; font: 700 13px/1 var(--sans); }
.deep-dives__list strong { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.deep-dives__list small { display: block; color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }
.spotlight--text { grid-template-columns: 1fr; background: var(--tone-soft); padding: 28px 32px; margin-top: clamp(40px, 6vw, 72px); }
.spotlight--text .spotlight__body { max-width: 760px; }
.children { margin-top: 48px; }
.children__title { display: flex; gap: 10px; align-items: center; font-size: 22px; margin-bottom: 16px; }
.children__title .icon { color: var(--tone); }
.sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); display: grid; gap: 8px; }
.sources h2 { display: flex; gap: 8px; align-items: center; font: 700 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 4px; }

/* ---------- Galleria e mappa ---------- */
.gallery-section, .map-section { padding-block: 24px 64px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery__item { display: block; border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery__item:first-child .frame { aspect-ratio: auto; height: 100%; }
.gallery__item:hover .frame > img { transform: scale(1.04); }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }
.lightbox { position: fixed; inset: 0; z-index: 200; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(8 20 32 / .94); color: #fff; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lightbox p { padding: 14px 20px 22px; font-size: 15px; opacity: .85; text-align: center; }
.lightbox button { position: absolute; color: #fff; background: rgb(255 255 255 / .12); }
.lightbox button:hover { background: rgb(255 255 255 / .25); color: #fff; }
.lightbox [data-close] { top: 16px; right: 16px; }
.lightbox [data-prev] { left: 16px; top: 50%; }
.lightbox [data-next] { right: 16px; top: 50%; }

.leaflet-map { height: 440px; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: var(--aqua-50); z-index: 0; }
.leaflet-map--tall { height: 100%; min-height: 520px; }
.map-marker { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font: 700 14px/1 var(--sans); border: 3px solid #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .3); }
.map-embed { display: grid; place-items: center; align-content: center; gap: 12px; min-height: 380px; border-radius: var(--r-l); background: linear-gradient(135deg, var(--aqua-50), var(--aqua-100)); text-align: center; padding: 24px; margin-bottom: 14px; color: var(--ink-3); font-size: 14px; }
.map-embed iframe { width: 100%; height: 460px; border: 0; border-radius: var(--r-l); }
.map-embed.is-loaded { padding: 0; display: block; min-height: 0; }
.stop-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 20px; }
.stop-list li { display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; align-items: baseline; }
.stop-list small { grid-column: 2; color: var(--ink-3); font-size: 13px; }
.stop-list__n { grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tone); color: #fff; font: 700 13px/1 var(--sans); }

/* ---------- Itinerario ---------- */
.itinerary { padding-block: 40px 64px; }
.itinerary__intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; margin-bottom: 40px; }
.tip { display: grid; grid-template-columns: auto 1fr; gap: 12px; background: color-mix(in srgb, var(--route) 12%, #fff); border-radius: var(--r); padding: 18px; font-size: 15px; }
.tip .icon { color: var(--route); width: 22px; height: 22px; }
.tip strong { display: block; margin-bottom: 4px; }
.itinerary__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.itinerary__map { position: sticky; top: calc(var(--header-h) + 20px); height: calc(100vh - var(--header-h) - 40px); max-height: 720px; }
.stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.stop { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-bottom: 32px; position: relative; }
.stop:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: color-mix(in srgb, var(--route) 30%, transparent); }
.stop__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--route); color: #fff; font: 700 18px/1 var(--sans); }
.stop > div { display: grid; gap: 8px; justify-items: start; padding-top: 6px; }
.stop__title { font-size: 22px; }
.stop__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-3); font-size: 14px; font-weight: 500; align-items: center; }
.stop__meta span { display: inline-flex; align-items: center; gap: 6px; }
.note { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-3); margin-top: 8px; }
@media (max-width: 900px) { .itinerary__intro, .itinerary__grid { grid-template-columns: 1fr; } .itinerary__map { position: static; height: 420px; } }

/* ---------- Ricerca, indice, crediti ---------- */
.search-head { padding-top: clamp(40px, 6vw, 80px); display: grid; gap: 16px; justify-items: start; }
.search-form { display: flex; gap: 10px; width: 100%; max-width: 760px; margin-top: 8px; }
.search-form input { flex: 1; min-width: 0; height: 54px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font: 500 16px var(--sans); color: var(--ink); }
.search-form input:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 4px rgb(14 124 155 / .14); }
.search-form .button { min-height: 56px; }
.results-count { margin-bottom: 20px; color: var(--ink-3); }
.empty-state { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 48px 0; color: var(--ink-2); }
.empty-state > .icon { width: 48px; height: 48px; color: var(--tone); }
.empty-state--page { padding-block: 100px; }
.empty-state .search-form { max-width: 520px; }
.site-index { padding-block: 32px 80px; display: grid; gap: 56px; }
.site-index__section > h2 { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--tone); }
.site-index__section > h2 .icon { color: var(--tone); }
.site-index__grid { columns: 3 300px; column-gap: 40px; }
.site-index__group { break-inside: avoid; margin-bottom: 28px; }
.site-index__group h3 { font-size: 17px; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; }
.site-index__group h3 span { font: 600 13px/1.6 var(--sans); color: var(--ink-3); }
.site-index__group h3 a { color: var(--tone); }
.site-index__group ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.site-index__group li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.site-index__group li.is-child { padding-left: 16px; font-size: 13.5px; }
.credits-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 16px; padding-block: 32px 80px; }
.credit-card { display: grid; grid-template-columns: 140px 1fr; gap: 16px; background: #fff; border-radius: var(--r-l); padding: 12px; border: 1px solid var(--line); font-size: 14px; }
.credit-card .frame { border-radius: var(--r-s); }
.credit-card h2 { font-size: 17px; margin-bottom: 6px; }
.credit-card p { display: flex; gap: 6px; align-items: center; margin-top: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgb(255 255 255 / .8); }
.site-footer__inner { max-width: calc(var(--container) + 2 * var(--gutter)); margin: auto; padding: 56px var(--gutter) 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 48px; }
.site-footer__brand { display: grid; gap: 16px; align-content: start; font-size: 14.5px; }
.site-footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.site-footer__nav ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: #ffd4b0; }
.site-footer__title { font-size: 16px; font-weight: 700; color: #fff !important; }
.site-footer__bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .14); font-size: 13.5px; }
.site-footer__bottom span { margin-right: auto; }
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr; } .site-footer__nav { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .article-aside, .subnav, .map-section, .gallery-section { display: none !important; } }
