/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Unified GM Leather design system, Gutenberg and Home components, and legacy compatibility.
Author: Brainstorm Force
Author URI: https://wpastra.com/
Template: astra
Version: 1.3.6
Text Domain: astra-child
*/

/*
 * GM LEATHER — SHARED STYLESHEET, 2026-10-26
 * Replace the previous child-theme style.css; do not append this entire file.
 * Includes the Home H1 component styles; do not load the old Home CSS separately.
 * New Gutenberg pages: outer Group class "gml-page"; see CLASS-GUIDE.html.
 * Component classes are semantic and survive database ID changes.
 * Fonts must be loaded by the theme's existing approved font loader.
 * CSS does not register editor styles, pause video, disable links or enable forms.
 */

/* 01. Shared tokens. Green aliases below preserve existing component markup. */
:root {
    --gml-black: #0B0B0B;
    --gml-dark: #171922;
    --gml-dark-surface: #141414;
    --gml-dark-muted: #1E293B;
    --gml-white: #FFFFFF;
    --gml-text: #202127;
    --gml-bg-light: #F6F5F0;
    --gml-bg-warm: #EEEDE8;
    --gml-border: #C9CBBF;
    --gml-input-border: #75786A;
    --gml-disabled-bg: #DEDFCF;
    --gml-disabled-text: #575A60;
    --gml-gold: #D08C4A;
    --gml-leather: #C1A38E;
    --gml-leather-muted: #B5947F;
    --gml-leather-text: #765540;

    /* One brand green, with separately named hover/text/dark-surface roles. */
    --gml-accent: #9FBB3C;
    --gml-accent-hover: #AED62D;
    --gml-accent-soft: #B2C889;
    --gml-on-accent: var(--gml-dark);
    --gml-green: var(--gml-accent);
    --gml-green-accent: var(--gml-accent);
    --gml-green-deep: var(--gml-accent);
    --gml-green-olive: var(--gml-accent);
    --gml-green-soft: var(--gml-accent-soft);
    --gml-accent-text: var(--gml-accent);

    --gml-gray-100: #F9F8F5;
    --gml-gray-200: #F4F4F4;
    --gml-gray-300: #D1D5DB;
    --gml-gray-500: #666666;
    --gml-gray-600: #555555;
    --gml-gray-700: #334155;
    --gml-gray-900: var(--gml-text);
    --gml-footer-bg: #363632;
    --gml-text-on-dark: #F5F3EE;
    --gml-text-muted: #CBD5E1;

    --ff-heading: "Arsenal", Arial, sans-serif;
    --ff-body: "Montserrat", Arial, sans-serif;
    --ff-ui: "Roboto", Arial, sans-serif;
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fs-xs: clamp(.75rem, .7rem + .25vw, .875rem);
    --fs-sm: clamp(.8125rem, .76rem + .28vw, .9375rem);
    --fs-base: clamp(.9375rem, .87rem + .33vw, 1.0625rem);
    --fs-md: clamp(1rem, .92rem + .4vw, 1.1875rem);
    --fs-lg: clamp(1.25rem, 1.1rem + .75vw, 1.625rem);
    --fs-xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    --fs-2xl: clamp(1.75rem, 1.35rem + 2vw, 2.875rem);
    --fs-hero: clamp(2rem, 1.5rem + 2.5vw, 3rem);
    --space-xs: clamp(.25rem, .2rem + .25vw, .5rem);
    --space-sm: clamp(.5rem, .4rem + .5vw, 1rem);
    --space-md: clamp(1rem, .8rem + 1vw, 1.5rem);
    --space-lg: clamp(1.5rem, 1rem + 2.5vw, 3rem);
    --space-xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
    --space-2xl: clamp(3rem, 2rem + 5vw, 6rem);
    --container-max: 1300px;
    --container-grid: 1160px;
    --container-narrow: 960px;
    --container-pad: clamp(16px, 4vw, 24px);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 28px;
    --gml-header-height: 108px;
    --gml-admin-offset: 0px;
    --gml-anchor-gap: 16px;
    --header-height: var(--gml-header-height);
    --gml-governance-header-height: var(--gml-header-height);
    --ease-default: cubic-bezier(.4, 0, .2, 1);
    --ease-spring: cubic-bezier(.2, .8, .2, 1);
    --duration-fast: .15s;
    --duration-base: .25s;
    --duration-slow: .35s;
    --duration-img: .45s;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,.12);
    --shadow-lg: 0 12px 35px rgba(0,0,0,.18);
    --shadow-dark: 0 10px 30px rgba(0,0,0,.5);
}
@media (max-width: 921px) {
    :root { --gml-header-height: 83px; }
}
body.admin-bar { --gml-admin-offset: 32px; }
@media (max-width: 782px) {
    body.admin-bar { --gml-admin-offset: 46px; }
}

/* 02. Shared utilities and anchor targets; no double scroll-padding offset. */
.gml-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
:where(h1[id], h2[id], h3[id], h4[id], h5[id], h6[id],
       .wp-block-group[id], .wp-block-cover[id], section[id], .gml-anchor-target) {
    scroll-margin-top: calc(var(--gml-header-height) + var(--gml-admin-offset) + var(--gml-anchor-gap));
}

/* 03. Astra shared header — responsive correction, 2026-10-27. */
:root { --gml-header-height: 84px; }
#masthead {
    position: sticky !important;
    top: var(--gml-admin-offset) !important;
    z-index: 9999 !important;
    width: 100%;
    background: var(--gml-dark);
    box-shadow: var(--shadow-md);
}
body.admin-bar #wpadminbar { position: fixed; top: 0; }
#masthead .site-title,
#masthead .site-description,
#masthead .ast-site-title-wrap { display: none !important; }
#masthead .ast-primary-header-bar {
    box-sizing: border-box;
    min-height: 84px;
    padding: 12px 0;
    background: var(--gml-dark) !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
}
#masthead .site-branding { flex: 0 0 auto; margin: 0; padding: 0; transition: none; }
#masthead .site-logo-img { padding: 0; }
#masthead .custom-logo-link { display: block; line-height: 0; }
#masthead .site-logo-img img,
#masthead .custom-logo-link img {
    display: block;
    width: auto !important;
    height: 56px !important;
    max-height: 56px !important;
    max-width: 150px;
    object-fit: contain;
    transition: none;
}
#ast-desktop-header .site-primary-header-wrap.ast-container {
    display: block;
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    min-height: 0 !important;
    padding-inline: 24px;
}
#ast-desktop-header .site-primary-header-wrap > .ast-builder-grid-row {
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    align-items: center;
    column-gap: 20px;
    width: 100%;
}
#ast-desktop-header .site-header-primary-section-right,
#ast-desktop-header .ast-builder-menu-1,
#ast-desktop-header .ast-main-header-bar-alignment,
#ast-desktop-header .main-header-bar-navigation { min-width: 0; }
#ast-desktop-header .site-header-primary-section-right { justify-content: flex-end; }
#ast-desktop-header .main-navigation { display: flex; justify-content: flex-end; width: 100%; }
#ast-desktop-header #ast-hf-menu-1 {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    margin: 0;
    padding: 0;
    background: transparent;
}
#ast-desktop-header #ast-hf-menu-1 > .menu-item { flex: 0 0 auto; }
#ast-desktop-header #ast-hf-menu-1 > .menu-item > .menu-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    height: auto;
    padding: 10px 6px !important;
    font-family: var(--ff-heading) !important;
    font-size: calc(var(--fs-base) * 1.1) !important;
    font-weight: var(--fw-semibold) !important;
    line-height: 1.25 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--gml-white) !important;
    background: transparent !important;
}
#ast-desktop-header #ast-hf-menu-1 > .menu-item:hover > .menu-link,
#ast-desktop-header #ast-hf-menu-1 > .current-menu-item > .menu-link,
#ast-desktop-header #ast-hf-menu-1 > .current-menu-ancestor > .menu-link {
    color: var(--gml-accent) !important;
}
/* Expose desktop submenus for both pointer hover and keyboard focus. */
#ast-desktop-header #ast-hf-menu-1 > .menu-item-has-children:is(:hover,:focus-within) > .sub-menu {
    left: 0;
    right: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
