/* Grafica e Grafica — template Joomla 6
   Proposta D: testata arancio, fondo grigio chiarissimo, Raleway */

@font-face { font-family: "Raleway"; src: url("../fonts/raleway-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../fonts/raleway-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../fonts/raleway-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../fonts/raleway-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
	--gg-bg: #F2F2F2;          /* grigio chiarissimo */
	--gg-surface: #FFFFFF;
	--gg-line: #DEDEDE;
	--gg-ink: #1E1E1E;         /* titoli */
	--gg-text: #444444;        /* testo */
	--gg-muted: #666666;
	--gg-orange: #FF6D01;      /* testata, bottoni, lineette */
	--gg-orange-dark: #C85500;
	--gg-orange-text: #B34700; /* arancio leggibile su grigio chiaro */
	--gg-dark: #151515;
	--gg-orange-light: #FF9E57;  /* barra menu e bande dei lavori */
	--gg-orange-light-line: #F08A3C;
	--gg-font: "Raleway", "Open Sans", Helvetica, Arial, sans-serif;
	--gg-max: 1240px;
	--gg-narrow: 1000px;
	--gg-pad: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--gg-bg); color: var(--gg-text); font-family: var(--gg-font); font-size: 17px; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gg-orange-text); }
a:hover { color: #7F3200; }
:focus-visible { outline: 3px solid var(--gg-dark); outline-offset: 3px; }
h1, h2, h3, h4 { color: var(--gg-ink); font-weight: 400; line-height: 1.15; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }

.gg-wrap { max-width: var(--gg-max); margin-inline: auto; padding-inline: var(--gg-pad); }
.gg-narrow { max-width: var(--gg-narrow); }
.gg-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gg-skip { position: absolute; left: 12px; top: -60px; background: var(--gg-dark); color: #fff; padding: 12px 18px; z-index: 100; }
.gg-skip:focus { top: 12px; }
.gg-accent { color: var(--gg-orange-text); }
.gg-eyebrow { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gg-orange-text); }

/* Titolo di sezione: maiuscolo, centrato, lineetta arancio */
.gg-section-title, .gg-module__title { font-weight: 400; font-size: 30px; text-transform: uppercase; letter-spacing: 0.02em; text-align: center; margin: 0 0 22px; }
.gg-section-title::after, .gg-module__title::after { content: ""; display: block; width: 40px; height: 2px; background: var(--gg-orange); margin: 22px auto 0; }
.gg-section-sub { text-align: center; margin: 0 auto 32px; max-width: 640px; }

/* Bottoni */
.gg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 30px; background: var(--gg-orange); color: var(--gg-dark); font: inherit; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; border: 0; cursor: pointer; }
.gg-btn:hover { background: var(--gg-orange-dark); color: #fff; }
.gg-btn--dark { background: var(--gg-dark); color: #fff; }
.gg-btn--dark:hover { background: #000; color: #fff; }

/* Testata arancio */
.gg-topbar { background: var(--gg-orange); border-bottom: 1px solid var(--gg-orange-dark); position: sticky; top: 0; z-index: 50; }
.gg-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-block: 12px; }
.gg-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--gg-dark); }
.gg-brand:hover { color: var(--gg-dark); }
.gg-brand__badge { width: 60px; height: 60px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.gg-brand__badge img { width: 46px; height: auto; }
.gg-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.gg-brand__name { font-weight: 600; font-size: 19px; letter-spacing: 0.08em; text-transform: uppercase; }
.gg-brand__tag { font-size: 13px; letter-spacing: 0.06em; }

.gg-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.gg-nav li { margin: 0; }
.gg-nav a, .gg-nav .mod-menu__heading { display: block; padding: 12px 14px; color: var(--gg-dark); text-decoration: none; font-weight: 500; font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; }
.gg-nav a:hover { box-shadow: inset 0 -2px 0 var(--gg-dark); color: var(--gg-dark); }
.gg-nav li.current > a, .gg-nav li.active > a { font-weight: 600; box-shadow: inset 0 -2px 0 var(--gg-dark); }
/* Menu a discesa */
.gg-nav li { position: relative; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gg-nav li.parent { display: flex; align-items: center; flex-wrap: wrap; }
.gg-nav li.parent > a { padding-right: 4px; }
.gg-nav .mod-menu__toggle-sub { width: 32px; height: 44px; margin-right: 4px; padding: 0; border: 0; background: transparent; color: var(--gg-dark); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.gg-nav .mod-menu__toggle-sub::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.gg-nav .mod-menu__toggle-sub[aria-expanded="true"]::before { transform: translateY(2px) rotate(225deg); }
.gg-nav .mod-menu__toggle-sub .icon-chevron-down { display: none; }
.gg-nav li ul { display: none; position: absolute; top: 100%; left: 0; z-index: 60; min-width: 300px; flex-direction: column; gap: 0; padding: 8px 0; background: var(--gg-surface); box-shadow: 0 14px 34px rgba(21, 21, 21, 0.18); border-top: 3px solid var(--gg-dark); }
.gg-nav li:hover > ul, .gg-nav li:focus-within > ul, .gg-nav .mod-menu__toggle-sub[aria-expanded="true"] + ul { display: flex; }
.gg-nav li ul a { padding: 10px 20px; font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--gg-text); box-shadow: none; }
.gg-nav li ul a:hover, .gg-nav li ul a:focus-visible { background: var(--gg-bg); color: var(--gg-orange-text); box-shadow: none; }
.gg-nav li ul li.current > a { box-shadow: inset 3px 0 0 var(--gg-orange); color: var(--gg-ink); font-weight: 600; }

.gg-menu-toggle { display: none; width: 48px; height: 48px; border: 0; background: var(--gg-dark); cursor: pointer; align-items: center; justify-content: center; }
.gg-menu-toggle__bar, .gg-menu-toggle__bar::before, .gg-menu-toggle__bar::after { display: block; width: 22px; height: 2px; background: #fff; position: relative; content: ""; }
.gg-menu-toggle__bar::before { position: absolute; top: -7px; }
.gg-menu-toggle__bar::after { position: absolute; top: 7px; }

@media (max-width: 900px) {
	.gg-topbar { position: static; }
	.gg-brand { flex: 1 1 auto; min-width: 0; gap: 10px; }
	.gg-brand__badge { width: 48px; height: 48px; }
	.gg-brand__badge img { width: 36px; }
	.gg-brand__name { font-size: 15px; letter-spacing: 0.05em; }
	.gg-brand__tag { font-size: 12px; }
	.gg-menu-toggle { display: inline-flex; }
	.gg-nav { display: none; width: 100%; }
	.gg-nav.is-open { display: block; }
	.gg-nav ul { flex-direction: column; padding-bottom: 8px; }
	.gg-nav a { border-top: 1px solid rgba(21, 21, 21, 0.15); }
	.gg-nav li.parent > a { flex: 1 1 auto; }
	.gg-nav .mod-menu__toggle-sub { width: 48px; height: 48px; border-top: 1px solid rgba(21, 21, 21, 0.15); }
	.gg-nav li ul, .gg-nav li:hover > ul, .gg-nav li:focus-within > ul { display: none; flex-basis: 100%; position: static; min-width: 0; padding: 0 0 6px; background: transparent; box-shadow: none; border-top: 0; }
	.gg-nav .mod-menu__toggle-sub[aria-expanded="true"] + ul { display: flex; }
	.gg-nav li ul a { padding: 9px 14px 9px 30px; color: var(--gg-dark); border-top: 0; }
	.gg-nav li ul a:hover { background: rgba(255, 255, 255, 0.25); color: var(--gg-dark); }
}

/* Apertura con foto */
.gg-hero { position: relative; min-height: clamp(420px, 60vw, 620px); display: flex; align-items: center; overflow: hidden; background: var(--gg-dark); }
.gg-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gg-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(21,21,21,0.86) 0%, rgba(21,21,21,0.55) 55%, rgba(21,21,21,0.15) 100%); }
.gg-hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--gg-max); margin: 0 auto; padding: 80px var(--gg-pad); display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.gg-hero .gg-eyebrow { color: var(--gg-orange); }
.gg-hero h1 { margin: 0; color: #fff; font-weight: 300; font-size: clamp(44px, 6vw, 80px); line-height: 1.05; }
.gg-hero__sub { margin: 0 0 12px; color: #fff; font-weight: 300; font-size: clamp(22px, 2.6vw, 34px); }

/* Presentazione */
.gg-intro-wrap { padding-block: 96px 24px; text-align: center; }
.gg-statement { margin: 0 0 88px; color: var(--gg-ink); font-size: clamp(24px, 2.8vw, 34px); line-height: 1.45; }
.gg-intro p:last-child { margin-bottom: 0; }

/* Riquadri fotografici */
.gg-sezioni { padding-block: 72px 0; }
.gg-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.gg-tile { position: relative; height: clamp(300px, 32vw, 440px); display: flex; align-items: center; justify-content: center; overflow: hidden; text-decoration: none; }
.gg-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gg-tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(21,21,21,0.35); transition: background .3s ease; }
.gg-tile__label { position: relative; z-index: 2; padding: 10px 22px; background: rgba(21,21,21,0.6); color: #fff; font-size: 32px; text-transform: uppercase; letter-spacing: 0.04em; }
.gg-tile:hover img { transform: scale(1.05); }
.gg-tile:hover::before { background: rgba(255,109,1,0.35); }

/* Ultimi lavori */
.gg-lavori { padding-block: 104px; }
.gg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 28px; }
.gg-card { display: flex; flex-direction: column; text-decoration: none; background: var(--gg-surface); padding: 14px; transition: box-shadow .25s ease, transform .25s ease; }
.gg-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(21, 21, 21, 0.10); }
.gg-card__band { display: flex; align-items: center; min-height: calc(2 * 1.3em + 20px); background: var(--gg-orange); padding: 10px 14px; margin-bottom: 14px; font-size: 15px; }
.gg-card__title { display: block; color: var(--gg-dark); font-size: 15px; font-weight: 600; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.03em; }
.gg-card__img { width: 100%; aspect-ratio: 636 / 900; object-fit: cover; object-position: top; }
.gg-tag { color: var(--gg-orange); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }
.gg-tag { color: var(--gg-orange-text); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; text-decoration: none; }

