/*
Theme Name: KOG 2027
Theme URI: https://www.kog.it/
Author: KOG — No Ordinary Bikers
Description: Tema WordPress personalizzato per il nuovo sito KOG, basato su Gutenberg e senza page builder.
Version: 1.0.96
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: kog-2027
*/

:root {
      color-scheme: light;
      --ink: #172126;
      --ink-soft: #46545a;
      --paper: #f5f4f0;
      --white: #fff;
      --line: #d9dedc;
      --kog: #159fba;
      --kog-dark: #087d97;
      --sand: #e8e4dc;
      --serif: Georgia, "Times New Roman", serif;
      --sans: "Avenir Next", Avenir, Inter, "Segoe UI", sans-serif;
      --text-body: 18px;
      --text-small: 16px;
      --text-label: 14px;
      --button-height: 54px;
      --button-padding: 23px;
      --button-radius: 2px;
      --button-size: 14px;
      --button-weight: 750;
      --button-tracking: .07em;
      --wrap: 1240px;
      --gutter: clamp(22px, 5vw, 76px);
      --section-space: clamp(80px, 8.2vw, 116px);
      --section-head-gap: clamp(28px, 3vw, 40px);
      --shadow: 0 20px 60px rgb(23 33 38 / 10%);
    }
    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; scroll-padding-top: 88px; }
    body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--text-body)/1.65 var(--sans); font-kerning: normal; font-optical-sizing: auto; font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0, "dlig" 0; -webkit-font-smoothing: antialiased; }
    body *, body *::before, body *::after { font-variant-ligatures: none !important; font-feature-settings: "liga" 0, "clig" 0, "dlig" 0 !important; }
    a { color: inherit; }
    img { max-width: 100%; display: block; }
    .wp-site-blocks, .content-page, .content-page__body, .wrap, .content-page__body > * { min-width: 0; }
    .content-page__body img, .content-page__body video, .content-page__body iframe, .content-page__body table, .content-page__body figure { max-width: 100%; }
    .content-page__body, .content-page__body p, .content-page__body li, .content-page__body a { overflow-wrap: anywhere; }
    button { color: inherit; font: inherit; }
    :focus-visible { outline: 3px solid var(--kog); outline-offset: 4px; }
    .skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 16px; background: var(--white); transform: translateY(-160%); }
    .skip-link:focus { transform: none; }
    .wrap { width: min(calc(100% - 2 * var(--gutter)), var(--wrap)); margin-inline: auto; }
    .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--kog-dark); font-size: var(--text-label); font-weight: 750; letter-spacing: .11em; line-height: 1.4; text-transform: uppercase; }
    .eyebrow::before { width: 24px; height: 2px; background: currentColor; content: ""; }
    .eyebrow--light { color: #a9e0e9; }
    .section-title { max-width: 760px; margin: 0; font-size: clamp(40px, 5.2vw, 72px); font-weight: 600; letter-spacing: -.055em; line-height: 1.04; }
    .section-copy { max-width: 650px; color: var(--ink-soft); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.65; }
    .text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 15px; font-weight: 750; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
    .text-link::after { width: 26px; height: 1px; background: var(--kog); content: ""; transition: width .2s ease; }
    .text-link:hover::after { width: 42px; }
    .values__head > .text-link::after, .events__head > .text-link::after { width: auto; height: auto; background: none; content: "→"; font-size: 1.25em; line-height: 1; transition: transform .2s ease; }
    .values__head > .text-link:hover::after, .events__head > .text-link:hover::after { width: auto; transform: translateX(4px); }
    .button { display: inline-flex; min-height: var(--button-height); align-items: center; justify-content: center; gap: 10px; padding: 0 var(--button-padding); border: 1px solid transparent; border-radius: var(--button-radius); background: var(--kog); color: #062d35; font-size: var(--button-size); font-weight: var(--button-weight); letter-spacing: var(--button-tracking); line-height: 1.2; text-decoration: none; text-transform: uppercase; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
    .button:hover { background: #32b4cb; transform: translateY(-2px); }
    .button--outline { border-color: rgb(255 255 255 / 65%); background: transparent; color: white; }
    .button--outline:hover { border-color: white; background: white; color: var(--ink); }
    .button--dark { background: var(--ink); color: white; }
    .button--dark:hover { background: #29373d; }

    /* Gutenberg buttons: the class belongs to the block wrapper, while the
       clickable surface is its inner link. Keep the wrapper visually neutral. */
    .wp-block-button { display: inline-flex; min-height: 0; align-items: stretch; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; letter-spacing: normal; text-decoration: none; text-transform: none; box-shadow: none; transform: none; transition: none; }
    .wp-block-button:hover { background: transparent; transform: none; }
    .wp-block-button > .wp-block-button__link { display: inline-flex; min-height: var(--button-height); align-items: center; justify-content: center; gap: 10px; padding: 0 var(--button-padding); border: 1px solid transparent; border-radius: var(--button-radius); background: var(--kog); color: #062d35; font: var(--button-weight) var(--button-size)/1.2 var(--sans); letter-spacing: var(--button-tracking); text-decoration: none; text-transform: uppercase; box-shadow: none; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
    .wp-block-button > .wp-block-button__link:hover { border-color: transparent; background: #32b4cb; color: #062d35; transform: translateY(-2px); }
    .wp-block-button.button--outline > .wp-block-button__link { border-color: rgb(255 255 255 / 65%); background: transparent; color: white; }
    .wp-block-button.button--outline > .wp-block-button__link:hover { border-color: white; background: white; color: var(--ink); }
    .wp-block-button.button--dark > .wp-block-button__link { background: var(--ink); color: white; }
    .wp-block-button.button--dark > .wp-block-button__link:hover { background: #29373d; color: white; }

    /* Header */
    /* WordPress wraps the header part in a template-part div. Make that full
       page-level wrapper sticky; a sticky header inside it can only stick for
       the wrapper's own 80px height and disappears as soon as the page scrolls. */
    .wp-site-blocks > .wp-block-template-part:first-child { position: sticky; z-index: 30; top: 0; }
    .site-header { position: relative; top: auto; display: flex; min-height: 78px; align-items: center; border-bottom: 1px solid rgb(23 33 38 / 8%); background: rgb(245 244 240 / 96%); backdrop-filter: blur(12px); }
    .header-inner { display: flex; width: min(calc(100% - 2 * var(--gutter)), 1420px); align-items: center; justify-content: space-between; gap: 28px; margin-inline: auto; }
    .brand { display: inline-flex; flex: 0 0 auto; align-items: center; width: 145px; }
    .brand img { width: 100%; height: auto; }
    .brand__logo--light { display: none; }
    .header-navigation { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; min-width: 0; }
    .main-nav { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: clamp(10px, 1vw, 18px); }
    .main-nav .menu { display: flex; align-items: center; gap: clamp(12px, 1.25vw, 20px); margin: 0; padding: 0; list-style: none; }
    .main-nav .menu > li { position: relative; list-style: none; }
    .main-nav a, .header-tools a { color: #39464a; font-size: 18px; font-weight: 650; text-decoration: none; }
    .main-nav a:hover, .header-tools a:hover { color: var(--kog-dark); }
    .main-nav .menu > li.menu-item-has-children > a { display: inline-flex; align-items: center; gap: 8px; }
    .main-nav .menu > li.menu-item-has-children > a::after { width: 7px; height: 7px; flex: 0 0 7px; margin: -4px 0 0 1px; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; content: ""; transform: rotate(45deg); transition: transform .2s ease, margin .2s ease; }
    @media (min-width: 1121px) {
      .main-nav .menu > li.menu-item-has-children:hover > a::after, .main-nav .menu > li.menu-item-has-children:focus-within > a::after { margin-top: 4px; transform: rotate(225deg); }
    }
    .main-nav .sub-menu { position: absolute; z-index: 50; top: 100%; left: -14px; display: none; min-width: 260px; margin: 0; padding: 10px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); list-style: none; }
    .main-nav .menu-item-has-children:hover > .sub-menu, .main-nav .menu-item-has-children:focus-within > .sub-menu { display: block; }
    .main-nav .sub-menu a { display: block; padding: 11px 13px; color: var(--ink-soft); font-size: 16px; font-weight: 600; white-space: nowrap; }
    .main-nav .sub-menu a:hover { background: #f1f5f4; color: var(--kog-dark); }
    .header-tools { display: flex; align-items: center; gap: 16px; }
    .header-tools .wp-block-button.button { min-height: 0; padding: 0; border: 0; background: transparent; }
    .header-tools .wp-block-button .wp-block-button__link { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 19px; border: 1px solid var(--kog); border-radius: var(--button-radius); background: var(--kog); color: #062d35 !important; font-size: var(--button-size); font-weight: var(--button-weight); letter-spacing: var(--button-tracking); line-height: 1.2; text-decoration: none; text-transform: uppercase; }
    .header-tools .wp-block-button .wp-block-button__link:hover { border-color: #36b8cf; background: #36b8cf; }
    .menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); background: transparent; cursor: pointer; }
    .menu-toggle span, .menu-toggle::before, .menu-toggle::after { position: absolute; width: 18px; height: 1.5px; background: var(--ink); content: ""; transition: transform .2s ease; }
    .menu-toggle::before { transform: translateY(-6px); }
    .menu-toggle::after { transform: translateY(6px); }
    .menu-toggle[aria-expanded="true"] span { opacity: 0; }
    .menu-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
    .menu-toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }

    /* Hero */
    .hero { position: relative; min-height: min(760px, calc(100svh - 78px)); display: flex; overflow: hidden; align-items: center; background: #162127; color: white; }
    .hero__photo, .hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
    .hero .wp-block-cover__inner-container { width: 100%; }
    .hero__photo { z-index: 0; object-fit: cover; object-position: center 58%; }
    .hero__shade { z-index: 0; background: linear-gradient(90deg, rgb(11 19 23 / 72%) 0%, rgb(11 19 23 / 48%) 42%, rgb(11 19 23 / 8%) 82%), linear-gradient(0deg, rgb(11 19 23 / 26%), transparent 44%); }
    .hero__inner { position: relative; z-index: 1; width: min(calc(100% - 2 * var(--gutter)), 1420px); margin-inline: auto; padding-block: 82px 100px; }
    .hero__copy { max-width: 720px; }
    .hero__title { max-width: 720px; margin: 0; font-size: clamp(50px, 6.5vw, 96px); font-weight: 600; letter-spacing: -.065em; line-height: .99; }
    .hero__title em { color: #a7e4ed; font-family: var(--serif); font-weight: 400; }
    .hero__desc { max-width: 560px; margin: 25px 0 30px; color: rgb(255 255 255 / 88%); font-size: clamp(18px, 1.55vw, 21px); line-height: 1.6; }
    .hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
    .hero__note { display: flex; align-items: center; gap: 12px; margin-top: 38px; color: rgb(255 255 255 / 78%); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
    .hero__note::before { width: 40px; height: 1px; background: var(--kog); content: ""; }
    .hero__scroll { position: absolute; right: var(--gutter); bottom: 30px; display: flex; align-items: center; gap: 12px; color: white; font-size: 13px; letter-spacing: .13em; text-decoration: none; text-transform: uppercase; writing-mode: vertical-rl; }
    .hero__scroll::after { width: 1px; height: 42px; background: var(--kog); content: ""; }

    /* Introduction */
    /* Each section contributes half of the shared spacing token, so two
       neighboring sections create one consistent gap instead of doubling it. */
    .intro, .values, .events, .story, .gallery-preview, .bikes, .journal, .join { padding-block: calc(var(--section-space) / 2); }
    #il-kog, #valori, #raduni, #storia, #gallery, #le-bmw, #blog, #iscriviti { margin-block: 0 !important; }
    .intro__grid { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); align-items: start; gap: clamp(32px, 4vw, 64px); }
    .wp-block-group.intro.wrap > .intro__grid { width: 100%; max-width: none; margin-inline: 0; }
    .wp-block-group.intro.wrap > .wp-block-html { width: 100%; max-width: none; margin-inline: 0; }
    .intro__aside { padding: 10px 0 16px 24px; border-left: 2px solid var(--kog); }
    .intro__aside > p:not(.eyebrow) { max-width: 360px; margin: 16px 0 0; color: var(--ink-soft); font-family: var(--sans); font-size: clamp(21px, 1.8vw, 25px); font-weight: 550; letter-spacing: -.025em; line-height: 1.45; }
    .intro__main .section-title { max-width: 840px; font-size: clamp(36px, 3.6vw, 50px); line-height: 1.1; text-wrap: balance; }
    .intro__main .section-copy { margin: 24px 0 30px; }
    .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 70px; }
    #il-kog .facts { position: relative; left: 50%; width: min(calc(100vw - 2 * var(--gutter)), var(--wrap)) !important; max-width: none !important; margin-inline: 0 !important; transform: translateX(-50%); }
    .fact { position: relative; display: grid; grid-template-rows: 52px 54px 72px; align-content: end; min-height: 290px; overflow: hidden; padding: clamp(23px, 3vw, 34px); isolation: isolate; background: #203239; color: white; box-shadow: 0 8px 22px rgb(23 33 38 / 8%); transition: transform .25s ease, box-shadow .25s ease; }
    .fact:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
    .fact img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
    .fact:hover img { transform: scale(1.045); }
    .fact::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgb(12 22 27 / 8%) 20%, rgb(12 22 27 / 83%) 100%); content: ""; }
    .fact::after { position: absolute; z-index: -1; top: 18px; right: 18px; width: 42px; height: 42px; border: 1px solid rgb(255 255 255 / 50%); border-radius: 50%; content: "↗"; display: grid; place-items: center; color: white; font-size: 16px; opacity: .85; }
    .fact__index { display: block; margin: 0; color: #a7e4ed; font-size: clamp(14px, 1.25vw, 16px); font-weight: 800; letter-spacing: .1em; line-height: 1.5; text-transform: uppercase; }
    .fact strong { display: block; color: white; font-size: clamp(34px, 3.5vw, 46px); font-weight: 600; letter-spacing: -.05em; line-height: 1.06; }
    .fact span:last-child { max-width: 360px; margin: 0; color: rgb(255 255 255 / 92%); font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; }

    /* Values */
    .values { background: #e9e7e1; }
    .values__head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: var(--section-head-gap); }
    .values__head .section-title { max-width: 650px; }
    .values__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
    .value-card { position: relative; display: flex; min-height: 410px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(23px, 3vw, 34px); isolation: isolate; background: #203239; color: white; box-shadow: 0 8px 22px rgb(23 33 38 / 8%); transition: transform .25s ease, box-shadow .25s ease; }
    .value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
    .value-card img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
    .value-card:hover img { transform: scale(1.055); }
    .value-card::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgb(10 19 23 / 28%) 0%, rgb(10 19 23 / 8%) 35%, rgb(10 19 23 / 86%) 100%); content: ""; }
    .value-card::after { position: absolute; z-index: -1; top: -70px; right: -64px; width: 190px; height: 190px; border: 1px solid rgb(255 255 255 / 38%); border-radius: 50%; box-shadow: 0 0 0 24px rgb(255 255 255 / 7%), 0 0 0 50px rgb(255 255 255 / 5%); content: ""; transition: transform .4s ease; }
    .value-card:hover::after { transform: scale(1.12); }
    .value-card__number { position: relative; display: inline-flex; align-self: start; align-items: center; min-height: 38px; margin: 0; padding: 8px 12px; border: 1px solid rgb(255 255 255 / 42%); background: rgb(13 34 40 / 38%); color: white; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(9px); }
    .value-card__copy { position: relative; z-index: 1; }
    .value-card h3 { max-width: 340px; margin: 0 0 12px; color: white; font-size: clamp(25px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.04em; line-height: 1.08; }
    .value-card p { max-width: 370px; margin: 0; color: rgb(255 255 255 / 90%); font-size: 17px; line-height: 1.6; }

    /* Events */
    .events { position: relative; left: 50%; width: min(calc(100vw - 2 * var(--gutter)), 1600px); max-width: none; margin-inline: 0; transform: translateX(-50%); }
    .events__head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: var(--section-head-gap); }
    .events__head .section-copy { margin: 16px 0 0; }
    .event-feature { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.35fr); align-items: stretch; overflow: hidden; border: 1px solid rgb(23 33 38 / 10%); border-radius: 4px; background: #18252a; color: white; box-shadow: 0 22px 60px rgb(23 33 38 / 13%); }
    .event-feature__visual { position: relative; min-height: 365px; overflow: hidden; background: #263b3f; }
    .event-feature__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 47%; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
    .event-feature:hover .event-feature__visual img { transform: scale(1.045); }
    .event-feature__visual::after { position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, rgb(10 18 22 / 78%), transparent); content: ""; }
    .event-feature__caption { position: absolute; z-index: 1; right: 18px; bottom: 17px; left: 18px; color: rgb(255 255 255 / 94%); font-size: 14px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
    .event-feature__content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(28px, 4.2vw, 58px); }
    .event-feature__topline { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 21px; }
    .event-date { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1px solid rgb(255 255 255 / 25%); border-radius: 3px; background: rgb(255 255 255 / 7%); }
    .event-date__day { font-size: 40px; font-weight: 600; letter-spacing: -.08em; line-height: .9; }
    .event-date__month { color: #a7e4ed; font-size: 14px; font-weight: 800; letter-spacing: .12em; line-height: 1.45; text-transform: uppercase; }
    .event-feature__label { margin: 0; color: #a7e4ed; font-size: 14px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
    .event-feature h3 { max-width: 700px; margin: 0; font-size: clamp(30px, 3.3vw, 44px); font-weight: 600; letter-spacing: -.045em; line-height: 1.1; }
    .event-feature__details { margin: 16px 0 26px; color: rgb(255 255 255 / 82%); font-size: 16px; line-height: 1.65; }
    .event-feature__content > .button { margin-top: 2px; }
    .event-registration-status { display: inline-flex; width: fit-content; max-width: calc(100% - 28px); align-items: center; margin: 0; padding: 4px 10px; border: 1px solid transparent; border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: .04em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; }
    .event-registration-status--open { border-color: #b9dfc4; background: #e7f5eb; color: #176b36; }
    .event-registration-status--not_open { border-color: #f1c5c1; background: #fff0ee; color: #b42318; }
    .event-feature__visual > .event-registration-status, .content-page__featured > .event-registration-status { position: absolute; z-index: 2; top: 12px; right: 12px; }
    .event-detail-meta + .event-registration-status { margin: 8px 0 28px; }
    .events__foot { display: flex; justify-content: space-between; gap: 24px; margin-top: 20px; color: var(--ink-soft); font-size: 14px; }
    .events__foot a { color: var(--kog-dark); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }

    /* Story */
    .story { position: relative; overflow: hidden; background: #172126; color: white; }
    .story::after { position: absolute; top: -80px; right: -80px; width: 440px; height: 440px; border: 1px solid rgb(167 228 237 / 18%); border-radius: 50%; box-shadow: 0 0 0 70px rgb(167 228 237 / 3%), 0 0 0 140px rgb(167 228 237 / 2%); content: ""; }
    .story__grid { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 10vw; }
    .story__mark { position: relative; display: flex; min-height: 360px; align-items: end; justify-content: start; overflow: hidden; border: 1px solid rgb(255 255 255 / 18%); background: #203239; }
    .story__mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; }
    .story__mark::after { position: absolute; inset: 35% 0 0; background: linear-gradient(0deg, rgb(10 18 22 / 76%), transparent); content: ""; }
    .story__mark span { position: relative; z-index: 1; padding: 0 25px 24px; color: white; font-family: var(--serif); font-size: clamp(54px, 7vw, 84px); font-weight: 400; letter-spacing: -.08em; line-height: .8; }
    .story .section-title { max-width: 570px; }
    .story .section-copy { margin: 23px 0 30px; color: rgb(255 255 255 / 73%); }
    .story__links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
    .story .text-link { color: white; }
    .story__links > .text-link { min-height: 54px; justify-content: center; padding: 0 23px; border: 1px solid rgb(255 255 255 / 65%); border-radius: 2px; background: transparent; transition: background .2s ease, border-color .2s ease, color .2s ease; }
    .story__links > .text-link::after, .story__links > .text-link:hover::after { width: auto; height: auto; background: none; content: "↗"; font-size: 18px; }
    .story__links > .text-link:hover { border-color: white; background: white; color: var(--ink); }

    /* Photojournal from the KOG Gallery */
    .gallery-preview__head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: var(--section-head-gap); }
    .gallery-preview__head .section-title { max-width: 800px; }
    .gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .gallery-card { position: relative; min-height: 255px; overflow: hidden; background: #203239; }
    .gallery-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
    .gallery-card:hover img { transform: scale(1.035); }
    .gallery-card::after { position: absolute; inset: 42% 0 0; background: linear-gradient(0deg, rgb(10 18 22 / 82%), transparent); content: ""; }
    .gallery-card__caption { position: absolute; z-index: 1; right: 18px; bottom: 17px; left: 18px; color: white; font-size: 16px; font-weight: 700; }
    .gallery-card__caption span { display: block; margin-top: 3px; color: rgb(255 255 255 / 84%); font-size: 14px; font-weight: 500; }
    .gallery-credit { margin: 20px 0 0; color: var(--ink-soft); font-size: 14px; }

    /* Motorcycles */
    .bikes { padding-block: calc(var(--section-space) / 2); }
    .wp-block-group.bikes.wrap { position: relative; left: 50%; width: min(calc(100vw - 2 * var(--gutter)), var(--wrap)); max-width: none; margin-inline: 0 !important; transform: translateX(-50%); }
    #le-bmw { position: relative; left: 50%; width: min(calc(100vw - 2 * var(--gutter)), var(--wrap)) !important; max-width: var(--wrap) !important; margin-inline: 0 !important; transform: translateX(-50%); }
    #le-bmw .bikes__head, #le-bmw .bike-grid { position: relative; left: 50%; width: min(calc(100vw - 2 * var(--gutter)), var(--wrap)) !important; max-width: var(--wrap) !important; margin-inline: 0 !important; transform: translateX(-50%); }
    .wp-block-group.bikes.wrap > .wp-block-html { width: 100%; max-width: none; margin-inline: 0; }
    .bikes__head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: var(--section-head-gap); }
    .bikes__head .section-title { max-width: 1000px; font-size: clamp(40px, 4.5vw, 62px); line-height: 1.06; text-wrap: balance; }
    .bike-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 14px; }
    .bike-card { position: relative; display: grid; min-height: 500px; grid-template-rows: minmax(0, 1fr) 205px; overflow: hidden; border: 1px solid var(--line); background: #172126; color: white; text-decoration: none; transition: transform .22s ease, box-shadow .22s ease; }
    .bike-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
    .bike-card__visual { position: relative; min-height: 0; overflow: hidden; background: #e7e7e4; }
    .bike-card__visual img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
    .bike-card:hover .bike-card__visual img { transform: scale(1.045); }
    .bike-card__index { position: absolute; top: 18px; left: 18px; padding: 9px 11px; border: 1px solid rgb(255 255 255 / 28%); background: rgb(16 29 34 / 78%); color: white; font-size: 13px; font-weight: 750; letter-spacing: .12em; }
    .bike-card__copy { position: relative; min-height: 205px; padding: 21px 70px 24px 24px; background: linear-gradient(120deg, #172126, #223940); }
    .bike-card h3 { margin: 0 0 10px; color: white; font-size: clamp(30px, 3.2vw, 40px); font-weight: 600; letter-spacing: -.055em; line-height: 1; }
    .bike-card p { max-width: 300px; margin: 0; color: rgb(255 255 255 / 84%); font-size: 16px; line-height: 1.55; }
    .bike-card__arrow { position: absolute; right: 20px; bottom: 24px; z-index: 1; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgb(255 255 255 / 42%); border-radius: 50%; color: white; transition: background .2s ease, color .2s ease; }
    .bike-card:hover .bike-card__arrow { background: white; color: var(--kog-dark); }

    /* Editorial */
    .journal { background: #e9e7e1; }
    .journal__head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: var(--section-head-gap); }
    .journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
    .journal-grid > li { min-width: 0; }
    .journal-card { display: flex; min-height: 500px; flex-direction: column; overflow: hidden; background: #172126; color: white; box-shadow: 0 14px 36px rgb(15 31 36 / 9%); transition: transform .28s ease, box-shadow .28s ease; }
    .journal-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgb(15 31 36 / 17%); }
    .journal-card__image { position: relative; display: block; height: clamp(210px, 22vw, 270px); margin: 0; overflow: hidden; background: #cbd4d3; }
    .journal-card__image > a { display: block; width: 100%; height: 100%; }
    .journal-card__image::after { position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgb(11 23 27 / 42%)); content: ""; pointer-events: none; }
    .journal-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
    .journal-card:hover .journal-card__image img { transform: scale(1.045); }
    .journal-card__image--book img { object-position: center 55%; }
    .journal-card__image--gathering img { object-position: center 50%; }
    .journal-card__image--trackting img { object-position: center 48%; }
    .journal-card__body { display: flex; flex: 1; flex-direction: column; padding: 25px 27px 28px; background: linear-gradient(145deg, #1b2a2f, #142126); }
    .journal-card__meta { margin: 0 0 18px; color: #a6e2eb; font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
    .journal-card h2, .journal-card h3 { margin: 0 0 14px; color: white; font-size: clamp(24px, 2.3vw, 32px); font-weight: 650; letter-spacing: -.04em; line-height: 1.14; }
    .journal-card__body > p:not(.journal-card__meta), .journal-card__body .wp-block-post-excerpt { margin: 0 0 25px; color: rgb(255 255 255 / 82%); font-size: 16px; line-height: 1.6; }
    .journal-card .text-link { margin-top: auto; align-self: flex-start; color: white; font-size: 14px; }
    .journal-card .text-link::after { background: #35b2c4; }
    .journal-card h2 a, .journal-card h3 a { color: inherit; text-decoration: none; }
    .journal-card:focus-within { outline: 3px solid #55c4d2; outline-offset: 4px; }
    .journal-note { margin: 22px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
    .journal-card__category { margin: -7px 0 14px; color: #a6e2eb; font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
    .journal-card__category a { color: inherit; text-decoration: none; }
    .journal-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 42px; }
    .journal-pagination a, .journal-pagination span { display: inline-grid; min-width: 44px; min-height: 44px; place-items: center; padding: 0 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; }
    .journal-pagination .current { border-color: var(--ink); background: var(--ink); color: var(--white); }

    /* Membership */
    .join { background: var(--kog); color: #092f37; }
    .join__grid { display: grid; grid-template-columns: 1fr .8fr; gap: 9vw; align-items: start; }
    .join .eyebrow { color: #0b4651; }
    .join .section-title { max-width: 680px; }
    .join .section-copy { max-width: 600px; margin: 23px 0 28px; color: #123f47; }
    .join__panel { padding: clamp(26px, 4vw, 42px); border: 1px solid rgb(9 47 55 / 25%); background: rgb(255 255 255 / 17%); }
    .join__panel h3 { margin: 0 0 17px; font-size: 19px; font-weight: 750; letter-spacing: .01em; }
    .join__panel ul { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
    .join__panel li { display: grid; grid-template-columns: 24px 1fr; gap: 9px; color: #103a42; font-size: 16px; line-height: 1.55; }
    .join__panel li::before { color: #063e49; content: "—"; }
    .join__panel small { display: block; margin-top: 20px; color: #164750; font-size: 15px; line-height: 1.55; }
    .join .button { margin-top: 26px; background: var(--ink); color: white; }
    .join .button:hover { background: #2b3b41; }
    .join .wp-block-button.button { margin-top: 26px; background: transparent; }
    .join .wp-block-button.button > .wp-block-button__link { background: var(--ink); color: white; }
    .join .wp-block-button.button > .wp-block-button__link:hover { background: #2b3b41; color: white; }

    /* Footer */
    .site-footer { padding-block: clamp(42px, 5vw, 68px) 24px; background: #111a1e; color: white; }
    .footer-main { display: grid; grid-template-columns: minmax(190px, 1.15fr) repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 38px); align-items: start; padding-bottom: 48px; }
    .footer-brand { min-width: 0; }
    .footer-brand img { width: 150px; max-height: 84px; object-fit: contain; object-position: left center; }
    .footer-brand p { max-width: 290px; margin: 18px 0 0; color: rgb(255 255 255 / 72%); font-size: 16px; line-height: 1.65; }
    .footer-column { min-width: 0; }
    .footer-column h2 { position: relative; margin: 0 0 18px; padding-bottom: 13px; color: #a7e4ed; font-size: 14px; font-weight: 800; letter-spacing: .12em; line-height: 1.3; text-transform: uppercase; }
    .footer-column h2::after { position: absolute; bottom: 0; left: 0; width: 28px; height: 2px; background: var(--kog); content: ""; }
    .footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; }
    .footer-links .wp-block-navigation__container { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
    .footer-links .wp-block-navigation-item { min-width: 0; }
    .footer-links a { display: inline-block; color: rgb(255 255 255 / 84%); font-size: 15px; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; transition: color .2s ease, transform .2s ease; }
    .footer-links a:hover { color: white; transform: translateX(3px); }
    .events__admin-note { max-width: 900px; margin: 24px 0 0; padding-left: 18px; border-left: 2px solid var(--kog); color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
    .event-feature__empty { padding: 25px 28px; border: 1px solid var(--line); background: #e9e7e1; color: var(--ink-soft); font-size: 18px; }
    .event-feature__empty p { margin: 0; }
    .event-feature--empty .event-feature__visual { min-height: 330px; }
    .event-feature--empty .event-feature__content > p { max-width: 620px; }
    .event-feature--empty .event-feature__content > .button { margin-top: 8px; }
    .kog-event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 24px; }
    .kog-events-empty { display: grid; grid-template-columns: minmax(260px, .8fr) 1fr; overflow: hidden; background: var(--white); box-shadow: 0 14px 36px rgb(15 31 36 / 9%); }
    .kog-events-empty__image { position: relative; display: block; min-height: 300px; overflow: hidden; background: #223239; }
    .kog-events-empty > .kog-events-empty__image > img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; transition: transform .45s ease; }
    .kog-events-empty__image:hover img { transform: scale(1.04); }
    .kog-events-empty__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(26px, 4vw, 48px); }
    .kog-events-empty__body h3 { max-width: 620px; margin: 0 0 13px; color: var(--ink); font-size: clamp(27px, 3vw, 36px); letter-spacing: -.04em; line-height: 1.1; }
    .kog-events-empty__body > p:not(.eyebrow) { max-width: 600px; margin: 0 0 22px; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
    .kog-events-empty__body .text-link { margin-top: auto; }
    .kog-event-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); background: white; box-shadow: 0 16px 38px rgb(15 31 36 / 9%); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
    /* wpautop can leave blank paragraphs around shortcode output; their default margins caused the large gaps in the home event cards. */
    .kog-event-card > p:empty, .kog-event-card__meta > p:empty { display: none !important; }
    .kog-event-card:hover { transform: translateY(-5px); border-color: rgb(0 126 151 / 36%); box-shadow: 0 24px 48px rgb(15 31 36 / 14%); }
    .kog-event-card__image { position: relative; display: block; height: clamp(220px, 19vw, 290px); overflow: hidden; background: #203239; }
    .kog-event-card__image::after { position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, rgb(8 22 27 / 70%), transparent); content: ""; }
    .kog-event-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
    .kog-event-card__image-caption { position: absolute; z-index: 1; right: 18px; bottom: 16px; left: 20px; color: white; font-size: 11px; font-weight: 750; letter-spacing: .12em; text-shadow: 0 1px 8px rgb(0 0 0 / 65%); text-transform: uppercase; }
    .kog-event-card:hover .kog-event-card__image img { transform: scale(1.045); }
    .kog-event-card__body { display: flex; flex: 1; flex-direction: column; align-items: stretch; padding: 14px 24px 22px; background: linear-gradient(180deg, #fff 0%, #fbfbf9 100%); }
    .kog-event-card__meta { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin: 0 0 10px; }
    .kog-event-card .kog-event-card__date { display: flex; width: fit-content; max-width: 100%; min-width: 0; align-items: center; margin: 0; padding: 7px 10px; border-left: 3px solid var(--kog); background: #eef6f6; color: var(--kog-dark); font-size: 13px; font-weight: 750; letter-spacing: .055em; line-height: 1.35; text-transform: uppercase; }
    .kog-event-card__body .event-registration-status { flex: 0 0 auto; align-self: flex-start; max-width: 100%; padding: 5px 9px; border-radius: 3px; font-size: 9px; letter-spacing: .035em; }
    .kog-event-card .kog-event-card__body h3 { margin: 0 0 11px; color: var(--ink); font-size: clamp(25px, 2vw, 31px); font-weight: 650; letter-spacing: -.04em; line-height: 1.12; }
    .kog-event-card .kog-event-card__description { margin: 0 0 22px; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }
    .kog-event-card__cta { width: 100%; min-height: 50px; justify-content: center; gap: 10px; margin-top: auto; padding-inline: 16px; font-size: 12px; }
    .kog-event-card__cta span { font-size: 18px; transition: transform .2s ease; }
    .kog-event-card__cta:hover span { transform: translate(2px, -2px); }
    .content-page { max-width: 1120px; padding-block: var(--section-space); }
    .kog-page-eventi-kog .content-page { width: min(calc(100% - 2 * var(--gutter)), 1600px); max-width: 1600px; }
    .kog-page-eventi-kog .content-page__body { max-width: none; margin-inline: 0; }
    .kog-page-eventi-kog .content-page__body > p, .kog-page-eventi-kog .content-page__body > h2, .kog-page-eventi-kog .content-page__body > h3 { max-width: 1000px; }
    .kog-page-eventi-kog .content-page__body .wp-block-shortcode, .kog-page-eventi-kog .content-page__body .kog-event-grid { width: 100%; max-width: none; }
    .kog-page-eventi-kog .content-page__body .kog-events-empty { width: 100%; max-width: none; margin-inline: 0; justify-self: stretch; }
    .content-page__title { max-width: 1000px; margin: 0 0 28px; font-size: clamp(42px, 5.2vw, 72px); letter-spacing: -.05em; line-height: 1.05; }
    .content-page__featured { position: relative; height: clamp(300px, 43vw, 560px); margin: 0 0 var(--section-head-gap); overflow: hidden; background: #223239; box-shadow: 0 24px 60px rgb(23 33 38 / 16%); }
    .content-page__featured::after { position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, rgb(11 19 23 / 24%), transparent); content: ""; pointer-events: none; }
    .content-page__featured img { width: 100%; height: 100%; object-fit: cover; }
    .content-page__body { max-width: 900px; margin-inline: auto; color: var(--ink-soft); font-size: 19px; line-height: 1.75; }
    .content-page.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { width: 100%; max-width: 100%; }
    .content-page__body p { margin-block: 0 1.15em; }
    .content-page__body h2 { margin: 1.55em 0 .58em; color: var(--ink); font-size: clamp(30px, 3.8vw, 46px); font-weight: 600; letter-spacing: -.045em; line-height: 1.08; }
    .content-page__body h3 { margin: 1.35em 0 .58em; color: var(--ink); font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -.035em; line-height: 1.15; }
    .content-page__body h4 { margin: 1.5em 0 .5em; color: var(--kog-dark); font-size: 18px; letter-spacing: .08em; line-height: 1.2; }
    .kog-page-la-storia-del-kog .content-page__body h2,
    .kog-page-la-storia-del-kog .content-page__body h3 { scroll-margin-top: 112px; }
    .story-index { position: sticky; z-index: 12; top: 92px; margin: 0 0 38px; color: var(--ink); }
    .story-index details { position: relative; border: 1px solid var(--line); background: var(--white); box-shadow: 0 12px 34px rgb(23 33 38 / 9%); }
    .story-index summary { display: flex; min-height: 66px; align-items: center; gap: 15px; padding: 11px 20px; cursor: pointer; list-style: none; }
    .story-index summary::-webkit-details-marker { display: none; }
    .story-index__label { color: var(--kog-dark); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
    .story-index__count { margin-left: auto; color: var(--ink-soft); font-size: 15px; font-weight: 600; }
    .story-index__chevron { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--kog-dark); font-size: 19px; transition: transform .2s ease, background .2s ease; }
    .story-index details[open] .story-index__chevron { transform: rotate(180deg); background: #e9f7f9; }
    .story-index__panel { position: absolute; top: calc(100% + 8px); right: 0; left: 0; max-height: min(62vh, 620px); overflow: auto; padding: 15px 20px 20px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 20px 45px rgb(23 33 38 / 16%); }
    .story-index__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; margin: 0; padding: 0; list-style: none; counter-reset: story-index; }
    .story-index__list li { min-width: 0; counter-increment: story-index; }
    .content-page__body .story-index__list a { display: flex; min-height: 48px; align-items: center; gap: 12px; padding: 7px 3px; border-bottom: 1px solid #edf0ef; color: var(--ink) !important; font-size: 15px; font-weight: 600; line-height: 1.35; text-decoration: none; }
    .story-index__list a::before { flex: 0 0 27px; color: var(--kog-dark); content: counter(story-index, decimal-leading-zero); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
    .story-index__list a:hover { color: var(--kog-dark) !important; }
    .story-index__list a:focus-visible { outline-offset: -2px; }
    .content-page__body img { max-width: 100%; height: auto; }
    .content-page__body a:not(.button) { color: var(--kog-dark); text-underline-offset: 3px; }
    .content-page__body a[href*="iscrizione-al-kog"]:not(.button):not(.wp-block-button__link),
    a[href*="forum.kog.it/register"]:not(.button):not(.wp-block-button__link) {
      display: inline-flex; max-width: 100%; min-height: var(--button-height); align-items: center; justify-content: center; gap: 10px;
      margin: 8px 0 18px; padding: 0 var(--button-padding); border: 1px solid transparent; border-radius: var(--button-radius);
      background: var(--kog); color: #062d35 !important; box-shadow: none; font: var(--button-weight) var(--button-size)/1.2 var(--sans);
      letter-spacing: var(--button-tracking); text-decoration: none; text-transform: uppercase;
      transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
    }
    .content-page__body a[href*="iscrizione-al-kog"]:not(.button):not(.wp-block-button__link):hover,
    a[href*="forum.kog.it/register"]:not(.button):not(.wp-block-button__link):hover { transform: translateY(-2px); background: #32b4cb; box-shadow: none; }
    .footer-links a[href*="iscrizione-al-kog"] { display: inline-flex; min-height: 42px; align-items: center; gap: 10px; margin-top: 5px; padding: 8px 13px; border: 1px solid rgb(169 224 233 / 52%); border-radius: var(--button-radius); color: white; font-size: 13px; font-weight: var(--button-weight); letter-spacing: .045em; text-decoration: none; text-transform: uppercase; transition: background .2s ease, border-color .2s ease; }
    .footer-links a[href*="iscrizione-al-kog"]::after { content: "↗"; color: #a9e0e9; font-size: 16px; }
    .footer-links a[href*="iscrizione-al-kog"]:hover { border-color: #a9e0e9; background: rgb(255 255 255 / 10%); }
    .join__panel a[href*="iscrizione-al-kog"] { display: inline-flex; min-height: 48px; align-items: center; gap: 10px; margin-top: 14px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--button-radius); background: var(--ink); color: white !important; font-size: var(--button-size); font-weight: var(--button-weight); letter-spacing: var(--button-tracking); line-height: 1.2; text-decoration: none; text-transform: uppercase; transition: background .2s ease, color .2s ease, transform .2s ease; }
    .join__panel a[href*="iscrizione-al-kog"]::after { content: "↗"; font-size: 16px; }
    .join__panel a[href*="iscrizione-al-kog"]:hover { transform: translateY(-2px); background: #2b3b41; }
    .content-page__body a[target="_blank"]:has(> svg) { display: inline-flex; align-items: center; gap: 10px; margin: 5px 6px 5px 0; padding: 11px 15px; border: 1px solid var(--line); background: white; color: var(--ink) !important; font-size: 16px; font-weight: 650; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
    .content-page__body a[target="_blank"]:has(> svg):hover { transform: translateY(-2px); border-color: var(--kog); box-shadow: 0 10px 24px rgb(23 33 38 / 8%); }
    .content-page__body a[target="_blank"]:has(> svg) br { display: none; }
    .content-page__body p:has(> a[target="_blank"]) { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block: 12px 26px; }
    .content-page__body p:has(> a[target="_blank"]) > br { display: none; }
    .content-page__body p:has(> a[target="_blank"]) a:has(> svg) { min-width: 138px; justify-content: center; gap: 10px; }
    .content-page__body svg { flex: 0 0 22px; width: 22px !important; height: 22px !important; max-width: 100%; vertical-align: middle; }
    .content-page__body svg path { fill: currentColor; stroke: currentColor; }
    .content-page__body iframe { position: relative !important; inset: auto !important; display: block; width: 100% !important; max-width: 100%; height: auto !important; aspect-ratio: 16 / 9; margin-block: 38px; border: 0; background: #162127; box-shadow: var(--shadow); }

    /* Imported K1600 specifications stay readable without breaking narrow screens. */
    .kog-table-scroll { position: relative; max-width: 100%; margin: 30px 0 40px; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid #ccd5d4; background: white; box-shadow: 0 14px 34px rgb(23 33 38 / 7%); scrollbar-color: var(--kog) #e9eeec; }
    .kog-table-scroll:focus-visible { outline-offset: 3px; }
    .kog-table-scroll table { width: 100%; min-width: 700px; border-collapse: separate; border-spacing: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
    .kog-table-scroll thead th { padding: 15px 17px; border-right: 1px solid rgb(255 255 255 / 14%); background: var(--ink); color: white; font-size: 14px; font-weight: 800; letter-spacing: .045em; text-align: left; vertical-align: bottom; }
    .kog-table-scroll thead th:first-child { color: #b8ecf2; white-space: nowrap; }
    .kog-table-scroll tbody td, .kog-table-scroll tbody th { padding: 13px 17px; border-right: 1px solid #e8ecea; border-bottom: 1px solid #e8ecea; text-align: left; vertical-align: top; }
    .kog-table-scroll tbody tr:nth-child(even) { background: #f3f7f6; }
    .kog-table-scroll tbody tr:hover { background: #e8f4f5; }
    .kog-table-scroll tbody td:first-child, .kog-table-scroll tbody th:first-child { color: var(--ink); font-weight: 750; white-space: nowrap; }
    .kog-table-scroll tbody tr:last-child > * { border-bottom: 0; }
    .kog-table-scroll tr > *:last-child { border-right: 0; }
    /* Price tables use the same wide alignment as the rest of the model page. */
    .kog-page-la-bmw-k1600 .kog-table-scroll--price,
    .kog-page-la-bmw-r1300rt .kog-table-scroll--price { width: min(1120px, calc(100vw - var(--gutter) - var(--gutter))); max-width: none; margin-inline-start: 50%; transform: translateX(-50%); }
    .kog-page-la-bmw-r1300rt .content-page__body .wp-block-button > .wp-block-button__link[href*="gruppo-facebook"] { background: var(--ink); color: #fff !important; }
    .kog-page-la-bmw-r1300rt .content-page__body .wp-block-button > .wp-block-button__link[href*="gruppo-facebook"]:hover { background: #29373d; color: #fff !important; }
    .kog-model-facebook-cta { margin-top: 28px; }

    /* Editorial treatment for the imported KOG story and Heritage image archive. */
    .kog-page-cose-il-kog .content-page__body { max-width: 880px; font-size: clamp(19px, 1.55vw, 21px); line-height: 1.82; }
    .kog-page-cose-il-kog .kog-story-byline { margin: 0 0 32px; color: var(--kog-dark); font-size: 14px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
    .kog-page-cose-il-kog .kog-story-heading { margin: clamp(64px, 8vw, 100px) 0 22px; padding-top: 24px; border-top: 1px solid var(--line); font-size: clamp(32px, 4vw, 48px); }
    .kog-page-cose-il-kog .kog-story-quote { display: block; margin: 42px 0; padding: 22px 28px 24px; border-left: 4px solid var(--kog); background: #e9eeeD; color: var(--ink); font-size: clamp(26px, 3.6vw, 40px); font-weight: 600; letter-spacing: -.04em; line-height: 1.2; }
    .kog-page-cose-il-kog .kog-story-quote--small { font-size: clamp(23px, 3vw, 32px); }
    .kog-story-photo { position: relative; width: 100%; height: clamp(260px, 40vw, 470px); margin: clamp(38px, 6vw, 68px) 0; overflow: hidden; background: #172126; box-shadow: var(--shadow); }
    .kog-story-photo::after { position: absolute; inset: 48% 0 0; background: linear-gradient(0deg, rgb(10 19 23 / 76%), transparent); content: ""; pointer-events: none; }
    .kog-story-photo img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .5s ease; }
    .kog-story-photo:hover img { transform: scale(1.025); }
    .kog-story-photo figcaption { position: absolute; z-index: 1; right: 24px; bottom: 20px; left: 24px; color: white; font-size: 15px; font-weight: 650; letter-spacing: .02em; }
    .kog-page-kog-heritage .content-page__body { max-width: 100%; }
    .heritage-intro { max-width: 920px; margin: 0 auto clamp(64px, 8vw, 100px); padding: clamp(28px, 5vw, 54px); border-left: 4px solid var(--kog); background: white; box-shadow: 0 16px 45px rgb(23 33 38 / 8%); }
    .heritage-intro h3:first-child { margin: 0 0 15px; color: var(--kog-dark); font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
    .heritage-intro h3:nth-of-type(2) { max-width: 760px; margin: 0 0 20px; font-size: clamp(25px, 3vw, 36px); }
    .heritage-intro p { max-width: 760px; font-size: 18px; line-height: 1.7; }
    .heritage-intro a { display: inline-flex; max-width: 100%; align-items: center; gap: 12px; margin-top: 12px; padding: 13px 18px; background: var(--ink); color: white !important; font-size: 14px; font-weight: 750; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; white-space: nowrap; transition: background .2s ease, transform .2s ease; }
    .heritage-intro a br { display: none !important; }
    .heritage-intro a svg { flex: 0 0 24px; width: 24px; height: 24px; fill: currentColor; stroke: currentColor; }
    .heritage-intro a svg path { fill: currentColor !important; stroke: currentColor !important; }
    .heritage-intro a:hover { transform: translateY(-2px); background: var(--kog-dark); }
    .heritage-section { margin-block: var(--section-space); }
    .heritage-section__head { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
    .heritage-section__head h2 { max-width: 780px; margin: 0; }
    .heritage-era-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .heritage-era-card { min-width: 0; margin: 0; padding: 18px; background: white; box-shadow: 0 12px 34px rgb(23 33 38 / 7%); transition: transform .25s ease, box-shadow .25s ease; }
    .heritage-era-card:hover, .heritage-logo-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgb(23 33 38 / 13%); }
    .heritage-era-card > figcaption { margin-bottom: 12px; color: var(--kog-dark); font-size: 17px; font-weight: 800; letter-spacing: .08em; }
    .heritage-era-card__image { display: grid; min-height: 175px; place-items: center; padding: 14px; background: #f5f4f0; }
    .heritage-era-card__image .heritage-logo-card__image { width: 100%; }
    .heritage-era-card__image img { width: 100%; max-height: 158px; object-fit: contain; }
    .heritage-logo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    .heritage-logo-card { display: grid; min-width: 0; min-height: 200px; margin: 0; padding: 13px; place-items: center; background: white; box-shadow: 0 10px 28px rgb(23 33 38 / 7%); transition: transform .25s ease, box-shadow .25s ease; }
    .heritage-logo-card__image { display: grid; width: 100%; height: 170px; place-items: center; background: #f8f7f4; }
    .heritage-logo-card__image img { width: 100%; max-height: 100%; object-fit: contain; }

    /* Sponsor directory: real KOG event photography, clear partner cards, readable on every screen. */
    .kog-page-sponsor-e-partner-del-kog .content-page { max-width: 1240px; }
    .kog-page-sponsor-e-partner-del-kog .content-page__body { max-width: 100%; }
    .kog-page-sponsor-e-partner-del-kog .content-page__body.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { width: 100%; max-width: 100%; }
    .kog-page-sponsor-e-partner-del-kog .content-page__title { margin-bottom: 34px; }
    .anniversary-cover { isolation: isolate; background: #172126; }
    .anniversary-cover::after { z-index: 0; inset: 30% 0 0; background: linear-gradient(0deg, rgb(7 15 18 / 85%), rgb(7 15 18 / 28%) 55%, transparent); }
    .anniversary-cover > img { object-position: center 44%; }
    .anniversary-cover__caption { position: absolute; z-index: 1; right: clamp(24px, 5vw, 64px); bottom: clamp(28px, 5vw, 58px); left: clamp(24px, 5vw, 64px); display: grid; max-width: 780px; gap: 12px; color: white; }
    .anniversary-cover__caption span { color: #b4edf4; font-size: 13px; font-weight: 800; letter-spacing: .16em; }
    .anniversary-cover__caption strong { font-size: clamp(34px, 5vw, 58px); font-weight: 650; letter-spacing: -.045em; line-height: 1.02; }
    .sponsor-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 60px; align-items: end; margin-bottom: var(--section-space); padding: 0 0 var(--section-head-gap); border-bottom: 1px solid var(--line); }
    .sponsor-intro__copy { max-width: 830px; }
    .sponsor-intro__copy .eyebrow, .sponsor-directory__head .eyebrow { margin: 0 0 18px; color: var(--kog-dark); font-size: 13px; font-weight: 800; letter-spacing: .14em; }
    .sponsor-intro__copy h2 { max-width: 760px; margin: 0 0 24px; color: var(--ink); font-size: clamp(34px, 4.3vw, 52px); letter-spacing: -.045em; line-height: 1.07; }
    .sponsor-intro__copy > p:not(.eyebrow) { max-width: 800px; margin: 0 0 12px; color: var(--ink-soft); font-size: 18px; line-height: 1.7; }
    .sponsor-intro__jump { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; background: var(--ink); color: white; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-decoration: none; transition: background .2s ease, transform .2s ease; }
    .sponsor-intro__jump:hover { transform: translateY(-2px); background: var(--kog-dark); }
    .kog-page-sponsor-e-partner-del-kog .content-page__body a.sponsor-intro__jump { color: white; }
    .kog-page-sponsor-e-partner-del-kog .content-page__body a.sponsor-intro__jump:hover { color: white; }
    .sponsor-intro__jump span:last-child { color: #a7e4ed; font-size: 20px; }
    .sponsor-directory { scroll-margin-top: 100px; }
    .sponsor-directory__head { max-width: 780px; margin: 0 0 var(--section-head-gap); }
    .sponsor-directory__head h2 { margin: 0 0 16px; color: var(--ink); font-size: clamp(32px, 4vw, 48px); letter-spacing: -.045em; line-height: 1.08; }
    .sponsor-directory__head > p:last-child { margin: 0; color: var(--ink-soft); font-size: 18px; line-height: 1.65; }
    .sponsor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
    .sponsor-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); background: white; box-shadow: 0 12px 32px rgb(23 33 38 / 6%); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
    .sponsor-card:hover { transform: translateY(-5px); border-color: #c7d7d8; box-shadow: 0 22px 48px rgb(23 33 38 / 12%); }
    .sponsor-card__logo { display: grid; height: 176px; padding: 24px 32px; place-items: center; border-bottom: 1px solid #ecefed; background: #fff; }
    .sponsor-card__logo img { width: 100%; height: 100%; object-fit: contain; }
    .sponsor-card__content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 24px 26px 26px; }
    .sponsor-card__eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 13px !important; color: var(--kog-dark); font-size: 12px !important; font-weight: 800; letter-spacing: .1em; line-height: 1.4 !important; text-transform: uppercase; }
    .sponsor-card__eyebrow span:first-child { display: inline-grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #e8f4f5; letter-spacing: 0; }
    .sponsor-card__content h3 { margin: 0 0 12px !important; color: var(--ink) !important; font-size: 25px !important; font-weight: 700; letter-spacing: -.035em !important; line-height: 1.15 !important; }
    .sponsor-card__content .sponsor-card__description { margin: 0 0 24px !important; color: var(--ink-soft); font-size: 17px !important; line-height: 1.65 !important; }
    .kog-page-sponsor-e-partner-del-kog .content-page__body a.sponsor-card__link { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: 10px; margin-top: auto; padding: 11px 14px; border: 1px solid var(--line); background: #f7f8f6; color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .055em; line-height: 1.35; text-decoration: none; text-transform: uppercase; transition: color .2s ease, border-color .2s ease, background .2s ease; }
    .kog-page-sponsor-e-partner-del-kog .content-page__body a.sponsor-card__link:hover { border-color: var(--kog); background: var(--ink); color: white; }
    .sponsor-card__link span:last-child { color: var(--kog-dark); font-size: 20px; }
    .sponsor-card__link:hover span:last-child { color: #a7e4ed; }

    .footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 15%); color: rgb(255 255 255 / 65%); font-size: 15px; line-height: 1.5; }
    .footer-bottom > p { margin: 0; }
    .footer-bottom a { color: inherit; text-decoration: none; }
    .footer-bottom a:hover { color: white; }

    @media (max-width: 1020px) {
      .main-nav { gap: 14px; }
      .main-nav .menu { align-items: stretch; gap: 0; }
      .main-nav a { font-size: 17px; }
      .bikes__head { display: block; }
      .bikes__head .text-link { margin-top: 24px; }
      .header-tools > a:not(.button) { display: none; }
      .event-feature { grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr); }
      .event-feature__visual { min-height: 385px; }
      .event-feature__content { padding: 32px; }
      .values__grid { gap: 10px; }
      .value-card { min-height: 370px; padding: 22px; }
      .fact { grid-template-rows: 46px 78px 90px; }
      .fact strong { font-size: clamp(30px, 3.1vw, 36px); }
      .kog-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .kog-event-card { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); }
      .kog-event-card__image { height: 100%; min-height: 300px; }
      .kog-event-card__body { padding: 22px; }
      .footer-main { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; }
      .footer-brand { grid-column: 1 / -1; padding-bottom: 8px; }
      .sponsor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    }
    @media (max-width: 1120px) {
      .header-inner { gap: 14px; }
      .header-navigation { flex: 1 1 auto; justify-content: flex-end; }
      .menu-toggle { position: relative; z-index: 42; display: flex; flex: 0 0 44px; }
      .header-navigation:not(.is-open) .main-nav { display: none; }
      .header-navigation.is-open .main-nav { position: absolute; z-index: 41; top: calc(100% + 1px); right: 0; left: 0; display: block; height: calc(100vh - 79px); height: calc(100dvh - 79px); overflow-y: auto; padding: 14px var(--gutter) 44px; background: var(--paper); box-shadow: 0 18px 32px rgb(23 33 38 / 12%); }
      .main-nav .menu { width: min(100%, 760px); flex-direction: column; align-items: stretch; gap: 0; margin-inline: auto; }
      .main-nav .menu > li { border-bottom: 1px solid var(--line); }
      .main-nav .menu > li > a { display: block; padding: 15px 0; font-size: 20px; }
      .main-nav .menu > li.menu-item-has-children > a { display: flex; width: 100%; }
      .main-nav .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 12px 16px; border: 0; background: transparent; box-shadow: none; }
      .main-nav .sub-menu a { padding: 10px 0; font-size: 17px; white-space: normal; }
      body.mobile-nav-open { overflow: hidden; }
    }
    @media (max-width: 960px) {
      .intro__grid { grid-template-columns: 1fr; gap: 30px; }
      .intro__aside { max-width: 620px; }
    }
    @media (max-width: 900px) {
      .kog-event-grid { grid-template-columns: 1fr; }
      .kog-event-card { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); }
      .kog-event-card__image { height: 100%; min-height: 300px; }
      .kog-event-card__body { padding: 20px 24px; }
    }
@media (max-width: 760px) {
      :root { --gutter: 22px; }
      :root { --section-space: 64px; --section-head-gap: 26px; }
      html { scroll-padding-top: 72px; }
      .site-header { min-height: 70px; }
      .header-inner { gap: 10px; }
      .header-navigation.is-open .main-nav { height: calc(100vh - 71px); height: calc(100dvh - 71px); }
      .brand { width: 112px; }
      .header-tools { gap: 9px; }
      .header-tools .wp-block-button .wp-block-button__link { min-height: 44px; padding-inline: 12px; font-size: 13px; }
      .menu-toggle { position: relative; display: flex; flex: 0 0 42px; }
      .hero { min-height: min(720px, calc(100svh - 70px)); min-height: max(620px, calc(100svh - 70px)); align-items: end; }
      .hero__photo { object-position: 65% center; }
      .hero__shade { background: linear-gradient(0deg, rgb(11 19 23 / 91%) 0%, rgb(11 19 23 / 75%) 40%, rgb(11 19 23 / 14%) 100%); }
      .hero__inner { padding-block: 90px 74px; }
      .hero__title { max-width: 560px; font-size: clamp(44px, 11.5vw, 62px); }
      .hero__desc { margin-block: 18px 22px; font-size: 17px; }
      .hero__actions { gap: 9px; }
      .button { min-height: 50px; padding-inline: 16px; font-size: 14px; }
      .wp-block-button > .wp-block-button__link { min-height: 50px; padding-inline: 16px; font-size: 14px; }
      .hero__note { margin-top: 25px; font-size: 13px; }
      .hero__scroll { display: none; }
      .intro__grid { grid-template-columns: 1fr; gap: 28px; }
      .intro__aside > p:not(.eyebrow) { max-width: 440px; margin-top: 10px; font-size: 21px; }
      .facts { grid-template-columns: 1fr; gap: 11px; margin-top: 44px; }
      .fact { grid-template-rows: 42px 44px 54px; min-height: 220px; padding: 24px; }
      .fact__index { font-size: 14px; }
      .fact strong { font-size: 36px; }
      .fact span:last-child { font-size: 18px; }
      .values__head, .events__head, .bikes__head, .journal__head { display: block; }
      .values__head .text-link, .events__head .text-link, .bikes__head .text-link, .journal__head .text-link { margin-top: 24px; }
      .values__grid { grid-template-columns: 1fr; gap: 12px; }
      .value-card { min-height: 330px; padding: 25px; }
      .value-card h3 { font-size: 30px; }
      .event-feature { grid-template-columns: 1fr; }
      .event-feature__visual { min-height: 250px; }
      .event-feature__content { padding: 25px; }
      .event-feature--empty .event-feature__visual { min-height: 240px; }
      .event-feature__topline { gap: 12px; margin-bottom: 18px; }
      .event-feature h3 { font-size: clamp(27px, 8vw, 34px); }
      .event-feature__details { margin-bottom: 20px; }
      .events__foot { flex-direction: column; gap: 7px; }
      .story__grid { grid-template-columns: 1fr; gap: 42px; }
      .story__mark { min-height: 230px; }
      .story__mark span { font-size: 66px; }
      .gallery-preview__head { display: block; }
      .gallery-preview__head .text-link { margin-top: 20px; }
      .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
      .gallery-card { min-height: 180px; }
      .bike-grid { grid-template-columns: 1fr; }
      .bike-card { min-height: 360px; grid-template-rows: 215px minmax(145px, auto); }
      .bike-card__visual { min-height: 215px; }
      .bike-card__copy { min-height: 145px; padding: 20px 65px 22px 21px; }
      .journal-grid { grid-template-columns: 1fr; }
      .kog-event-grid { grid-template-columns: 1fr; }
      .kog-event-card { display: flex; }
      .kog-event-card__image { height: min(62vw, 320px); min-height: 220px; }
      .kog-event-card__body { padding: 9px 16px 17px; }
      .kog-event-card__meta { align-items: stretch; gap: 4px; margin-bottom: 8px; }
      .kog-event-card__body .event-registration-status { white-space: normal; }
      .kog-event-card .kog-event-card__body h3 { font-size: 26px; }
      .kog-events-empty { grid-template-columns: 1fr; }
      .kog-events-empty__image { min-height: 230px; height: 52vw; max-height: 360px; }
      .journal-card { min-height: 0; }
      .journal-card__image { height: min(62vw, 320px); }
      .join__grid { grid-template-columns: 1fr; gap: 42px; }
      .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; padding-bottom: 34px; }
      .footer-brand { grid-column: 1 / -1; }
      .footer-brand p { max-width: 360px; margin-top: 14px; }
      .footer-column h2 { margin-bottom: 15px; font-size: 13px; }
      .footer-links, .footer-links .wp-block-navigation__container { gap: 8px; }
      .footer-links a { min-height: 34px; font-size: 16px; }
      .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
      .content-page { padding-block: var(--section-space); }
      .story-index { top: 78px; margin-bottom: 30px; }
      .story-index summary { min-height: 60px; gap: 9px; padding: 9px 13px; }
      .story-index__label { font-size: 12px; letter-spacing: .075em; }
      .story-index__count { font-size: 13px; }
      .story-index__panel { max-height: 58vh; padding: 10px 14px 14px; }
      .story-index__list { grid-template-columns: 1fr; }
      .content-page__body .story-index__list a { min-height: 46px; font-size: 15px; }
      .content-page__featured { height: min(74vw, 390px); margin-bottom: var(--section-head-gap); }
      .anniversary-cover { height: min(86vw, 400px); min-height: 310px; }
      .anniversary-cover__caption { right: 20px; bottom: 23px; left: 20px; gap: 8px; }
      .anniversary-cover__caption span { font-size: 11px; }
      .anniversary-cover__caption strong { font-size: clamp(29px, 8vw, 40px); }
      .kog-table-scroll { margin-block: 24px 32px; }
      .kog-table-scroll table { min-width: 660px; font-size: 15px; }
      .kog-table-scroll thead th, .kog-table-scroll tbody td, .kog-table-scroll tbody th { padding: 12px 14px; }
      .content-page__body a[href*="iscrizione-al-kog"]:not(.button):not(.wp-block-button__link) { min-height: 50px; padding: 12px 16px; font-size: 14px; }
      a[href*="forum.kog.it/register"] { min-height: 50px; padding: 12px 16px; font-size: 14px; }
      .sponsor-intro { grid-template-columns: 1fr; gap: 22px; margin-bottom: var(--section-space); padding-bottom: var(--section-head-gap); }
      .sponsor-intro__copy h2 { margin-bottom: 18px; font-size: 34px; }
      .sponsor-intro__copy > p:not(.eyebrow), .sponsor-directory__head > p:last-child { font-size: 17px; }
      .sponsor-intro__jump { justify-self: start; }
      .sponsor-directory__head { margin-bottom: 24px; }
      .sponsor-directory__head h2 { font-size: 34px; }
      .sponsor-grid { grid-template-columns: 1fr; gap: 16px; }
      .sponsor-card__logo { height: 150px; padding: 20px 26px; }
      .sponsor-card__content { padding: 21px; }
      .heritage-intro { padding: 25px 22px; }
      .heritage-era-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
      .heritage-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
      .heritage-era-card { padding: 12px; }
      .heritage-era-card__image { min-height: 145px; padding: 9px; }
      .heritage-logo-card { min-height: 160px; padding: 8px; }
      .heritage-logo-card__image { height: 140px; }
      .kog-story-photo { height: min(72vw, 360px); }
    .kog-page-cose-il-kog .kog-story-quote { padding: 18px 20px; }
}

/* Use one clean CTA treatment on motorcycle pages: no generated trailing arrow. */
.kog-page-la-bmw-k1200lt .content-page__body a[href*="iscrizione-al-kog"]:not(.button):not(.wp-block-button__link)::after,
.kog-page-la-bmw-k1600 .content-page__body a[href*="iscrizione-al-kog"]:not(.button):not(.wp-block-button__link)::after,
.kog-page-la-bmw-r1300rt .content-page__body a[href*="iscrizione-al-kog"]:not(.button):not(.wp-block-button__link)::after {
    content: none !important;
}

    /* Show the complete K1200LT photo instead of cropping its wheels in the wide page-cover frame. */
    .kog-page-la-bmw-k1200lt .content-page__featured {
      height: auto;
      aspect-ratio: 1200 / 884;
    }
    .kog-page-la-bmw-k1200lt .content-page__featured img {
      object-fit: contain;
    }

    /* Membership landing page */
    main.join-page { position: relative; width: 100vw !important; max-width: 100vw !important; margin-inline: calc(50% - 50vw) !important; overflow: hidden; }
    .join-page.is-layout-constrained > *,
    .join-page > .wp-block-html { width: 100%; max-width: none !important; margin-inline: 0 !important; }
    .join-page__hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(42px, 6vw, 86px); padding-block: clamp(52px, 7vw, 94px) clamp(54px, 7vw, 86px); }
    .join-page__hero-copy { max-width: 590px; }
    .join-page__hero-copy .eyebrow { margin-bottom: 20px; }
    .join-page__title { margin: 0; font-size: clamp(48px, 6.2vw, 78px); font-weight: 650; letter-spacing: -.065em; line-height: .98; text-wrap: balance; }
    .join-page__lead { max-width: 540px; margin: 20px 0 0; color: var(--kog-dark); font-size: clamp(25px, 3vw, 38px); font-weight: 600; letter-spacing: -.04em; line-height: 1.14; text-wrap: balance; }
    .join-page__intro { max-width: 550px; margin: 18px 0 26px; color: var(--ink-soft); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; }
    .join-page__actions { margin: 0; }
    .join-page__actions .wp-block-button.button > .wp-block-button__link,
    .join-page__steps-action .button,
    .join-page__closing .button { min-height: 58px; padding-inline: 25px; font-size: 14px; }
    .join-page__actions .wp-block-button.button > .wp-block-button__link::after { content: ""; }
    .join-page__note { margin: 14px 0 0; color: #617075; font-size: 14px; line-height: 1.5; }
    .join-page__note strong { color: var(--ink); font-weight: 750; }
    .join-page__visual { position: relative; min-width: 0; }
    .join-page__photo { position: relative; aspect-ratio: 4 / 3; margin: 0; overflow: hidden; background: #d8e0de; box-shadow: var(--shadow); }
    .join-page__photo > img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
    .join-page__photo-caption { position: absolute; right: 18px; bottom: 18px; display: flex; flex-direction: column; min-width: 162px; gap: 2px; padding: 16px 19px; background: var(--ink); color: #fff; box-shadow: 0 12px 32px rgb(0 0 0 / 18%); }
    .join-page__photo-caption span { color: #a9e0e9; font-size: 11px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
    .join-page__photo-caption strong { font-size: 26px; font-weight: 650; letter-spacing: -.04em; line-height: 1.15; }
    .join-page__promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block: 0 clamp(74px, 9vw, 120px); border-block: 1px solid var(--line); }
    .join-page__promise-item { display: flex; min-height: 104px; flex-direction: column; justify-content: center; gap: 2px; padding: 14px clamp(18px, 3.5vw, 48px); }
    .join-page__promise-item + .join-page__promise-item { border-left: 1px solid var(--line); }
    .join-page__promise-item strong { font-size: clamp(19px, 2vw, 25px); font-weight: 700; letter-spacing: -.03em; line-height: 1.25; }
    .join-page__promise-item span { color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
    .join-page__values { padding-bottom: clamp(76px, 9vw, 120px); }
    .join-page__section-head { max-width: 710px; margin-bottom: clamp(26px, 3.5vw, 42px); }
    .join-page__section-head .eyebrow { margin-bottom: 14px; }
    .join-page__section-head h2 { max-width: 670px; margin: 0; font-size: clamp(38px, 5vw, 62px); font-weight: 620; letter-spacing: -.06em; line-height: 1.02; text-wrap: balance; }
    .join-page__section-head > p:last-child { max-width: 610px; margin: 15px 0 0; color: var(--ink-soft); font-size: 18px; line-height: 1.6; }
    .join-page__value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .join-page__value-card { min-height: 220px; padding: clamp(23px, 3vw, 34px); border: 1px solid var(--line); background: rgb(255 255 255 / 74%); }
    .join-page__number { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid rgb(8 125 151 / 28%); border-radius: 50%; color: var(--kog-dark); font-size: 12px; font-weight: 800; letter-spacing: .05em; }
    .join-page__value-card h3 { margin: 23px 0 8px; font-size: 22px; font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
    .join-page__value-card p { max-width: 360px; margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }
    .join-page__forum { padding-block: clamp(62px, 7.5vw, 96px); background: #e8f3f3; }
    .join-page__forum-inner { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(38px, 7vw, 92px); }
    .join-page__forum-copy { max-width: 590px; }
    .join-page__forum-copy .eyebrow { margin-bottom: 14px; }
    .join-page__forum-copy h2 { max-width: 560px; margin: 0; font-size: clamp(36px, 4.5vw, 56px); font-weight: 620; letter-spacing: -.06em; line-height: 1.04; text-wrap: balance; }
    .join-page__forum-copy > p:not(.eyebrow) { margin: 18px 0 22px; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
    .join-page__forum-copy .text-link { color: var(--kog-dark); }
    .join-page__forum-topics { margin: 0; padding: 0; border-top: 1px solid rgb(20 39 45 / 18%); list-style: none; }
    .join-page__forum-topics li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid rgb(20 39 45 / 18%); }
    .join-page__forum-topics li > span { color: var(--kog-dark); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
    .join-page__forum-topics h3 { margin: 0 0 5px; font-size: 19px; font-weight: 650; letter-spacing: -.025em; line-height: 1.25; }
    .join-page__forum-topics p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
    .join-page__fit { padding-block: clamp(70px, 8vw, 102px); background: #fff; }
    .join-page__fit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .join-page__fit-card { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); background: #fafaf8; }
    .join-page__fit-card--yes { border-top: 3px solid var(--kog); }
    .join-page__fit-card--no { border-top: 3px solid #aab5b6; }
    .join-page__fit-card h3 { margin: 0 0 17px; font-size: 23px; font-weight: 650; letter-spacing: -.035em; }
    .join-page__fit-card ul { display: grid; gap: 13px; margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
    .join-page__fit-card li::marker { color: var(--kog-dark); }
    .join-page__fit-note { max-width: 880px; margin: 20px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
    .join-page__steps { padding-block: clamp(72px, 8.5vw, 108px); background: var(--ink); color: white; }
    .join-page__steps-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(38px, 7vw, 96px); }
    .join-page__steps .join-page__section-head { margin: 0; }
    .join-page__steps .join-page__section-head h2 { color: white; }
    .join-page__steps .join-page__section-head > p:last-child { color: rgb(255 255 255 / 72%); }
    .join-page__step-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
    .join-page__step-list li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 17px; padding: 18px 0; border-bottom: 1px solid rgb(255 255 255 / 18%); }
    .join-page__step-list li:first-child { padding-top: 0; }
    .join-page__step-list li > span { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgb(169 224 233 / 58%); border-radius: 50%; color: #a9e0e9; font-size: 12px; font-weight: 800; }
    .join-page__step-list h3 { margin: 1px 0 5px; color: white; font-size: 20px; font-weight: 650; letter-spacing: -.025em; }
    .join-page__step-list p { margin: 0; color: rgb(255 255 255 / 72%); font-size: 15px; line-height: 1.55; }
    .join-page__steps-action { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; grid-column: 2; margin-top: -12px; }
    .join-page__steps-action .button { background: #a9e0e9; color: #14272d; }
    .join-page__steps-action .button::after { content: none; }
    .join-page__steps-action .button:hover { background: white; }
    .join-page__steps-action > span { color: rgb(255 255 255 / 65%); font-size: 13px; }
    .join-page__faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(34px, 7vw, 92px); padding-block: clamp(72px, 8.5vw, 112px); }
    .join-page__faq .join-page__section-head { margin: 0; }
    .join-page__faq-list { border-top: 1px solid var(--line); }
    .join-page__faq-list details { border-bottom: 1px solid var(--line); }
    .join-page__faq-list summary { position: relative; padding: 19px 38px 19px 0; color: var(--ink); font-size: 17px; font-weight: 650; line-height: 1.4; cursor: pointer; list-style: none; }
    .join-page__faq-list summary::-webkit-details-marker { display: none; }
    .join-page__faq-list summary::after { position: absolute; top: 18px; right: 4px; color: var(--kog-dark); content: "+"; font-size: 24px; font-weight: 400; line-height: 1; }
    .join-page__faq-list details[open] summary::after { content: "−"; }
    .join-page__faq-list details p { max-width: 660px; margin: -4px 38px 20px 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
    .join-page__closing { padding-block: clamp(60px, 7vw, 88px); background: #e8f3f3; }
    .join-page__closing-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 30px; }
    .join-page__closing .eyebrow, .join-page__closing h2, .join-page__closing p { grid-column: 1; }
    .join-page__closing .eyebrow { margin-bottom: 13px; }
    .join-page__closing h2 { max-width: 740px; margin: 0; font-size: clamp(38px, 5vw, 62px); font-weight: 620; letter-spacing: -.06em; line-height: 1.02; text-wrap: balance; }
    .join-page__closing p:not(.eyebrow) { max-width: 600px; margin: 13px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.55; }
    .join-page__closing .button { grid-column: 2; grid-row: 2 / span 2; background: var(--ink); color: white; }
    .join-page__closing .button:hover { background: var(--kog-dark); }
    @media (max-width: 900px) {
      .join-page__hero { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-top: 54px; }
      .join-page__hero-copy { max-width: 680px; }
      .join-page__visual { width: min(100%, 720px); }
      .join-page__promise { margin-bottom: 78px; }
      .join-page__steps-inner, .join-page__faq { grid-template-columns: minmax(0, 1fr); gap: 35px; }
      .join-page__forum-inner { grid-template-columns: minmax(0, 1fr); gap: 30px; }
      .join-page__steps .join-page__section-head, .join-page__faq .join-page__section-head { max-width: 690px; }
      .join-page__steps-action { grid-column: 1; margin-top: -14px; }
    }
    @media (max-width: 700px) {
      .join-page__hero { gap: 27px; padding-block: 42px 45px; }
      .join-page__title { font-size: clamp(46px, 13vw, 62px); }
      .join-page__lead { margin-top: 15px; font-size: clamp(26px, 7vw, 34px); }
      .join-page__intro { margin-block: 14px 20px; font-size: 17px; }
      .join-page__actions .wp-block-button, .join-page__actions .wp-block-button__link { width: 100%; }
      .join-page__note { font-size: 13px; }
      .join-page__photo-caption { right: 11px; bottom: 11px; min-width: 135px; padding: 12px 14px; }
      .join-page__photo-caption strong { font-size: 22px; }
      .join-page__promise { grid-template-columns: minmax(0, 1fr); margin-bottom: 64px; }
      .join-page__promise-item { min-height: 75px; padding: 12px 5px; }
      .join-page__promise-item + .join-page__promise-item { border-top: 1px solid var(--line); border-left: 0; }
      .join-page__values { padding-bottom: 65px; }
      .join-page__section-head { margin-bottom: 25px; }
      .join-page__section-head h2, .join-page__closing h2 { font-size: clamp(36px, 10vw, 48px); }
      .join-page__section-head > p:last-child { font-size: 16px; }
      .join-page__value-grid, .join-page__fit-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
      .join-page__value-card { min-height: 0; padding: 22px; }
      .join-page__value-card h3 { margin-top: 17px; }
      .join-page__forum { padding-block: 58px; }
      .join-page__forum-inner { gap: 25px; }
      .join-page__forum-copy h2 { font-size: clamp(36px, 10vw, 48px); }
      .join-page__forum-copy > p:not(.eyebrow) { font-size: 16px; }
      .join-page__forum-topics li { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding-block: 17px; }
      .join-page__forum-topics h3 { font-size: 18px; }
      .join-page__forum-topics p { font-size: 14px; }
      .join-page__fit { padding-block: 62px; }
      .join-page__fit-card { padding: 22px; }
      .join-page__fit-card ul { font-size: 15px; }
      .join-page__steps { padding-block: 64px; }
      .join-page__step-list li { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
      .join-page__step-list li > span { width: 34px; height: 34px; }
      .join-page__step-list h3 { font-size: 18px; }
      .join-page__steps-action { align-items: flex-start; flex-direction: column; gap: 13px; }
      .join-page__steps-action .button { width: 100%; }
      .join-page__faq { gap: 26px; padding-block: 64px; }
      .join-page__faq-list summary { font-size: 16px; }
      .join-page__closing { padding-block: 58px; }
      .join-page__closing-inner { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 0; }
      .join-page__closing .button { grid-column: 1; grid-row: auto; width: 100%; margin-top: 22px; }
    }
    @media (max-width: 380px) {
      .brand { width: 94px; }
      .menu-toggle { flex-basis: 40px; }
      .header-tools .wp-block-button .wp-block-button__link { padding-inline: 8px; font-size: 11px; }
    }

    /* About page: a clear editorial path from the KOG's values to its history. */
    main.about-page { width: 100%; max-width: none; margin: 0; overflow: hidden; background: var(--paper); }
    .about-hero { padding-block: clamp(50px, 6vw, 84px) clamp(56px, 7vw, 92px); }
    .about-hero__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(38px, 6vw, 84px); }
    .about-hero__copy { max-width: 600px; }
    .about-hero__copy .eyebrow { margin-bottom: 20px; }
    .about-hero__copy h1 { margin: 0; font-size: clamp(48px, 6vw, 78px); font-weight: 650; letter-spacing: -.065em; line-height: .99; text-wrap: balance; }
    .about-hero__copy h1 em { display: block; margin-top: .07em; color: var(--kog-dark); font-family: var(--serif); font-size: .86em; font-weight: 500; letter-spacing: -.055em; line-height: 1.03; }
    .about-hero__lead { max-width: 540px; margin: 22px 0 25px; color: var(--ink-soft); font-size: clamp(18px, 1.55vw, 21px); line-height: 1.65; }
    .about-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 25px; }
    .about-hero__actions .button { min-height: 58px; }
    .about-text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
    .about-text-link span { color: var(--kog-dark); font-size: 19px; line-height: 1; transition: transform .2s ease; }
    .about-text-link:hover span { transform: translate(3px, -2px); }
    .about-hero__note { margin: 22px 0 0; color: #718086; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
    .about-hero__photo { position: relative; aspect-ratio: 1.15 / 1; margin: 0; overflow: hidden; background: #d8e0de; box-shadow: var(--shadow); }
    .about-hero__photo::after { position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, rgb(15 26 31 / 42%), transparent); content: ""; pointer-events: none; }
    .about-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
    .about-hero__photo figcaption { position: absolute; z-index: 1; right: 22px; bottom: 22px; left: 22px; display: flex; align-items: end; justify-content: space-between; gap: 14px; color: white; }
    .about-hero__photo figcaption span { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
    .about-hero__photo figcaption strong { color: #b5e9ef; font-size: clamp(23px, 3vw, 34px); font-weight: 650; letter-spacing: -.04em; }
    .about-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: clamp(58px, 6vw, 82px); border-block: 1px solid var(--line); }
    .about-proof > div { display: flex; min-height: 104px; flex-direction: column; justify-content: center; gap: 4px; padding: 14px clamp(18px, 3.3vw, 42px); }
    .about-proof > div + div { border-left: 1px solid var(--line); }
    .about-proof strong { font-size: clamp(19px, 2vw, 24px); font-weight: 700; letter-spacing: -.03em; line-height: 1.25; }
    .about-proof span { color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
    .about-values { padding-bottom: clamp(82px, 9vw, 120px); }
    .about-section-head { max-width: 760px; margin-bottom: clamp(28px, 3.5vw, 42px); }
    .about-section-head .eyebrow { margin-bottom: 14px; }
    .about-section-head h2, .about-identity h2, .about-history h2, .about-closing h2 { margin: 0; font-size: clamp(38px, 5vw, 62px); font-weight: 620; letter-spacing: -.06em; line-height: 1.03; text-wrap: balance; }
    .about-section-head > p:last-child { max-width: 650px; margin: 16px 0 0; color: var(--ink-soft); font-size: 18px; line-height: 1.65; }
    .about-value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .about-value-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: white; }
    .about-value-card__photo { position: relative; display: block; aspect-ratio: 1.38 / 1; overflow: hidden; background: #d8e0de; }
    .about-value-card__photo::after { position: absolute; inset: 35% 0 0; background: linear-gradient(0deg, rgb(15 26 31 / 58%), transparent); content: ""; pointer-events: none; }
    .about-value-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
    .about-value-card__photo:hover img { transform: scale(1.035); }
    .about-value-card__photo:focus-visible { outline: 3px solid var(--kog); outline-offset: 3px; }
    .about-value-card__photo > span { position: absolute; z-index: 1; right: 18px; bottom: 17px; left: 18px; color: white; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
    .about-value-card__photo > i { position: absolute; z-index: 1; top: 15px; right: 15px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgb(255 255 255 / 65%); border-radius: 50%; color: white; font-size: 17px; font-style: normal; }
    .about-value-card__copy { padding: clamp(22px, 2.6vw, 30px); }
    .about-value-card h3 { margin: 0 0 9px; font-size: 21px; font-weight: 650; letter-spacing: -.035em; line-height: 1.22; }
    .about-value-card p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
    .about-identity { padding-block: clamp(72px, 8vw, 104px); background: var(--ink); color: white; }
    .about-identity__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .63fr); align-items: center; gap: clamp(38px, 8vw, 112px); }
    .about-identity h2 { max-width: 650px; color: white; }
    .about-identity__grid > div > p:not(.eyebrow) { max-width: 640px; margin: 19px 0 0; color: rgb(255 255 255 / 76%); font-size: 17px; line-height: 1.7; }
    .about-identity__aside { max-width: 470px; padding-left: clamp(24px, 4vw, 48px); border-left: 2px solid var(--kog); }
    .about-identity__mark { display: block; margin-bottom: 18px; color: #a9e0e9; font-size: 11px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
    .about-identity__aside blockquote { margin: 0; color: white; font-family: var(--serif); font-size: clamp(28px, 3.2vw, 40px); font-weight: 400; letter-spacing: -.035em; line-height: 1.2; }
    .about-identity__aside p { margin: 18px 0 0; color: rgb(255 255 255 / 68%); font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
    .about-community { padding: clamp(78px, 9vw, 116px) 0 clamp(28px, 3.5vw, 44px); }
    .about-community-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .about-community-card { position: relative; display: flex; min-height: 228px; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3vw, 34px); border: 1px solid var(--line); background: white; color: var(--ink); text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
    a.about-community-card:hover { transform: translateY(-3px); border-color: var(--kog); box-shadow: 0 14px 34px rgb(23 33 38 / 8%); }
    .about-community-card__number { margin-bottom: 28px; color: var(--kog-dark); font-size: 11px; font-weight: 800; letter-spacing: .11em; }
    .about-community-card > strong { margin-bottom: 8px; font-size: 26px; font-weight: 650; letter-spacing: -.04em; }
    .about-community-card > span:not(.about-community-card__number) { max-width: 320px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
    .about-community-card > i { position: absolute; right: 25px; bottom: 23px; color: var(--kog-dark); font-size: 21px; font-style: normal; }
    .about-community-card--social .about-community-card__number { margin-bottom: 22px; }
    .about-social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; }
    .about-page .about-social-links a { padding: 5px 9px; border: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; font-weight: 650; text-decoration: none; }
    .about-page .about-social-links a:hover { border-color: var(--kog); color: var(--kog-dark); }
    .about-history { padding-block: clamp(48px, 5.5vw, 70px); background: white; }
    .about-history__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; gap: clamp(38px, 7vw, 88px); }
    .about-history__photo { position: relative; aspect-ratio: 1.08 / 1; margin: 0; overflow: hidden; background: #d8e0de; }
    .about-history__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
    .about-history__photo figcaption { position: absolute; right: 14px; bottom: 14px; left: 14px; padding: 11px 14px; background: rgb(23 33 38 / 90%); color: white; font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
    .about-history h2 { max-width: 600px; }
    .about-history__copy > p:not(.eyebrow) { max-width: 620px; margin: 16px 0 22px; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
    .about-history__links { display: flex; flex-wrap: wrap; gap: 15px 27px; }
    .about-books { max-width: 620px; margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .about-books summary { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
    .about-books summary::-webkit-details-marker { display: none; }
    .about-books summary span { color: var(--kog-dark); font-size: 22px; font-weight: 400; }
    .about-books[open] summary span { transform: rotate(45deg); }
    .about-books > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 0 18px; }
    .about-books > div > a { position: relative; display: flex; min-height: 72px; align-items: center; padding: 14px 58px 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--kog); border-radius: 3px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 650; line-height: 1.45; text-decoration: none; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
    .about-books > div > a::after { position: absolute; top: 50%; right: 16px; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgb(8 125 151 / 24%); border-radius: 50%; color: var(--kog-dark); content: "↓"; font-size: 17px; font-weight: 500; line-height: 1; transform: translateY(-50%); transition: background .2s ease, color .2s ease, transform .2s ease; }
    .about-books > div > a:hover { border-color: var(--kog); background: #edf7f7; box-shadow: 0 8px 22px rgb(23 33 38 / 7%); transform: translateY(-2px); }
    .about-books > div > a:hover::after { background: var(--kog); color: white; transform: translateY(-50%) translateY(2px); }
    .about-books > div > a:focus-visible { outline: 3px solid var(--kog); outline-offset: 3px; }
    .about-closing { padding-block: clamp(58px, 7vw, 86px); background: #e8f3f3; }
    .about-closing__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px; }
    .about-closing .eyebrow { margin-bottom: 13px; }
    .about-closing h2 { max-width: 740px; }
    .about-closing p:not(.eyebrow) { max-width: 620px; margin: 13px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.6; }
    .about-closing .button { min-height: 58px; }
    @media (max-width: 900px) {
      .about-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
      .about-hero__copy { max-width: 720px; }
      .about-hero__photo { width: min(100%, 760px); aspect-ratio: 1.35 / 1; }
      .about-identity__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
      .about-identity__aside { max-width: 620px; }
      .about-history__grid { gap: 34px; }
    }
    @media (max-width: 700px) {
      .about-hero { padding-block: 42px 50px; }
      .about-hero__grid { gap: 28px; }
      .about-hero__copy .eyebrow { margin-bottom: 15px; }
      .about-hero__copy h1 { font-size: clamp(43px, 11.8vw, 58px); }
      .about-hero__lead { margin-block: 16px 20px; font-size: 17px; }
      .about-hero__actions { align-items: stretch; flex-direction: column; gap: 16px; }
      .about-hero__actions .button { width: 100%; }
      .about-hero__actions .about-text-link { align-self: flex-start; }
      .about-hero__note { margin-top: 18px; font-size: 10px; }
      .about-hero__photo { width: 100%; aspect-ratio: 1.08 / 1; }
      .about-hero__photo figcaption { right: 13px; bottom: 13px; left: 13px; }
      .about-proof { grid-template-columns: minmax(0, 1fr); margin-bottom: 66px; }
      .about-proof > div { min-height: 76px; padding: 12px 4px; }
      .about-proof > div + div { border-top: 1px solid var(--line); border-left: 0; }
      .about-values, .about-community { padding-bottom: 66px; }
      .about-section-head { margin-bottom: 25px; }
      .about-section-head h2, .about-identity h2, .about-history h2, .about-closing h2 { font-size: clamp(36px, 9.8vw, 48px); }
      .about-section-head > p:last-child { font-size: 16px; }
      .about-value-grid, .about-community-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
      .about-value-grid { gap: 14px; }
      .about-value-card__photo { aspect-ratio: 1.55 / 1; }
      .about-value-card__copy { padding: 20px 22px 22px; }
      .about-value-card h3 { font-size: 20px; }
      .about-identity { padding-block: 62px; }
      .about-identity__grid > div > p:not(.eyebrow) { font-size: 16px; }
      .about-identity__aside { padding: 0 0 0 20px; }
      .about-community { padding-block: 66px; }
      .about-community-card { min-height: 190px; padding: 22px; }
      .about-community-card__number { margin-bottom: 20px; }
      .about-history { padding-block: 48px; }
      .about-history__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
      .about-history__photo { aspect-ratio: 1.15 / 1; }
      .about-history__copy > p:not(.eyebrow) { font-size: 16px; }
      .about-history__links { flex-direction: column; align-items: flex-start; gap: 15px; }
      .about-books > div { grid-template-columns: minmax(0, 1fr); gap: 10px; }
      .about-closing { padding-block: 54px; }
      .about-closing__inner { grid-template-columns: minmax(0, 1fr); gap: 22px; }
      .about-closing .button { width: 100%; }
    }
    @media (max-width: 480px) {
      .footer-main { grid-template-columns: minmax(0, 1fr); gap: 28px; }
      .footer-brand { grid-column: auto; padding-bottom: 6px; }
      .footer-brand img { width: 138px; }
      .footer-column h2 { margin-bottom: 13px; }
      .footer-links a { min-height: 38px; }
      .footer-bottom { font-size: 14px; }
    }
    @media (max-width: 390px) {
      :root { --gutter: 17px; }
      .brand { width: 99px; }
      .header-tools .wp-block-button .wp-block-button__link { padding-inline: 9px; font-size: 12px; letter-spacing: .04em; }
      .hero__title { font-size: 42px; }
      .hero__actions .button { flex: 1; padding-inline: 9px; font-size: 13px; letter-spacing: .035em; }
      .hero__actions .wp-block-button.button { flex: 1; }
      .hero__actions .wp-block-button.button > .wp-block-button__link { width: 100%; padding-inline: 9px; font-size: 13px; letter-spacing: .035em; }
      .facts { gap: 7px; }
      .fact strong { font-size: 32px; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    }

    /* On phones and tablets, present motorcycle data as readable rows/cards instead of a clipped 660px table. */
    @media (max-width: 900px) {
      .kog-table-scroll { width: 100%; max-width: 100%; overflow: visible; border: 0; background: transparent; box-shadow: none; }
      .kog-table-scroll table { display: block; width: 100%; min-width: 0; border: 0; font-size: 15px; }
      .kog-table-scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
      .kog-table-scroll tbody { display: grid; gap: 10px; }
      .kog-table-scroll tbody tr { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border: 1px solid #d9dedc; background: white; box-shadow: 0 8px 22px rgb(23 33 38 / 6%); }
      .kog-table-scroll tbody td, .kog-table-scroll tbody th { min-width: 0; padding: 9px 12px; border: 0; border-bottom: 1px solid #e8ecea; text-align: left; white-space: normal; overflow-wrap: anywhere; }
      .kog-table-scroll tbody td::before, .kog-table-scroll tbody th::before { display: block; margin-bottom: 3px; color: var(--kog-dark); content: attr(data-label); font-size: 11px; font-weight: 800; letter-spacing: .06em; line-height: 1.35; text-transform: uppercase; }
      .kog-table-scroll tbody tr > *:last-child { border-bottom: 0; }
      .kog-table-scroll[data-kog-columns="2"] tbody { display: block; border: 1px solid #d9dedc; background: white; box-shadow: 0 8px 22px rgb(23 33 38 / 6%); }
      .kog-table-scroll[data-kog-columns="2"] tbody tr { grid-template-columns: minmax(112px, .78fr) minmax(0, 1.22fr); border: 0; border-bottom: 1px solid #e8ecea; box-shadow: none; }
      .kog-table-scroll[data-kog-columns="2"] tbody tr:nth-child(even) { background: #f3f7f6; }
      .kog-table-scroll[data-kog-columns="2"] tbody td, .kog-table-scroll[data-kog-columns="2"] tbody th { align-self: center; padding: 12px; border: 0; }
      .kog-table-scroll[data-kog-columns="2"] tbody td::before, .kog-table-scroll[data-kog-columns="2"] tbody th::before { display: none; }
      .kog-table-scroll[data-kog-columns="2"] tbody td:first-child, .kog-table-scroll[data-kog-columns="2"] tbody th:first-child { color: var(--ink); font-weight: 750; }
      .kog-table-scroll[data-kog-columns="2"] tbody tr:last-child { border-bottom: 0; }
    }

    /* Homepage: bring the existing KOG photo behind a slim, sticky overlay header. */
    .home .site-header {
      border-bottom-color: transparent;
      background: transparent;
      backdrop-filter: none;
      transition: background .24s ease, border-color .24s ease, backdrop-filter .24s ease;
    }
    .home .brand__logo--light { display: none; }
    .home .brand__logo--dark { display: block; }
    .home .brand { width: 118px; transform: translateY(6px); }
    .home .brand img { width: 100%; height: auto; max-height: none; object-fit: contain; object-position: left center; }
    .home.home-hero-visible .site-header {
      border-bottom-color: transparent;
      background: transparent;
      backdrop-filter: none;
    }
    .home.home-hero-visible .brand__logo--dark { display: none; }
    .home.home-hero-visible .brand__logo--light { display: block; }
    .home.home-hero-visible .main-nav a { color: white; text-shadow: 0 1px 10px rgb(0 0 0 / 30%); }
    .home.home-hero-visible .main-nav a:hover { color: #a7e4ed; }
    .home.home-hero-visible .main-nav .sub-menu a { color: var(--ink-soft); text-shadow: none; }
    .home.home-hero-visible .main-nav .sub-menu a:hover { color: var(--kog-dark); }
    .home.home-hero-visible .menu-toggle { border-color: rgb(255 255 255 / 55%); }
    .home.home-hero-visible .menu-toggle span,
    .home.home-hero-visible .menu-toggle::before,
    .home.home-hero-visible .menu-toggle::after { background: white; }
    .home:not(.home-hero-visible) .site-header,
    .home.mobile-nav-open .site-header {
      border-bottom-color: rgb(23 33 38 / 8%);
      background: rgb(245 244 240 / 96%);
      backdrop-filter: blur(12px);
    }
    .home:not(.home-hero-visible) .main-nav a,
    .home.mobile-nav-open .main-nav a { color: #39464a; text-shadow: none; }
    .home:not(.home-hero-visible) .menu-toggle,
    .home.mobile-nav-open .menu-toggle { border-color: var(--line); }
    .home:not(.home-hero-visible) .menu-toggle span,
    .home:not(.home-hero-visible) .menu-toggle::before,
    .home:not(.home-hero-visible) .menu-toggle::after,
    .home.mobile-nav-open .menu-toggle span,
    .home.mobile-nav-open .menu-toggle::before,
    .home.mobile-nav-open .menu-toggle::after { background: var(--ink); }
    .home .wp-site-blocks > .wp-block-group.hero { margin-block-start: -78px !important; }
    .home main > .hero { margin-top: -78px; }
    .home .hero { min-height: 100vh; min-height: 100svh; }
    .home .hero__inner { padding-block: clamp(118px, 15vh, 170px) 100px; }
    .home .hero__scroll { z-index: 2; }
    .home > .site-header { position: sticky; z-index: 30; top: 0; }

    /* Keep the sticky header below WordPress's toolbar for logged-in editors. */
    .admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 32px; }
    .admin-bar.home > .site-header { top: 32px; }

    @media (max-width: 760px) {
      .home .wp-site-blocks > .wp-block-group.hero { margin-block-start: -70px !important; }
      .home main > .hero { margin-top: -70px; }
      .home .hero { min-height: max(680px, 100vh); min-height: max(680px, 100svh); }
      .home .hero__inner { padding-block: 128px 62px; }
      .home .hero__scroll { display: none; }
      .home .brand { width: 104px; transform: translateY(4px); }
      .admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 46px; }
    .admin-bar.home > .site-header { top: 46px; }
    }

/* Keep CTA labels and spacing uniform; arrows remain exclusive to text links. */
.button::after,
.wp-block-button__link::after,
.footer-links a[href*="iscrizione-al-kog"]::after,
.join__panel a[href*="iscrizione-al-kog"]::after { content: none !important; display: none !important; }

/* Normalize CTA sizing after every legacy/mobile rule: keep labels centered and
   prevent inherited vertical padding from turning a one-line link into a tall bar. */
.button,
.wp-block-button > .wp-block-button__link,
.content-page__body a[href*="iscrizione-al-kog"]:not(.button):not(.wp-block-button__link),
a[href*="forum.kog.it/register"]:not(.button):not(.wp-block-button__link) {
  display: inline-flex !important;
  box-sizing: border-box;
  width: auto;
  height: auto !important;
  min-height: var(--button-height) !important;
  align-items: center !important;
  justify-content: center !important;
  padding-block: 0 !important;
  line-height: 1.2 !important;
  vertical-align: middle;
}

.button br,
.wp-block-button__link br,
.content-page__body a[href*="iscrizione-al-kog"] br,
a[href*="forum.kog.it/register"] br { display: none !important; }

/* Keep the membership page fully editable in the WordPress page editor. */
.join-page__photo-caption p { margin: 0; color: #a9e0e9; font-size: 11px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.join-page__photo-caption h3 { margin: 0; color: #fff; font-size: 26px; font-weight: 650; letter-spacing: -.04em; line-height: 1.15; }
.join-page__promise-item h3 { margin: 0; font-size: clamp(19px, 2vw, 25px); font-weight: 700; letter-spacing: -.03em; line-height: 1.25; }
.join-page__promise-item p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.join-page__forum-topic { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid rgb(20 39 45 / 18%); }
.join-page__forum-topic > p { margin: 0; color: var(--kog-dark); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.join-page__forum-topic-copy h3 { margin: 0 0 5px; font-size: 19px; font-weight: 650; letter-spacing: -.025em; line-height: 1.25; }
.join-page__forum-topic-copy p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.join-page__step-item { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 17px; padding: 18px 0; border-bottom: 1px solid rgb(255 255 255 / 18%); }
.join-page__step-item:first-child { padding-top: 0; }
.join-page__step-item > p { display: grid; width: 38px; height: 38px; place-items: center; margin: 0; border: 1px solid rgb(169 224 233 / 58%); border-radius: 50%; color: #a9e0e9; font-size: 12px; font-weight: 800; }
.join-page__step-copy h3 { margin: 1px 0 5px; color: white; font-size: 20px; font-weight: 650; letter-spacing: -.025em; }
.join-page__step-copy p { margin: 0; color: rgb(255 255 255 / 72%); font-size: 15px; line-height: 1.55; }
.join-page__faq-item { padding: 19px 38px 19px 0; border-bottom: 1px solid var(--line); }
.join-page__faq-item h3 { margin: 0 0 8px; color: var(--ink); font-size: 17px; font-weight: 650; line-height: 1.4; }
.join-page__faq-item p { max-width: 660px; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.join-page__closing .wp-block-buttons { grid-column: 2; grid-row: 2 / span 2; }
@media (max-width: 700px) {
  .join-page__forum-topic { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding-block: 17px; }
  .join-page__forum-topic-copy h3 { font-size: 18px; }
  .join-page__forum-topic-copy p { font-size: 14px; }
  .join-page__closing .wp-block-buttons { grid-column: 1; grid-row: auto; width: 100%; margin-top: 22px; }
}


/* News archive: concise article links and no category labels below dates. */
.journal-archive .journal-card__category { display: none !important; }
.journal-archive .journal-card__body .wp-block-read-more .screen-reader-text,
.journal-archive .journal-card__body .text-link .screen-reader-text {
      position: absolute !important;
        width: 1px !important;
          height: 1px !important;
            padding: 0 !important;
              margin: -1px !important;
                overflow: hidden !important;
                  clip: rect(0, 0, 0, 0) !important;
                    clip-path: inset(50%) !important;
                      white-space: nowrap !important;
                        border: 0 !important;
}

}