#masthead .main-header-menu .sub-menu {
    background: var(--gml-dark-muted) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-dark);
    padding: 6px 0;
}
#masthead .main-header-menu .sub-menu .menu-link {
    padding: 12px 18px !important;
    font-family: var(--ff-heading) !important;
    font-size: var(--fs-sm) !important;
    font-weight: var(--fw-medium) !important;
    line-height: 1.4;
    letter-spacing: .3px;
    text-transform: none;
    color: var(--gml-text-on-dark) !important;
}
#masthead .main-header-menu .sub-menu .menu-item:hover > .menu-link,
#masthead .main-header-menu .sub-menu .current-menu-item > .menu-link {
    color: var(--gml-accent) !important;
    background: rgba(159,187,60,.15) !important;
}
#masthead .menu-link:focus-visible,
#masthead .menu-toggle:focus-visible,
.ast-mobile-popup-drawer .menu-link:focus-visible,
.ast-mobile-popup-drawer button:focus-visible {
    outline: 2px solid var(--gml-accent) !important;
    outline-offset: -3px;
}
/* Compact desktop/tablet band starts immediately below 1160px. */
@media (min-width: 922.01px) and (max-width: 1159.98px) {
    #ast-desktop-header .site-primary-header-wrap.ast-container { padding-inline: 18px; }
    #ast-desktop-header .site-primary-header-wrap > .ast-builder-grid-row { column-gap: 12px; }
    #ast-desktop-header .custom-logo-link img { height: 48px !important; max-height: 48px !important; }
    #ast-desktop-header #ast-hf-menu-1 { gap: 0; }
    #ast-desktop-header #ast-hf-menu-1 > .menu-item > .menu-link {
        padding-inline: 5px !important;
        font-size: 15px !important;
        letter-spacing: .45px;
    }
}
@media (min-width: 922.01px) and (max-width: 1023.98px) {
    #ast-desktop-header #ast-hf-menu-1 > .menu-item > .menu-link {
        padding-inline: 4px !important;
        font-size: 14px !important;
        letter-spacing: .25px;
    }
}
/* Align CSS with Astra's runtime at its exact 922px switch. */
@media (min-width: 922.01px) {
    #ast-desktop-header { display: block !important; }
    #ast-mobile-header { display: none !important; }
}
@media (max-width: 922px) {
    #ast-desktop-header { display: none !important; }
    #ast-mobile-header { display: block !important; }
}
@media (max-width: 922px) {
    :root { --gml-header-height: 76px; }
    #masthead .ast-primary-header-bar { min-height: 76px; padding: 10px 20px; }
    #masthead .custom-logo-link img { height: 48px !important; max-height: 48px !important; }
    #ast-mobile-header .ast-builder-grid-row {
        display: grid;
        grid-template-columns: auto minmax(0,1fr);
        align-items: center;
        width: 100%;
        gap: 16px;
    }
    #ast-mobile-header .site-header-primary-section-right { justify-content: flex-end; }
}
#masthead .ast-header-navigation-arrow svg,
#masthead .ast-menu-toggle svg,
#masthead .ast-mobile-svg,
.ast-mobile-popup-drawer svg { fill: currentColor; }
#masthead .menu-toggle,
.ast-mobile-popup-drawer .menu-toggle-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    color: var(--gml-white) !important;
    background: var(--gml-dark) !important;
    border: 1px solid var(--gml-accent) !important;
    border-radius: 6px;
}
#masthead .menu-toggle:hover,
.ast-mobile-popup-drawer .menu-toggle-close:hover { color: var(--gml-accent) !important; }
/* Astra moves/clones the off-canvas navigation outside #masthead. Scope both locations. */
#ast-mobile-header .ast-mobile-header-content,
.ast-mobile-popup-drawer .ast-mobile-popup-inner,
.ast-mobile-popup-drawer .ast-mobile-popup-content,
.ast-mobile-popup-drawer .ast-builder-menu-mobile {
    color: var(--gml-white) !important;
    background: var(--gml-dark) !important;
}
.ast-mobile-popup-drawer .ast-mobile-popup-overlay { background: rgba(11,11,11,.65); }
.ast-mobile-popup-drawer .ast-mobile-popup-header { padding: 12px 20px; }
.ast-mobile-popup-drawer .ast-mobile-popup-content {
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
}
#ast-mobile-header .ast-mobile-header-content {
    max-height: calc(100dvh - var(--gml-header-height) - var(--gml-admin-offset));
    overflow-y: auto;
}
:is(#ast-mobile-header,.ast-mobile-popup-drawer) :is(#ast-hf-mobile-menu,.main-header-menu) {
    display: flex !important;
    flex-flow: column nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100%;
    height: auto;
    min-height: 0;
    gap: 0;
    margin: 0;
    padding: 8px 0;
    background: transparent !important;
    box-sizing: border-box;
}
:is(#ast-mobile-header,.ast-mobile-popup-drawer) :is(#ast-hf-mobile-menu,.main-header-menu) > .menu-item {
    display: flex;
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    background: transparent !important;
    box-sizing: border-box;
}
:is(#ast-mobile-header,.ast-mobile-popup-drawer) :is(#ast-hf-mobile-menu,.main-header-menu) > .menu-item-has-children {
    display: grid;
    grid-template-columns: minmax(0,1fr) 52px;
    align-items: stretch;
}
:is(#ast-mobile-header,.ast-mobile-popup-drawer) :is(#ast-hf-mobile-menu,.main-header-menu) .menu-link {
    display: flex;
    align-items: center;
    min-width: 0;
    width: 100%;
    min-height: 48px;
    padding: 12px 20px !important;
    font-family: var(--ff-heading) !important;
    font-size: 17px !important;
    font-weight: var(--fw-semibold) !important;
    line-height: 1.4 !important;
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: normal;
    color: var(--gml-white) !important;
    background: transparent !important;
    box-sizing: border-box;
}
:is(#ast-mobile-header,.ast-mobile-popup-drawer) :is(#ast-hf-mobile-menu,.main-header-menu) .current-menu-item > .menu-link,
:is(#ast-mobile-header,.ast-mobile-popup-drawer) :is(#ast-hf-mobile-menu,.main-header-menu) .current-menu-ancestor > .menu-link,
:is(#ast-mobile-header,.ast-mobile-popup-drawer) :is(#ast-hf-mobile-menu,.main-header-menu) .menu-link:hover,
:is(#ast-mobile-header,.ast-mobile-popup-drawer) :is(#ast-hf-mobile-menu,.main-header-menu) .menu-link:focus-visible {
    color: var(--gml-accent) !important;
    background: rgba(159,187,60,.12) !important;
}
:is(#ast-mobile-header,.ast-mobile-popup-drawer) :is(#ast-hf-mobile-menu,.main-header-menu) > .menu-item-has-children > .menu-link { grid-area: 1 / 1; }
:is(#ast-mobile-header,.ast-mobile-popup-drawer) :is(#ast-hf-mobile-menu,.main-header-menu) .ast-menu-toggle {
    position: static !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-height: 48px;
    height: 100%;
    margin: 0;
    padding: 0;
    color: var(--gml-white) !important;
    background: transparent !important;
    border: 0;
    box-sizing: border-box;
}
:is(#ast-mobile-header,.ast-mobile-popup-drawer) :is(#ast-hf-mobile-menu,.main-header-menu) > .menu-item-has-children > .ast-menu-toggle { grid-area: 1 / 2; }
:is(#ast-mobile-header,.ast-mobile-popup-drawer) :is(#ast-hf-mobile-menu,.main-header-menu) .sub-menu {
    position: static !important;
    inset: auto !important;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    padding: 0 0 8px;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
    background: rgba(255,255,255,.04) !important;
}
:is(#ast-mobile-header,.ast-mobile-popup-drawer) :is(#ast-hf-mobile-menu,.main-header-menu) .sub-menu .menu-link {
    padding-inline-start: 32px !important;
    font-size: 16px !important;
    font-weight: var(--fw-medium) !important;
    text-transform: none;
}
:is(#ast-mobile-header,.ast-mobile-popup-drawer) :is(#ast-hf-mobile-menu,.main-header-menu) > .menu-item-has-children > .menu-link .ast-header-navigation-arrow { display: none; }


/* 04. Gutenberg defaults. Deliberate block-level color choices remain respected. */

:where(#content, .entry-content, .editor-styles-wrapper, .gml-page) :where(h1,h2,h3,h4,h5,h6,.wp-block-heading) {
    font-family: var(--ff-heading);
    line-height: 1.2;
}
:where(#content, .entry-content, .editor-styles-wrapper, .gml-page) :where(p,li) {
    font-family: var(--ff-body);
    line-height: 1.65;
}
#content .wp-block-heading,
.entry-content .wp-block-heading,
.editor-styles-wrapper .wp-block-heading {
    font-family: var(--ff-heading);
}
:where(#content, .entry-content, .editor-styles-wrapper) p.wp-block-paragraph,
:where(#content, .entry-content, .editor-styles-wrapper) li.wp-block-list-item {
    font-family: var(--ff-body);
}
:where(#content, .entry-content, .editor-styles-wrapper) .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: 30px;
    box-sizing: border-box;
    font-family: var(--ff-heading);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background-color var(--duration-base) var(--ease-default),
                color var(--duration-base) var(--ease-default),
                box-shadow var(--duration-base) var(--ease-default);
}
:where(#content, .entry-content, .editor-styles-wrapper) .wp-block-button:not(.is-style-outline) > .wp-block-button__link:not(.has-background) {
    background-color: var(--gml-accent);
}
:where(#content, .entry-content, .editor-styles-wrapper) .wp-block-button:not(.is-style-outline) > .wp-block-button__link:not(.has-text-color) {
    color: var(--gml-on-accent);
}
:where(#content, .entry-content, .editor-styles-wrapper) .wp-block-button__link:hover {
    box-shadow: var(--shadow-sm);
}
:where(#content, .entry-content, .editor-styles-wrapper) .wp-block-button__link:focus-visible,
.gml-btn:focus-visible, .gml-btn-accent:focus-visible, .gml-cs-gov-btn:focus-visible,
.gml-cs-btn-sub:focus-visible {
    outline: 3px solid var(--gml-dark);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--gml-white);
}
.gml-page {
    --wp--style--global--content-size: var(--container-narrow);
    --wp--style--global--wide-size: var(--container-max);
    --gml-link-color: var(--gml-accent-text);
    color: var(--gml-text);
    background-color: var(--gml-bg-light);
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    line-height: 1.65;
    box-sizing: border-box;
}
/* gml-page opts into theme-owned button colors, even when old inline colors remain.
 * Explicit variants, outline styles, anchor pills and disabled states below win.
 */
.gml-page :where(.wp-block-button__link) {
    background-color: var(--gml-accent) !important;
    color: var(--gml-on-accent) !important;
}
.gml-page :where(.wp-block-button__link:hover) {
    background-color: var(--gml-accent-hover) !important;
}
:where(.gml-page) :where(h1) { font-size: var(--fs-hero); }
:where(.gml-page) :where(h2) { font-size: var(--fs-2xl); }
:where(.gml-page) :where(h3) { font-size: var(--fs-lg); }
:where(.gml-page) :where(h4) { font-size: var(--fs-md); }
:where(.gml-page) :where(h1,h2,h3,h4,h5,h6) { color: inherit; }
.gml-page :where(p,li) > a:not(.wp-block-button__link) {
    color: var(--gml-link-color);
    text-decoration: underline;
    text-underline-offset: .2em;
}
.gml-page :where(p,li) > a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
.gml-page--full { width: 100%; max-width: none; }
#content > .ast-container:has(.gml-page--full, .gml-governance-page, .gml-cs-wrap, .gml-hg-wrap) {
    width: 100%;
    max-width: none;
    padding-inline: 0;
}
.gml-section { padding: var(--space-2xl) var(--container-pad); box-sizing: border-box; }
.gml-section--light { background: var(--gml-bg-light); color: var(--gml-text); }
.gml-section--warm { background: var(--gml-bg-warm); color: var(--gml-text); }
.gml-section--dark {
    --gml-link-color: var(--gml-accent-soft);
    background: var(--gml-dark);
    color: var(--gml-text-on-dark);
}
.gml-container { width: 100%; max-width: var(--container-max); margin-inline: auto; box-sizing: border-box; }
.gml-content { width: 100%; max-width: var(--container-narrow); margin-inline: auto; }
.gml-eyebrow { color: var(--gml-accent-text); font-family: var(--ff-heading); font-weight: var(--fw-bold); }
.gml-section--dark .gml-eyebrow { color: var(--gml-accent-soft); }
.gml-hero, .gml-home-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - var(--gml-header-height) - var(--gml-admin-offset));
    min-height: calc(100svh - var(--gml-header-height) - var(--gml-admin-offset));
    box-sizing: border-box;
}
.gml-card-grid.wp-block-columns { align-items: stretch; gap: var(--space-md); }
.gml-card-grid > .wp-block-column { display: flex; min-width: 0; }
.gml-card-grid--three, .gml-card-grid--two {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: var(--space-md);
}
.gml-card-grid--two { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media (min-width: 782px) {
    .gml-card-grid--three.gml-card-grid--center-last > .gml-card:last-child:nth-child(3n+1) { grid-column: 2; }
}
.gml-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--gml-white);
    color: var(--gml-text);
    border-radius: var(--border-radius-md);
    box-sizing: border-box;
}
.gml-card > :where(p,h2,h3,figure,.wp-block-buttons) { margin-block: 0; }
.gml-card > .wp-block-buttons:last-child { margin-top: auto; }
.gml-stat-card { text-align: center; align-items: center; }
.gml-stat-icon { font-size: 2rem; line-height: 1.2; }
/* Legacy native cards keep equal height without turning every background Group into a flex layout. */
:where(#content, .editor-styles-wrapper) .wp-block-column > .wp-block-group.has-background {
    height: 100%;
    box-sizing: border-box;
}
.gml-card-grid .wp-block-image img { max-width: 100%; height: auto; }
.gml-anchor-bar { padding-block: var(--space-md); }
.gml-anchor-bar .wp-block-buttons { flex-wrap: wrap; gap: 12px; }
.gml-anchor-bar .wp-block-button__link,
.gml-governance-nav .wp-block-button__link {
    background-color: var(--gml-white) !important;
    color: var(--gml-text) !important;
    border: 1px solid var(--gml-input-border) !important;
    border-radius: 999px !important;
    padding: 10px 20px !important;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    box-shadow: none;
}
.gml-anchor-bar .wp-block-button__link:hover,
.gml-anchor-bar .wp-block-button__link:focus-visible,
.gml-governance-nav .wp-block-button__link:hover,
.gml-governance-nav .wp-block-button__link:focus-visible {
    background-color: var(--gml-accent) !important;
    color: var(--gml-on-accent) !important;
    border-color: var(--gml-dark) !important;
}

/* Direct links use gml-btn; Gutenberg Buttons put the variant class on the Button block. */
:is(a,button).gml-btn, .gml-btn-accent, .gml-cs-gov-btn, .gml-cs-btn-sub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: 30px;
    box-sizing: border-box;
    font-family: var(--ff-heading);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    line-height: 1.35;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--duration-base) var(--ease-default),
                color var(--duration-base) var(--ease-default),
                box-shadow var(--duration-base) var(--ease-default);
}
:is(a,button).gml-btn,
:is(a,button).gml-btn--primary,
.gml-btn-accent, .gml-cs-gov-btn,
.wp-block-button.gml-btn--primary > .wp-block-button__link {
    background-color: var(--gml-accent) !important;
    color: var(--gml-on-accent) !important;
}
:is(a,button).gml-btn:hover,
:is(a,button).gml-btn--primary:hover,
.gml-btn-accent:hover, .gml-cs-gov-btn:hover,
.wp-block-button.gml-btn--primary > .wp-block-button__link:hover {
    background-color: var(--gml-accent-hover) !important;
    color: var(--gml-on-accent) !important;
}
:is(a,button).gml-btn--secondary, .gml-cs-btn-sub,
.wp-block-button.gml-btn--secondary > .wp-block-button__link {
    background-color: var(--gml-leather) !important;
    color: var(--gml-dark) !important;
}
:is(a,button).gml-btn--secondary:hover, .gml-cs-btn-sub:hover,
.wp-block-button.gml-btn--secondary > .wp-block-button__link:hover {
    background-color: var(--gml-leather-muted) !important;
    color: var(--gml-dark) !important;
}
:is(a,button).gml-btn--outline,
.wp-block-button.gml-btn--outline > .wp-block-button__link,
.gml-page .wp-block-button.is-style-outline > .wp-block-button__link {
    background: transparent !important;
    color: inherit !important;
    border: 2px solid currentColor !important;
}
.gml-cs-btn-sub { margin-top: var(--space-md); }
/* Visual disabled state only: markup must also remove href/use disabled and aria-disabled. */
.wp-block-button.is-disabled-doc .wp-block-button__link,
.wp-block-button .wp-block-button__link[aria-disabled="true"],
.gml-btn-disabled, :is(a,button).gml-btn[aria-disabled="true"], button.gml-btn:disabled {
    background: var(--gml-disabled-bg) !important;
    color: var(--gml-disabled-text) !important;
    border-color: var(--gml-border) !important;
    cursor: not-allowed !important;
    pointer-events: none;
    opacity: 1;
    box-shadow: none !important;
    transform: none !important;
}
@media (max-width: 781px) {
    .gml-card-grid--three, .gml-card-grid--two { grid-template-columns: minmax(0,1fr); }
    .gml-card-grid.wp-block-columns:not(.is-not-stacked-on-mobile) { flex-wrap: wrap !important; }
    .gml-card-grid.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
        flex-basis: 100% !important;
    }
}

.wp-block-button .wp-block-button__link,
.wp-block-search .wp-block-search__button,
body .wp-block-file .wp-block-file__button {
    border-color: var(--gml-accent) !important;
}

/* 05. Existing timeline, footer, ecosystem, work, form, pillars and Magazine card components. */
.gml-timeline-wrapper {
    background-color: var(--gml-gray-200);
    padding: var(--space-xl) var(--space-sm);
    font-family: var(--ff-heading);
    position: relative;
    overflow: visible;
}

.gml-timeline-title {
    text-align: center;
    font-family: var(--ff-heading);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--gml-black);
    margin-bottom: var(--space-xl);
}

.gml-timeline-title em {
    color: var(--gml-leather-text);
    font-style: italic;
    font-weight: var(--fw-semibold);
}

.gml-timeline-container {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    padding: var(--space-md) var(--space-xs);
}

/* Mobile-first: Vertical timeline line */

.gml-timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 3px;
    height: 100%;
    background-color: var(--gml-gray-300);
    z-index: 1;
}

/* Mobile-first: Vertical column of nodes */

.gml-timeline-nodes {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    padding-left: 9px;
}

/* Mobile-first: Row layout (bullet left, year + inline text right) */

.gml-node {
    position: relative;
    display: grid;
    grid-template-columns: 22px 1fr;
    grid-template-areas:
        "bullet year"
        ".      text";
    column-gap: var(--space-md);
    row-gap: var(--space-xs);
    align-items: center;
    cursor: pointer;
    outline: none;
}

.gml-node:focus-visible {
    outline: 2px solid var(--gml-green-olive);
    outline-offset: 4px;
    border-radius: var(--border-radius-sm);
}

.gml-node-bullet {
    grid-area: bullet;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--gml-white);
    border: 3px solid var(--gml-green-olive);
    box-sizing: border-box;
    align-self: start;
    margin-top: 3px;
    transition: transform var(--duration-base) var(--ease-default),
                background-color var(--duration-base) var(--ease-default),
                box-shadow var(--duration-base) var(--ease-default);
    will-change: transform;
}

.gml-node:hover .gml-node-bullet,
.gml-node:focus-within .gml-node-bullet {
    background-color: var(--gml-green-olive);
    transform: scale(1.35);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--gml-green-olive) 25%, transparent);
}

.gml-node-year {
    grid-area: year;
    font-family: var(--ff-heading);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--gml-black);
    line-height: 1.2;
    transition: color var(--duration-fast) var(--ease-default);
}

.gml-node:hover .gml-node-year,
.gml-node:focus-within .gml-node-year {
    color: var(--gml-accent-text);
}

/* Mobile-first: Tooltip as always-visible card in green box */

.gml-tooltip-bubble {
    grid-area: text;
    font-family: var(--ff-ui);
    font-size: var(--fs-sm);
    line-height: 1.5;
    color: var(--gml-on-accent);
    background-color: var(--gml-green-olive);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.gml-tooltip-bubble::after {
    content: "";
    position: absolute;
    display: none;
}

/* Desktop layout (>= 768px): Horizontal timeline with alternating tooltips */

@media (min-width: 768px) {
.gml-timeline-wrapper {
        padding: var(--space-2xl) var(--space-md);
    }

.gml-timeline-container {
        padding: 210px var(--space-sm) 190px var(--space-sm);
    }

.gml-timeline-line {
        top: 52%;
        bottom: auto;
        left: 40px;
        right: 40px;
        width: auto;
        height: 3px;
        transform: translateY(-50%);
    }

.gml-timeline-nodes {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        padding-left: 0;
    }

.gml-node {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        grid-template-columns: none;
        grid-template-areas: none;
        column-gap: 0;
        row-gap: 0;
    }

.gml-node-bullet {
        align-self: auto;
        margin-top: 0;
    }

.gml-node-year {
        position: absolute;
        white-space: nowrap;
    }

.gml-node.pos-top .gml-node-year {
        bottom: 30px;
        top: auto;
    }

.gml-node.pos-bottom .gml-node-year {
        top: 30px;
        bottom: auto;
    }

.gml-tooltip-bubble {
        position: absolute;
        width: 280px;
        max-width: none;
        left: 50%;
        background-color: var(--gml-green-olive);
        color: var(--gml-on-accent);
        padding: var(--space-sm) var(--space-md);
        border-radius: var(--border-radius-sm);
        box-shadow: var(--shadow-md);
        box-sizing: border-box;
        text-align: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 10;
        transition: opacity var(--duration-base) var(--ease-default),
                    transform var(--duration-base) var(--ease-default),
                    visibility 0s linear var(--duration-base);
        will-change: transform, opacity;
    }

.gml-tooltip-bubble::after {
        content: "";
        position: absolute;
        display: block;
        width: 0;
        height: 0;
    }

.gml-node:hover .gml-tooltip-bubble,
    .gml-node:focus-within .gml-tooltip-bubble,
    .gml-node.is-active .gml-tooltip-bubble {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0s;
    }

.gml-node.pos-top .gml-tooltip-bubble {
        bottom: 68px;
        top: auto;
        transform: translateX(-50%) translateY(6px);
    }

.gml-node.pos-top:hover .gml-tooltip-bubble,
    .gml-node.pos-top:focus-within .gml-tooltip-bubble,
    .gml-node.pos-top.is-active .gml-tooltip-bubble {
        transform: translateX(-50%) translateY(0);
    }

.gml-node.pos-top .gml-tooltip-bubble::after {
        top: 100%;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        border-width: 8px 8px 0 8px;
        border-style: solid;
        border-color: var(--gml-green-olive) transparent transparent transparent;
    }

.gml-node.pos-bottom .gml-tooltip-bubble {
        top: 68px;
        bottom: auto;
        transform: translateX(-50%) translateY(-6px);
    }

.gml-node.pos-bottom:hover .gml-tooltip-bubble,
    .gml-node.pos-bottom:focus-within .gml-tooltip-bubble,
    .gml-node.pos-bottom.is-active .gml-tooltip-bubble {
        transform: translateX(-50%) translateY(0);
    }

.gml-node.pos-bottom .gml-tooltip-bubble::after {
        bottom: 100%;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        border-width: 0 8px 8px 8px;
        border-style: solid;
        border-color: transparent transparent var(--gml-green-olive) transparent;
    }

/* Adjust end-nodes tooltip overflow on desktop */

.gml-node:first-child .gml-tooltip-bubble {
        left: -10px;
        right: auto;
        transform: translateY(6px);
    }

.gml-node:first-child:hover .gml-tooltip-bubble,
    .gml-node:first-child:focus-within .gml-tooltip-bubble,
    .gml-node:first-child.is-active .gml-tooltip-bubble {
        transform: translateY(0);
    }

.gml-node:first-child .gml-tooltip-bubble::after {
        left: 21px;
        right: auto;
        transform: translateX(-50%);
    }

.gml-node:last-child .gml-tooltip-bubble {
        right: -10px;
        left: auto;
        transform: translateY(-6px);
    }

.gml-node:last-child:hover .gml-tooltip-bubble,
    .gml-node:last-child:focus-within .gml-tooltip-bubble,
    .gml-node:last-child.is-active .gml-tooltip-bubble {
        transform: translateY(0);
    }

.gml-node:last-child .gml-tooltip-bubble::after {
        right: 21px;
        left: auto;
        transform: translateX(50%);
    }
}

/* 6. FOOTER STYLES */

.gml-custom-footer {
    background-color: var(--gml-footer-bg);
    color: var(--gml-white);
    padding: var(--space-2xl) var(--space-md) var(--space-xl) var(--space-md);
    text-align: center;
    font-family: var(--ff-heading);
}

.gml-footer-logo {
    max-width: 140px;
    height: auto;
    margin: 0 auto var(--space-lg) auto;
    display: block;
}

.gml-footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding: 0;
    list-style: none;
}

.gml-footer-menu a {
    color: var(--gml-white) /* Astra override */ !important;
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-default);
}

.gml-footer-menu a:hover {
    color: var(--gml-green-accent) /* Astra override */ !important;
}