/* Pagine interne */
.gg-content { padding-block: 64px 104px; }
.gg-content__row { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.gg-component { flex: 999 1 560px; min-width: 0; }
.gg-sidebar { flex: 1 1 240px; background: var(--gg-surface); padding: 28px; border-top: 3px solid var(--gg-orange); }
.gg-sidebar .gg-module__title { font-size: 20px; text-align: left; }
.gg-sidebar .gg-module__title::after { margin-left: 0; }
.gg-sidebar ul { list-style: none; margin: 0; padding: 0; }
.gg-sidebar li ul { margin-bottom: 10px; }
.gg-sidebar a, .gg-sidebar .mod-menu__heading { display: block; padding: 7px 10px; color: var(--gg-text); text-decoration: none; }
.gg-sidebar .mod-menu__heading { padding-top: 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gg-ink); }
.gg-sidebar a:hover { color: var(--gg-orange-text); background: var(--gg-bg); }
.gg-sidebar li.current > a { background: var(--gg-orange); color: var(--gg-dark); font-weight: 600; }

.gg-pagehead { text-align: center; padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gg-pagehead__title { margin: 0; font-weight: 300; font-size: clamp(34px, 4.5vw, 54px); text-transform: uppercase; letter-spacing: 0.02em; }
.gg-pagehead__title::after { content: ""; display: block; width: 40px; height: 2px; background: var(--gg-orange); margin: 22px auto 0; }
.gg-pagehead__desc { max-width: 700px; color: var(--gg-muted); }
.gg-article__body > p:empty { display: none; }
.gg-article__body > p:first-child { text-align: center; max-width: 700px; margin-inline: auto; margin-bottom: 32px; }

.gg-pagination { margin-top: 40px; }
.gg-pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; }
.gg-pagination a, .gg-pagination span { display: inline-block; min-width: 44px; padding: 10px 14px; background: var(--gg-surface); text-align: center; text-decoration: none; color: var(--gg-ink); }

