/* ==========================================================
   GRUPPO 292 — stili che completano Elementor
   Tutte le classi iniziano con g292- per non interferire con tema e plugin.
   Colori e font principali sono nelle Impostazioni sito di Elementor.
   ========================================================== */

:root {
	--g292-ink: #121212;
	--g292-paper: #fafaf7;
	--g292-alt: #f1efe9;
	--g292-red: #e3201b;
	--g292-red-d: #b8150f;
	--g292-muted: #5d5d58;
	--g292-muted-d: #a9a7a0;
	--g292-line: #e2dfd7;
	--g292-line-d: #2e2e2e;
	--g292-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--g292-body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

body { -webkit-font-smoothing: antialiased; }
::selection { background: var(--g292-red); color: #fff; }
.elementor-heading-title { text-wrap: balance; }
.g292-text p:last-child { margin-bottom: 0; }

/* ---------- Etichetta con pacman ---------- */
.g292-eyebrow .elementor-heading-title { display: inline-flex; align-items: center; gap: 10px; }
.g292-eyebrow .elementor-heading-title::before {
	content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%;
	background: var(--g292-red);
	clip-path: polygon(50% 50%, 100% 22%, 100% 0, 0 0, 0 100%, 100% 100%, 100% 78%);
}
.g292-red .g292-eyebrow--light .elementor-heading-title::before { background: #fff; }

/* ---------- Logo ---------- */
.g292-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--g292-ink) !important; }
.g292-logo svg { width: 34px; height: 34px; flex: none; }
.g292-logo__text { display: flex; flex-direction: column; line-height: 1; }
.g292-logo__name { font-family: var(--g292-display); font-weight: 900; font-size: 1.5rem; letter-spacing: -.03em; }
.g292-logo__name small { font-weight: 500; font-size: .72em; letter-spacing: 0; margin-right: 3px; }
.g292-logo__claim { font-family: var(--g292-body); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--g292-muted); margin-top: 4px; }
.g292-logo--light { color: #fff !important; }
.g292-logo--light .g292-logo__claim { color: var(--g292-muted-d); }

/* ---------- Header ---------- */
.g292-header { backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); }
.g292-header .elementor-nav-menu--dropdown { min-height: calc(100vh - 70px); padding: 12px 16px 40px; }
.g292-header .elementor-nav-menu--dropdown a { border-bottom: 1px solid var(--g292-line); }

/* ---------- Pulsanti: frecce che si muovono ---------- */
.elementor-button { transition: background-color .25s, color .25s, border-color .25s; }

.g292-link-arrow { font-weight: 700; text-decoration: none !important; color: var(--g292-ink); border-bottom: 2px solid var(--g292-red); padding-bottom: 2px; white-space: nowrap; }
.g292-link-arrow:hover { color: var(--g292-red); }