.gml-footer-menu a:focus-visible {
    outline: 2px solid var(--gml-green-accent);
    outline-offset: 2px;
}

.gml-footer-contacts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    font-size: var(--fs-sm);
    color: var(--gml-text-muted);
    font-family: var(--ff-ui);
}

.gml-footer-contacts a {
    color: var(--gml-text-muted) /* Astra override */ !important;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-default);
}

.gml-footer-contacts a:hover {
    color: var(--gml-white) /* Astra override */ !important;
}

.gml-footer-contacts a:focus-visible {
    outline: 2px solid var(--gml-green-accent);
    outline-offset: 2px;
}

.gml-linkedin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--gml-green-accent);
    border-radius: 50%;
    color: var(--gml-on-accent);
    will-change: transform;
    transition: transform var(--duration-fast) var(--ease-spring),
                background-color var(--duration-fast) var(--ease-default);
    text-decoration: none;
}

.gml-linkedin-btn:hover {
    transform: scale(1.1);
    background-color: var(--gml-green);
}

.gml-linkedin-btn:focus-visible {
    outline: 2px solid var(--gml-white);
    outline-offset: 3px;
}

.gml-linkedin-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--gml-white);
}

/* 7. ECOSYSTEM SECTION STYLES WITH INTERACTIVE HOVER OVERLAYS */

.gml-ecosystem-wrapper {
    max-width: 1180px;
    margin: var(--space-xl) auto var(--space-2xl) auto;
    background-color: color-mix(in srgb, var(--gml-gray-500) 90%, transparent);
    border-radius: var(--border-radius-md);
    padding: var(--space-xl) var(--space-sm);
    box-sizing: border-box;
    text-align: center;
    color: var(--gml-white);
    font-family: var(--ff-heading);
    box-shadow: var(--shadow-md);
}

.gml-ecosystem-title {
    font-family: var(--ff-heading);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--gml-white);
    margin-bottom: var(--space-sm);
}

.gml-ecosystem-title em {
    font-style: italic;
    font-weight: var(--fw-semibold);
}

.gml-ecosystem-desc {
    font-family: var(--ff-ui);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--gml-white);
    max-width: 860px;
    margin: 0 auto var(--space-xl) auto;
}

.gml-ecosystem-desc a {
    color: var(--gml-green) !important; /* Astra override */
    text-decoration: underline;
    font-weight: var(--fw-medium);
}

.gml-ecosystem-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs);
    align-items: stretch;
    justify-content: center;
}

.gml-eco-card {
    position: relative;
    background-color: var(--gml-dark-surface);
    border-radius: var(--border-radius-md);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transition: transform var(--duration-base) var(--ease-spring),
                background-color var(--duration-base) var(--ease-spring),
                box-shadow var(--duration-base) var(--ease-spring),
                border-color var(--duration-base) var(--ease-spring);
}

.gml-eco-card:hover,
.gml-eco-card:focus,
.gml-eco-card.is-hovered {
    transform: translateY(-6px);
    background-color: var(--gml-black);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--gml-green-accent) 50%, transparent);
}

.gml-eco-card:focus-visible {
    outline: 2px solid var(--gml-green);
    outline-offset: 2px;
}

.gml-eco-card .gml-eco-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    box-sizing: border-box;
    will-change: transform, opacity;
    transition: opacity var(--duration-base) var(--ease-spring),
                transform var(--duration-base) var(--ease-spring);
    opacity: 1;
    transform: scale(1);
}

.gml-eco-card .gml-eco-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.gml-eco-card:hover .gml-eco-icon,
.gml-eco-card:focus .gml-eco-icon,
.gml-eco-card.is-hovered .gml-eco-icon {
    opacity: 0.10;
    transform: scale(0.90);
}

.gml-eco-card .gml-eco-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xs);
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(6px);
    will-change: transform, opacity;
    transition: opacity var(--duration-base) var(--ease-spring),
                transform var(--duration-base) var(--ease-spring);
    pointer-events: none;
    z-index: 2;
}

.gml-eco-card:hover .gml-eco-overlay,
.gml-eco-card:focus .gml-eco-overlay,
.gml-eco-card.is-hovered .gml-eco-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.gml-eco-text {
    font-family: var(--ff-ui);
    color: var(--gml-white);
    font-size: var(--fs-xs);
    line-height: 1.35;
    text-align: center;
    margin: 0;
    word-break: normal;
    overflow-wrap: break-word;
}

.gml-eco-stat {
    font-family: var(--ff-heading);
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    color: var(--gml-green);
    display: inline-block;
}

@media (min-width: 480px) {
.gml-ecosystem-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }
}

@media (min-width: 768px) {
.gml-ecosystem-wrapper {
        padding: var(--space-2xl) var(--space-lg);
        border-radius: var(--border-radius-xl);
    }

.gml-ecosystem-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
.gml-ecosystem-cards {
        grid-template-columns: repeat(7, 1fr);
        gap: var(--space-md);
    }
}

/* 8. LE NOSTRE LAVORAZIONI (AUTHENTIC CARDS WITH BUG-FREE HOVER) */

.gml-lavorazioni-wrapper {
    max-width: 1180px;
    margin: 0 auto;
    font-family: var(--ff-heading);
}

.gml-lav-title {
    font-family: var(--ff-heading);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    text-align: center;
    margin-bottom: var(--space-sm);
    color: var(--gml-black);
}

.gml-lav-subtitle {
    font-family: var(--ff-ui);
    font-size: var(--fs-base);
    line-height: 1.75;
    color: var(--gml-gray-700);
    text-align: center;
    max-width: 820px;
    margin: 0 auto var(--space-xl) auto;
}

.gml-lav-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.gml-lav-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform var(--duration-base) var(--ease-spring);
}

.gml-lav-card:focus-visible {
    outline: 2px solid var(--gml-green);
    outline-offset: 4px;
    border-radius: var(--border-radius-md);
}

.gml-lav-media {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: var(--shadow-md);
    background-color: var(--gml-black);
}

.gml-lav-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform;
    transition: transform var(--duration-img) var(--ease-spring);
}

.gml-lav-card:hover .gml-lav-media img,
.gml-lav-card:focus .gml-lav-media img {
    transform: scale(1.05);
}

/* Gradient overlay for contrast and legibility over leather imagery */

.gml-lav-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.gml-lav-tag {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    font-family: var(--ff-heading);
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--gml-white);
    z-index: 2;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.gml-lav-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-sm);
    padding-left: 2px;
    padding-right: 2px;
}

.gml-lav-caption {
    font-family: var(--ff-ui);
    font-size: var(--fs-base);
    color: var(--gml-gray-900);
    font-weight: var(--fw-regular);
}

.gml-lav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--gml-green-olive);
    color: var(--gml-on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    will-change: transform;
    transition: transform var(--duration-base) var(--ease-spring),
                background-color var(--duration-base) var(--ease-default),
                box-shadow var(--duration-base) var(--ease-default);
    box-shadow: var(--shadow-sm);
}

.gml-lav-card:hover .gml-lav-btn,
.gml-lav-card:focus .gml-lav-btn {
    transform: scale(1.18);
    background-color: var(--gml-green);
}

.gml-lav-btn svg {
    width: 18px;
    height: 18px;
}

@media (min-width: 768px) {
.gml-lav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

/* 9. MODULO RICHIESTA BILANCIO IN FORMATO PDF (DARK LUXURY - ALTO CONTRASTO) */

.gml-bilancio-wrapper {
    max-width: var(--container-narrow);
    margin: 0 auto;
    font-family: var(--ff-heading);
}

.gml-bilancio-title {
    font-family: var(--ff-heading);
    font-size: var(--fs-xl);
    font-style: italic;
    font-weight: var(--fw-semibold);
    text-align: center;
    color: var(--gml-white);
    margin-bottom: var(--space-xl);
    line-height: 1.35;
}

.gml-bilancio-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Home report form: match the site's primary button without changing form behavior. */
body #gml-bilancio-form #gml-bilancio-submit:not(:disabled) {
    background-color: var(--gml-accent) !important;
    color: var(--gml-on-accent) !important;
    border: 2px solid var(--gml-accent) !important;
    border-radius: 30px !important;
    padding: 15px 30px !important;
    min-height: 44px;
    max-width: 100%;
    box-sizing: border-box;
    font-family: var(--ff-body) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
}

body #gml-bilancio-form #gml-bilancio-submit:not(:disabled):hover {
    background-color: var(--gml-accent-hover) !important;
    border-color: var(--gml-accent) !important;
    color: var(--gml-on-accent) !important;
}

/* Home report form inputs: match the Contact form on the dark Home surface. */
body #gml-bilancio-form :is(label, legend) {
    color: #f5f3ee;
    font-family: var(--ff-body);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

body #gml-bilancio-form :is(input[type="text"], input[type="email"], input[type="tel"], textarea) {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #75786a !important;
    border-radius: 8px;
    background: #fff !important;
    color: #202127 !important;
    font-family: var(--ff-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    box-shadow: none;
}

body #gml-bilancio-form textarea {
    height: 180px;
    min-height: 160px;
    resize: vertical;
}

body #gml-bilancio-form :is(input[type="text"], input[type="email"], input[type="tel"], textarea)::placeholder {
    color: #666;
    opacity: 1;
}

body #gml-bilancio-form :is(input[type="text"], input[type="email"], input[type="tel"], textarea):focus {
    border-color: #526b1f !important;
    outline: 3px solid var(--gml-accent) !important;
    outline-offset: 3px !important;
    box-shadow: none !important;
}

.gml-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.gml-form-row.full-width {
    grid-template-columns: 1fr;
}

.gml-form-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.gml-label {
    font-family: var(--ff-heading);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    color: var(--gml-white);
}

.gml-req {
    color: var(--gml-green-olive);
    font-weight: var(--fw-bold);
}

.gml-input,
.gml-textarea {
    width: 100%;
    background-color: var(--gml-white);
    color: var(--gml-dark);
    border: 1px solid transparent;
    border-radius: var(--border-radius-sm);
    padding: var(--space-sm) var(--space-md);
    font-family: var(--ff-ui);
    font-size: var(--fs-sm);
    box-sizing: border-box;
    outline: none;
    transition: border-color var(--duration-fast) var(--ease-default),
                box-shadow var(--duration-fast) var(--ease-default);
}

.gml-input:focus,
.gml-textarea:focus,
.gml-input:focus-visible,
.gml-textarea:focus-visible {
    border-color: var(--gml-green-olive);
    box-shadow: 0 0 0 3px rgba(153, 184, 60, 0.35);
    outline: none;
}

.gml-radio-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
    padding-top: var(--space-xs);
}

.gml-radio-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--gml-white);
    font-family: var(--ff-ui);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    cursor: pointer;
}

.gml-radio-item input[type="radio"] {
    accent-color: var(--gml-green-olive);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.gml-radio-item input[type="radio"]:focus-visible,
.gml-privacy-box input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--gml-green-olive);
    outline-offset: 2px;
}

.gml-privacy-box {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--gml-text-muted);
    font-family: var(--ff-ui);
    font-size: var(--fs-xs);
    cursor: pointer;
}

.gml-privacy-box input[type="checkbox"] {
    accent-color: var(--gml-green-olive);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.gml-form-submit-row {
    text-align: center;
    margin-top: var(--space-md);
}

.gml-submit-btn {
    display: inline-block;
    background-color: var(--gml-green-olive);
    color: var(--gml-on-accent);
    font-family: var(--ff-heading);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    will-change: transform;
    transition: transform var(--duration-base) var(--ease-spring),
                background-color var(--duration-base) var(--ease-default),
                box-shadow var(--duration-base) var(--ease-default);
    box-shadow: 0 4px 15px rgba(153, 184, 60, 0.35);
}

.gml-submit-btn:hover {
    background-color: var(--gml-green-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(153, 184, 60, 0.45);
}

.gml-submit-btn:focus-visible {
    outline: 2px solid var(--gml-white);
    outline-offset: 3px;
}

.gml-success-banner {
    background-color: #2E7D32 /* Success green */;
    color: var(--gml-white);
    padding: var(--space-md);
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-family: var(--ff-ui);
    font-size: var(--fs-sm);
    margin-top: var(--space-md);
}

@media (min-width: 768px) {
.gml-form-row {
        grid-template-columns: repeat(2, 1fr);
    }

.gml-form-row.full-width {
        grid-template-columns: 1fr;
    }

.gml-radio-group {
        flex-direction: row;
        align-items: center;
        gap: var(--space-md);
    }
}

/* ==========================================================================
   9. GML VALORI E PUNTI DI FORZA (3 PILLARS)
   ========================================================================== */

.gml-pillars-section {
    background-color: var(--gml-white);
    padding: var(--space-xl) var(--space-sm);
    box-sizing: border-box;
}

.gml-pillars-wrapper {
    max-width: 1180px;
    margin: 0 auto;
}

/* Mobile-first: 1 column base */

.gml-pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    max-width: 480px;
    margin: 0 auto;
    align-items: start;
}

.gml-pillar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--duration-slow) var(--ease-spring);
    will-change: transform;
}

/* Scroll reveal for pillar cards */

.gml-pillar-card.gml-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s var(--ease-default),
                transform 0.6s var(--ease-default);
    will-change: transform, opacity;
}

.gml-pillar-card.gml-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover lift on pillar card */

.gml-pillar-card:hover,
.gml-pillar-card.is-visible:hover {
    transform: translateY(-6px);
}

.gml-pillar-img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-md);
    background-color: var(--gml-gray-200);
    transition: transform var(--duration-slow) var(--ease-spring),
                box-shadow var(--duration-slow) var(--ease-default);
    will-change: transform;
}

.gml-pillar-card:hover .gml-pillar-img-box {
    box-shadow: var(--shadow-lg);
}

.gml-pillar-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gml-pillar-title {
    font-family: var(--ff-heading);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--gml-dark);
    margin: 0 0 var(--space-sm) 0;
    line-height: 1.3;
}

.gml-pillar-desc {
    font-family: var(--ff-ui);
    font-style: italic;
    font-size: var(--fs-sm);
    line-height: 1.65;
    color: var(--gml-gray-600);
    margin: 0;
    max-width: 350px;
}

/* Desktop layout (>= 768px): 3 columns */

@media (min-width: 768px) {
.gml-pillars-section {
        padding: var(--space-2xl) var(--space-md);
    }

.gml-pillars-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
        max-width: 100%;
        margin: 0;
    }
}

/* 10. GML NEWS & MEDIA HOMEPAGE SECTION */

.gml-news-section {
    background-color: var(--gml-white);
    padding: var(--space-2xl) var(--space-md);
    box-sizing: border-box;
}

.gml-news-wrapper {
    max-width: 1180px;
    margin: 0 auto;
}

.gml-news-title {
    font-family: var(--ff-heading);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--gml-dark);
    text-align: center;
    margin: 0 0 var(--space-xl) 0;
}

.gml-news-title em {
    font-style: italic;
    font-weight: var(--fw-regular);
    color: var(--gml-leather-text);
}

.gml-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: stretch;
    max-width: 520px;
    margin: 0 auto;
}

.gml-news-card {
    background: var(--gml-white);
    border: 2px solid var(--gml-green-accent);
    border-top: 10px solid var(--gml-green-accent);
    border-radius: var(--border-radius-sm);
    padding: var(--space-lg) var(--space-md) var(--space-md) var(--space-md);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    will-change: transform;
    transition: transform var(--duration-slow) var(--ease-spring),
                box-shadow var(--duration-slow) var(--ease-default);
}

.gml-news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gml-news-card-body {
    flex-grow: 1;
}

.gml-news-card-title {
    font-family: var(--ff-heading);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    line-height: 1.35;
    margin: 0 0 var(--space-sm) 0;
}

.gml-news-card-title a {
    color: var(--gml-gray-600);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--duration-fast) var(--ease-default);
}

.gml-news-card-title a:hover {
    color: var(--gml-accent-text);
}

.gml-news-card-title a:focus-visible,
.gml-news-card-btn:focus-visible {
    outline: 2px solid var(--gml-green-accent);
    outline-offset: 2px;
}

.gml-news-card-excerpt {
    font-family: var(--ff-ui);
    font-size: var(--fs-sm);
    line-height: 1.55;
    color: var(--gml-gray-600);
    margin: 0 0 var(--space-md) 0;
}

.gml-news-card-btn {
    display: inline-block;
    font-family: var(--ff-ui);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    color: var(--gml-accent-text);
    text-decoration: underline;
    margin-bottom: var(--space-md);
    transition: color var(--duration-fast) var(--ease-default);
}

.gml-news-card-btn:hover {
    color: var(--gml-accent-text);
}

.gml-news-card-meta {
    border-top: 1px solid var(--gml-gray-300);
    padding-top: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--ff-ui);
    font-size: var(--fs-xs);
    color: var(--gml-gray-500);
}

.gml-news-card-meta svg {
    width: 14px;
    height: 14px;
    fill: var(--gml-gray-500);
}