/* Gallerie */
.gg-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 6px; }
.gg-gallery--poster { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.gg-gallery a { display: block; overflow: hidden; background: var(--gg-surface); }
.gg-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s ease, opacity .3s ease; }
.gg-gallery--poster img { aspect-ratio: 636 / 900; object-position: top; }
.gg-gallery--logo img { object-fit: contain; padding: 20px; background: var(--gg-surface); }
.gg-gallery a:hover img { transform: scale(1.04); }

/* Miniature delle gallerie che girano (Loghi, Web, Riccioli, clienti) */
.gg-gallery a.gg-flip--thumb { overflow: visible; padding: 0; background: transparent; }
.gg-gallery a.gg-flip--thumb:hover { transform: none; box-shadow: none; }
.gg-gallery a.gg-flip--thumb:hover img { transform: none; }
.gg-flip--thumb .gg-flip__front { padding: 0; }
.gg-flip--thumb .gg-flip__back { padding: 12px; gap: 10px; }
.gg-flip--thumb .gg-flip__name { font-size: 13px; }

/* Vetrina siti web */
.gg-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.gg-site { background: var(--gg-surface); display: flex; flex-direction: column; }
.gg-site img { aspect-ratio: 890 / 531; object-fit: cover; }
.gg-site h2 { font-size: 18px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; margin: 22px 22px 12px; }
.gg-site p { margin: auto 22px 22px; }

/* Schede dei siti web che girano */
.gg-site.gg-flip--site { display: block; background: transparent; }
.gg-flip--site .gg-flip__front { padding: 0; background: var(--gg-surface); }
.gg-flip--site .gg-flip__front h2 { margin: 22px 22px 22px; }
.gg-flip--site .gg-flip__back { padding: 24px; }
.gg-flip--site .gg-flip__btn { text-decoration: none; }

