/* ==========================================================================
   Guerri Mario – stili del tema
   ========================================================================== */

:root {
	--ink: #1b2430;
	--ink-2: #2c3746;
	--ink-soft: #4a5566;
	--muted: #6b6459;
	--paper: #fbf9f5;
	--sand: #f1ebe2;
	--sand-2: #e6ddd0;
	--line: #ddd3c5;
	--wood: #a24f2a;
	--wood-dark: #823c1d;
	--wood-tint: #f5e6dc;
	--white: #fff;
	--ok: #2f6b3a;
	--err: #a12d2d;

	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 6px;
	--shadow: 0 1px 2px rgba(27, 36, 48, .06), 0 8px 24px -12px rgba(27, 36, 48, .18);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--wood); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--wood-dark); }
:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -.012em; margin: 0 0 .5em; font-variation-settings: "opsz" 72; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.gm-skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; border-radius: var(--radius); }
.gm-skip:focus { top: 12px; color: #fff; }
.gm-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.gm-icon { flex: none; width: 1.1em; height: 1.1em; }

.gm-kicker {
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wood);
	margin: 0 0 14px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.gm-kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* Buttons ---------------------------------------------------------------- */
.gm-btn {
	display: inline-flex;
	align-items: center;
	gap: .55em;
	padding: 14px 22px;
	border-radius: var(--radius);
	border: 1px solid transparent;
	font: 600 15px/1.2 var(--font-body);
	letter-spacing: .01em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.gm-btn .gm-icon { transition: transform .2s var(--ease); }
.gm-btn:hover .gm-icon--arrow { transform: translateX(3px); }
.gm-btn--primary { background: var(--wood); color: #fff; }
.gm-btn--primary:hover { background: var(--wood-dark); color: #fff; }
.gm-btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.gm-btn--ghost:hover { background: var(--ink); color: #fff; }
.gm-btn--light { background: #fff; color: var(--ink); }
.gm-btn--light:hover { background: var(--wood-tint); color: var(--ink); }
.gm-link { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.gm-link:hover { color: var(--wood); border-color: var(--wood); }

/* Top bar ---------------------------------------------------------------- */
.gm-topbar { background: var(--ink); color: #c9cfd8; font-size: 13.5px; }
.gm-topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.gm-topbar__addr, .gm-topbar__links a { display: inline-flex; align-items: center; gap: 7px; }
.gm-topbar__links { display: flex; gap: 22px; }
.gm-topbar a { color: #e8ebef; text-decoration: none; }
.gm-topbar a:hover { color: #fff; text-decoration: underline; }

/* Header ----------------------------------------------------------------- */
.gm-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 245, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.gm-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(27, 36, 48, .35); }
.admin-bar .gm-header { top: 32px; }
.gm-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }

.gm-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.gm-brand:hover { color: var(--ink); }
.gm-brand__logo { max-height: 56px; width: auto; }
.gm-brand__mark {
	display: grid; place-items: center;
	width: 46px; height: 46px;
	background: var(--wood); color: #fff;
	font: 600 19px/1 var(--font-display);
	letter-spacing: .02em;
	border-radius: 3px;
}
.gm-brand__text { display: flex; flex-direction: column; }
.gm-brand__name { font: 600 22px/1.05 var(--font-display); letter-spacing: -.01em; }
.gm-brand__tag { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.gm-nav { display: flex; align-items: center; gap: 28px; }
.gm-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.gm-menu > li { position: relative; display: flex; align-items: center; }
.gm-menu a { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; border-radius: var(--radius); }
.gm-menu > li > a:hover, .gm-menu > li.current-menu-item > a, .gm-menu > li.current-menu-ancestor > a, .gm-menu > li.current-menu-parent > a { color: var(--wood); }
.gm-menu > li.current-menu-item > a, .gm-menu > li.current-menu-ancestor > a { box-shadow: inset 0 -2px 0 var(--wood); border-radius: 0; }
.gm-subtoggle { display: none; }

.gm-menu .sub-menu {
	list-style: none; margin: 0; padding: 10px;
	position: absolute; top: 100%; left: -10px;
	min-width: 330px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.gm-menu li:hover > .sub-menu, .gm-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.gm-menu .sub-menu a { font-weight: 500; font-size: 15px; padding: 9px 12px; }
.gm-menu .sub-menu a:hover, .gm-menu .sub-menu .current-menu-item > a { background: var(--sand); color: var(--ink); }

.gm-navtoggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; color: var(--ink); cursor: pointer; }
.gm-navtoggle .gm-icon { width: 26px; height: 26px; }
.gm-navtoggle__close { display: none; }

/* Hero ------------------------------------------------------------------- */
.gm-hero { padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.gm-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.gm-hero__title { font-size: clamp(40px, 5.6vw, 76px); font-weight: 400; line-height: 1.02; letter-spacing: -.025em; margin-bottom: 24px; font-variation-settings: "opsz" 144, "SOFT" 30; }
.gm-hero__lead { font-size: clamp(17px, 1.5vw, 19.5px); color: var(--ink-soft); max-width: 34em; margin-bottom: 32px; }
.gm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.gm-hero__media { position: relative; margin: 0; }
.gm-hero__img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; border-radius: var(--radius); }
.gm-hero__badge {
	position: absolute; left: clamp(-36px, -3vw, -16px); bottom: clamp(-36px, -3vw, -20px);
	background: var(--ink); color: #fff;
	padding: 20px 24px; max-width: 250px;
	border-radius: var(--radius);
	display: flex; flex-direction: column; gap: 4px;
	box-shadow: var(--shadow);
}
.gm-hero__badge-num { font: 400 46px/1 var(--font-display); color: #f2c9b3; letter-spacing: -.02em; }
.gm-hero__badge-txt { font-size: 14px; line-height: 1.4; color: #d6dbe2; }

/* Facts ------------------------------------------------------------------ */
.gm-facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.gm-facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.gm-fact { padding: 28px 24px 28px 0; display: flex; flex-direction: column; gap: 4px; }
.gm-fact + .gm-fact { padding-left: 24px; border-left: 1px solid var(--line); }
.gm-fact__num { font: 500 24px/1.1 var(--font-display); }
.gm-fact__txt { color: var(--muted); font-size: 15px; line-height: 1.45; }

/* Sections --------------------------------------------------------------- */
.gm-section { padding: clamp(56px, 8vw, 112px) 0; }
.gm-section--tight { padding-top: clamp(36px, 5vw, 64px); }
.gm-section--sand { background: var(--sand); }
.gm-section__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.gm-section__head .gm-kicker { grid-column: 1 / -1; }
.gm-section__title { font-size: clamp(30px, 3.6vw, 46px); max-width: 20em; margin: 0; }

/* Cards ------------------------------------------------------------------ */
.gm-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.gm-cards--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s; }
.gm-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--sand-2); }
.gm-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.gm-card__link:hover { color: inherit; }
.gm-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.gm-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gm-card:hover .gm-card__img { transform: scale(1.04); }
.gm-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gm-card__title { font-size: 22px; margin: 0; }
.gm-card__excerpt { color: var(--ink-soft); font-size: 15px; line-height: 1.55; margin: 0; }
.gm-card__meta { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; color: var(--wood); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.gm-card:hover .gm-card__meta .gm-icon { transform: translateX(3px); }
.gm-card__meta .gm-icon { transition: transform .2s var(--ease); }
.gm-cards--compact .gm-card__title { font-size: 19px; }
.gm-cards--compact .gm-card__body { padding: 16px 18px 18px; }

.gm-cards--home .gm-card--feature { grid-column: span 2; grid-row: span 2; }
.gm-card--feature .gm-card__media { aspect-ratio: auto; flex: 1; min-height: 280px; }
.gm-card--feature .gm-card__title { font-size: clamp(26px, 2.6vw, 34px); }
.gm-card--feature .gm-card__body { flex: none; padding: 26px 28px 28px; }

/* About ------------------------------------------------------------------ */
.gm-about__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.gm-about__media { position: relative; padding: 0 12% 18% 0; }
.gm-about__img1 { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gm-about__img2 { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 8px solid var(--sand); }
.gm-about__text p { color: var(--ink-soft); }
.gm-about__text .gm-section__title { margin-bottom: 20px; }
.gm-about__text .gm-btn { margin-top: 8px; }

/* Mosaic ----------------------------------------------------------------- */
.gm-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 230px); gap: clamp(10px, 1.4vw, 18px); }
.gm-mosaic__item { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.gm-mosaic__item:first-child { grid-column: span 2; grid-row: span 2; }
.gm-mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gm-mosaic__item:hover img { transform: scale(1.04); }

/* CTA -------------------------------------------------------------------- */
.gm-cta { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.gm-cta::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 8px; background: var(--wood); }
.gm-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; padding-top: clamp(44px, 6vw, 72px); padding-bottom: clamp(44px, 6vw, 72px); }
.gm-cta__title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 400; margin-bottom: 10px; }
.gm-cta__text { color: #c9cfd8; max-width: 36em; margin: 0; }
.gm-cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; flex: none; }
.gm-cta__phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: 18px; }
.gm-cta__phone:hover { color: #f2c9b3; }

/* Footer ----------------------------------------------------------------- */
.gm-footer { background: #141b24; color: #b9c0ca; font-size: 15px; }
.gm-footer a { color: #e8ebef; text-decoration: none; }
.gm-footer a:hover { color: #fff; text-decoration: underline; }
.gm-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.gm-footer__name { font: 500 26px/1.1 var(--font-display); color: #fff; margin-bottom: 14px; }
.gm-footer__brand p:last-child { max-width: 30em; }
.gm-footer__title { font: 700 12.5px/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #8d97a5; margin-bottom: 18px; }
.gm-footer__list, .gm-footer__links { list-style: none; margin: 0; padding: 0; }
.gm-footer__list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; line-height: 1.5; }
.gm-footer__list .gm-icon { margin-top: 3px; color: #f2c9b3; }
.gm-footer__links { columns: 2; column-gap: 24px; }
.gm-footer__links li { break-inside: avoid; margin-bottom: 9px; line-height: 1.4; }
.gm-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid #2a3340; font-size: 13.5px; color: #8d97a5; }
.gm-footer__bottom p { margin: 0; }
.gm-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }

/* Page head -------------------------------------------------------------- */
.gm-pagehead { background: var(--sand); padding: clamp(28px, 4vw, 44px) 0 clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.gm-pagehead__title { font-size: clamp(36px, 5vw, 62px); font-weight: 400; letter-spacing: -.02em; margin: 0; max-width: 18em; }
.gm-pagehead__lead { font-size: 18.5px; color: var(--ink-soft); max-width: 40em; margin: 18px 0 0; }
.gm-pagehead .gm-kicker { margin-top: 26px; }
.gm-pagehead .gm-breadcrumbs + .gm-pagehead__title { margin-top: 26px; }

.gm-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--muted); }
.gm-breadcrumbs li:not(:last-child)::after { content: "/"; margin: 0 10px; color: var(--sand-2); }
.gm-breadcrumbs a { color: var(--muted); text-decoration: none; }
.gm-breadcrumbs a:hover { color: var(--wood); text-decoration: underline; }
.gm-breadcrumbs [aria-current] { color: var(--ink); }

/* Content / prose -------------------------------------------------------- */
.gm-page { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(56px, 7vw, 96px); }
.gm-page__cover { margin: 0 0 clamp(32px, 4vw, 56px); }
.gm-page__cover img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); }
.gm-prose { max-width: 760px; }
.gm-prose--wide { max-width: none; }
.gm-prose > * + h2 { margin-top: 1.8em; }
.gm-prose h2 { font-size: clamp(26px, 2.8vw, 34px); }
.gm-prose h3 { font-size: 23px; }
.gm-prose ul, .gm-prose ol { padding-left: 1.2em; margin: 0 0 1.4em; }
.gm-prose li { margin-bottom: .45em; }
.gm-prose li::marker { color: var(--wood); }
.gm-prose .is-style-lead { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.55; color: var(--ink); font-family: var(--font-display); font-weight: 400; font-variation-settings: "opsz" 24; }
.gm-prose--wide .is-style-lead { max-width: 38em; }
.gm-prose--wide > p:not(.is-style-lead) { max-width: 46em; color: var(--ink-soft); }

/* Gallerie (blocco core/gallery) */
.gm-prose .wp-block-gallery { margin: 1.6em 0 2.2em; }
.gm-prose--wide .wp-block-gallery, .gm-page .gm-prose .wp-block-gallery { max-width: none; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: var(--radius); }
.wp-block-gallery.has-nested-images figure.wp-block-image { background: var(--sand); border-radius: var(--radius); }
.gm-page .gm-prose { max-width: 1040px; }
.gm-page .gm-prose > p, .gm-page .gm-prose > ul, .gm-page .gm-prose > h2, .gm-page .gm-prose > h3 { max-width: 760px; }

/* Catalog ---------------------------------------------------------------- */
.gm-catalog { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(56px, 7vw, 96px); }
.gm-catalog--with-side { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 4vw, 64px); align-items: start; }
.gm-catalog__subtitle { font-size: 28px; margin: 40px 0 24px; }
.gm-catalog__side { position: sticky; top: 110px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.admin-bar .gm-catalog__side { top: 142px; }
.gm-catalog__sidetitle { font: 500 19px/1.25 var(--font-display); margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.gm-catalog__sidetitle a { color: var(--ink); text-decoration: none; }
.gm-catalog__side ul { list-style: none; margin: 0; padding: 0; }
.gm-catalog__side li a { display: block; padding: 7px 10px; margin: 0 -10px; color: var(--ink-soft); text-decoration: none; font-size: 15px; line-height: 1.35; border-radius: 4px; }
.gm-catalog__side li a:hover { background: var(--sand); color: var(--ink); }
.gm-catalog__side li a[aria-current] { background: var(--wood-tint); color: var(--wood-dark); font-weight: 600; }

/* Contatti --------------------------------------------------------------- */
.gm-contact { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 80px); align-items: start; padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(56px, 7vw, 96px); }
.gm-contact__main { max-width: none; }
.gm-contact__aside { position: sticky; top: 110px; }
.gm-recapiti { background: var(--ink); color: #d6dbe2; border-radius: var(--radius); padding: 30px; }
.gm-recapiti__name { font: 500 24px/1.15 var(--font-display); color: #fff; margin-bottom: 20px; }
.gm-recapiti ul { list-style: none; margin: 0; padding: 0; }
.gm-recapiti li { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-top: 1px solid #2f3a4a; font-size: 15.5px; line-height: 1.5; }
.gm-recapiti li .gm-icon { margin-top: 3px; color: #f2c9b3; }
.gm-recapiti a { color: #fff; text-decoration: none; word-break: break-word; }
.gm-recapiti a:hover { text-decoration: underline; }
.gm-recapiti small { color: #9aa4b2; font-size: 13.5px; }
.gm-recapiti__piva { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid #2f3a4a; font-size: 13.5px; color: #9aa4b2; }

/* Form */
.gm-form-wrap { margin: 28px 0 56px; }
.gm-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); }
.gm-form__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 20px; }
.gm-field { margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gm-field select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.gm-field--full { grid-column: 1 / -1; }
.gm-field label { font-weight: 600; font-size: 14.5px; }
.gm-field input, .gm-field select, .gm-field textarea {
	width: 100%; font: inherit; font-size: 16px; color: var(--ink);
	background: var(--paper); border: 1px solid var(--sand-2); border-radius: var(--radius);
	padding: 12px 14px; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.gm-field textarea { resize: vertical; min-height: 140px; }
.gm-field input:focus, .gm-field select:focus, .gm-field textarea:focus { outline: none; border-color: var(--wood); background: #fff; box-shadow: 0 0 0 3px rgba(162, 79, 42, .15); }
.gm-check { flex-direction: row; align-items: flex-start; gap: 12px; }
.gm-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--wood); flex: none; padding: 0; }
.gm-check label { font-weight: 400; font-size: 14.5px; color: var(--ink-soft); }
.gm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gm-form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 8px 0 0; }
.gm-form__note { font-size: 13.5px; color: var(--muted); }
.gm-notice { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 18px; font-size: 15.5px; }
.gm-notice--ok { background: #e6f1e7; color: var(--ok); border: 1px solid #c3dcc6; }
.gm-notice--err { background: #f8e5e3; color: var(--err); border: 1px solid #ecc5c1; }

/* Map */
.gm-map { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 300px; border-radius: var(--radius); overflow: hidden; background: var(--sand) repeating-linear-gradient(45deg, transparent 0 18px, rgba(255, 255, 255, .35) 18px 19px); border: 1px solid var(--line); margin: 24px 0; }
.gm-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gm-map__consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 10px; }
.gm-map__consent > .gm-icon { width: 34px; height: 34px; color: var(--wood); }
.gm-map__consent p { margin: 0; }
.gm-map__note { font-size: 13px; color: var(--muted); max-width: 30em; margin-top: 6px !important; }
.gm-map.is-loaded .gm-map__consent { display: none; }

.gm-results { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.gm-results li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.gm-results a { font: 500 22px/1.2 var(--font-display); color: var(--ink); text-decoration: none; }
.gm-results p { margin: 6px 0 0; color: var(--ink-soft); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
	.gm-nav { gap: 14px; }
	.gm-menu a { padding: 10px 10px; }
	.gm-nav__cta { display: none; }
}

@media (max-width: 960px) {
	.gm-topbar__addr { display: none; }
	.gm-topbar__inner { justify-content: center; }

	/* backdrop-filter crea un contenitore per gli elementi fixed: su mobile lo togliamo così il pannello copre lo schermo */
	.gm-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
	.gm-navtoggle { display: block; }
	.gm-header[data-open="true"] .gm-navtoggle__open { display: none; }
	.gm-header[data-open="true"] .gm-navtoggle__close { display: block; }
	.gm-nav {
		position: fixed; left: 0; right: 0; top: var(--gm-header-bottom, 116px); bottom: 0;
		background: var(--paper);
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 8px var(--gutter) 32px;
		overflow-y: auto;
		border-top: 1px solid var(--line);
		visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
	}
	.gm-header[data-open="true"] .gm-nav { visibility: visible; opacity: 1; transform: none; }
	.gm-menu { flex-direction: column; gap: 0; }
	.gm-menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.gm-menu > li > a { flex: 1; padding: 16px 0; font-size: 19px; font-family: var(--font-display); font-weight: 500; }
	.gm-menu > li.current-menu-item > a, .gm-menu > li.current-menu-ancestor > a { box-shadow: none; }
	.gm-subtoggle { display: grid; place-items: center; width: 48px; height: 48px; background: none; border: 0; color: var(--ink); cursor: pointer; }
	.gm-subtoggle .gm-icon { transition: transform .2s; }
	.gm-subtoggle[aria-expanded="true"] .gm-icon { transform: rotate(180deg); }
	.gm-menu .sub-menu { position: static; display: none; width: 100%; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; background: none; }
	.gm-menu .sub-menu.is-open { display: block; }
	.gm-menu .sub-menu a { padding: 9px 0 9px 14px; border-left: 2px solid var(--line); border-radius: 0; }
	.gm-nav__cta { display: inline-flex; justify-content: center; margin-top: 24px; }
	body.gm-nav-open { overflow: hidden; }

	.gm-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.gm-hero__media { margin-right: calc(var(--gutter) * -1); }
	.gm-hero__img { border-radius: var(--radius) 0 0 var(--radius); aspect-ratio: 16 / 11; }
	.gm-hero__badge { left: 16px; bottom: -28px; padding: 16px 18px; }
	.gm-hero__badge-num { font-size: 36px; }

	.gm-facts__grid { grid-template-columns: 1fr 1fr; }
	.gm-fact { padding: 22px 16px 22px 0; }
	.gm-fact:nth-child(3) { padding-left: 0; border-left: 0; }
	.gm-fact:nth-child(n+3) { border-top: 1px solid var(--line); }

	.gm-cards, .gm-cards--compact { grid-template-columns: 1fr 1fr; }
	.gm-cards--home .gm-card--feature { grid-column: 1 / -1; grid-row: auto; }
	.gm-card--feature .gm-card__media { aspect-ratio: 16 / 9; min-height: 0; }

	.gm-about__grid { grid-template-columns: minmax(0, 1fr); }
	.gm-about__media { max-width: 640px; }

	.gm-cta__inner { flex-direction: column; align-items: flex-start; }

	.gm-footer__grid { grid-template-columns: 1fr 1fr; }
	.gm-footer__brand { grid-column: 1 / -1; }

	.gm-catalog--with-side, .gm-contact { grid-template-columns: minmax(0, 1fr); }
	.gm-catalog__side, .gm-contact__aside { position: static; }
	.gm-catalog__side { order: 2; }
}

@media (max-width: 782px) {
	.admin-bar .gm-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .gm-header { top: 0; }
	body { font-size: 16.5px; }
	.gm-header__inner { min-height: 68px; }
	.gm-brand__mark { width: 40px; height: 40px; font-size: 17px; }
	.gm-brand__name { font-size: 19px; }
	.gm-topbar__links { gap: 16px; font-size: 13px; }
	.gm-topbar__links a:last-child { display: none; }

	.gm-section__head { grid-template-columns: 1fr; }
	.gm-cards, .gm-cards--compact { grid-template-columns: 1fr; }
	.gm-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
	.gm-mosaic__item:first-child { grid-column: 1 / -1; grid-row: span 2; }
	.gm-mosaic__item:last-child { grid-column: 1 / -1; }

	.gm-form__grid { grid-template-columns: minmax(0, 1fr); }
	.gm-footer__grid { grid-template-columns: 1fr; padding-top: 48px; }
	.gm-footer__links { columns: 1; }
	.gm-hero__actions .gm-btn { flex: 1 1 auto; justify-content: center; }
	.wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image) { width: calc(50% - var(--wp--style--unstable-gallery-gap, 16px) * .5); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
	.gm-topbar, .gm-header, .gm-cta, .gm-footer, .gm-form-wrap, .gm-map { display: none !important; }
}