/* ---------- Hero: mosaico di foto ---------- */
.g292-mosaic.e-con {
	display: grid !important; grid-template-columns: repeat(6, 1fr);
	grid-auto-rows: clamp(70px, 8vw, 118px); gap: 10px !important;
}
.g292-mosaic > .elementor-element { width: auto !important; max-width: none !important; margin: 0 !important; min-width: 0; }
.g292-mosaic > .elementor-element:nth-child(1) { grid-column: 1 / 5; grid-row: span 3; }
.g292-mosaic > .elementor-element:nth-child(2) { grid-column: 5 / 7; grid-row: span 2; }
.g292-mosaic > .elementor-element:nth-child(3) { grid-column: 5 / 7; grid-row: span 2; }
.g292-mosaic > .elementor-element:nth-child(4) { grid-column: 1 / 3; grid-row: span 2; }
.g292-mosaic > .elementor-element:nth-child(5) { grid-column: 3 / 5; grid-row: span 2; }
.g292-mosaic > .elementor-element:nth-child(6) { grid-column: 5 / 7; grid-row: span 1; }
.g292-mosaic > .elementor-element,
.g292-mosaic > .elementor-element > .elementor-widget-container,
.g292-mosaic figure { height: 100%; margin: 0; }
.g292-mosaic figure { position: relative; overflow: hidden; border-radius: 14px; }
.g292-mosaic img { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 14px; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.g292-mosaic figure:hover img { transform: scale(1.06); }
.g292-mosaic figcaption {
	position: absolute; left: 10px; bottom: 10px; margin: 0 !important;
	background: rgba(18,18,18,.82); color: #fff !important; font: 700 .72rem/1 var(--g292-body);
	letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px;
}
.g292-tile { background: var(--g292-red); border-radius: 14px; display: flex; align-items: center; justify-content: center; padding: 10px; }
.g292-tile .elementor-heading-title { font-size: clamp(.85rem, 1.15vw, 1.05rem) !important; }
@media (max-width: 767px) {
	.g292-mosaic.e-con { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
	.g292-mosaic > .elementor-element:nth-child(1) { grid-column: 1 / -1; grid-row: span 2; }
	.g292-mosaic > .elementor-element:nth-child(n+2):nth-child(-n+5) { grid-column: auto; grid-row: span 1; }
	.g292-mosaic > .elementor-element:nth-child(6) { grid-column: 1 / -1; height: 64px; }
	.g292-mosaic figcaption { font-size: .66rem; padding: 5px 9px; left: 8px; bottom: 8px; }
}

/* Pacman che mangia i puntini */
.g292-pacrow { display: flex; align-items: center; gap: 14px; color: var(--g292-muted); font: 600 .85rem/1.3 var(--g292-body); letter-spacing: .08em; text-transform: uppercase; }
.g292-pac-run { position: relative; width: 150px; height: 22px; flex: none; overflow: hidden; }
.g292-pac-run .pac { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--g292-red); animation: g292-pac-move 4s linear infinite, g292-pac-chomp .3s steps(1) infinite; }
.g292-pac-run .dots { position: absolute; left: 0; right: 0; top: 9px; height: 4px; background: radial-gradient(circle, var(--g292-ink) 1.8px, transparent 2.2px) 0 0 / 16px 4px repeat-x; opacity: .5; }
@keyframes g292-pac-move { from { left: -20px; } to { left: 150px; } }
@keyframes g292-pac-chomp {
	0% { clip-path: polygon(50% 50%, 100% 15%, 100% 0, 0 0, 0 100%, 100% 100%, 100% 85%); }
	50% { clip-path: polygon(50% 50%, 100% 48%, 100% 0, 0 0, 0 100%, 100% 100%, 100% 52%); }
}

/* ---------- Nastro loghi ---------- */
.g292-loghi-sez { border-block: 1px solid var(--g292-line); }
.g292-loghi img { height: 54px !important; width: auto !important; max-width: 150px; object-fit: contain; margin-inline: auto; filter: grayscale(1); opacity: .75; transition: opacity .3s; }
.g292-loghi img:hover { opacity: 1; }

/* ---------- Righe servizi ---------- */
.g292-svc { text-decoration: none !important; transition: background-color .3s; }
.g292-svc .elementor-heading-title { transition: color .3s; }
.g292-svc:hover .g292-svc__title .elementor-heading-title { color: var(--g292-red) !important; }
.g292-svc__img img { filter: grayscale(1); transition: filter .4s, transform .6s; }
.g292-svc:hover .g292-svc__img img { filter: none; }
.g292-svc__ia { background: var(--g292-ink); border-radius: 12px; height: 120px; display: flex; align-items: center; justify-content: center; transition: background-color .3s; }
.g292-svc:hover .g292-svc__ia { background: var(--g292-red); }

/* ---------- Schede ---------- */
.g292-card { transition: transform .3s, box-shadow .3s; }
.g292-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); }