@media (min-width: 768px) {
.gml-news-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        margin: 0;
    }
}

@media (min-width: 1024px) {
.gml-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 06. Native details timeline and disabled PDF request preview. */
/* Versione Gutenberg Homepage (.gm-history-*) */

.gm-history-scroll {
  overflow-x: auto;
  padding: 24px 4px 28px;
  scrollbar-color: var(--gml-green-accent) #343740;
}

.gm-history-timeline {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 1080px;
}

.gm-history-timeline::before {
  content: "";
  position: absolute;
  left: 5.5%;
  right: 5.5%;
  top: 22px;
  height: 3px;
  background: var(--gml-green-accent);
}

.gm-history-timeline > li {
  position: relative;
  flex: 1;
  min-height: 126px;
  text-align: center;
}

.gm-history-milestone {
  position: relative;
  z-index: 1;
}

.gm-history-milestone > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 3px solid var(--gml-dark);
  border-radius: 50%;
  background: var(--gml-green-accent);
  color: var(--gml-dark);
  font-family: var(--ff-heading);
  font-weight: var(--fw-bold);
  font-size: 15px;
  box-shadow: 0 0 0 2px var(--gml-green-accent);
}

.gm-history-milestone > summary::-webkit-details-marker {
  display: none;
}

.gm-history-milestone > summary:focus-visible {
  outline: 3px solid var(--gml-white);
  outline-offset: 4px;
}

.gm-history-tip {
  display: none;
  position: relative;
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  width: min(250px, 78vw);
  max-width: 78vw;
  padding: 16px;
  border-radius: 10px;
  background: var(--gml-white);
  color: var(--gml-gray-900);
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: var(--shadow-md);
  z-index: 5;
    box-sizing: border-box;
    margin-top: 12px;
}

.gm-history-milestone:hover .gm-history-tip,
.gm-history-milestone:focus-within .gm-history-tip,
.gm-history-milestone[open] .gm-history-tip {
  display: block;
}

.gm-history-timeline > li:first-child .gm-history-tip {
  left: 0;
  transform: none;
}

.gm-history-timeline > li:last-child .gm-history-tip {
  left: 100%;
  right: auto;
  transform: translateX(-100%);
}

@media (max-width: 700px) {
.gm-history-timeline { min-width: 990px; }

.gm-history-tip { width: min(250px, 78vw); font-size: 13px;
    position: relative;
    top: auto;
    box-sizing: border-box;
    margin-top: 12px;
}
}

/* ==========================================================================
   5. FORM RICHIESTA BILANCIO (Supporta sia .gml-bilancio-* sia .gm-report-form-preview)
   ========================================================================== */

.gm-report-form-preview {
  max-width: 760px;
  margin: 32px auto 0;
  padding: 28px;
  background: var(--gml-white);
  border: 1px solid var(--gml-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

.gm-report-form-preview .gm-report-status {
  padding: 12px 16px;
  margin: 0 0 24px;
  border-left: 4px solid var(--gml-green-accent);
  background: var(--gml-bg-light);
  font-size: 14px;
}

.gm-report-form-preview fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.gm-report-form-preview .gm-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.gm-report-form-preview .gm-report-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gm-report-form-preview label,
.gm-report-form-preview legend {
  font-weight: var(--fw-semibold);
  color: var(--gml-gray-900);
}

.gm-report-form-preview input,
.gm-report-form-preview select,
.gm-report-form-preview textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gml-input-border);
  border-radius: 6px;
  background: var(--gml-white);
  color: var(--gml-gray-900);
  font: inherit;
}

.gm-report-form-preview .gm-report-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 12px 0;
}

.gm-report-form-preview .gm-report-radio label,
.gm-report-form-preview .gm-report-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--fw-regular);
}

.gm-report-form-preview .gm-report-radio input,
.gm-report-form-preview .gm-report-consent input {
  width: auto;
}

.gm-report-form-preview .gm-report-message,
.gm-report-form-preview .gm-report-consent {
  margin-top: 18px;
}

.gm-report-form-preview .gm-report-button {
  margin-top: 22px;
  padding: 14px 24px;
  border: 0;
  border-radius: 30px;
  background: var(--gml-green-accent);
  color: var(--gml-dark);
  font-family: var(--ff-heading);
  font-weight: var(--fw-bold);
}

.gm-report-form-preview .gm-report-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 620px) {
.gm-report-form-preview { padding: 20px; }

.gm-report-form-preview .gm-report-grid { grid-template-columns: 1fr; }
}

/* 07. Chi siamo components. */
.gml-cs-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    background-color: var(--gml-white);
}

.gml-cs-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    box-sizing: border-box;
}

/* ── 1. Hero Video ────────────────────────────────── */

.gml-cs-hero {
    position: relative;
    width: 100%;
    height: calc(100svh - var(--gml-header-height) - var(--gml-admin-offset));
    min-height: 26rem;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: var(--space-xl) var(--container-pad);
    box-sizing: border-box;
    background-color: var(--gml-black);
}

.gml-cs-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.gml-cs-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.gml-cs-hero-content {
    position: relative;
    z-index: 3;
    text-align: right;
}

/* ── 2. Heritage Dual Images ──────────────────────── */

.gml-cs-heritage {
    background-color: var(--gml-white);
    padding: var(--space-2xl) 0;
}

.gml-cs-heritage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.gml-rounded-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-xl);
    display: block;
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration-img) var(--ease-spring);
    will-change: transform;
}

.gml-rounded-img:hover {
    transform: scale(1.02);
}

.gml-staggered {
    margin-top: 0;
}

/* ── 3. Mission Statement ─────────────────────────── */

.gml-cs-mission {
    background-color: var(--gml-gray-100);
    padding: var(--space-2xl) 0;
}

.gml-cs-mission-lead {
    font-family: var(--ff-body);
    font-size: var(--fs-lg);
    line-height: 1.6;
    color: var(--gml-gray-700);
    text-align: center;
    max-width: 980px;
    margin: 0 auto var(--space-xl);
    font-weight: var(--fw-light);
}

.gml-cs-mission-lead strong {
    color: var(--gml-black);
    font-weight: var(--fw-bold);
}

.gml-cs-mission-photo-card {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: clamp(360px, 45vh, 480px);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg) var(--space-md);
    box-sizing: border-box;
}

.gml-cs-mission-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 30, 0.45);
    z-index: 1;
}

.gml-cs-mission-photo-text {
    position: relative;
    z-index: 2;
    font-family: var(--ff-body);
    font-size: var(--fs-lg);
    line-height: 1.7;
    color: var(--gml-white);
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    font-weight: var(--fw-light);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.gml-cs-mission-photo-text strong {
    font-weight: var(--fw-bold);
    color: var(--gml-white);
}

/* ── 4. Workshop Operators Photo with Centered GM Logo Card ── */

.gml-cs-workshop-logo {
    width: 100%;
    min-height: clamp(380px, 50vh, 520px);
    background-image: url('/wp-content/uploads/2026/09/bg_qw.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--container-pad);
    box-sizing: border-box;
    margin-bottom: var(--space-2xl);
}

.gml-cs-workshop-card {
    background-color: rgba(22, 22, 22, 0.65);
    border-radius: var(--border-radius-xl);
    padding: var(--space-md) var(--space-md);
    max-width: 440px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: var(--shadow-dark);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gml-cs-workshop-card img {
    max-width: 320px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ── 5. Black Pebble Leather Banner ───────────────── */

.gml-cs-texture-banner {
    width: 100%;
    min-height: clamp(240px, 35vh, 350px);
    background-image: url('/wp-content/uploads/2026/09/bg_01_06.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin-bottom: var(--space-2xl);
}

/* ── 6. Governance & Genesi Section ────────────────── */

.gml-cs-governance {
    background-color: var(--gml-gray-100);
    padding: var(--space-2xl) 0;
}

.gml-cs-gov-header {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto var(--space-xl);
}

.gml-cs-gov-title {
    font-family: var(--ff-body);
    font-size: var(--fs-lg);
    line-height: 1.6;
    color: var(--gml-black);
    font-weight: var(--fw-light);
    margin: 0 0 var(--space-md) 0;
}

.gml-cs-gov-title strong {
    color: var(--gml-black);
    font-weight: var(--fw-bold);
}

.gml-cs-gov-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
    max-width: 1150px;
    margin: 0 auto;
}

.gml-cs-gov-img-card {
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.gml-cs-gov-img-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--duration-img) var(--ease-spring);
    will-change: transform;
}

.gml-cs-gov-img-card:hover img {
    transform: scale(1.02);
}

.gml-cs-gov-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xs);
}

.gml-cs-gov-content p {
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    line-height: 1.8;
    color: var(--gml-gray-700);
    margin: 0 0 var(--space-lg) 0;
    font-weight: var(--fw-light);
}

.gml-cs-gov-content p strong {
    font-weight: var(--fw-bold);
    color: var(--gml-black);
}

/* ── 7. Group Synergy Diagram ─────────────────────── */

.gml-cs-diagram {
    background-color: var(--gml-gray-100);
    padding: var(--space-sm) 0 var(--space-2xl) 0;
    text-align: center;
}

.gml-cs-diagram-img {
    width: 85%;
    max-width: 640px;
    height: auto;
    display: inline-block;
}

/* ── 8. Subsidiaries (100% Flush Edge-to-Edge) ────── */

.gml-cs-sub-full {
    width: 100%;
    min-height: 480px;
    display: grid;
    grid-template-columns: 1fr;
    margin: 0;
    padding: 0;
}

.gml-cs-sub-col-badge {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
    box-sizing: border-box;
    text-align: center;
}

.gml-cs-sub-col-badge h2 {
    font-family: var(--ff-heading);
    font-size: var(--fs-hero);
    font-weight: var(--fw-bold);
    font-style: italic;
    color: var(--gml-dark);
    margin: 0;
    line-height: 1.1;
    white-space: normal;
}

.gml-cs-sub-col-badge.green {
    background-color: var(--gml-green-deep);
}

.gml-cs-sub-col-badge.ochre {
    background-color: var(--gml-leather-muted);
}

.gml-cs-sub-col-photo {
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-xl) var(--space-lg);
    box-sizing: border-box;
    min-height: 380px;
}

.gml-cs-sub-col-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.40);
    z-index: 1;
}

.gml-cs-sub-top-logo {
    position: relative;
    z-index: 2;
    display: flex;
}

.gml-cs-sub-top-logo.right {
    justify-content: flex-end;
}

.gml-cs-sub-top-logo.left {
    justify-content: flex-start;
}

.gml-cs-sub-top-logo img {
    height: auto;
    display: block;
}

.gml-cs-sub-top-logo.snam-logo img { max-width: 170px; }

.gml-cs-sub-top-logo.chiorino-logo img { max-width: 150px; }

.gml-cs-sub-top-logo.nene-logo img { max-width: 280px; }

.gml-cs-sub-bottom-card {
    position: relative;
    z-index: 2;
    background-color: rgba(12, 12, 12, 0.72);
    border-radius: var(--border-radius-lg);
    padding: var(--space-md) var(--space-lg);
    max-width: 820px;
    box-shadow: var(--shadow-dark);
}

.gml-cs-sub-bottom-card p {
    font-family: var(--ff-body);
    font-size: var(--fs-md);
    line-height: 1.7;
    color: var(--gml-white);
    margin: 0;
    font-weight: var(--fw-light);
}

.gml-cs-sub-bottom-card p strong {
    font-weight: var(--fw-bold);
    color: var(--gml-white);
}

/* ── 9. Reveal Support for Chi Siamo ───────────────── */

.gml-cs-heritage.gml-reveal,
.gml-cs-mission.gml-reveal,
.gml-cs-governance.gml-reveal,
.gml-cs-diagram.gml-reveal,
.gml-cs-sub-full.gml-reveal,
.gml-cs-mission-photo-card.gml-reveal,
.gml-cs-gov-img-card.gml-reveal {
    transition: opacity var(--duration-slow) var(--ease-default),
                transform var(--duration-slow) var(--ease-default);
}

/* ── 10. Responsive — Tablet and Desktop (Mobile-first) ── */

@media (min-width: 768px) {
.gml-cs-heritage-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }

.gml-staggered {
        margin-top: var(--space-xl);
    }

.gml-cs-workshop-card {
        padding: var(--space-lg) var(--space-xl);
    }

.gml-cs-gov-grid {
        grid-template-columns: 1.15fr 1fr;
        gap: var(--space-xl);
    }

.gml-cs-diagram-img {
        width: 55%;
    }

.gml-cs-sub-full {
        grid-template-columns: 1fr 2fr;
    }

.gml-cs-sub-full.inverted {
        grid-template-columns: 2fr 1fr;
    }

.gml-cs-sub-full.inverted .gml-cs-sub-col-badge {
        order: 2;
    }

.gml-cs-sub-full.inverted .gml-cs-sub-col-photo {
        order: 1;
    }
}

/* 08. Existing Gutenberg Home component aliases. */
.gml-hg-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip;
}

.gml-hg-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    box-sizing: border-box;
}

/* 1. Hero Section */

.gml-hg-hero {
    background-color: var(--gml-dark);
    padding: var(--space-2xl) var(--container-pad);
    text-align: center;
    box-sizing: border-box;
}

.gml-hg-hero-tag {
    font-family: var(--ff-heading);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    letter-spacing: 2.5px;
    color: var(--gml-green);
    text-transform: uppercase;
    margin: 0 0 var(--space-sm) 0;
}

.gml-hg-hero-title {
    font-family: var(--ff-heading);
    font-size: var(--fs-hero);
    font-weight: var(--fw-bold);
    line-height: 1.25;
    color: var(--gml-white);
    max-width: 100%;
    margin: 0 auto var(--space-md) auto;
}

.gml-hg-hero-title em {
    color: var(--gml-green);
    font-style: italic;
    font-weight: var(--fw-bold);
}

.gml-hg-hero-desc {
    font-family: var(--ff-ui);
    font-size: var(--fs-md);
    line-height: 1.6;
    color: var(--gml-text-on-dark);
    max-width: 100%;
    margin: 0 auto var(--space-xl) auto;
}

.gml-hg-hero-btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    width: 100%;
}

.gml-hg-btn-primary {
    background-color: var(--gml-green-accent);
    color: var(--gml-on-accent);
    font-family: var(--ff-heading);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    font-style: italic;
    text-decoration: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
    display: inline-block;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
    text-align: center;
    transition: transform var(--duration-fast) var(--ease-default),
                background-color var(--duration-base) var(--ease-default),
                color var(--duration-base) var(--ease-default),
                box-shadow var(--duration-base) var(--ease-default);
    will-change: transform;
}

.gml-hg-btn-primary:hover {
    background-color: var(--gml-leather);
    color: var(--gml-black);
    transform: translateY(-2px);
}

.gml-hg-btn-primary:focus-visible {
    outline: 2px solid var(--gml-gold);
    outline-offset: 3px;
}

.gml-hg-btn-outline {
    background-color: transparent;
    border: 2px solid var(--gml-leather);
    color: var(--gml-white);
    font-family: var(--ff-heading);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    text-decoration: none;
    padding: calc(var(--space-sm) - 2px) var(--space-lg);
    border-radius: var(--border-radius-sm);
    display: inline-block;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
    text-align: center;
    transition: transform var(--duration-fast) var(--ease-default),
                background-color var(--duration-base) var(--ease-default),
                color var(--duration-base) var(--ease-default),
                border-color var(--duration-base) var(--ease-default);
    will-change: transform;
}

.gml-hg-btn-outline:hover {
    background-color: var(--gml-leather);
    color: var(--gml-black);
    transform: translateY(-2px);
}

.gml-hg-btn-outline:focus-visible {
    outline: 2px solid var(--gml-gold);
    outline-offset: 3px;
}

/* 2. Chi Siamo Section */

.gml-hg-chisiamo {
    background-color: var(--gml-gray-100);
    padding: var(--space-2xl) var(--container-pad);
    text-align: center;
    box-sizing: border-box;
}

.gml-hg-section-title {
    font-family: var(--ff-heading);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-md);
    color: var(--gml-black);
    text-align: center;
}

.gml-hg-section-title em {
    color: var(--gml-leather-text);
    font-style: italic;
    font-weight: var(--fw-semibold);
}

.gml-hg-section-desc {
    font-family: var(--ff-ui);
    font-size: var(--fs-md);
    line-height: 1.8;
    color: var(--gml-gray-700);
    text-align: center;
    max-width: 100%;
    margin: 0 auto var(--space-lg) auto;
}

.gml-hg-section-desc em {
    color: var(--gml-accent-text);
    font-style: italic;
    font-weight: var(--fw-semibold);
}

.gml-hg-btn-green {
    display: inline-block;
    background-color: var(--gml-green-olive);
    color: var(--gml-on-accent);
    font-family: var(--ff-heading);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    text-decoration: none;
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
    box-sizing: border-box;
    max-width: 100%;
    transition: transform var(--duration-fast) var(--ease-default),
                background-color var(--duration-base) var(--ease-default),
                color var(--duration-base) var(--ease-default),
                box-shadow var(--duration-base) var(--ease-default);
    will-change: transform;
}

