/* GAMM Srl — modern theme. Same structure and content as the legacy site,
   refreshed styling. Headings, navigation and buttons stay in Oswald. */
@font-face { font-family: "Oswald"; src: url("../fonts/oswald.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }

:root {
	--blue: #0064a7; --blue-dark: #004a7c; --ink: #17212b; --text: #47525d; --muted: #6b7681;
	--line: #e3e8ee; --soft: #f3f6f9; --soft-blue: #eaf3fa; --radius: 12px; --radius-s: 8px;
	--shadow: 0 8px 28px rgba(16, 42, 67, .09); --shadow-s: 0 2px 10px rgba(16, 42, 67, .08);
	--head: "Oswald", "Arial Narrow", sans-serif;
	--body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font: 400 1rem/1.7 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: var(--blue); text-decoration: none; transition: color .15s, background-color .15s, box-shadow .2s, transform .2s; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid #7fb7e3; outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--head); font-weight: 500; line-height: 1.2; letter-spacing: .01em; text-transform: uppercase; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }
h3 { font-size: 1.15rem; }
strong, b { color: var(--ink); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gamm-skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: 10px 16px; z-index: 999; }
.gamm-skip:focus { left: 0; color: #fff; }

/* ---------- image protection (deterrent) ---------- */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
a img, figure img, .gamm-hero img, .gamm-cover img { pointer-events: none; } /* clicks still reach the link around the image */

/* ---------- header (sticky, single row) ---------- */
.gamm-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.gamm-header__inner { max-width: var(--wrap); margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.gamm-brand { display: flex; flex-direction: column; gap: 2px; flex: 0 0 auto; }
.gamm-brand img { width: 230px; height: auto; display: block; }
.gamm-brand__tag { font-size: .68rem; line-height: 1.2; color: var(--muted); max-width: 300px; }
.gamm-navbar { display: flex; align-items: center; gap: 22px; }
.gamm-menu { display: flex; align-items: center; gap: 2px; }
.gamm-menu a { position: relative; display: block; padding: 12px 14px; font: 500 .95rem/1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.gamm-menu a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; background: var(--blue); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.gamm-menu a:hover { color: var(--blue); }
.gamm-menu a:hover::after, .gamm-menu .current-menu-item > a::after, .gamm-menu .current_page_item > a::after { transform: scaleX(1); }
.gamm-menu .current-menu-item > a, .gamm-menu .current_page_item > a { color: var(--blue); }
.gamm-lang { display: flex; gap: 4px; padding-left: 18px; border-left: 1px solid var(--line); }
.gamm-lang li a { display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; font: 500 .72rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gamm-lang li a img { width: 18px; height: 12px; border-radius: 2px; }
.gamm-lang li a:hover { background: var(--soft); color: var(--ink); }
.gamm-lang .current-lang a { background: var(--soft-blue); color: var(--blue); }
.gamm-menu li { position: relative; }
.gamm-menu .menu-item-has-children > a { padding-right: 26px; }
.gamm-menu .menu-item-has-children > a::before { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: .6; }
.gamm-subtoggle { position: absolute; right: 0; top: 0; bottom: 0; width: 30px; border: 0; background: none; cursor: pointer; opacity: 0; }
.gamm-menu .sub-menu { position: absolute; left: 0; top: 100%; min-width: 250px; padding: 8px; margin-top: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 70; }
.gamm-menu li:hover > .sub-menu, .gamm-menu li:focus-within > .sub-menu, .gamm-menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.gamm-menu .sub-menu a { padding: 10px 14px; border-radius: var(--radius-s); font-size: .88rem; letter-spacing: .04em; white-space: nowrap; }
.gamm-menu .sub-menu a::after { display: none; }
.gamm-menu .sub-menu a:hover, .gamm-menu .sub-menu .current-menu-item > a { background: var(--soft-blue); color: var(--blue); }
.gamm-menu .current-menu-ancestor > a, .gamm-menu .current-page-ancestor > a, .gamm-menu .current-menu-parent > a { color: var(--blue); }
.gamm-menu .current-menu-ancestor > a::after, .gamm-menu .current-page-ancestor > a::after { transform: scaleX(1); }
.gamm-toggle { display: none; }

/* ---------- hero ---------- */
.gamm-hero { background: var(--ink); }
.gamm-hero__stage { position: relative; }
.gamm-hero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.gamm-hero__track::-webkit-scrollbar { display: none; }
.gamm-hero__slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.gamm-hero__slide img { display: block; width: 100%; height: clamp(260px, 38vw, 520px); object-fit: cover; }
.gamm-hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 30, 55, .78) 0%, rgba(0, 30, 55, .25) 42%, transparent 70%); pointer-events: none; }
.gamm-hero__cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; }
.gamm-hero__cap a, .gamm-hero__cap > span { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: var(--wrap); margin: 0 auto; padding: 0 24px 34px; color: #fff; }
.gamm-hero__title { font: 500 clamp(1.6rem, 1rem + 3vw, 3.2rem)/1.1 var(--head); color: #fff; text-transform: uppercase; letter-spacing: .01em; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.gamm-hero__more { flex: 0 0 auto; padding: 11px 24px; border-radius: 999px; background: #fff; color: var(--blue); font: 500 .85rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; }
.gamm-hero__cap a:hover .gamm-hero__more { background: var(--blue); color: #fff; }
.gamm-hero__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); font: 400 1.9rem/1 var(--body); cursor: pointer; box-shadow: var(--shadow-s); z-index: 5; display: grid; place-items: center; padding: 0 0 4px; }
.gamm-hero__btn:hover { background: #fff; color: var(--blue); }
.gamm-hero__btn--prev { left: 20px; } .gamm-hero__btn--next { right: 20px; }

/* ---------- horizontal background video band (Azienda) ---------- */
.gamm-vband { position: relative; overflow: hidden; height: clamp(220px, 30vw, 430px); background: #0b2438; color: #fff; }
.gamm-vband__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gamm-vband__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 30, 55, .72) 0%, rgba(0, 30, 55, .25) 55%, rgba(0, 30, 55, .1) 100%); }
.gamm-vband__cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; max-width: var(--wrap); margin: 0 auto; padding: 0 24px 34px; }
.gamm-vband__title { margin: 0 0 6px; font: 500 clamp(1.6rem, 1rem + 2.8vw, 3rem)/1.1 var(--head); text-transform: uppercase; text-shadow: 0 2px 14px rgba(0, 0, 0, .4); }
.gamm-vband__text { margin: 0; max-width: 560px; font-size: 1.05rem; color: rgba(255, 255, 255, .92); }
.gamm-vband__toggle { position: absolute; z-index: 3; right: 20px; bottom: 20px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: .7rem; letter-spacing: -2px; cursor: pointer; display: grid; place-items: center; }
.gamm-vband__toggle:hover { background: #fff; color: var(--blue); }
.gamm-vband__hint { position: absolute; z-index: 4; top: 12px; left: 12px; right: 12px; margin: 0; padding: 8px 14px; border-radius: 8px; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: .82rem; }
.gamm-vband.is-placeholder .gamm-vband__media { filter: saturate(.85); }

/* ---------- shell ---------- */
.gamm-main { background: transparent; }
.gamm-inner { max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 24px; }
.gamm-front .gamm-inner { padding-top: 56px; }
.gamm-pagehead { margin-bottom: 28px; }
.gamm-pagehead h1 { margin: 0 0 10px; }
.gamm-breadcrumb ol { display: flex; flex-wrap: wrap; font-size: .85rem; color: var(--muted); padding: 0 0 6px; margin: 0; }
.gamm-breadcrumb li + li::before { content: "/"; padding: 0 9px; color: #b9c2cb; }
.gamm-breadcrumb a { color: var(--muted); } .gamm-breadcrumb a:hover { color: var(--blue); } .gamm-breadcrumb [aria-current] { color: var(--ink); }
.gamm-titlebar { margin-bottom: 20px; } .gamm-titlebar h1 { margin: 0; }
/* neutralise WordPress block-gap so our spacing wins */
.gamm-main .is-layout-flow > *, .gamm-main .is-layout-constrained > * { margin-block-start: 0; }
:where(.gamm-main) :where(.wp-block-group, .wp-block-image) { margin: 0; }

/* ---------- buttons ---------- */
.gamm-btn, .gamm-more, .wp-block-button__link { display: inline-block; border: 0; border-radius: 999px; background: var(--blue); color: #fff; padding: 12px 26px; font: 500 .9rem/1.1 var(--head); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 100, 167, .28); }
.gamm-btn:hover, .gamm-more:hover, .wp-block-button__link:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 100, 167, .3); }
.wp-block-buttons, .wp-block-button { margin: 0; }

/* ---------- home: teasers ---------- */
.gamm-teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 56px; }
.gamm-teaser { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 28px; text-align: center; box-shadow: var(--shadow-s); display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.gamm-teaser:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.gamm-main .gamm-teaser h2 { padding-top: 112px; margin: 0 0 14px; background: url("../img/cmp-icon1.png") center 0 no-repeat; color: var(--blue); }
.gamm-teaser--2 h2 { background-image: url("../img/cmp-icon2.png") !important; } .gamm-teaser--3 h2 { background-image: url("../img/cmp-icon3.png") !important; }
.gamm-teaser p { flex: 1; text-align: center; font-size: .95rem; margin-bottom: 22px; }
.gamm-teaser .wp-block-button, .gamm-teaser .wp-block-button__link { display: block; width: 100%; text-align: center; }
.gamm-teaser .wp-block-button__link::after { content: "  →"; }

/* full-bleed soft bands (strip + catalog): a pseudo-element, not a giant box-shadow (Safari-safe) */
.gamm-strip::before, .gamm-catalog::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; background: var(--soft-blue); }
.gamm-main { overflow-x: hidden; overflow-x: clip; }
/* strip: full-bleed soft band */
.gamm-strip { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 0; margin-bottom: 56px; }
.gamm-strip h2 { margin: 0; color: var(--blue-dark); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem); }

/* services panel */
.gamm-panel { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; margin-bottom: 64px; }
.gamm-panel__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gamm-tile { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); background: var(--ink); }
.gamm-tile figure { margin: 0; } .gamm-tile img { display: block; width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; transition: transform .5s; }
.gamm-tile:hover img { transform: scale(1.06); }
.gamm-main .gamm-tile__title { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 60px 18px 18px; background: linear-gradient(0deg, rgba(0, 45, 80, .92), rgba(0, 45, 80, 0)); }
.gamm-tile__title a { color: #fff; font: 500 1.3rem/1.15 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.gamm-tile__title a::before { content: ""; position: absolute; inset: 0; }
.gamm-tile__title a::after { content: " →"; opacity: .8; }

/* CNC + sidebar */
.gamm-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; margin-bottom: 40px; }
.gamm-cnc h2 { margin-bottom: 18px; }
.gamm-cnc figure { float: left; margin: 0 20px 8px 0; border-radius: var(--radius-s); overflow: hidden; }
.gamm-cnc img { display: block; width: 110px; height: 110px; object-fit: cover; }
.gamm-cnc p:first-of-type { font-weight: 600; color: var(--ink); }
.gamm-cnc p:nth-of-type(2) { clear: both; padding-top: 6px; }
.gamm-cols__side, .gamm-side { align-self: start; background: var(--soft); border-radius: var(--radius); padding: 26px 26px 28px; }
.gamm-side h2 { font-size: 1.35rem; margin-bottom: 16px; color: var(--blue-dark); }
.gamm-side li { border-top: 1px solid var(--line); }
.gamm-side li a { display: block; padding: 11px 0; font: 500 .9rem/1.3 var(--head); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.gamm-side li a:hover { color: var(--blue); padding-left: 4px; }
.gamm-side ul { margin-bottom: 18px; }

/* catalog CTA — full-bleed band */
.gamm-catalog { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; margin-top: 48px; padding: 40px 0; }
.gamm-catalog h2 { color: var(--blue-dark); margin: 0; }
.gamm-catalog a { display: block; border-radius: var(--radius-s); overflow: hidden; box-shadow: var(--shadow); }
.gamm-catalog a:hover { transform: translateY(-3px) rotate(-.5deg); }
.gamm-catalog img { display: block; width: 240px; height: auto; }

/* footer */
.gamm-footer { background: #0b2438; color: #b4c3d1; margin-top: 0; padding: 0; }
.gamm-footer__cols { max-width: var(--wrap); margin: 0 auto; padding: 56px 24px 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.gamm-footer h2 { color: #fff; font-size: 1.05rem; letter-spacing: .1em; margin: 0 0 16px; }
.gamm-footer li { padding: 4px 0; font-size: .95rem; }
.gamm-footer a { color: #b4c3d1; } .gamm-footer a:hover { color: #fff; }
.gamm-footer__legal { border-top: 1px solid rgba(255, 255, 255, .1); }
.gamm-footer__legal p { max-width: var(--wrap); margin: 0 auto; padding: 18px 24px; font-size: .82rem; }
.gamm-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; font-size: 1.2rem; cursor: pointer; z-index: 40; box-shadow: var(--shadow); }
.gamm-top:hover { background: var(--blue-dark); } .gamm-top[hidden] { display: none; }

/* ---------- product grid ---------- */
.gamm-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.gamm-filters button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 20px; font: 500 .85rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: all .15s; }
.gamm-filters button:hover { border-color: var(--blue); color: var(--blue); }
.gamm-filters button.is-active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(0, 100, 167, .28); }
.gamm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px; }
.gamm-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.gamm-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.gamm-card[hidden] { display: none; }
.gamm-card__img { display: block; background: #fff; overflow: hidden; aspect-ratio: 4 / 3; }
.gamm-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gamm-card:hover .gamm-card__img img { transform: scale(1.05); }
.gamm-card__title { margin: 16px 18px 6px; font: 500 1.05rem/1.25 var(--head); letter-spacing: .02em; text-transform: uppercase; }
.gamm-card__title a { color: var(--ink); } .gamm-card__title a:hover { color: var(--blue); }
.gamm-card__text { margin: 0 18px 16px; font-size: .9rem; line-height: 1.55; color: var(--text); flex: 1; }
.gamm-card .gamm-more { margin: 0 18px 18px; align-self: flex-start; padding: 9px 20px; font-size: .8rem; box-shadow: none; }
.gamm-empty { text-align: center; padding: 30px 0; }

/* ---------- single component ---------- */
.gamm-single { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
.gamm-single__main { min-width: 0; }
.gamm-single__side { align-self: start; background: var(--soft); border-radius: var(--radius); padding: 26px; }
.gamm-single__side h2 { font-size: 1.25rem; color: var(--blue-dark); margin-bottom: 18px; }
.gamm-cover { margin: 0 0 22px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); } .gamm-cover img { display: block; width: 100%; }
.gamm-rel { padding: 14px 0; border-top: 1px solid var(--line); }
.gamm-rel img { display: block; width: 100%; max-width: 240px; border-radius: var(--radius-s); margin-bottom: 10px; }
.gamm-rel a.t { display: block; font: 500 .9rem/1.3 var(--head); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); } .gamm-rel a.t:hover { color: var(--blue); }
.gamm-rel p { font-size: .85rem; line-height: 1.5; margin: 6px 0 0; }
.gamm-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.gamm-pills a { display: block; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font: 500 .85rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; }
.gamm-pills a.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.gamm-pills a:hover { border-color: var(--blue); color: var(--blue); } .gamm-pills a.is-active:hover { color: #fff; }
.gamm-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 26px 0; }
.gamm-specs > div { background: var(--soft); border-radius: var(--radius-s); padding: 14px 18px; border-left: 4px solid var(--blue); border-bottom: 0; }
.gamm-specs dt { display: block; font: 500 .75rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; } .gamm-specs dt::after { content: none; }
.gamm-specs dd { display: block; margin: 0; color: var(--ink); font-weight: 600; }
.gamm-bluebar { font-size: 1.5rem; margin: 40px 0 18px; padding-bottom: 12px; border-bottom: 3px solid var(--blue); color: var(--ink); background: none; text-align: left; line-height: 1.2; }
.gamm-variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.gamm-variants li { text-align: left; } .gamm-variants a { display: block; border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--line); }
.gamm-variants img { width: 100%; display: block; transition: transform .4s; } .gamm-variants a:hover img { transform: scale(1.05); }
.gamm-variants .cap { display: block; padding: 8px 2px; font: 500 .85rem/1.3 var(--head); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.gamm-impiego { margin-top: 40px; padding: 30px; border-radius: var(--radius); background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; text-align: center; }
.gamm-impiego::before { content: ""; display: block; width: 72px; height: 72px; margin: 0 auto 10px; background: url("../img/bg-camp.png") center / contain no-repeat; }
.gamm-impiego h2 { color: #fff; margin: 0 0 6px; } .gamm-impiego p { margin: 0; color: rgba(255, 255, 255, .92); }

/* ---------- content pages ---------- */
.gamm-content > * + * { margin-top: 1em; }
.gamm-content ul:not([class]) { list-style: disc; padding-left: 1.4em; }
.gamm-content ol:not([class]) { list-style: decimal; padding-left: 1.4em; }
.gamm-content li { margin: .25em 0; }
.gamm-history { display: flow-root; margin-bottom: 40px; }
.gamm-history figure { float: left; margin: 0 28px 12px 0; max-width: 40%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gamm-expansion, .gamm-partners { margin-bottom: 40px; }
.gamm-main .gamm-center-h { text-align: center; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin: 48px 0 26px; border: 0; padding: 0; }
.gamm-center-h::after { content: ""; display: block; width: 72px; height: 4px; background: var(--blue); border-radius: 2px; margin: 14px auto 0; }
.gamm-partners { text-align: center; } .gamm-partners figure { display: inline-block; }
.gamm-services-list .row { display: flow-root; padding: 24px 0; border-bottom: 1px solid var(--line); }
.gamm-services-list figure { float: left; margin: 0 26px 10px 0; max-width: 300px; border-radius: var(--radius); overflow: hidden; border: 0; }
.gamm-services-list h3 { font-size: 1.35rem; color: var(--ink); margin-bottom: 12px; }
.gamm-machines .tpgb-gallery-list .post-title { color: #fff; font: 500 1.4rem/1.2 var(--head); text-transform: uppercase; }
.gamm-machines .tpgb-gallery-list .thumb-wrap { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-s); }
.gamm-machines .tpgb-gallery-list .thumb-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; } /* every photo in the same 4:3 frame, whatever its original shape */

/* ---------- services page (modern cards) ---------- */
.gamm-wide .gamm-lead { max-width: 760px; margin: 0 0 40px; }
.gamm-wide .gamm-lead p { font-size: 1.15rem; line-height: 1.7; color: var(--text); }
.gamm-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 56px; }
.gamm-svc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); transition: box-shadow .25s, transform .25s; }
.gamm-svc-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.gamm-svc-card figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.gamm-svc-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.gamm-svc-card:hover img { transform: scale(1.05); }
.gamm-svc-card h2 { font-size: 1.35rem; margin: 22px 24px 10px; }
.gamm-svc-card p { margin: 0 24px 20px; flex: 1; font-size: .96rem; }
.gamm-svc-card .wp-block-buttons { margin: 0 24px 26px; }
.gamm-svc-card .wp-block-button__link { padding: 10px 22px; font-size: .82rem; box-shadow: none; }
.gamm-svc-card .wp-block-button__link::after { content: "  →"; }
.gamm-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 38px 44px; margin-bottom: 40px; border-radius: var(--radius); background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; }
.gamm-cta h2 { color: #fff; margin: 0 0 6px; } .gamm-cta p { margin: 0; color: rgba(255, 255, 255, .92); }
.gamm-cta .wp-block-button__link { background: #fff; color: var(--blue) !important; box-shadow: none; white-space: nowrap; }
.gamm-cta .wp-block-button__link:hover { background: var(--soft-blue); }
@media (max-width: 900px) { .gamm-svc-grid { grid-template-columns: 1fr; } .gamm-cta { flex-direction: column; align-items: flex-start; padding: 28px; } }

/* ---------- timeline ---------- */
.gamm-timeline-wrap { margin: 20px 0 30px; }
.gamm-timeline { position: relative; max-width: 940px; margin: 34px auto 0; padding: 0; }
.gamm-timeline::before { content: ""; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 3px; margin-left: -1.5px; background: linear-gradient(var(--blue), #8fc0e4); border-radius: 2px; }
.gamm-timeline__item { position: relative; display: flex; width: 50%; padding: 0 48px 34px 0; margin: 0; }
.gamm-timeline__item:nth-child(even) { margin-left: 50%; padding: 0 0 34px 48px; }
.gamm-timeline__item::before { content: ""; position: absolute; top: 20px; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); box-shadow: 0 0 0 5px var(--soft-blue); z-index: 1; }
.gamm-timeline__item:nth-child(even)::before { right: auto; left: -9px; }
.gamm-timeline__year { position: absolute; top: 12px; right: calc(-1 * 92px); width: 76px; font: 500 1.35rem/1 var(--head); color: var(--blue); letter-spacing: .02em; }
.gamm-timeline__item:nth-child(even) .gamm-timeline__year { right: auto; left: calc(-1 * 92px); text-align: right; }
.gamm-timeline__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px 8px; box-shadow: var(--shadow-s); width: 100%; }
.gamm-timeline__item.is-now::before { background: var(--blue); box-shadow: 0 0 0 5px var(--soft-blue), 0 0 0 10px rgba(0, 100, 167, .15); animation: gamm-pulse 2.4s ease-out infinite; }
.gamm-timeline__item.is-now .gamm-timeline__card { border-color: var(--blue); background: linear-gradient(180deg, var(--soft-blue), #fff 70%); }
.gamm-timeline__badge { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 999px; background: var(--blue); color: #fff; font: 500 .7rem/1.4 var(--head); letter-spacing: .12em; text-transform: uppercase; }
@keyframes gamm-pulse { 0% { box-shadow: 0 0 0 5px var(--soft-blue), 0 0 0 5px rgba(0, 100, 167, .35); } 100% { box-shadow: 0 0 0 5px var(--soft-blue), 0 0 0 16px rgba(0, 100, 167, 0); } }
.gamm-timeline__card h3 { font-size: 1.15rem; margin: 0 0 8px; color: var(--ink); }
.gamm-timeline__card p { font-size: .95rem; margin: 0 0 12px; }
@media (max-width: 760px) {
	.gamm-timeline::before { left: 14px; }
	.gamm-timeline__item, .gamm-timeline__item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 26px 46px; }
	.gamm-timeline__item::before, .gamm-timeline__item:nth-child(even)::before { left: 5px; right: auto; }
	.gamm-timeline__year, .gamm-timeline__item:nth-child(even) .gamm-timeline__year { position: static; display: block; width: auto; text-align: left; margin: 0 0 6px; }
	.gamm-timeline__item { flex-wrap: wrap; } .gamm-timeline__year { flex: 0 0 100%; }
}

/* ---------- news ---------- */
.gamm-news-item { display: flow-root; padding: 24px 0; border-bottom: 1px solid var(--line); }
.gamm-news-item h2 { font-size: 1.5rem; margin: 0 0 4px; } .gamm-news-item h2 a { color: var(--ink); } .gamm-news-item h2 a:hover { color: var(--blue); }
.gamm-date { display: block; margin: 0 0 14px; font: 500 .8rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.gamm-news-item figure { float: left; margin: 0 24px 10px 0; border-radius: var(--radius-s); overflow: hidden; } .gamm-news-item img { display: block; width: 240px; height: auto; }
.gamm-content .alignright { float: right; margin: 0 0 15px 24px; }
ul.page-numbers { display: flex; gap: 6px; margin-top: 28px; } .page-numbers a, .page-numbers span { display: block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; } .page-numbers .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- contacts ---------- */
.gamm-contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; align-items: start; }
.gamm-contacts address { font-style: normal; background: var(--soft); border-radius: var(--radius); padding: 28px; }
.gamm-map iframe { width: 100%; height: 440px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-s); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
	.gamm-brand img { width: 190px; } .gamm-brand__tag { display: none; }
	.gamm-menu a { padding: 12px 9px; font-size: .9rem; } .gamm-menu a::after { left: 9px; right: 9px; }
	.gamm-panel { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 900px) {
	.gamm-header__inner { flex-wrap: wrap; padding: 10px 18px; }
	.gamm-toggle { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; margin-left: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
	.gamm-toggle i { display: block; width: 22px; height: 2px; background: var(--ink); margin: 2.5px 0; }
	.gamm-navbar { display: none; flex-direction: column; align-items: stretch; width: 100%; gap: 8px; padding: 8px 0 14px; }
	.gamm-navbar.is-open { display: flex; }
	.gamm-menu { flex-direction: column; align-items: stretch; } .gamm-menu a { padding: 13px 4px; border-bottom: 1px solid var(--line); } .gamm-menu a::after { display: none; }
	.gamm-lang { border: 0; padding: 4px 0 0; }
	.gamm-menu .menu-item-has-children > a::before { right: 14px; }
	.gamm-subtoggle { opacity: 0; width: 56px; }
	.gamm-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; min-width: 0; border: 0; box-shadow: none; padding: 0 0 6px 14px; background: var(--soft); border-radius: 0; }
	.gamm-menu li.is-open > .sub-menu { display: block; }
	.gamm-menu .sub-menu a { white-space: normal; border-bottom: 1px solid var(--line); }
	.gamm-inner { padding: 32px 18px 16px; }
	.gamm-hero__cap a, .gamm-hero__cap > span { padding: 0 18px 22px; flex-direction: column; align-items: flex-start; gap: 12px; }
	.gamm-hero__btn { width: 40px; height: 40px; } .gamm-hero__btn--prev { left: 10px; } .gamm-hero__btn--next { right: 10px; }
	.gamm-teasers { grid-template-columns: 1fr; gap: 20px; }
	.gamm-strip { flex-direction: column; align-items: flex-start; }
	.gamm-panel__tiles { grid-template-columns: 1fr; }
	.gamm-tile img { aspect-ratio: 16 / 10; }
	.gamm-cols, .gamm-single, .gamm-contacts { grid-template-columns: 1fr; gap: 28px; }
	.gamm-catalog { grid-template-columns: 1fr; }
	.gamm-footer__cols { grid-template-columns: repeat(2, 1fr); padding: 40px 18px 20px; } .gamm-footer__legal p { padding: 16px 18px; }
	.gamm-history figure, .gamm-services-list figure, .gamm-news-item figure { float: none; max-width: 100%; margin: 0 0 16px; }
}
@media (max-width: 520px) { .gamm-footer__cols { grid-template-columns: 1fr; } .gamm-grid { grid-template-columns: 1fr 1fr; gap: 14px; } .gamm-card__title { margin: 12px 12px 4px; font-size: .95rem; } .gamm-card__text { margin: 0 12px 12px; font-size: .82rem; } .gamm-card .gamm-more { margin: 0 12px 14px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