/* Lightbox */
.gg-lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(21, 21, 21, 0.95); color: #eee; }
.gg-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.gg-lightbox::backdrop { background: rgba(21, 21, 21, 0.95); }
.gg-lightbox__figure { margin: 0; max-width: calc(100vw - 160px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gg-lightbox__figure img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; }
.gg-lightbox__figure figcaption { font-size: 15px; color: #cfcfcf; }
.gg-lightbox button { position: absolute; width: 52px; height: 52px; border: 0; background: rgba(255,255,255,0.1); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gg-lightbox button:hover { background: var(--gg-orange); color: var(--gg-dark); }
.gg-lightbox__close { top: 20px; right: 20px; }
.gg-lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.gg-lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
	.gg-lightbox__figure { max-width: 100vw; padding-inline: 8px; }
	.gg-lightbox__prev, .gg-lightbox__next { top: auto; bottom: 20px; transform: none; }
}

/* Fascia clienti */
.gg-band { background: var(--gg-surface); border-block: 1px solid var(--gg-line); }
.gg-band .gg-wrap { padding-block: 88px; text-align: center; }
.gg-clienti__list { margin: 0; font-weight: 300; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.7; color: var(--gg-ink); }

/* Invito ai contatti */
.gg-contatti-wrap { padding-block: 104px; text-align: center; }
.gg-cta p { max-width: 620px; margin: 0 auto 28px; }

/* Pagina Contatti (com_contact) */
.com-contact { background: var(--gg-surface); padding: clamp(28px, 5vw, 56px); max-width: 820px; margin-inline: auto; }
.com-contact .page-header h1, .com-contact > h1, .com-contact__container > h2 { font-weight: 300; text-transform: uppercase; text-align: center; }
.com-contact__miscinfo, .com-contact .contact-miscinfo { text-align: center; color: var(--gg-muted); }
.com-contact form { max-width: 680px; margin-inline: auto; }
.com-contact fieldset { border: 0; padding: 0; margin: 0; }
.com-contact legend { font-size: 22px; text-transform: uppercase; text-align: center; width: 100%; margin-bottom: 20px; color: var(--gg-ink); }
.com-contact .control-group { margin-bottom: 16px; }
.com-contact label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--gg-text); }
.com-contact input[type="text"], .com-contact input[type="email"], .com-contact textarea { width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; border: 1px solid #CFCFCF; background: var(--gg-bg); color: var(--gg-ink); }
.com-contact input:focus, .com-contact textarea:focus { border-color: var(--gg-orange); outline: 2px solid var(--gg-orange); outline-offset: 0; }
.com-contact input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--gg-orange); }
.com-contact .btn, .com-contact button[type="submit"] { min-height: 48px; padding: 14px 40px; border: 0; background: var(--gg-orange); color: var(--gg-dark); font: inherit; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; }
.com-contact .btn:hover, .com-contact button[type="submit"]:hover { background: var(--gg-orange-dark); color: #fff; }
.com-contact .star { color: var(--gg-orange-text); }

/* Messaggi di sistema */
#system-message-container joomla-alert, .alert { display: block; margin-bottom: 24px; padding: 16px 20px; background: var(--gg-surface); border-left: 4px solid var(--gg-orange); }

/* Piè di pagina */
.gg-footer { background: var(--gg-dark); color: #A8A8A8; }
.gg-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px; font-size: 14px; }
.gg-footer ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
.gg-footer a { color: #D8D8D8; }

/* Errore */
.gg-errorbox { margin-block: 12vh; background: var(--gg-surface); border-top: 4px solid var(--gg-orange); padding: clamp(36px, 6vw, 72px); text-align: center; }
.gg-errorbox h1 { font-weight: 300; font-size: clamp(30px, 4vw, 52px); }

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

@media (max-width: 600px) {
	.gg-cards, .gg-gallery, .gg-gallery--poster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gg-cards { gap: 14px; }
	.gg-card { padding: 8px; }
	.gg-card__band { padding: 8px 10px; margin-bottom: 8px; }
	.gg-card__title { font-size: 12px; }
}

/* Home: Ultimi lavori, 4 per riga */
.gg-lavori .gg-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; max-width: 1080px; margin-inline: auto; }
.gg-lavori .gg-card { padding: 10px; }
.gg-lavori .gg-card__band { min-height: calc(2 * 1.3em + 16px); padding: 8px 12px; margin-bottom: 10px; }
.gg-lavori .gg-card__title { font-size: 13px; }
@media (max-width: 900px) { .gg-lavori .gg-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gg-lavori .gg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

/* Schede che girano (home, Ultimi lavori) */
.gg-flip { padding: 0; background: transparent; perspective: 1200px; }
.gg-flip:hover { transform: none; box-shadow: none; }
.gg-flip__inner { position: relative; display: block; height: 100%; transition: transform .7s cubic-bezier(.3, .7, .3, 1); transform-style: preserve-3d; }
.gg-flip__front, .gg-flip__back { display: flex; flex-direction: column; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.gg-flip__front { background: var(--gg-surface); padding: 10px; height: 100%; }
.gg-flip__back { position: absolute; inset: 0; transform: rotateY(180deg); background: var(--gg-dark); color: #fff; padding: 24px 20px; align-items: center; justify-content: center; text-align: center; gap: 16px; }
.gg-flip__name { font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.3; }
.gg-flip__name::after { content: ""; display: block; width: 32px; height: 2px; background: var(--gg-orange); margin: 14px auto 0; }
.gg-flip__desc { font-size: 15px; line-height: 1.55; color: #D8D8D8; }
.gg-flip__btn { margin-top: 6px; min-height: 44px; padding: 12px 30px; }
@media (hover: hover) {
	.gg-flip:hover .gg-flip__inner, .gg-flip:focus-visible .gg-flip__inner { transform: rotateY(180deg); }
	.gg-flip:hover .gg-flip__btn { background: var(--gg-orange-dark); color: #fff; }
}
.gg-flip:focus-visible { outline: 3px solid var(--gg-dark); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
	.gg-flip__inner { transition: none; }
}
@media (max-width: 600px) {
	.gg-flip__front { padding: 8px; }
	.gg-flip__back { padding: 14px 10px; gap: 10px; }
	.gg-flip__name { font-size: 13px; }
	.gg-flip__desc { font-size: 13px; }
}

/* Modulo di contatto */
.gg-form { max-width: 720px; margin: 0 auto; display: grid; gap: 20px; }
.gg-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gg-form__row { display: grid; gap: 8px; }
.gg-form label { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.gg-form label span { font-weight: 400; text-transform: none; letter-spacing: 0; color: #6b6b6b; }
.gg-form input[type="text"], .gg-form input[type="email"], .gg-form input[type="tel"], .gg-form textarea { width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--gg-ink); background: #fff; border: 1px solid #cfcfcf; border-radius: 0; }
.gg-form input:focus, .gg-form textarea:focus { outline: 3px solid var(--gg-orange); outline-offset: 0; border-color: var(--gg-dark); }
.gg-form textarea { resize: vertical; min-height: 160px; }
.gg-form__check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; }
.gg-form__check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.gg-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gg-form .gg-btn { justify-self: start; cursor: pointer; border: 0; }
@media (max-width: 600px) { .gg-form__grid { grid-template-columns: 1fr; } .gg-form .gg-btn { justify-self: stretch; } }

/* Schede che girano: più spazio tra loro, angoli arrotondati e ombra */
.gg-cards--flip, .gg-lavori .gg-cards { gap: 36px; }
.gg-gallery:has(.gg-flip--thumb) { gap: 28px; }
.gg-sites:has(.gg-flip--site) { gap: 36px; }
.gg-flip__front, .gg-flip__back { border-radius: 16px; overflow: hidden; box-shadow: 0 10px 24px rgba(21, 21, 21, 0.18); }
.gg-flip__front img { border-radius: 10px; }
.gg-flip__front .gg-card__band { border-radius: 8px; }
.gg-flip--thumb .gg-flip__front img { border-radius: 0; }
@media (max-width: 600px) {
	.gg-cards--flip, .gg-lavori .gg-cards { gap: 22px; }
	.gg-gallery:has(.gg-flip--thumb) { gap: 18px; }
	.gg-flip__front, .gg-flip__back { border-radius: 12px; }
}

/* ---------- Slider a tutto schermo della home ---------- */
.gg-slider { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--gg-dark); color: #fff; }
.gg-slider__track { display: flex; height: 100%; transition: transform 1s cubic-bezier(.77, 0, .18, 1); will-change: transform; }
.gg-slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; display: flex; align-items: center; isolation: isolate; }
.gg-slide__bg { position: absolute; inset: 0; z-index: -2; background: var(--gg-dark) center / cover no-repeat; transform: scale(1.12); transition: transform 7s ease-out; }
.gg-slide.is-active .gg-slide__bg { transform: scale(1); }
.gg-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(21,21,21,.88) 0%, rgba(21,21,21,.6) 45%, rgba(21,21,21,.1) 100%), linear-gradient(0deg, rgba(21,21,21,.55), transparent 35%); }
.gg-slide__inner { width: 100%; max-width: var(--gg-max); margin: 0 auto; padding: var(--gg-brand-h, 250px) var(--gg-pad) 110px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.gg-slide__inner > * { max-width: 44rem; }
.gg-slider .gg-eyebrow { color: var(--gg-orange); }
.gg-slide__title { margin: 0; color: #fff; font-weight: 300; font-size: clamp(42px, 6.4vw, 92px); line-height: 1.03; letter-spacing: -.01em; }
.gg-slide__title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--gg-orange); margin-top: 26px; }
.gg-slide__sub { margin: 0 0 10px; color: rgba(255,255,255,.9); font-weight: 300; font-size: clamp(20px, 2.3vw, 30px); line-height: 1.3; }

/* Entrata dei testi, uno dopo l'altro */
.gg-slide__inner > * { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.gg-slide.is-active .gg-slide__inner > * { opacity: 1; transform: none; }
.gg-slide.is-active .gg-slide__inner > :nth-child(1) { transition-delay: .45s; }
.gg-slide.is-active .gg-slide__inner > :nth-child(2) { transition-delay: .6s; }
.gg-slide.is-active .gg-slide__inner > :nth-child(3) { transition-delay: .78s; }
.gg-slide.is-active .gg-slide__inner > :nth-child(4) { transition-delay: .95s; }

/* Frecce */
.gg-slider__arrow { position: absolute; top: 50%; z-index: 3; width: 56px; height: 56px; margin-top: -28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(21,21,21,.25); color: #fff; cursor: pointer; opacity: 0; transition: opacity .3s, background .2s, border-color .2s; }
.gg-slider__arrow--prev { left: 24px; }
.gg-slider__arrow--next { right: 24px; }
.gg-slider:hover .gg-slider__arrow, .gg-slider__arrow:focus-visible { opacity: 1; }
.gg-slider__arrow:hover { background: var(--gg-orange); border-color: var(--gg-orange); color: var(--gg-dark); }

/* Contatore e barrette */
.gg-slider__nav { position: absolute; z-index: 3; left: 0; right: 0; bottom: 34px; max-width: var(--gg-max); margin: 0 auto; padding-inline: var(--gg-pad); display: flex; align-items: center; gap: 22px; }
.gg-slider__count { font-size: 14px; font-weight: 500; letter-spacing: .18em; color: rgba(255,255,255,.75); white-space: nowrap; }
.gg-slider__cur { color: #fff; }
.gg-slider__dots { display: flex; gap: 8px; }
.gg-slider__dots button { width: 46px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.gg-slider__dots span { position: relative; display: block; width: 100%; height: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.gg-slider__dots span::after { content: ""; position: absolute; inset: 0; background: var(--gg-orange); transform: scaleX(0); transform-origin: left; }
.gg-slider__dots button.is-active span::after { animation: gg-fill var(--gg-delay, 6000ms) linear forwards; }
.gg-slider.is-paused .gg-slider__dots button.is-active span::after { animation-play-state: paused; }
.gg-slider__dots button:hover span { background: rgba(255,255,255,.6); }
@keyframes gg-fill { to { transform: scaleX(1); } }

/* Freccia "scorri in basso" */
.gg-slider__down { position: absolute; z-index: 3; right: var(--gg-pad); bottom: 26px; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; animation: gg-bob 2.2s ease-in-out infinite; }
.gg-slider__down:hover { color: var(--gg-dark); background: var(--gg-orange); border-color: var(--gg-orange); }
@keyframes gg-bob { 50% { transform: translateY(6px); } }
#gg-dopo-slider { scroll-margin-top: var(--gg-head, 73px); }

@media (max-width: 760px) {
	.gg-slide { align-items: flex-end; }
	.gg-slide::before { background: linear-gradient(0deg, rgba(21,21,21,.94) 12%, rgba(21,21,21,.55) 62%, rgba(21,21,21,.3)); }
	.gg-slide__inner { padding-bottom: 96px; gap: 14px; }
	.gg-slide__title::after { margin-top: 18px; }
	.gg-slider__arrow { display: none; }
	.gg-slider__nav { bottom: 28px; }
	.gg-slider__dots button { width: 30px; }
	.gg-slider__down { bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.gg-slider__track { transition: none; }
	.gg-slide__bg { transform: none; transition: none; }
	.gg-slide__inner > * { opacity: 1; transform: none; transition: none; }
	.gg-slider__down { animation: none; }
}

/* ---------- Home con slider: logo grande, testata che compare allo scorrimento ---------- */
.gg-slider { --gg-brand-h: clamp(210px, 30vh, 290px); }
.gg-slider__brand { position: absolute; z-index: 3; top: clamp(22px, 5vh, 48px); left: 0; right: 0; max-width: var(--gg-max); margin: 0 auto; padding-inline: var(--gg-pad); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; pointer-events: none; }
.gg-slider__brand img { width: clamp(84px, 15vh, 140px); height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.45)); }
.gg-slider__name { margin: 0; color: #fff; font-weight: 600; font-size: clamp(18px, 2vw, 26px); letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.gg-slider__name span { display: block; margin-top: 4px; font-weight: 400; font-size: .62em; letter-spacing: .14em; text-transform: none; color: rgba(255,255,255,.85); }

/* Slide "lavoro in vetrina": immagine intera a destra, dietro la stessa sfocata */
.gg-slide--work .gg-slide__bg { inset: -60px; filter: blur(34px) saturate(1.15) brightness(.6); }
.gg-slide--work::before { background: linear-gradient(90deg, rgba(21,21,21,.88) 0%, rgba(21,21,21,.55) 50%, rgba(21,21,21,.25) 100%); }
.gg-slide__work { position: absolute; z-index: 0; right: max(var(--gg-pad), calc((100% - var(--gg-max)) / 2 + var(--gg-pad))); top: 50%; height: min(72vh, 780px); transform: translateY(-46%) scale(.94); opacity: 0; transition: transform 1.1s cubic-bezier(.2,.7,.2,1) .35s, opacity .8s ease .35s; }
.gg-slide__work img { height: 100%; width: auto; max-width: none; box-shadow: 0 30px 70px rgba(0,0,0,.55); outline: 1px solid rgba(255,255,255,.12); }
.gg-slide.is-active .gg-slide__work { transform: translateY(-50%) scale(1); opacity: 1; }
.gg-slide--work .gg-slide__inner > * { max-width: min(40rem, 48%); }

/* Testata: trasparente sopra lo slider, arancio dopo lo scorrimento */
.has-slider .gg-topbar { position: fixed; left: 0; right: 0; top: 0; background: transparent; border-bottom-color: transparent; transition: background .35s ease, border-color .35s ease, box-shadow .35s ease; }
.has-slider .gg-topbar .gg-brand { opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s; }
.has-slider .gg-topbar.is-scrolled { background: var(--gg-orange); border-bottom-color: var(--gg-orange-dark); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.has-slider .gg-topbar.is-scrolled .gg-brand { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.has-slider .gg-header { flex-wrap: nowrap; }
.has-slider .gg-menu-toggle { display: inline-flex; margin-left: auto; position: relative; z-index: 2; transition: background .2s; }
.has-slider .gg-topbar:not(.is-scrolled) .gg-menu-toggle { background: rgba(21,21,21,.55); }
.has-slider .gg-menu-toggle:hover { background: #000; }
.has-slider .gg-menu-toggle__bar { transition: background .2s; }
.has-slider .gg-menu-toggle__bar::before, .has-slider .gg-menu-toggle__bar::after { transition: transform .25s ease, top .25s ease; }
.has-slider .gg-menu-toggle[aria-expanded="true"] .gg-menu-toggle__bar { background: transparent; }
.has-slider .gg-menu-toggle[aria-expanded="true"] .gg-menu-toggle__bar::before { top: 0; transform: rotate(45deg); }
.has-slider .gg-menu-toggle[aria-expanded="true"] .gg-menu-toggle__bar::after { top: 0; transform: rotate(-45deg); }

/* Menu a pannello laterale (home) */
.has-slider .gg-nav { display: block; position: fixed; z-index: 1; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); padding: 96px 22px 32px; overflow-y: auto; background: var(--gg-orange); box-shadow: -20px 0 50px rgba(0,0,0,.25); transform: translateX(105%); visibility: hidden; transition: transform .45s cubic-bezier(.77,0,.18,1), visibility 0s linear .45s; }
.has-slider .gg-nav.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.has-slider .gg-nav ul { flex-direction: column; padding-bottom: 8px; }
.has-slider .gg-nav a { border-top: 1px solid rgba(21,21,21,.15); }
.has-slider .gg-nav li.parent > a { flex: 1 1 auto; }
.has-slider .gg-nav .mod-menu__toggle-sub { width: 48px; height: 48px; border-top: 1px solid rgba(21,21,21,.15); }
.has-slider .gg-nav li ul, .has-slider .gg-nav li:hover > ul, .has-slider .gg-nav li:focus-within > ul { display: none; flex-basis: 100%; position: static; min-width: 0; padding: 0 0 6px; background: transparent; box-shadow: none; border-top: 0; }
.has-slider .gg-nav .mod-menu__toggle-sub[aria-expanded="true"] + ul { display: flex; }
.has-slider .gg-nav li ul a { padding: 9px 14px 9px 30px; color: var(--gg-dark); border-top: 0; }
.has-slider .gg-nav li ul a:hover { background: rgba(255,255,255,.25); color: var(--gg-dark); }
.gg-nav-backdrop { position: fixed; inset: 0; z-index: 49; background: rgba(21,21,21,.45); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s linear .35s; }
.gg-nav-open .gg-nav-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }

/* Barrette: si restringono quando le slide sono tante */
.gg-slider__dots { flex: 1 1 auto; min-width: 0; max-width: 760px; }
.gg-slider__dots button { flex: 1 1 0; min-width: 8px; max-width: 46px; width: auto; }

@media (max-width: 900px) {
	.gg-slide--work .gg-slide__inner > * { max-width: 100%; }
}
@media (max-width: 760px) {
	.gg-slider { --gg-brand-h: 0px; }
	.gg-slider__nav { padding-right: calc(var(--gg-pad) + 60px); gap: 14px; }
	.gg-slider__brand { flex-direction: row; align-items: center; gap: 12px; top: 18px; padding-right: 90px; }
	.gg-slider__brand img { width: 64px; }
	.gg-slider__name { font-size: 16px; letter-spacing: .07em; }
	.gg-slide--work .gg-slide__work { left: 0; right: 0; top: 104px; height: min(38vh, 340px); display: flex; justify-content: center; transform: translateY(12px) scale(.96); }
	.gg-slide--work.is-active .gg-slide__work { transform: none; }
	.gg-slide--work::before { background: linear-gradient(0deg, rgba(21,21,21,.92) 30%, rgba(21,21,21,.35)); }
	.gg-slide--work .gg-slide__inner { gap: 10px; }
	.gg-slide--work .gg-slide__title { font-size: clamp(32px, 9vw, 44px); }
	.gg-slide--work .gg-slide__title::after { margin-top: 12px; }
	.gg-slide--work .gg-slide__sub { font-size: 18px; }
}
@media (max-height: 640px) and (max-width: 760px) {
	.gg-slide--work .gg-slide__work { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.gg-slide__work, .has-slider .gg-nav, .has-slider .gg-topbar .gg-brand { transition: none; }
}

/* ---------- Striscia "ADV e costruzione loghi" (home) ---------- */
.gg-adv { position: relative; overflow: hidden; background: var(--gg-dark); color: rgba(255,255,255,.82); }
.gg-adv::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 80% at 78% 50%, rgba(255,109,1,.28), transparent 70%); pointer-events: none; }
.gg-adv__inner { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 48px; padding-block: 96px; }
.gg-adv__title { margin: 0 0 22px; color: #fff; font-weight: 300; font-size: clamp(72px, 10vw, 150px); line-height: .9; letter-spacing: -.02em; }
.gg-adv__title span { display: block; margin-top: 14px; color: var(--gg-orange); font-size: clamp(26px, 3vw, 42px); font-weight: 400; letter-spacing: .02em; line-height: 1.1; }
.gg-adv__title span::after { content: ""; display: block; width: 56px; height: 3px; background: var(--gg-orange); margin-top: 24px; }
.gg-adv__lead { margin: 0 0 30px; max-width: 26rem; font-size: 18px; }
.gg-adv__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gg-btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.gg-btn--ghost:hover { background: #fff; color: var(--gg-dark); }

/* Loghi affastellati */
.gg-adv__pile { position: relative; aspect-ratio: 4 / 3; }
.gg-adv__logo { --r: 0deg; position: absolute; z-index: 1; display: block; padding: 8px; background: #fff; box-shadow: 0 14px 32px rgba(0,0,0,.45); transform: rotate(var(--r)); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, opacity .6s ease; }
.gg-adv__logo img { width: 100%; height: auto; }
.gg-adv__logo:hover { z-index: 30; transform: rotate(0) scale(1.12); box-shadow: 0 24px 50px rgba(0,0,0,.55); }
.gg-adv__logo:nth-child(1)  { left: 1%;  top: 4%;  width: 22%; --r: -7deg; }
.gg-adv__logo:nth-child(2)  { left: 20%; top: 0;   width: 30%; --r: 4deg; z-index: 2; }
.gg-adv__logo:nth-child(3)  { left: 49%; top: 3%;  width: 21%; --r: -4deg; }
.gg-adv__logo:nth-child(4)  { left: 74%; top: 0;   width: 17%; --r: 8deg; z-index: 3; }
.gg-adv__logo:nth-child(5)  { left: 6%;  top: 30%; width: 26%; --r: 6deg; z-index: 4; }
.gg-adv__logo:nth-child(6)  { left: 3%;  top: 47%; width: 32%; --r: -3deg; z-index: 5; }
.gg-adv__logo:nth-child(7)  { left: 33%; top: 26%; width: 27%; --r: -6deg; z-index: 6; }
.gg-adv__logo:nth-child(8)  { left: 60%; top: 30%; width: 21%; --r: 5deg; z-index: 4; }
.gg-adv__logo:nth-child(9)  { left: 81%; top: 38%; width: 17%; --r: -7deg; z-index: 5; }
.gg-adv__logo:nth-child(10) { left: 36%; top: 55%; width: 27%; --r: 3deg; z-index: 7; }
.gg-adv__logo:nth-child(11) { left: 0;   top: 70%; width: 28%; --r: -5deg; z-index: 6; }
.gg-adv__logo:nth-child(12) { left: 25%; top: 72%; width: 28%; --r: 6deg; z-index: 8; }
.gg-adv__logo:nth-child(13) { left: 52%; top: 76%; width: 26%; --r: -3deg; z-index: 7; }
.gg-adv__logo:nth-child(14) { left: 74%; top: 70%; width: 25%; --r: 5deg; z-index: 9; }

/* Entrata: i loghi cadono sul tavolo uno dopo l'altro */
.gg-adv__pile.is-waiting .gg-adv__logo { opacity: 0; transform: translateY(-40px) rotate(calc(var(--r) * 3)) scale(1.1); }
.gg-adv__pile.is-in .gg-adv__logo { transition: transform .7s cubic-bezier(.2,.8,.25,1.15), opacity .5s ease, box-shadow .35s; }

@media (max-width: 900px) {
	.gg-adv__inner { grid-template-columns: 1fr; gap: 40px; padding-block: 72px; }
	.gg-adv__pile { width: 100%; max-width: 640px; margin-inline: auto; }
}
@media (max-width: 600px) {
	.gg-adv__pile { aspect-ratio: 1 / 1; }
	.gg-adv__logo { padding: 4px; }
	.gg-adv__pile .gg-adv__logo { padding: 4px; box-shadow: 0 8px 18px rgba(0,0,0,.45); }
}
@media (prefers-reduced-motion: reduce) {
	.gg-adv__logo, .gg-adv__pile.is-waiting .gg-adv__logo { transition: none; opacity: 1; transform: rotate(var(--r)); }
}

/* ---------- Striscia "Siti in Joomla e aggiornamenti a Joomla 6" (home) ---------- */
.gg-joomla { background: var(--gg-surface); border-top: 1px solid var(--gg-line); }
.gg-joomla__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 64px; padding-block: 96px; }
.gg-joomla__title { margin: 14px 0 28px; font-weight: 300; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.08; }
.gg-joomla__title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--gg-orange); margin-top: 24px; }
.gg-joomla__points { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 32px; }
.gg-joomla__point { padding-left: 18px; border-left: 3px solid var(--gg-orange); }
.gg-joomla__point h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.gg-joomla__point p { margin: 0; font-size: 16px; }
.gg-joomla__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Grafica: le versioni vecchie confluiscono nella 6 */
.gg-joomla__visual { display: flex; align-items: center; justify-content: center; gap: 18px; }
.gg-joomla__old { display: flex; flex-direction: column; gap: 10px; }
.gg-joomla__old span { display: grid; place-items: center; width: 84px; height: 46px; border: 1px dashed #BDBDBD; background: var(--gg-bg); color: #8A8A8A; font-size: 20px; font-weight: 500; text-decoration: line-through; text-decoration-color: rgba(200, 85, 0, .6); transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .6s ease; }
.gg-joomla__arrow { flex: none; color: var(--gg-orange); width: clamp(60px, 7vw, 120px); height: auto; }
.gg-joomla__new { position: relative; display: grid; place-items: center; width: clamp(170px, 17vw, 240px); aspect-ratio: 1; background: var(--gg-orange); color: var(--gg-dark); font-size: clamp(110px, 12vw, 170px); font-weight: 300; line-height: 1; box-shadow: 0 24px 50px rgba(255, 109, 1, .35); transition: transform .7s cubic-bezier(.2,.8,.25,1.2) .35s, opacity .6s ease .35s; }
.gg-joomla__new small { position: absolute; top: 14px; left: 16px; font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.gg-joomla__visual.is-waiting .gg-joomla__old span { opacity: 0; transform: translateX(-30px); }
.gg-joomla__visual.is-waiting .gg-joomla__new { opacity: 0; transform: scale(.85); }

@media (max-width: 900px) {
	.gg-joomla__inner { grid-template-columns: 1fr; gap: 44px; padding-block: 72px; }
	.gg-joomla__text { order: -1; }
}
@media (max-width: 600px) {
	.gg-joomla__points { grid-template-columns: 1fr; gap: 22px; }
	.gg-joomla__old span { width: 62px; height: 38px; font-size: 17px; }
	.gg-joomla__visual { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.gg-joomla__old span, .gg-joomla__new { transition: none; }
}

/* Sfondo leggero d'ufficio dietro la striscia Joomla */
.gg-joomla { position: relative; isolation: isolate; overflow: hidden; }
.gg-joomla::before { content: ""; position: absolute; inset: -20px; z-index: -2; background: url("../images/ufficio-sfondo.jpg") center / cover no-repeat; opacity: .22; filter: blur(2px) saturate(.8); }
.gg-joomla::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.55) 40%, rgba(255,255,255,.82) 100%); }
@media (max-width: 900px) {
	.gg-joomla::after { background: rgba(255,255,255,.7); }
}

/* Slide "lavoro in vetrina": dietro la stessa locandina ingrandita, poco sfocata e in trasparenza */
.gg-slide--work { background: var(--gg-dark); }
.gg-slide--work .gg-slide__bg { inset: 0; background-position: center 30%; opacity: .55; filter: blur(5px) saturate(1.1); transform: scale(1.35); transition: transform 8s ease-out; }
.gg-slide--work.is-active .gg-slide__bg { transform: scale(1.18); }
.gg-slide--work::before { background: linear-gradient(90deg, rgba(21,21,21,.85) 0%, rgba(21,21,21,.5) 38%, rgba(21,21,21,.08) 70%, rgba(21,21,21,.2) 100%), linear-gradient(0deg, rgba(21,21,21,.5), transparent 30%); }
@media (max-width: 760px) {
	.gg-slide--work .gg-slide__bg { opacity: .6; }
	.gg-slide--work::before { background: linear-gradient(0deg, rgba(21,21,21,.9) 28%, rgba(21,21,21,.25) 70%, rgba(21,21,21,.15)); }
}
@media (prefers-reduced-motion: reduce) {
	.gg-slide--work .gg-slide__bg, .gg-slide--work.is-active .gg-slide__bg { transform: scale(1.18); }
}

/* ---------- Retro dei pannelli che girano: la stessa immagine a specchio, sfocata, con scritte scure ---------- */
.gg-flip__back { background: #F4F1EC; color: var(--gg-ink); isolation: isolate; }
.gg-flip__mirror { position: absolute; inset: -14px; z-index: -2; background: center / cover no-repeat; transform: scaleX(-1); filter: blur(7px) saturate(1.1); opacity: .9; }
.gg-flip__back::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .62); }
.gg-flip__back .gg-flip__name { color: var(--gg-ink); }
.gg-flip__back .gg-flip__desc { color: #2E2E2E; }

/* ---------- "Hanno lavorato con noi": loghi dei clienti ---------- */
.gg-band .gg-narrow:has(.gg-clienti) { max-width: var(--gg-max); }
.gg-clienti { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; text-align: center; }
.gg-cliente a, .gg-cliente__box { display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; color: var(--gg-ink); text-decoration: none; }
.gg-cliente__logo { display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 12px; background: var(--gg-surface); box-shadow: 0 0 0 1px var(--gg-line), 0 8px 20px rgba(21, 21, 21, .08); transition: transform .3s ease, box-shadow .3s ease; }
.gg-cliente__logo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); transition: filter .3s ease; }
.gg-cliente__name { font-size: 14px; font-weight: 500; line-height: 1.35; }
.gg-cliente a:hover .gg-cliente__logo, .gg-cliente a:focus-visible .gg-cliente__logo { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--gg-orange), 0 14px 28px rgba(21, 21, 21, .14); }
.gg-cliente a:hover .gg-cliente__logo img { filter: none; }
.gg-cliente a:hover .gg-cliente__name { color: var(--gg-orange-text); }
.gg-cliente__initials { display: grid; place-items: center; height: 100%; background: var(--gg-bg); color: var(--gg-orange-text); font-size: 40px; font-weight: 300; letter-spacing: .06em; }
@media (max-width: 900px) { .gg-clienti { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gg-clienti { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .gg-cliente__name { font-size: 13px; } }
