/* Home — hero */
.mggrp-home-hero { position: relative; overflow: hidden; }
.mggrp-home-hero .mggrp-home-hero__image { position: absolute; top: 0; right: 0; bottom: 0; left: auto; width: 45%; max-width: none; margin: 0; overflow: hidden; display: none; z-index: 0; }
.mggrp-home-hero__image .wp-block-image { margin: 0; height: 100%; }
.mggrp-home-hero__image .wp-block-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: grayscale(35%) contrast(1.1); }
.mggrp-home-hero__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, var(--wp--preset--color--primary, #00462c) 0%, transparent 55%); pointer-events: none; }
@media (min-width: 1024px) { .mggrp-home-hero .mggrp-home-hero__image { display: block; } }
.mggrp-home-hero__content { position: relative; z-index: 1; }
.mggrp-home-hero__badge { width: fit-content; align-items: center; gap: 0.75rem; }
.mggrp-home-hero__badge .wp-block-image { margin: 0; }
.mggrp-home-hero__badge .mggrp-home-hero__logo img { display: block; height: 1rem; width: auto; object-fit: contain; }

/* Home — banner professionale */
.mggrp-home-banner { position: relative; overflow: hidden; min-height: 480px; }
@media (min-width: 640px) { .mggrp-home-banner { min-height: 600px; } }
.mggrp-home-banner > * { margin-block: 0; }
.mggrp-home-banner .mggrp-home-banner__img { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; margin: 0; transition: opacity 0.7s ease, transform 0.7s ease; }
.mggrp-home-banner__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mggrp-home-banner__img--a { opacity: 1; transform: scale(1); }
.mggrp-home-banner__img--b { opacity: 0; transform: scale(1.05); }
.mggrp-home-banner:hover .mggrp-home-banner__img--a { opacity: 0; transform: scale(1.05); }
.mggrp-home-banner:hover .mggrp-home-banner__img--b { opacity: 1; transform: scale(1); }
.mggrp-home-banner .mggrp-home-banner__overlay { position: absolute; inset: 0; max-width: none; background: linear-gradient(to right, rgba(0,0,0,0.65), rgba(0,0,0,0.3) 55%, transparent); pointer-events: none; }
.mggrp-home-banner .mggrp-home-banner__content { box-sizing: content-box; position: relative; z-index: 2; display: flex; align-items: center; max-width: none; min-height: 480px; padding: 5rem 1.5rem; }
@media (min-width: 640px) { .mggrp-home-banner .mggrp-home-banner__content { min-height: 600px; padding: 5rem 3.5rem; } }
.mggrp-home-banner__inner { max-width: 34rem; margin: 0; }
.mggrp-home-banner__inner > * { margin-block: 0; }
.mggrp-home-banner__inner .mggrp-home-banner__eyebrow { margin: 0 0 1.5rem; font-size: 0.75rem; letter-spacing: 0.15em; color: rgba(255,255,255,0.65); }
.mggrp-home-banner__inner .mggrp-home-banner__title { margin: 0; color: #fff; font-weight: 600; line-height: 1.2; font-size: clamp(1.9rem, 5vw, 3.5rem); }
.mggrp-home-banner__inner .mggrp-home-banner__subtitle { margin: 0.65rem 0 2.5rem; color: rgba(255,255,255,0.8); font-weight: 200; line-height: 1.2; font-size: clamp(1.25rem, 3vw, 2rem); }
.mggrp-home-banner__cta .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2rem; border: 1px solid rgba(255,255,255,0.6); border-radius: 0; background: transparent; color: #fff; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; transition: background-color 0.3s ease, color 0.3s ease; }
.mggrp-home-banner__cta .wp-block-button__link:hover { background-color: #fff; color: #2b2c2c; }

/* Home — video */
figure.mggrp-home-video { margin: 0; }
.mggrp-home-video video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #000; }

/* Home — titolo hero: H1 + frase typewriter (blocco dinamico, fratello dell'H1) */
.mggrp-home-hero__title > * { margin-block: 0; }
.mggrp-home-hero__title .mggrp-typewriter { display: block; font-size: clamp(1.6rem, 3.5vw, 4.5rem); font-weight: 700; line-height: 1.2; }