.gml-hg-btn-green:hover {
    background-color: var(--gml-leather);
    color: var(--gml-black);
    transform: translateY(-2px);
}

.gml-hg-btn-green:focus-visible {
    outline: 2px solid var(--gml-gold);
    outline-offset: 3px;
}

/* 3. Sostenibilità Section */

.gml-hg-sostenibilita {
    background-color: var(--gml-dark);
    padding: var(--space-2xl) var(--container-pad);
    text-align: center;
    box-sizing: border-box;
}

.gml-hg-sostenibilita.gml-reveal {
    transition: opacity var(--duration-slow) var(--ease-default),
                transform var(--duration-slow) var(--ease-default);
}

.gml-hg-sost-title {
    font-family: var(--ff-heading);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    text-align: center;
    margin: 0 0 var(--space-md) 0;
    color: var(--gml-white);
}

.gml-hg-sost-title em {
    color: var(--gml-green);
    font-style: italic;
}

.gml-hg-sost-desc {
    text-align: center;
    color: var(--gml-text-on-dark);
    font-family: var(--ff-ui);
    font-size: var(--fs-md);
    max-width: 100%;
    margin: 0 auto var(--space-lg) auto;
    line-height: 1.7;
}

/* Sostenibilità CTA Button (Unified with .gml-btn .gml-btn--primary) */

.gml-hg-btn-green-pill {
    display: inline-block;
    font-family: var(--ff-heading);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 30px;
    border: 2px solid transparent;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    background-color: var(--gml-green-deep);
    color: var(--gml-on-accent);
    padding: var(--space-sm) var(--space-xl);
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
    transition: transform var(--duration-fast) var(--ease-default),
                background-color var(--duration-base) var(--ease-default),
                border-color var(--duration-base) var(--ease-default),
                color var(--duration-base) var(--ease-default),
                box-shadow var(--duration-base) var(--ease-default);
    will-change: transform;
}

.gml-hg-btn-green-pill:hover {
    background-color: var(--gml-leather-muted);
    color: var(--gml-black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.gml-hg-btn-green-pill:focus-visible {
    outline: 2px solid var(--gml-gold);
    outline-offset: 3px;
}

/* Responsive — Tablet and Desktop (Mobile-first) */

@media (min-width: 768px) {
.gml-hg-hero-title {
        max-width: 1000px;
    }

.gml-hg-hero-desc {
        max-width: 800px;
    }

.gml-hg-hero-btn-group {
        flex-direction: row;
        width: auto;
    }

.gml-hg-btn-primary,
    .gml-hg-btn-outline {
        width: auto;
        max-width: none;
    color: var(--gml-on-accent);
}

.gml-hg-section-desc {
        max-width: 860px;
    }

.gml-hg-sost-desc {
        max-width: 800px;
    }
}

/* 09. Governance legacy component aliases, using shared tokens. */
.gml-governance-page {
    background-color: var(--gml-bg-light);
}

.gml-governance-page {
    color: var(--gml-dark);
    font-family: var(--ff-body);
}

.gml-governance-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: calc(100vh - var(--gml-header-height));
    height: calc(100svh - var(--gml-header-height));
    min-height: 30rem;
    overflow: hidden;
    background-color: var(--gml-black);
    color: var(--gml-white);
}

.gml-governance-hero-video {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gml-governance-hero-inner {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: min(calc(100% - 3rem), 1518px);
    height: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
}

.gml-governance-title {
    max-width: 77%;
    margin: 0;
    color: var(--gml-white);
    font-family: var(--ff-heading);
    font-size: 60px;
    font-weight: 600;
    line-height: 1.1;
}

.gml-governance-hero-cta {
    position: absolute;
    right: 0;
    bottom: clamp(2rem, 8vh, 6rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%;
    padding: 20px 15px;
    border-radius: 30px;
    background-color: var(--gml-accent);
    color: var(--gml-on-accent);
    font-family: var(--ff-heading);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 300ms ease, color 300ms ease, transform 300ms ease;
}

.gml-governance-hero-cta:hover,
.gml-governance-hero-cta:focus-visible {
    background-color: var(--gml-leather);
    color: var(--gml-dark);
}

.gml-governance-hero-cta:focus-visible,
.gml-governance-profile-cv:focus-visible {
    outline: 2px solid var(--gml-dark);
    outline-offset: 4px;
}

.gml-governance-board {
    padding: 50px 0 4rem;
    background-color: var(--gml-bg-light);
    color: var(--gml-dark);
}

.gml-governance-section-heading {
    box-sizing: border-box;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
}

.gml-governance-section-title {
    margin: 0;
    color: var(--gml-dark);
    font-family: var(--ff-heading);
    font-size: 48px;
    font-style: italic;
    font-weight: 600;
    line-height: 1.1;
}

.gml-governance-section-title-first {
    color: var(--gml-dark);
}

.gml-governance-section-title-second {
    color: var(--gml-accent-text);
}

.gml-governance-board-term {
    width: min(100%, 1000px);
    margin: 1.25rem auto 0;
    color: var(--gml-dark);
    font-family: var(--ff-body);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.55;
}

.gml-governance-board-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(1rem, 2.2vw, 2rem);
    box-sizing: border-box;
    width: min(calc(100% - 2rem), 1600px);
    margin: 2rem auto 0;
    padding: 0;
}

.gml-governance-profile {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    color: var(--gml-dark);
    text-align: center;
}

.gml-governance-profile-photo {
    width: 100%;
    aspect-ratio: 1;
    margin: 0;
}

.gml-governance-profile-photo img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    object-position: center;
    box-shadow: 10px 10px 0 var(--gml-accent);
    transition: transform 300ms ease;
}

.gml-governance-profile-name {
    margin: 40px 0 0;
    color: var(--gml-dark);
    font-family: var(--ff-heading);
    font-size: 21px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.gml-governance-profile-role {
    margin: 0;
    padding: 0 0 16px;
    color: var(--gml-dark);
    font-family: var(--ff-body);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 3px;
    line-height: 1.15;
    min-height: calc(2.3em + 16px);
    text-align: center;
}

.gml-governance-profile-cv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0.25rem;
    padding: 15px;
    border: 0;
    border-radius: 10px;
    background-color: var(--gml-accent);
    color: var(--gml-on-accent);
    font-family: var(--ff-heading);
    font-size: clamp(1rem, 1.65vw, 1.3125rem);
    font-style: italic;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 300ms ease, color 300ms ease, transform 300ms ease;
}

.gml-governance-profile-cv svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.gml-governance-profile-cv:hover,
.gml-governance-profile-cv:focus-visible {
    background-color: var(--gml-leather);
    color: var(--gml-dark);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
.gml-governance-profile-photo:hover img,
    .gml-governance-profile-cv:hover {
        transform: scale(0.96);
    }
}

@media (max-width: 1024px) {
.gml-governance-title,
    .gml-governance-section-title {
        font-size: 40px;
    }

.gml-governance-board-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
.gml-governance-hero {
        min-height: 28rem;
    }

.gml-governance-hero-inner {
        width: min(calc(100% - 2rem), 1518px);
    }

.gml-governance-title {
        max-width: 100%;
    }

.gml-governance-hero-cta {
        bottom: 2rem;
        padding: 15px 10px;
        font-size: 16px;
    color: var(--gml-on-accent);
}

.gml-governance-section-title {
        font-size: 34px;
    }

.gml-governance-board-term {
        font-size: 17px;
    }

.gml-governance-board-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.25rem;
    }

.gml-governance-profile-name {
        margin-top: 2rem;
        font-size: 19px;
    }

.gml-governance-profile-role {
        font-size: 16px;
        letter-spacing: 2px;
    }
}

@media (max-width: 560px) {
.gml-governance-board-grid {
        grid-template-columns: minmax(0, 1fr);
        width: min(calc(100% - 3rem), 360px);
    }

.gml-governance-profile-cv {
        font-size: 18px;
    color: var(--gml-on-accent);
}
}

/* 10. Native Governance adapters: no page IDs and no viewport-width overflow.
 * Its existing page-local style tag must be removed during adoption; see guide.
 * Legacy custom HTML and native Cover/Columns markup remain supported.
 */