/* ---------- Diagramma "il tuo progetto" ---------- */
.g292-network svg { width: 100%; max-width: 560px; margin-inline: auto; overflow: visible; display: block; }
.g292-network .node circle { fill: #1d1d1d; stroke: var(--g292-line-d); stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.g292-network .node text { fill: #f3f1ec; font-family: var(--g292-body); font-weight: 700; font-size: 13px; letter-spacing: .08em; }
.g292-network .node:hover circle { fill: var(--g292-red); stroke: var(--g292-red); }
.g292-network .link { stroke: #3a3a3a; stroke-width: 1.5; stroke-dasharray: 4 6; animation: g292-dash 14s linear infinite; }
.g292-network .core circle { fill: var(--g292-red); }
.g292-network .core text { fill: #fff; font-family: var(--g292-display); font-weight: 800; font-size: 17px; letter-spacing: .02em; }
@keyframes g292-dash { to { stroke-dashoffset: -200; } }

/* ---------- Liste: chip, pubblico, contatti ---------- */
.g292-chips, .g292-tags, .g292-audience, .g292-contact-list, .g292-footer-list { list-style: none; margin: 0; padding: 0; }
.g292-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.g292-chips li { border: 1.5px solid currentColor; border-radius: 999px; padding: 10px 18px; font-family: var(--g292-display); font-weight: 700; font-size: clamp(.95rem, 1.4vw, 1.15rem); }
.g292-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.g292-tags li { border: 1px solid var(--g292-line); border-radius: 999px; padding: 5px 12px; font-size: .82rem; font-weight: 600; }
.g292-audience { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }
.g292-audience li::before { content: "● "; color: var(--g292-red); }

.g292-contact-list { border-top: 1px solid rgba(255,255,255,.35); }
.g292-contact-list li { border-bottom: 1px solid rgba(255,255,255,.35); margin: 0; }
.g292-contact-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; text-decoration: none !important; color: inherit !important; font-weight: 700; font-size: 1.1rem; transition: padding .25s; }
.g292-contact-list a > span:first-child { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; font-weight: 600; }
.g292-contact-list a:hover { padding-left: 8px; }
.g292-contact-list--dark, .g292-contact-list--dark li { border-color: var(--g292-line); }

.g292-footer-list { display: grid; gap: 10px; }
.g292-footer a { color: #d9d7d0; text-decoration: none; }
.g292-footer a:hover { color: var(--g292-red); }

/* ---------- Pagine interne ---------- */
.g292-breadcrumb { font: 400 .82rem/1.4 var(--g292-body); color: var(--g292-muted); }
.g292-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.g292-breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.g292-breadcrumb a { color: inherit; text-decoration: none; }
.g292-breadcrumb a:hover { color: var(--g292-red); }

.g292-art { background: var(--g292-ink); color: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(24px, 4vw, 56px); min-height: 320px; }
.g292-art .big { font-family: var(--g292-display); font-weight: 900; font-size: clamp(5rem, 18vw, 15rem); line-height: .8; letter-spacing: -.06em; }
.g292-art ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.g292-art li { border: 1.5px solid #444; border-radius: 999px; padding: 8px 16px; font: 600 clamp(.8rem, 1.2vw, .95rem)/1.2 var(--g292-body); white-space: nowrap; }
@media (max-width: 767px) { .g292-art { flex-direction: column; align-items: flex-start; } .g292-art ul { flex-direction: row; flex-wrap: wrap; align-items: flex-start; } }

.g292-faq .elementor-tab-title { border-top: 1px solid var(--g292-line) !important; }
.g292-faq .elementor-accordion-item { border: 0 !important; border-bottom: 1px solid var(--g292-line) !important; }

/* ---------- Portfolio (shortcode [g292_progetti]) ---------- */
.g292-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.g292-filter {
	border: 1.5px solid var(--g292-line) !important; background: transparent !important; color: var(--g292-ink) !important; cursor: pointer;
	border-radius: 999px !important; padding: 10px 18px !important; min-height: 44px;
	font: 600 .8rem/1 var(--g292-body) !important; letter-spacing: .1em; text-transform: uppercase;
	transition: background-color .25s, color .25s, border-color .25s;
}
.g292-filter:hover { border-color: var(--g292-ink) !important; }
.g292-filter[aria-pressed="true"] { background: var(--g292-ink) !important; color: #fff !important; border-color: var(--g292-ink) !important; }

.g292-work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.g292-work { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.g292-work--wide { grid-column: span 2; }
.g292-work[hidden] { display: none; }
.g292-work__media { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 10; background: var(--g292-alt); }
.g292-work--wide .g292-work__media { aspect-ratio: auto; height: 100%; min-height: 260px; }
.g292-work__media img, .g292-work__media video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.g292-work:hover .g292-work__media img { transform: scale(1.05); }
.g292-work__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.g292-work__title { font-family: var(--g292-display) !important; font-size: 1.3rem !important; font-weight: 800 !important; letter-spacing: -.015em; line-height: 1.15 !important; margin: 0 !important; color: var(--g292-ink); }
.g292-work__title a { color: inherit; text-decoration: none; }
.g292-work__title a:hover { color: var(--g292-red); }
.g292-work__sector { font: 700 .74rem/1.3 var(--g292-body); letter-spacing: .12em; text-transform: uppercase; color: var(--g292-muted); white-space: nowrap; }
.g292-work__place { color: var(--g292-muted); font-size: .92rem; margin: -8px 0 0 !important; }
.g292-play {
	position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50% !important; background: var(--g292-red) !important;
	display: grid; place-items: center; z-index: 2; border: 0 !important; padding: 0 !important; cursor: pointer; color: #fff !important; transition: transform .3s;
}
.g292-play:hover { transform: scale(1.08); }
.g292-play svg { width: 26px; height: 26px; margin-left: 4px; }
@media (max-width: 1024px) { .g292-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g292-work-grid { grid-template-columns: 1fr; } .g292-work--wide { grid-column: auto; } .g292-work--wide .g292-work__media { aspect-ratio: 16 / 10; min-height: 0; } }

/* ---------- Modulo contatti ---------- */
.g292-form .elementor-field-type-checkbox .elementor-field-subgroup { display: flex; flex-wrap: wrap; gap: 10px; }
.g292-form .elementor-field-type-checkbox .elementor-field-option { border: 1.5px solid var(--g292-line); border-radius: 999px; padding: 8px 14px; background: #fff; margin: 0 !important; }
.g292-form .elementor-field-type-checkbox .elementor-field-option:has(input:checked) { background: var(--g292-ink); border-color: var(--g292-ink); color: #fff; }
.g292-form .elementor-field-type-checkbox .elementor-field-option label { cursor: pointer; }
.g292-form input[type="checkbox"] { accent-color: var(--g292-red); }

/* ---------- WhatsApp fisso ---------- */
.g292-wa {
	position: fixed; right: 18px; bottom: 18px; z-index: 999;
	width: 58px; height: 58px; border-radius: 50%; background: #1fa855; color: #fff !important;
	display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(0,0,0,.45); transition: transform .25s;
}
.g292-wa:hover { transform: scale(1.08); }
.g292-wa svg { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
	.g292-pac-run .pac, .g292-network .link { animation: none; }
	.g292-mosaic img, .g292-work__media img { transition: none; }
}