.gml-governance-page { --gml-link-color: var(--gml-accent-text); }
.gml-governance-page .gml-governance-hero.wp-block-cover {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}
.gml-governance-hero.wp-block-cover .wp-block-cover__inner-container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    text-align: center;
}
.gml-governance-hero-actions { justify-content: center; flex-wrap: wrap; gap: 16px; }
.gml-governance-primary-cta .wp-block-button__link,
.gml-governance-profile-download .wp-block-button__link,
.gml-governance-supervisory-download .wp-block-button__link {
    background-color: var(--gml-accent) !important;
    color: var(--gml-on-accent) !important;
}
.gml-governance-primary-cta .wp-block-button__link:hover,
.gml-governance-profile-download .wp-block-button__link:hover,
.gml-governance-supervisory-download .wp-block-button__link:hover {
    background-color: var(--gml-accent-hover) !important;
}
.gml-governance-secondary-cta .wp-block-button__link {
    background: transparent !important;
    color: var(--gml-white) !important;
    border: 2px solid currentColor !important;
}
.gml-governance-nav { padding: var(--space-md) var(--container-pad); }
.gml-governance-nav-links { justify-content: center; flex-wrap: wrap; gap: 12px; }
.gml-governance-board.wp-block-group {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: var(--container-pad);
    box-sizing: border-box;
}
.gml-governance-board-grid.wp-block-columns,
.gml-governance-auditors-grid.wp-block-columns {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    width: 100%;
    max-width: var(--container-max);
    margin: 2rem auto 0;
    gap: 30px;
}
.gml-governance-board-grid-second.wp-block-columns,
.gml-governance-auditors-grid-second.wp-block-columns {
    grid-template-columns: repeat(2,minmax(0,1fr));
}
.gml-governance-board-grid.wp-block-columns > .wp-block-column,
.gml-governance-auditors-grid.wp-block-columns > .wp-block-column {
    min-width: 0;
    width: auto;
    flex: none;
}
.wp-block-columns .gml-governance-profile {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
}
.wp-block-columns .gml-governance-profile-photo { aspect-ratio: auto; }
.wp-block-columns .gml-governance-profile-photo img { height: auto; }
.gml-governance-supervisory, .gml-governance-auditor,
.gml-governance-documents, .gml-governance-whistleblowing {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding: var(--space-2xl) var(--container-pad);
    box-sizing: border-box;
}
.gml-governance-supervisory { background: var(--gml-bg-light); }
.gml-governance-supervisory-title {
    margin: 0 auto 24px;
    font-family: var(--ff-heading);
    font-size: var(--fs-2xl);
    font-style: italic;
    line-height: 1.2;
    text-align: center;
}
.gml-governance-lime { color: var(--gml-accent-text); }
.gml-governance-supervisory-term, .gml-governance-review-note,
.gml-governance-supervisory-unavailable { text-align: center; }
.gml-governance-review-note, .gml-governance-supervisory-unavailable {
    color: var(--gml-gray-600);
    font-size: var(--fs-sm);
}
.gml-governance-supervisory-grid.wp-block-columns {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 0;
    width: 100%;
    max-width: none;
    margin: var(--space-xl) 0 0;
}
.gml-governance-supervisory-grid > .wp-block-column {
    min-width: 0;
    width: auto;
    flex: none;
    padding: 32px 16px;
    border-left: 1px solid var(--gml-border);
    box-sizing: border-box;
    text-align: center;
}
.gml-governance-supervisory-grid > .wp-block-column:first-child { border-left: 0; }
.gml-governance-supervisory-name {
    font-family: var(--ff-heading);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    line-height: 1.25;
    text-transform: uppercase;
}
.gml-governance-supervisory-role {
    font-family: var(--ff-body);
    font-size: var(--fs-sm);
    line-height: 1.5;
    letter-spacing: .15em;
}
.gml-governance-document-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: var(--space-md);
    border-bottom: 1px solid var(--gml-border);
}
.gml-governance-document-title { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.gml-governance-document-status {
    font-size: var(--fs-sm);
    color: var(--gml-gray-600);
    margin: 0;
}
.gml-governance-whistleblowing-actions { flex-wrap: wrap; gap: 16px; }
.gml-governance-static-poster {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.gml-governance-hero.gml-governance-static .wp-block-cover__video-background { display: none; }
.gml-governance-hero.gml-governance-static .gml-governance-static-poster { display: block; }
@media (max-width: 1100px) {
    .gml-governance-supervisory-grid.wp-block-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .gml-governance-supervisory-grid > .wp-block-column { border-left: 0; border-top: 1px solid var(--gml-border); }
}
@media (max-width: 781px) {
    .gml-governance-board-grid.wp-block-columns,
    .gml-governance-auditors-grid.wp-block-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
    .gml-governance-board-grid.wp-block-columns,
    .gml-governance-board-grid-second.wp-block-columns,
    .gml-governance-auditors-grid.wp-block-columns,
    .gml-governance-auditors-grid-second.wp-block-columns,
    .gml-governance-supervisory-grid.wp-block-columns { grid-template-columns: minmax(0,1fr); }
}

/* 11. Disabled preview details; state remains controlled by HTML, never by CSS. */
.gm-report-form-preview { color: var(--gml-text); font-family: var(--ff-body); box-sizing: border-box; }
.gm-report-form-preview input:disabled,
.gm-report-form-preview select:disabled,
.gm-report-form-preview textarea:disabled {
    opacity: 1;
    color: var(--gml-disabled-text);
    background: #FBFBF8;
    cursor: not-allowed;
}
.gm-report-form-preview .gm-report-consent { color: var(--gml-text); }
.gm-report-form-preview .gm-report-button:disabled {
    opacity: 1;
    background: var(--gml-disabled-bg);
    color: var(--gml-disabled-text);
}
.gml-bilancio-section { max-width: var(--container-narrow); margin-inline: auto; }
.gml-hg-wrap > .gml-bilancio-section {
    width: 100%;
    padding: var(--space-xs) var(--container-pad);
    box-sizing: border-box;
    background-color: var(--gml-dark);
}
.gml-hg-wrap > .gml-bilancio-section > .gml-bilancio-wrapper {
    width: 100%;
    max-width: var(--container-narrow);
    margin-inline: auto;
    box-sizing: border-box;
}

/* 12. Optional Home motion hooks, scoped semantically. */
/* Home motion A1 — semantic Home scope. Default and pending states are
   visible. Animate individual blocks, never the tall section or link itself. */

:is(.gml-home, body.home) .gml-home-motion-target.gml-home-motion-enter {
    animation: gml-home-block-entry 780ms cubic-bezier(0.32, 0.7, 0.28, 1)
               var(--gml-home-motion-delay, 0ms) backwards;
    will-change: translate, opacity;
}

:is(.gml-home, body.home) .gml-home-motion-hero.gml-home-motion-enter {
    animation-name: gml-home-hero-entry;
    animation-duration: 500ms;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes gml-home-block-entry {
    from { opacity: 0; translate: 0 12px; }
    to { opacity: 1; translate: 0 0; }
}

@keyframes gml-home-hero-entry {
    /* Hero text, including H1, stays readable throughout the short sequence. */
    from { opacity: 1; translate: 0 10px; }
    to { opacity: 1; translate: 0 0; }
}

@media (max-width: 767px) {
    :is(.gml-home, body.home) .gml-home-motion-target.gml-home-motion-enter:not(.gml-home-motion-hero) {
        animation-name: gml-home-mobile-entry;
        animation-duration: 720ms;
    }
    :is(.gml-home, body.home) .gml-home-motion-hero.gml-home-motion-enter {
        animation-name: gml-home-hero-entry;
        animation-delay: 0ms;
        animation-duration: 500ms;
        animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    }
    @keyframes gml-home-mobile-entry {
        from { opacity: 0; translate: 0 8px; }
        to { opacity: 1; translate: 0 0; }
    }
}

:is(.gml-home, body.home) .gml-home-motion-target:focus-within {
    animation: none;
    will-change: auto;
}

/* Home A2 — hover and tooltip refinements, scoped to the active homepage. */

:is(.gml-home, body.home) .gml-eco-card,
:is(.gml-home, body.home) .gml-eco-icon,
:is(.gml-home, body.home) .gml-eco-overlay,
:is(.gml-home, body.home) .gml-node-bullet,
:is(.gml-home, body.home) .gml-pillar-card,
:is(.gml-home, body.home) .gml-pillar-img-box,
:is(.gml-home, body.home) .gml-lav-media img,
:is(.gml-home, body.home) .gml-lav-btn,
:is(.gml-home, body.home) .gml-news-card,
:is(.gml-home, body.home) .gml-tooltip-bubble {
    will-change: auto;
}

@media (hover: hover) and (pointer: fine) {
    :is(.gml-home, body.home) .gml-eco-card:hover,
    :is(.gml-home, body.home) .gml-pillar-card:hover,
    :is(.gml-home, body.home) .gml-news-card:hover {
        transform: translateY(-4px);
        transition-duration: 240ms;
        will-change: auto;
    }
    :is(.gml-home, body.home) .gml-lav-card:hover .gml-lav-media img,
    :is(.gml-home, body.home) .gml-lav-card:focus .gml-lav-media img {
        transform: scale(1.03);
        transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
        will-change: auto;
    }
    :is(.gml-home, body.home) .gml-lav-card:hover .gml-lav-btn,
    :is(.gml-home, body.home) .gml-lav-card:focus .gml-lav-btn {
        transform: scale(1.08);
        transition-duration: 240ms;
        will-change: auto;
    }
}

@media (min-width: 768px) {
    :is(.gml-home, body.home) .gml-tooltip-bubble {
        max-width: none;
        width: 280px;
        transition: opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
                    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
                    visibility 0s linear 220ms;
        will-change: auto;
    }
    :is(.gml-home, body.home) .gml-node.pos-top .gml-tooltip-bubble {
        transform: translateX(-50%) translateY(6px);
    }
    :is(.gml-home, body.home) .gml-node.pos-bottom .gml-tooltip-bubble {
        transform: translateX(-50%) translateY(-6px);
    }
    :is(.gml-home, body.home) .gml-node:first-child .gml-tooltip-bubble {
        transform: translateY(6px);
    }
    :is(.gml-home, body.home) .gml-node:last-child .gml-tooltip-bubble {
        transform: translateY(-6px);
    }
    :is(.gml-home, body.home) .gml-node:hover .gml-tooltip-bubble,
    :is(.gml-home, body.home) .gml-node:focus-within .gml-tooltip-bubble,
    :is(.gml-home, body.home) .gml-node.is-active .gml-tooltip-bubble {
        transform: translateX(-50%) translateY(0);
        transition-delay: 0s;
    }
    :is(.gml-home, body.home) .gml-node:first-child:hover .gml-tooltip-bubble,
    :is(.gml-home, body.home) .gml-node:first-child:focus-within .gml-tooltip-bubble,
    :is(.gml-home, body.home) .gml-node:first-child.is-active .gml-tooltip-bubble,
    :is(.gml-home, body.home) .gml-node:last-child:hover .gml-tooltip-bubble,
    :is(.gml-home, body.home) .gml-node:last-child:focus-within .gml-tooltip-bubble,
    :is(.gml-home, body.home) .gml-node:last-child.is-active .gml-tooltip-bubble {
        transform: translateY(0);
    }
}

@media (hover: none), (pointer: coarse) {
    :is(.gml-home, body.home) .gml-eco-card:hover,
    :is(.gml-home, body.home) .gml-eco-card:focus,
    :is(.gml-home, body.home) .gml-eco-card.is-hovered,
    :is(.gml-home, body.home) .gml-pillar-card:hover,
    :is(.gml-home, body.home) .gml-news-card:hover {
        transform: none;
        will-change: auto;
    }
    :is(.gml-home, body.home) .gml-lav-card:hover .gml-lav-media img,
    :is(.gml-home, body.home) .gml-lav-card:focus .gml-lav-media img,
    :is(.gml-home, body.home) .gml-lav-card:hover .gml-lav-btn,
    :is(.gml-home, body.home) .gml-lav-card:focus .gml-lav-btn {
        transform: none;
        will-change: auto;
    }
    :is(.gml-home, body.home) .gml-eco-card:hover:not(.is-hovered):not(:focus-visible) .gml-eco-icon,
    :is(.gml-home, body.home) .gml-eco-card:focus:not(.is-hovered):not(:focus-visible) .gml-eco-icon {
        opacity: 1;
        transform: scale(1);
    }
    :is(.gml-home, body.home) .gml-eco-card:hover:not(.is-hovered):not(:focus-visible) .gml-eco-overlay,
    :is(.gml-home, body.home) .gml-eco-card:focus:not(.is-hovered):not(:focus-visible) .gml-eco-overlay {
        opacity: 0;
        transform: translateY(6px);
        pointer-events: none;
    }
}

/* 13. Legacy animation-name compatibility; no generated Elementor selectors. */
:where(#content, .editor-styles-wrapper) .animated {
    animation-duration: 0.65s;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translate3d(-30px, 0, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translate3d(30px, 0, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 30px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale3d(0.95, 0.95, 0.95); }
    to   { opacity: 1; transform: scale3d(1, 1, 1); }
}

/* Elementor 'shrink' hover: unified with our translateY design system token */
.elementor-animation-shrink {
    transition: transform var(--duration-fast) var(--ease-spring);
    will-change: transform;
}
.elementor-animation-shrink:hover,
.elementor-animation-shrink:focus {
    transform: translateY(-2px) scale(0.97) translateZ(0);
    animation-name: none;
}

/* 14. Progressive enhancement: no JavaScript means visible content.
 * A reveal script may add gml-motion-ready on the document/body/wrapper only
 * after it has initialized IntersectionObserver; it then adds is-visible.
 */
.gml-reveal { opacity: 1; transform: none; }
.gml-motion-ready .gml-reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(24px);
}
.gml-motion-ready .gml-reveal {
    transition: opacity .6s var(--ease-default), transform .6s var(--ease-default);
}
.gml-motion-ready .gml-reveal.is-visible,
.gml-motion-ready .gml-reveal:focus-within { opacity: 1; transform: none; }
/* Touch users see legacy ecosystem copy without requiring hover or script. */
@media (hover: none), (pointer: coarse) {
    .gml-eco-card { aspect-ratio: auto; min-height: 180px; }
    .gml-eco-card .gml-eco-icon {
        position: relative;
        inset: auto;
        min-height: 70px;
        opacity: 1 !important;
        transform: none !important;
    }
    .gml-eco-card .gml-eco-icon img { max-height: 64px; }
    .gml-eco-card .gml-eco-overlay {
        position: relative;
        inset: auto;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto;
        padding: var(--space-sm);
    }
}

/* 15. Home — approved H1 components, 2026-10-26.
 * Integrated into this single shared child-theme stylesheet.
 * Add gml-page gml-home to the Home outer Group; use component classes below.
 * No separate Home CSS file, Gutenberg style attributes or page-local CSS.
 * All Home adjustments are scoped to the gml-home wrapper.
 */
.gml-home { margin: 0; min-width: 0; }
.gml-home .wp-block-heading { font-family: var(--ff-heading); color: inherit; line-height: 1.2; }
.gml-home :where(h1).wp-block-heading { font-size: var(--fs-hero); }
.gml-home :where(h2).wp-block-heading { font-size: var(--fs-2xl); }
.gml-home :where(h3).wp-block-heading { font-size: var(--fs-lg); }
.gml-home :where(figure) { margin-inline: 0; }
.gml-home .gml-container > *,
.gml-home .gml-content > *,
.gml-home .gml-home-stat > *,
.gml-home .gml-lav-card > *,
.gml-home .gml-pillar-card > *,
.gml-home .gml-news-card-body > * { margin-block-start: 0; }
.gml-home .gml-home-center { text-align: center; }
.gml-home .gml-home-title { margin: 0 0 var(--space-md); }
.gml-home .gml-home-title em { color: var(--gml-leather-text); }
.gml-home .gml-home-lead { max-width: var(--container-narrow); margin: 0 auto var(--space-lg); }
.gml-home .gml-home-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.gml-home .gml-home-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--gml-dark);
    background-image: linear-gradient(90deg,rgba(11,11,11,.72),rgba(11,11,11,.3)),url('/wp-content/uploads/2026/10/gh.jpg');
    background-size: cover;
    background-position: center;
    text-align: left;
}
.gml-home .gml-home-hero .gml-container { position: relative; z-index: 2; }
.gml-home .gml-home-hero-title { max-width: 820px; margin: 0 0 var(--space-sm); color: var(--gml-text-on-dark); font-size: var(--fs-hero); font-weight: var(--fw-regular); line-height: 1.15; }
.gml-home .gml-home-hero-title em { color: var(--gml-accent-hover); font-weight: var(--fw-bold); }
.gml-home .gml-home-hero-intro { max-width: 820px; margin: 0; color: var(--gml-text-on-dark); }
/* Ready for the original video once it is uploaded; no guessed video URL. */
.gml-home .gml-home-video { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 0; }
.gml-home .gml-home-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.gml-home .gml-home-hero:has(.gml-home-video)::after { content: ''; position: absolute; inset: 0; background: rgba(11,11,11,.5); z-index: 1; pointer-events: none; }

.gml-home .gml-home-history { background: var(--gml-gray-200); }
.gml-home .gml-home-history-hint { color: var(--gml-gray-600); font-size: var(--fs-sm); margin: 0; }
.gml-home .gm-history-scroll { width: 100%; max-width: 100%; box-sizing: border-box; }
.gml-home .gm-history-timeline { margin: 0; padding: 0; }
.gml-home .gm-history-timeline::before { left: 5.55%; right: 5.55%; top: 90px; height: 2px; background: var(--gml-input-border); }
.gml-home .gm-history-timeline > .gm-history-milestone { flex: 1 0 0; min-width: 0; margin: 0; text-align: center; }
.gml-home .gm-history-milestone > summary {
    display: block; position: relative; width: 100%; height: 180px; box-sizing: border-box;
    padding: 20px 2px 0; border: 0; border-radius: 0; background: transparent;
    box-shadow: none; color: var(--gml-dark); font-family: var(--ff-heading);
    font-size: 24px; font-weight: var(--fw-bold); line-height: 1.2;
}
.gml-home .gm-history-milestone:nth-child(even) > summary { padding-top: 140px; }
.gml-home .gm-history-milestone > summary::before { content: ''; position: absolute; top: 80px; left: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--gml-accent); box-shadow: 0 0 0 8px var(--gml-gray-200); transform: translateX(-50%); }
.gml-home .gm-history-milestone > summary::after { content: ''; position: absolute; top: 85px; left: calc(50% - 1px); width: 5px; height: 8px; border-left: 2px solid var(--gml-dark); border-bottom: 2px solid var(--gml-dark); }
.gml-home .gm-history-milestone > summary:focus-visible { outline: 3px solid var(--gml-dark); outline-offset: -4px; border-radius: 8px; }
.gml-home .gm-history-milestone .gm-history-tip { margin: 0; }
.gml-home .gm-history-milestone:first-child .gm-history-tip { left: 0; transform: none; }
.gml-home .gm-history-milestone:last-child .gm-history-tip { left: 100%; transform: translateX(-100%); }

.gml-home .gml-home-ecosystem {
    background-image: linear-gradient(rgba(11,11,11,.18),rgba(11,11,11,.18)),url('/wp-content/uploads/2026/10/gml-0043-2.png');
    background-size: cover; background-position: center;
}
.gml-home .gml-home-ecosystem-panel { padding: var(--space-xl) var(--space-md); border-radius: var(--border-radius-lg); background: rgba(23,25,34,.78); color: var(--gml-text-on-dark); }
.gml-home .gml-home-ecosystem .gml-home-title em { color: inherit; }
.gml-home .gml-home-ecosystem a { color: var(--gml-accent-soft); }
.gml-home .gml-ecosystem-cards { margin: 0; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 10px; }
.gml-home .gml-home-stat { display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; min-height: 210px; aspect-ratio: auto; padding: 16px 10px; margin: 0; cursor: default; background: rgba(11,11,11,.83); }
.gml-home .gml-home-stat:hover { transform: none; }
.gml-home .gml-home-stat .gml-eco-icon { position: static; inset: auto; display: block; width: 100%; height: 100px; padding: 0; margin: 0; opacity: 1 !important; transform: none !important; }
.gml-home .gml-home-stat .gml-eco-icon img { width: 100%; height: 100px; max-height: 100px; object-fit: contain; filter: none; }
.gml-home .gml-home-stat .gml-eco-text { margin: 0; color: var(--gml-text-on-dark); }
.gml-home .gml-lav-card { min-width: 0; margin: 0; }
.gml-home .gml-lav-media { margin: 0 0 var(--space-md); }
.gml-home .gml-lav-media a { display: block; width: 100%; height: 100%; }
.gml-home .gml-home-work-title { margin: 0 0 var(--space-xs); font-size: var(--fs-xl); }
.gml-home .gml-home-work-caption { margin: 0 0 var(--space-md); }
.gml-home .gml-home-report-panel { padding: var(--space-xl) var(--space-lg); border-radius: var(--border-radius-md); background-image: linear-gradient(rgba(11,11,11,.45),rgba(11,11,11,.45)),url('/wp-content/uploads/2026/10/image-10-scaled-e1764321611149.jpg'); background-size: cover; background-position: center; }
.gml-home .gml-home-report-panel .gml-bilancio-title { margin: 0 0 var(--space-lg); color: var(--gml-white); }
.gml-home .gm-report-form-preview { max-width: var(--container-narrow); margin: 0 auto; padding: 0; border: 0; background: transparent; box-shadow: none; text-align: left; color: var(--gml-text-on-dark); }
.gml-home .gml-home-report-panel .gm-report-form-preview :is(label,legend),
.gml-home .gml-home-report-panel .gm-report-consent { color: var(--gml-text-on-dark); }
.gml-home .gm-report-form-preview .gm-report-status { color: var(--gml-text); }
.gml-home .gml-home-values { padding-block: var(--space-xl); }
.gml-home .gml-pillars-grid { margin: 0 auto; }
.gml-home .gml-pillar-card { margin: 0; min-width: 0; }
.gml-home .gml-pillar-img-box { aspect-ratio: 1.2; margin: 0 0 var(--space-md); }
.gml-home .gml-pillar-desc { max-width: none; }
.gml-home .gml-news-grid { margin: 0 auto var(--space-lg); }
.gml-home .gml-news-card { margin: 0; min-width: 0; }
.gml-home .gml-news-card-title { overflow-wrap: anywhere; }
.gml-home .gml-news-card-meta { margin: 0; }
@media (max-width: 1199px) {
    .gml-home .gml-ecosystem-cards { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 781px) {
    .gml-home .gml-home-hero { min-height: 34rem; }
    .gml-home .gml-home-hero-title { font-size: var(--fs-hero); }
    .gml-home .gml-ecosystem-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .gml-home .gml-ecosystem-cards > :last-child { grid-column: 1 / -1; max-width: 320px; width: 100%; justify-self: center; box-sizing: border-box; }
    .gml-home .gml-home-report-panel { padding: var(--space-lg) var(--space-sm); }
}
@media (max-width: 380px) {
    .gml-home .gml-ecosystem-cards { grid-template-columns: minmax(0,1fr); }
}

/* 15b. Chi siamo - approved native Gutenberg rebuild, 2026-10-27. */
.gml-about { margin: 0; min-width: 0; }
.gml-about .gml-section { margin-block: 0; padding-block: clamp(64px,8vw,104px); }
.gml-about .gml-section[id] { padding-top: max(clamp(64px,8vw,104px),calc(var(--gml-header-height) + 16px)); }
.gml-about .gml-container { max-width: 1200px; }
.gml-about :where(h1,h2,h3,p,figure,.wp-block-columns,.wp-block-buttons) { margin-block-start: 0; }
.gml-about .wp-block-heading { color: inherit; line-height: 1.18; }
.gml-about .gml-about-eyebrow { margin-bottom: 20px; font-weight: 700; letter-spacing: 1.8px; font-size: 15px; }
.gml-about .gml-about-title { margin-bottom: 24px; font-size: clamp(1.9rem,1.4rem + 1.7vw,2.9rem); }
.gml-about .gml-about-copy { margin-bottom: 24px; font-size: clamp(1rem,.95rem + .25vw,1.125rem); line-height: 1.8; }
.gml-about .gml-about-hero { text-align: center; }
.gml-about .gml-about-hero-title { margin: 0 auto 28px; font-size: clamp(2.3rem,1.6rem + 2.5vw,3.5rem); line-height: 1.15; }
.gml-about .gml-about-hero-title em { color: var(--gml-accent); }
.gml-about .gml-about-lead { max-width: 880px; margin: 0 auto 32px; color: var(--gml-text-muted); font-size: var(--fs-lg); line-height: 1.65; }
.gml-about .gml-about-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.gml-about .gml-about-hero .gml-about-actions { justify-content: center; }
.gml-about .gml-about-nav { margin-top: 40px; padding-top: 28px; }
.gml-about .gml-about-anchor-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.gml-about .gml-about-anchor-links .wp-block-button__link { min-height: 44px; padding: 10px 22px; font-size: 16px; font-weight: 400; }
.gml-about .gml-about-split { gap: clamp(32px,5vw,72px); margin: 0; align-items: center; }
.gml-about .gml-about-split > .wp-block-column { min-width: 0; }
.gml-about .gml-about-split--reverse > .wp-block-column:first-child { order: 2; }
.gml-about .gml-about-split--reverse > .wp-block-column:last-child { order: 1; }
.gml-about .gml-about-photo { margin: 0; }
.gml-about .gml-about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--border-radius-lg); }
.gml-about .gml-about-section-intro { margin: 0 auto 40px; text-align: center; }
.gml-about .gml-about-section-intro .gml-about-copy { max-width: 880px; margin-inline: auto; }
.gml-about .gml-about-roles { gap: 24px; }
.gml-about .gml-about-role { padding: clamp(24px,3vw,40px); gap: 16px; border: 1px solid var(--gml-border); }
.gml-about .gml-about-card-title { margin: 0; font-size: clamp(1.5rem,1.3rem + .6vw,1.9rem); }
.gml-about .gml-about-role .gml-about-copy { margin: 0; }
.gml-about .gml-about-role .gml-about-eyebrow { margin: 0; }
.gml-about .gml-about-company-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin: 0; }
.gml-about .gml-about-company-grid > *, .gml-about .gml-about-roles > * { margin: 0; }
.gml-about .gml-about-company { padding: 28px 24px; gap: 20px; border: 1px solid var(--gml-border); border-radius: var(--border-radius-md); }
.gml-about .gml-about-company-logo { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 128px; margin: 0; padding: 12px; background: var(--gml-dark); border-radius: var(--border-radius-sm); box-sizing: border-box; }
.gml-about .gml-about-company-logo--light { background: var(--gml-bg-light); }
.gml-about .gml-about-company-logo img { display: block; max-width: 100%; width: 100%; height: 104px; object-fit: contain; object-position: center; }
.gml-about .gml-about-company-logo img.wp-image-921 { width: 60%;}
.gml-about .gml-about-company .gml-about-copy { margin: 0; font-size: 16px; line-height: 1.75; }
.gml-about .gml-about-company-link { margin: auto 0 0; font-size: 15px; line-height: 1.6; }
.gml-about .gml-about-closing-grid { gap: clamp(32px,6vw,80px); margin: 0; align-items: center; }
.gml-about .gml-about-contact-panel { padding: clamp(24px,4vw,48px); border: 1px solid rgba(255,255,255,.22); border-radius: var(--border-radius-lg); }
.gml-about .gml-about-contact-title { margin-bottom: 20px; font-size: var(--fs-xl); }
.gml-about .gml-about-closing .gml-about-copy { color: var(--gml-text-muted); }
@media (max-width: 1159px) {
    .gml-about .gml-about-company-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 781px) {
    .gml-about .gml-about-split, .gml-about .gml-about-closing-grid { flex-wrap: wrap !important; }
    .gml-about .gml-about-split > .wp-block-column, .gml-about .gml-about-closing-grid > .wp-block-column { flex-basis: 100% !important; }
    .gml-about .gml-about-split--reverse > .wp-block-column { order: initial !important; }
    .gml-about .gml-about-hero-title br, .gml-about .gml-about-title br { display: none; }
    .gml-about .gml-about-title { font-size: clamp(1.85rem,1.5rem + 1.5vw,2.4rem); }
}
@media (max-width: 599px) {
    .gml-about .gml-about-company-grid { grid-template-columns: minmax(0,1fr); }
    .gml-about .gml-about-anchor-links { gap: 10px; }
    .gml-about .gml-about-anchor-links .wp-block-button__link { padding-inline: 18px; }
    .gml-about .gml-about-contact-panel { padding: 24px; }
}

/* 15b. Shared forms. Add gml-form plus gml-form--light or gml-form--dark
 * to a form or its Gutenberg Group. Native fields and Contact Form 7 use
 * the same styles. Native WordPress comment forms use a compatibility adapter.
 * Existing report classes are supported inside that scope.
 * These styles never activate a form or change its delivery configuration.
 */
:is(.gml-form, .comment-respond .comment-form) {
    --gml-form-bg: #FFFFFF;
    --gml-form-text: #202127;
    --gml-form-muted: #555555;
    --gml-form-focus: #526B1F;
    --gml-form-link: #526B1F;
    --gml-form-notice-bg: #F6F5F0;
    --gml-form-error: #A1202D;
    --gml-form-button-edge: #526B1F;
    width: 100%;
    min-width: 0;
    max-width: 960px;
    margin-inline: auto;
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid #C9CBBF;
    border-radius: 16px;
    background: var(--gml-form-bg);
    color: var(--gml-form-text);
    font-family: var(--ff-body);
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    box-shadow: none;
    box-sizing: border-box;
}
.gml-form.gml-form--dark {
    --gml-form-bg: #171922;
    --gml-form-text: #F5F3EE;
    --gml-form-muted: #CBD5E1;
    --gml-form-focus: #9FBB3C;
    --gml-form-link: #B2C889;
    --gml-form-notice-bg: #252833;
    --gml-form-error: #FFB4B4;
    --gml-form-button-edge: #9FBB3C;
    padding: 0;
    border: 0;
    background: var(--gml-form-bg);
    color: var(--gml-form-text);
}
:is(.gml-form, .comment-respond .comment-form) *, :is(.gml-form, .comment-respond .comment-form) *::before, :is(.gml-form, .comment-respond .comment-form) *::after { box-sizing: border-box; }
:is(.gml-form, .comment-respond .comment-form) :is(form, .wpcf7) { width: 100%; max-width: none; margin: 0; }
:is(.gml-form, .comment-respond .comment-form) fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
:is(.gml-form, .comment-respond .comment-form) :is(label, legend) {
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 0;
    color: var(--gml-form-text);
    font: inherit;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
:is(.gml-form, .comment-respond .comment-form) :is(.gml-form__grid, .gm-report-grid, .gml-form-row) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
:is(.gml-form, .comment-respond .comment-form) :is(.gml-form__grid, .gm-report-grid, .gml-form-row) > * { min-width: 0; }
:is(.gml-form, .comment-respond .comment-form) :is(.gml-form__field, .gm-report-field, .gml-form-col) { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
:is(.gml-form, .comment-respond .comment-form) :is(.gml-form__field--full, .gml-form-row.full-width) { grid-column: 1 / -1; }
:is(.gml-form, .comment-respond .comment-form) .wpcf7-form > p { margin: 0 0 24px; }
:is(.gml-form, .comment-respond .comment-form) .wpcf7-form > p:last-of-type { margin-bottom: 0; }
:is(.gml-form, .comment-respond .comment-form) .wpcf7-form-control-wrap { display: block; min-width: 0; margin-top: 8px; }
:is(.gml-form, .comment-respond .comment-form) .wpcf7-form label > br { display: none; }
:is(.gml-form, .comment-respond .comment-form) :is(input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="password"], input[type="search"], input[type="date"], input[type="time"], input[type="datetime-local"], select, textarea) {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #75786A;
    border-radius: 8px;
    background: #FFFFFF;
    color: #202127;
    font: inherit;
    font-weight: 400;
    line-height: 1.5;
    box-shadow: none;
}
:is(.gml-form, .comment-respond .comment-form) textarea { height: 180px; min-height: 160px; resize: vertical; }
:is(.gml-form, .comment-respond .comment-form) select { padding-right: 36px; }
:is(.gml-form, .comment-respond .comment-form) :is(input, textarea)::placeholder { color: #666666; opacity: 1; }
:is(.gml-form, .comment-respond .comment-form) :is(input, textarea, select):focus {
    border-color: #526B1F;
    outline: 3px solid var(--gml-form-focus) !important;
    outline-offset: 3px !important;
    box-shadow: none !important;
}
:is(.gml-form, .comment-respond .comment-form) :is(.gml-form__choices, .gm-report-radio, .gml-radio-group) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 8px;
    padding: 0;
}
:is(.gml-form, .comment-respond .comment-form) :is(.gml-form__choices, .gm-report-radio, .gml-radio-group) label,
:is(.gml-form, .comment-respond .comment-form) :is(.gml-form__consent, .gm-report-consent, .gml-privacy-box),
:is(.gml-form, .comment-respond .comment-form) :is(.wpcf7-checkbox, .wpcf7-radio, .wpcf7-acceptance) label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 44px;
    padding-block: 10px;
    color: var(--gml-form-text);
    font-weight: 400;
    cursor: pointer;
}
:is(.gml-form, .comment-respond .comment-form) :is(input[type="checkbox"], input[type="radio"]) {
    appearance: auto;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    min-height: 20px;
    margin: 2px 0 0;
    padding: 0;
    border: 1px solid #75786A;
    background: #FFFFFF;
    accent-color: #526B1F;
    box-shadow: none;
    cursor: pointer;
}
:is(.gml-form, .comment-respond .comment-form) :is(.gml-form__message, .gm-report-message) { margin-top: 24px; }
:is(.gml-form, .comment-respond .comment-form) :is(.gml-form__consent, .gm-report-consent, .gml-privacy-box) { margin-top: 14px; }
:is(.gml-form, .comment-respond .comment-form) a:not(.wp-element-button) { color: var(--gml-form-link); text-decoration: underline; text-underline-offset: .2em; }
:is(.gml-form, .comment-respond .comment-form) a:focus-visible { outline: 3px solid var(--gml-form-focus); outline-offset: 3px; }
:is(.gml-form, .comment-respond .comment-form) :is(.gml-form__submit, .gm-report-button, .gml-submit-btn, .wpcf7-submit, button[type="submit"], input[type="submit"]) {
    display: inline-block;
    width: auto;
    min-width: 120px;
    max-width: 100%;
    min-height: 48px;
    margin: 24px 0 0;
    padding: 12px 28px;
    border: 2px solid var(--gml-form-button-edge) !important;
    border-radius: 30px !important;
    background: #9FBB3C !important;
    color: #171922 !important;
    font-family: var(--ff-heading) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.4;
    text-align: center;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
    box-shadow: none;
    transform: none;
    transition: background-color .15s ease;
}
:is(.gml-form, .comment-respond .comment-form) .wpcf7-form > p > .wpcf7-submit { margin-top: 0; }
:is(.gml-form, .comment-respond .comment-form) :is(.gml-form__submit, .gm-report-button, .gml-submit-btn, .wpcf7-submit, button[type="submit"], input[type="submit"]):hover:not(:disabled) { background: #AED62D !important; color: #171922 !important; transform: none; box-shadow: none; }
:is(.gml-form, .comment-respond .comment-form) :is(button, input[type="submit"]):focus-visible { border-color: var(--gml-form-button-edge); outline: 3px solid var(--gml-form-focus) !important; outline-offset: 4px !important; box-shadow: none !important; }
:is(.gml-form, .comment-respond .comment-form) :is(.gml-form__notice, .gm-report-status, .wpcf7-response-output) {
    margin: 0 0 24px;
    padding: 14px 18px;
    border: 1px solid var(--gml-form-focus);
    border-left-width: 4px;
    border-radius: 8px;
    background: var(--gml-form-notice-bg);
    color: var(--gml-form-text);
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
:is(.gml-form, .comment-respond .comment-form) .wpcf7-response-output { margin: 24px 0 0; }
.gml-form.gml-form--dark .gm-report-status { color: var(--gml-form-text); }
:is(.gml-form, .comment-respond .comment-form) :is(.wpcf7-not-valid-tip, .gml-form__error) { margin-top: 8px; color: var(--gml-form-error); font-size: 14px; font-weight: 500; }
:is(.gml-form, .comment-respond .comment-form) :is([aria-invalid="true"], .wpcf7-not-valid) { border-color: var(--gml-form-error); border-width: 2px; }
:is(.gml-form, .comment-respond .comment-form) .wpcf7 form :is(.wpcf7-response-output) { border-color: var(--gml-form-focus); }
:is(.gml-form, .comment-respond .comment-form) .wpcf7 form:is(.invalid, .failed, .aborted, .unaccepted, .spam) .wpcf7-response-output { border-color: var(--gml-form-error); }
:is(.gml-form, .comment-respond .comment-form) :is(input, select, textarea, button):disabled {
    background: #E9E9E3 !important;
    color: #575A60 !important;
    -webkit-text-fill-color: #575A60;
    border-color: #75786A !important;
    opacity: 1;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
@media (max-width: 679px) {
    :is(.gml-form, .comment-respond .comment-form) :is(.gml-form__grid, .gm-report-grid, .gml-form-row) { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    :is(.gml-form, .comment-respond .comment-form) :is(.gml-form__submit, .gm-report-button, .gml-submit-btn, .wpcf7-submit, button[type="submit"], input[type="submit"]) { width: 100%; min-width: 0; }
}

/* WordPress supplies these controls outside page Gutenberg content. */
.comment-respond .comment-form :is(.logged-in-as, .comment-notes) { margin: 0 0 20px; color: var(--gml-form-muted); font-size: 14px; }
.comment-respond .comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.comment-respond .comment-form .comment-form-cookies-consent label { font-weight: 400; }

/* 15c. Shared footer, edited in Astra Footer > HTML 1.
 * The former child-theme footer is superseded by this native footer element.
 * The empty Astra below-footer row is removed in Footer Builder settings.
 */
body:has(#colophon .gml-footer) .gml-custom-footer { display: none; }
#colophon.site-footer:has(.gml-footer) {
  margin: 0;
  border-top: 1px solid #303640;
  background: #12151B;
  color: #F5F3EE;
  text-align: left;
}
#colophon .site-above-footer-wrap {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
#colophon .site-above-footer-wrap .ast-builder-grid-row-container-inner {
  max-width: none;
  padding: 0;
}
#colophon .site-above-footer-wrap .ast-builder-footer-grid-columns {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
#colophon .site-above-footer-wrap .site-footer-section,
#colophon .site-above-footer-wrap .ast-builder-layout-element,
#colophon .site-above-footer-wrap .ast-builder-html-element { width: 100%; margin: 0; }
#colophon .gml-footer {
  width: 100%;
  max-width: 1264px;
  margin: 0 auto;
  padding: 64px 32px 24px;
  color: #F5F3EE;
  font: 400 16px/1.65 var(--ff-body, Montserrat, sans-serif);
  text-align: left;
}
.gml-footer, .gml-footer * { box-sizing: border-box; }
.gml-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, .65fr);
  gap: 48px;
  align-items: start;
}
.gml-footer__grid > * { min-width: 0; }
#colophon .gml-footer p { margin: 0; }
#colophon .gml-footer br, #colophon .gml-footer p:empty { display: none; }
.gml-footer__brand { display: inline-flex; align-items: center; min-height: 48px; }
#colophon .gml-footer__brand img { display: block; width: 146px; max-width: 100%; height: auto; }
#colophon .gml-footer .gml-footer__company-name { margin: 20px 0 8px; font-weight: 600; }
.gml-footer__contacts { display: flex; flex-direction: column; margin: 0; font-style: normal; }
#colophon .gml-footer a { color: #F5F3EE; text-decoration: none; }
.gml-footer__contacts a { font-weight: 500; display: flex; align-items: center; width: fit-content; max-width: 100%; min-height: 44px; }
.gml-footer__contacts span { margin-top: 8px; color: #CBD5E1; }
.gml-footer__email { overflow-wrap: anywhere; }
#colophon .gml-footer__heading {
  margin: 0 0 20px;
  padding: 0;
  color: #9FBB3C;
  font: 700 14px/1.5 var(--ff-body, Montserrat, sans-serif);
  letter-spacing: .08em;
  text-transform: uppercase;
}
#colophon .gml-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
#colophon .gml-footer__links li { margin: 0; padding: 0; list-style: none; }
.gml-footer__links a { display: flex; align-items: center; min-height: 44px; padding: 7px 0; overflow-wrap: anywhere; }
#colophon .gml-footer a:hover { color: #B8D45D; }
#colophon .gml-footer a:focus-visible { outline: 3px solid #9FBB3C; outline-offset: 4px; border-radius: 3px; }
#colophon .gml-footer__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  max-width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid #758443;
  border-radius: 8px;
  font-weight: 600;
}

/* Keep the existing LinkedIn text link; remove its decorative marks. */
.gml-footer .gml-footer__linkedin .gml-footer__external {
    display: none;
}

.gml-footer__social-mark { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 3px; background: #9FBB3C; color: #12151B; font: 700 20px/1 Arial, sans-serif; }
.gml-footer__external { margin-left: 2px; color: #9FBB3C; font-size: 20px; }
.gml-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #303640; color: #CBD5E1; font-size: 13px; }
@media (max-width: 1100px) {
  .gml-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 48px; }
  .gml-footer__company { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  #colophon .gml-footer { padding: 40px 24px 24px; }
  .gml-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .gml-footer__company { grid-column: auto; }
  #colophon .gml-footer__heading { margin-bottom: 12px; }
  .gml-footer__bottom { flex-direction: column; gap: 8px; margin-top: 32px; padding-top: 20px; }
}

/* 16. One reduced-motion block. Timing AND state/geometry are handled explicitly.
 * Video centering transforms are deliberately preserved.
 * CSS can hide a video in favor of an existing poster; pausing playback needs JS.
 */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    #masthead, #masthead *, .ast-mobile-popup-drawer *,
    :where([class^="gml-"], [class*=" gml-"], [class^="gm-"], [class*=" gm-"]),
    :where([class^="gml-"], [class*=" gml-"], [class^="gm-"], [class*=" gm-"]) *,
    :where(#content, .editor-styles-wrapper) :where(.animated, .wp-block-button__link) {
        animation: none !important;
        transition: none !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }
    .gml-reveal,
    .gml-motion-ready .gml-reveal:not(.is-visible),
    .gml-home-motion-target { opacity: 1 !important; transform: none !important; translate: none !important; }
    .gml-eco-card:hover, .gml-eco-card:focus, .gml-eco-card.is-hovered,
    .gml-pillar-card:hover, .gml-pillar-card.is-visible:hover, .gml-news-card:hover,
    .gml-lav-card:hover .gml-lav-media img, .gml-lav-card:focus .gml-lav-media img,
    .gml-lav-card:hover .gml-lav-btn, .gml-lav-card:focus .gml-lav-btn,
    .gml-node:hover .gml-node-bullet, .gml-node:focus-within .gml-node-bullet,
    .gml-rounded-img:hover, .gml-cs-gov-img-card:hover img,
    .gml-governance-profile-photo:hover img, .gml-governance-profile-cv:hover,
    .gml-submit-btn:hover, .gml-hg-btn-primary:hover, .gml-hg-btn-green:hover,
    .gml-hg-btn-green-pill:hover, .gml-hg-btn-outline:hover,
    .gml-linkedin-btn:hover, .elementor-animation-shrink:hover, .elementor-animation-shrink:focus {
        transform: none !important;
    }
    .gml-eco-icon, .gml-eco-overlay { transform: none !important; }
    .gml-pillar-card:hover .gml-pillar-img-box { transform: none; }
    .gml-governance-hero:has(.gml-governance-static-poster) .wp-block-cover__video-background { visibility: hidden; }
    .gml-governance-hero .gml-governance-static-poster { display: block; }
}

/* START — GM Leather: box sostenibilità */
.wp-block-column.gml-sustainability-box {
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.8);
  padding: clamp(1.5rem, 3vw, 3rem);
  border-radius: 1rem;
}

/* Rimuove lo spazio esterno sopra il titolo */
.wp-block-column.gml-sustainability-box > h2:first-child {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 781px) {
  .wp-block-column.gml-sustainability-box {
    padding: 1.5rem;
  }
}
/* END — GM Leather: box sostenibilità */

/* Full-screen page heroes: allow content to grow beyond the viewport when needed. */
.gml-sostenibilita-page > .gml-sostenibilita-hero,
.gml-lavorazioni-page > .wp-block-group:first-child,
.gml-about > .gml-about-hero,
.gml-contact-page > .wp-block-group:first-child {
    box-sizing: border-box;
    min-height: calc(100vh - var(--gml-header-height, 83px) - var(--gml-admin-offset, 0px));
    min-height: calc(100svh - var(--gml-header-height, 83px) - var(--gml-admin-offset, 0px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

/* Hero media: a single 60% black layer, below content and links. */
.gml-home-hero.wp-block-cover > .wp-block-cover__background,
.gml-news-hero.wp-block-cover > .wp-block-cover__background,
.gml-governance-page > .gml-governance-hero.wp-block-cover > .wp-block-cover__background {
    background-color: #000 !important;
    opacity: .6 !important;
}

/* Group heroes have no Gutenberg Cover overlay. */
.gml-sostenibilita-page > .gml-sostenibilita-hero,
.gml-lavorazioni-page > .wp-block-group:first-child,
.gml-about > .gml-about-hero,
.gml-contact-page > .wp-block-group:first-child {
    position: relative;
    isolation: isolate;
}

.gml-sostenibilita-page > .gml-sostenibilita-hero::before,
.gml-lavorazioni-page > .wp-block-group:first-child::before,
.gml-about > .gml-about-hero::before,
.gml-contact-page > .wp-block-group:first-child::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .3);
    pointer-events: none;
    z-index: 0;
}

.gml-sostenibilita-page > .gml-sostenibilita-hero > *,
.gml-lavorazioni-page > .wp-block-group:first-child > *,
.gml-about > .gml-about-hero > *,
.gml-contact-page > .wp-block-group:first-child > * {
    position: relative;
    z-index: 1;
}

/* Use the explicit Gutenberg hero layer instead of the previous pseudo-element. */
.gml-sostenibilita-page > .gml-sostenibilita-hero::before,
.gml-lavorazioni-page > .wp-block-group:first-child::before,
.gml-about > .gml-about-hero::before,
.gml-contact-page > .wp-block-group:first-child::before {
    content: none;
}

.gml-sostenibilita-page > .gml-sostenibilita-hero > .gml-hero-overlay,
.gml-lavorazioni-page > .wp-block-group:first-child > .gml-hero-overlay,
.gml-about > .gml-about-hero > .gml-hero-overlay,
.gml-contact-page > .wp-block-group:first-child > .gml-hero-overlay {
    position: absolute;
    inset: 0;
    width: auto;
    max-width: none;
    margin: 0 !important;
    background: #000;
    opacity: .6;
    z-index: 0;
    pointer-events: none;
}

/* Shared button colors: append after the existing child-theme rules. */
/* Unclassified Gutenberg buttons and existing navigation buttons use primary. */
body #content .wp-block-button:not(.gml-btn--secondary):not(.gml-btn--outline):not(.is-style-outline):not(.is-disabled-doc) > .wp-block-button__link:not([aria-disabled="true"]),
body :is(a, button).gml-btn:not(.gml-btn--secondary):not(.gml-btn--outline):not([aria-disabled="true"]):not(:disabled),
body :is(a, button).gml-btn--primary:not([aria-disabled="true"]):not(:disabled),
body :is(.gml-btn-accent, .gml-cs-gov-btn):not([aria-disabled="true"]):not(:disabled),
body .gml-form.gml-form :is(.gml-form__submit, .gm-report-button, .gml-submit-btn, .wpcf7-submit, button[type="submit"], input[type="submit"]):not(:disabled),
body .comment-respond .comment-form :is(button[type="submit"], input[type="submit"]):not(:disabled),
body .wp-block-search .wp-block-search__button:not(:disabled),
body .wp-block-file .wp-block-file__button {
    background-color: var(--gml-accent) !important;
    border-color: var(--gml-accent) !important;
    color: var(--gml-on-accent) !important;
}

body #content .wp-block-button:not(.gml-btn--secondary):not(.gml-btn--outline):not(.is-style-outline):not(.is-disabled-doc) > .wp-block-button__link:not([aria-disabled="true"]):hover,
body :is(a, button).gml-btn:not(.gml-btn--secondary):not(.gml-btn--outline):not([aria-disabled="true"]):not(:disabled):hover,
body :is(a, button).gml-btn--primary:not([aria-disabled="true"]):not(:disabled):hover,
body :is(.gml-btn-accent, .gml-cs-gov-btn):not([aria-disabled="true"]):not(:disabled):hover,
body .gml-form.gml-form :is(.gml-form__submit, .gm-report-button, .gml-submit-btn, .wpcf7-submit, button[type="submit"], input[type="submit"]):not(:disabled):hover,
body .comment-respond .comment-form :is(button[type="submit"], input[type="submit"]):not(:disabled):hover,
body .wp-block-search .wp-block-search__button:not(:disabled):hover,
body .wp-block-file .wp-block-file__button:hover {
    background-color: var(--gml-accent-hover) !important;
    border-color: var(--gml-accent) !important;
    color: var(--gml-on-accent) !important;
}

/* Existing outline variants become the secondary button type. */
body #content .wp-block-button:is(.gml-btn--secondary, .gml-btn--outline, .is-style-outline):not(.is-disabled-doc) > .wp-block-button__link:not([aria-disabled="true"]),
body :is(a, button):is(.gml-btn--secondary, .gml-btn--outline):not([aria-disabled="true"]):not(:disabled),
body .gml-cs-btn-sub:not([aria-disabled="true"]):not(:disabled) {
    background: var(--gml-leather-text) !important;
    border-color: var(--gml-leather-text) !important;
    color: #fff !important;
}

body #content .wp-block-button:is(.gml-btn--secondary, .gml-btn--outline, .is-style-outline):not(.is-disabled-doc) > .wp-block-button__link:not([aria-disabled="true"]):hover,
body :is(a, button):is(.gml-btn--secondary, .gml-btn--outline):not([aria-disabled="true"]):not(:disabled):hover,
body .gml-cs-btn-sub:not([aria-disabled="true"]):not(:disabled):hover {
    background: #8b6e5d !important; /* #765540 mixed with 15% white; fallback. */
    background: color-mix(in srgb, var(--gml-leather-text) 85%, white) !important;
    border-color: var(--gml-leather-text) !important;
    color: #fff !important;
}

/* Investor Relations document rows: title and action stay together. */
.gml-investor-relations-page .gml-governance-document-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 16px;
    align-items: center;
}

.gml-investor-relations-page .gml-governance-document-row > .gml-governance-document-title {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.gml-investor-relations-page .gml-governance-document-row > .wp-block-button {
    min-width: 0;
    max-width: 100%;
    margin: 0;
}

@media (max-width: 1024px) {
    .gml-investor-relations-page .gml-governance-document-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .gml-investor-relations-page .gml-governance-document-row > .wp-block-button,
    .gml-investor-relations-page .gml-governance-document-row > .wp-block-button > .wp-block-button__link {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Chi siamo: values illustration and cards only. */
.gml-about .gml-about-values .gml-about-section-intro .wp-block-image {
    width: min(100%, 440px);
    margin: 24px auto 0;
}

.gml-about .gml-about-values .gml-about-section-intro .wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
}

.gml-about .gml-about-values .gml-about-roles {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.gml-about .gml-about-values .gml-about-role {
    min-width: 0;
    padding: 24px 20px;
}

.gml-about .gml-about-values .gml-about-card-title {
    font-size: 1.2rem;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.gml-about .gml-about-values .gml-about-role .gml-about-copy {
    font-size: 1rem;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .gml-about .gml-about-values .gml-about-roles {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Consistent spacing for the eight current page heroes. */
:is(
  .gml-home-hero.wp-block-cover > .wp-block-cover__inner-container,
  .gml-news-hero.wp-block-cover > .wp-block-cover__inner-container,
  .gml-governance-page > .gml-governance-hero.wp-block-cover > .wp-block-cover__inner-container,
  .gml-sostenibilita-page > .gml-sostenibilita-hero,
  .gml-lavorazioni-page > .wp-block-group:first-child,
  .gml-contact-page > .wp-block-group:first-child,
  .gml-about > .gml-about-hero > .gml-content
) > :is(p, h1, .wp-block-buttons, .gml-about-nav) {
    margin-block: 0 !important;
}

/* Empty paragraphs in two existing Group heroes are not content. */
:is(
  .gml-lavorazioni-page > .wp-block-group:first-child,
  .gml-contact-page > .wp-block-group:first-child
) > p:empty {
    display: none;
}

/* Eyebrow to title: 8px. */
:is(
  .gml-home-hero.wp-block-cover > .wp-block-cover__inner-container,
  .gml-news-hero.wp-block-cover > .wp-block-cover__inner-container,
  .gml-sostenibilita-page > .gml-sostenibilita-hero,
  .gml-lavorazioni-page > .wp-block-group:first-child,
  .gml-contact-page > .wp-block-group:first-child,
  .gml-about > .gml-about-hero > .gml-content
) > p:has(+ h1) {
    margin-bottom: 8px !important;
}

/* Title to subtitle: 20px. */
:is(
  .gml-home-hero.wp-block-cover > .wp-block-cover__inner-container,
  .gml-news-hero.wp-block-cover > .wp-block-cover__inner-container,
  .gml-governance-page > .gml-governance-hero.wp-block-cover > .wp-block-cover__inner-container,
  .gml-sostenibilita-page > .gml-sostenibilita-hero,
  .gml-lavorazioni-page > .wp-block-group:first-child,
  .gml-contact-page > .wp-block-group:first-child,
  .gml-about > .gml-about-hero > .gml-content
) > h1 {
    margin-bottom: 20px !important;
}

/* Subtitle to buttons: 40px. */
:is(
  .gml-home-hero.wp-block-cover > .wp-block-cover__inner-container,
  .gml-news-hero.wp-block-cover > .wp-block-cover__inner-container,
  .gml-governance-page > .gml-governance-hero.wp-block-cover > .wp-block-cover__inner-container,
  .gml-sostenibilita-page > .gml-sostenibilita-hero,
  .gml-lavorazioni-page > .wp-block-group:first-child,
  .gml-contact-page > .wp-block-group:first-child,
  .gml-about > .gml-about-hero > .gml-content
) > h1 ~ p:not(:empty) {
    margin-bottom: 40px !important;
}

/* Correct the earlier hero margin reset's specificity. */
#content :is(
  .gml-home-hero.wp-block-cover > .wp-block-cover__inner-container,
  .gml-news-hero.wp-block-cover > .wp-block-cover__inner-container,
  .gml-sostenibilita-page > .gml-sostenibilita-hero,
  .gml-lavorazioni-page > .wp-block-group:first-child,
  .gml-contact-page > .wp-block-group:first-child,
  .gml-about > .gml-about-hero > .gml-content
) > p:has(+ h1) {
    margin-bottom: 8px !important;
}

#content :is(
  .gml-home-hero.wp-block-cover > .wp-block-cover__inner-container,
  .gml-news-hero.wp-block-cover > .wp-block-cover__inner-container,
  .gml-governance-page > .gml-governance-hero.wp-block-cover > .wp-block-cover__inner-container,
  .gml-sostenibilita-page > .gml-sostenibilita-hero,
  .gml-lavorazioni-page > .wp-block-group:first-child,
  .gml-contact-page > .wp-block-group:first-child,
  .gml-about > .gml-about-hero > .gml-content
) > h1 {
    margin-bottom: 20px !important;
}

/* Hero upper-titles use the shared green. */
.gml-about .gml-about-hero .gml-about-eyebrow,
.gml-governance-page > .gml-governance-hero .gml-hero-eyebrow {
    color: var(--gml-accent) !important;
}

.gml-governance-page > .gml-governance-hero .gml-hero-eyebrow {
    font-family: var(--ff-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

/* Governance and Investor Relations use the Chi siamo hero typography. */
.gml-governance-page > .gml-governance-hero .gml-governance-title {
    max-width: 100%;
    font-size: clamp(2.3rem, 1.6rem + 2.5vw, 3.5rem);
    line-height: 1.15;
}

.gml-governance-page > .gml-governance-hero .gml-governance-title em {
    color: var(--gml-accent);
}

.gml-governance-page > .gml-governance-hero .gml-about-lead {
    max-width: 880px;
    margin-inline: auto;
    color: var(--gml-text-muted);
    font-size: var(--fs-lg);
    line-height: 1.65;
}

/* News hero: remove the extra Gutenberg block margin below the header. */
body #content .gml-news-media-page > .gml-news-hero {
    margin-top: 0 !important;
}

/* Give the three existing secondary hero buttons the primary appearance. */
body #content .gml-news-media-page .gml-news-hero .wp-block-button.gml-btn--secondary > .wp-block-button__link:not([aria-disabled="true"]) {
    background: var(--gml-accent) !important;
    border-color: var(--gml-accent) !important;
    color: var(--gml-on-accent) !important;
}

body #content .gml-news-media-page .gml-news-hero .wp-block-button.gml-btn--secondary > .wp-block-button__link:not([aria-disabled="true"]):hover {
    background: var(--gml-accent-hover) !important;
    border-color: var(--gml-accent) !important;
    color: var(--gml-on-accent) !important;
}

/* Show the available language directly in the navigation */
.menu-item-gtranslate > .gt-current-wrapper {
  display: none !important;
}

.menu-item-gtranslate > .sub-menu {
  display: flex !important;
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  min-width: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  transform: none !important;
}

.menu-item-gtranslate .sub-menu li:has(> .gt-current-lang) {
  display: none !important;
}

/* Hide the active language in the footer switcher */
.gml-footer .gtranslate_wrapper .gt-current-lang {
  display: none !important;
}

/* Footer: keep the language switcher below LinkedIn */
.gml-footer__social .gtranslate_wrapper {
  display: block;
  margin-top: 1rem;
}

.gml-footer__social .gt_switcher_wrapper {
  position: static !important;
  inset: auto !important;
}

/* Header: remove the border around the language switcher */
.menu-item-gtranslate > .sub-menu {
  border: 0 !important;
}

/* Remove the border only from the language switcher */
#masthead .main-header-menu .menu-item-gtranslate > .sub-menu {
  border: 0 !important;
  background: transparent !important;
}

/* Mobile header: show only the language available to switch to. */
#ast-mobile-header .ast-header-html-1 .gtranslate_wrapper a.gt-current-lang {
    display: none !important;
}
