/*
Theme Name: KGT
Theme URI: https://kgtsrl.it
Author: KGT srl
Description: Tema a blocchi leggero per KGT srl. Consulenza d'impresa e trading industriale.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: kgt
*/

/* ---------- Base ---------- */
:root {
	--kgt-radius: 14px;
	--kgt-shadow: 0 1px 2px rgb(11 37 69 / 6%), 0 8px 24px rgb(11 37 69 / 6%);
	--kgt-shadow-hover: 0 2px 4px rgb(11 37 69 / 8%), 0 16px 40px rgb(11 37 69 / 12%);
	--kgt-grid-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M48 0H0v48' fill='none' stroke='%23ffffff' stroke-opacity='.07'/%3E%3C/svg%3E");
}
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
:where(a) { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--wp--preset--color--yellow); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.site-main { padding: 0 !important; }
.site-main > .wp-block-post-content > *:first-child { margin-block-start: 0; }
.site-main > .wp-block-post-content > *:last-child { margin-block-end: 0; }
.wp-block-post-content > :not(.alignfull):last-child { margin-bottom: var(--wp--preset--spacing--60); }
.wp-block-post-content > .page-hero + * { margin-top: var(--wp--preset--spacing--50); }
.wp-element-button, .wp-block-button__link { transition: background-color .2s, color .2s, box-shadow .2s; text-decoration: none; display: inline-block; }
.is-style-outline > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--blue); border: 2px solid currentColor; }
.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--blue); color: #fff; border-color: var(--wp--preset--color--blue); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 96%); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--wp--preset--color--line); }
.hdr { max-width: 1200px; margin: 0 auto; padding: 0.6rem 1.25rem; display: flex; align-items: center; gap: 1.5rem; }
.hdr__brand { display: block; line-height: 0; }
.hdr__brand img { width: 104px; height: auto; }
.hdr__tagline { margin: 0 auto 0 0; font-size: 0.85rem; color: var(--wp--preset--color--muted); font-style: italic; }
@media (max-width: 560px) { .hdr__tagline { display: none; } }
.ftr__asseprim { display: block; background: #fff; border-radius: 8px; padding: 6px 10px; width: 150px; height: auto; }
.asseprim img { max-width: 342px; }
.section > .wp-block-image.asseprim { margin-inline: auto !important; text-align: center; }
.material { margin-top: 1.5rem !important; }
.material > .wp-block-column:first-child { flex: 0 0 34% !important; }
.material img { aspect-ratio: 4 / 3; object-fit: cover; }
/* Foto prodotto scontornate: niente cornice, solo un'ombra morbida che segue la forma. */
.split.material .wp-block-image.cutout img { aspect-ratio: auto; object-fit: contain; border-radius: 0; box-shadow: none; filter: drop-shadow(0 14px 18px rgb(11 37 69 / 18%)); transition: transform .4s; }
.split.material:hover .wp-block-image.cutout img { transform: scale(1.03); }
.material p { margin: 0 0 0.75rem; }
.hdr__panel { display: flex; align-items: center; gap: 1.5rem; }
.hdr__nav ul, .lang-switch, .ftr ul, .breadcrumbs ol { list-style: none; margin: 0; padding: 0; }
.hdr__nav ul { display: flex; gap: 0.25rem; }
.hdr__nav a { display: block; padding: 0.55rem 0.8rem; border-radius: 8px; color: var(--wp--preset--color--ink); font-weight: 500; text-decoration: none; }
.hdr__nav a:hover { background: var(--wp--preset--color--blue-light); color: var(--wp--preset--color--navy); }
.hdr__nav a[aria-current="page"] { color: var(--wp--preset--color--blue); box-shadow: inset 0 -2px 0 var(--wp--preset--color--blue); border-radius: 0; }
.hdr__cta { font-size: 0.95rem; padding: 0.6rem 1.1rem; border-radius: 8px; background: var(--wp--preset--color--blue); color: #fff; font-weight: 600; text-decoration: none; }
.hdr__cta:hover { background: var(--wp--preset--color--navy); color: #fff; }
.lang-switch { display: flex; gap: 0.15rem; font-size: 0.85rem; font-weight: 600; }
.lang-switch a { display: block; padding: 0.3rem 0.5rem; border-radius: 6px; color: var(--wp--preset--color--muted); text-decoration: none; }
.lang-switch a[aria-current] { background: var(--wp--preset--color--navy); color: #fff; }
.hdr__toggle { display: none; }

@media (max-width: 900px) {
	.hdr__toggle { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--wp--preset--color--line); border-radius: 10px; background: #fff; cursor: pointer; }
	.hdr__bars, .hdr__bars::before, .hdr__bars::after { display: block; width: 20px; height: 2px; background: var(--wp--preset--color--navy); position: relative; transition: transform .2s; }
	.hdr__bars::before, .hdr__bars::after { content: ""; position: absolute; left: 0; }
	.hdr__bars::before { top: -6px; } .hdr__bars::after { top: 6px; }
	.hdr__toggle[aria-expanded="true"] .hdr__bars { background: transparent; }
	.hdr__bars::before, .hdr__bars::after { transform-origin: 50% 50%; }
	.hdr__toggle[aria-expanded="true"] .hdr__bars::before { top: 0; transform: rotate(45deg); }
	.hdr__toggle[aria-expanded="true"] .hdr__bars::after { top: 0; transform: rotate(-45deg); }
	.hdr__panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--wp--preset--color--line); box-shadow: var(--kgt-shadow); padding: 1rem 1.25rem 1.5rem; flex-direction: column; align-items: stretch; gap: 1rem; }
	.nav-open .hdr__panel { display: flex; }
	.hdr__nav ul { flex-direction: column; }
	.hdr__nav a { padding: 0.8rem 0.5rem; border-bottom: 1px solid var(--wp--preset--color--line); border-radius: 0; }
	.hdr__nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--wp--preset--color--blue); padding-left: 0.9rem; }
	.hdr__cta { text-align: center; padding: 0.85rem; }
}

/* ---------- Hero ---------- */
.hero, .page-hero, .cta-band, .section--dark {
	color: #fff;
	background-color: var(--wp--preset--color--navy);
	background-image: var(--kgt-grid-bg), radial-gradient(60rem 30rem at 85% -10%, rgb(21 101 192 / 55%), transparent 70%), radial-gradient(40rem 24rem at 0% 110%, rgb(245 184 46 / 14%), transparent 70%);
}
.hero :where(h1, h2, h3), .page-hero :where(h1, h2), .cta-band :where(h2, h3), .section--dark :where(h2, h3) { color: #fff; }
.hero a:not(.wp-element-button), .cta-band a:not(.wp-element-button), .section--dark a:not(.wp-element-button) { color: #fff; }
.hero { padding-block: clamp(4rem, 10vw, 7.5rem) clamp(3.5rem, 8vw, 6rem) !important; }
.hero h1 { max-width: 18ch; margin-top: 0.5rem; }
.hero .lead { max-width: 60ch; color: rgb(255 255 255 / 85%); }
.eyebrow { font-size: 0.8rem !important; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--yellow); margin-bottom: 0; }
.lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); }
.hero .is-style-outline > .wp-block-button__link, .cta-band .is-style-outline > .wp-block-button__link { color: #fff; border-color: rgb(255 255 255 / 60%); }
.hero .is-style-outline > .wp-block-button__link:hover, .cta-band .is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--navy); border-color: #fff; }
.hero .wp-block-button:not(.is-style-outline) > .wp-block-button__link, .cta-band .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--navy); }
.hero .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover, .cta-band .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: #fff; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; margin-top: 2.5rem !important; padding: 0; list-style: none; font-size: 0.95rem; color: rgb(255 255 255 / 85%); }
.hero-facts li { display: flex; align-items: center; gap: 0.5rem; }
.hero-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--yellow); }

/* Testata della home con la foto delle barre (velatura blu a sinistra per leggere il testo). */
.hero {
	background-image: linear-gradient(90deg, rgb(11 37 69 / 97%) 0%, rgb(11 37 69 / 88%) 32%, rgb(11 37 69 / 20%) 68%, rgb(11 37 69 / 0%) 100%), url("assets/img/sfondo-testata.webp");
	background-size: cover;
	background-position: right center;
	min-height: clamp(380px, 46vw, 560px);
	display: flex !important;
	flex-direction: column;
	justify-content: center;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.hero .lead { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-style: italic; color: rgb(255 255 255 / 90%); }
@media (max-width: 700px) {
	.hero { background-image: linear-gradient(180deg, rgb(11 37 69 / 92%) 0%, rgb(11 37 69 / 75%) 100%), url("assets/img/sfondo-testata.webp"); background-position: 75% center; }
}

/* Icone 3D come sfondo del contenuto: grandi, sbiadite, dietro al testo. */
.card, .service, .contact-intro { position: relative; isolation: isolate; overflow: hidden; }
:is(.card, .contact-intro) > .card-icon,
.service > .service-icon {
	position: absolute;
	z-index: -1;
	margin: 0 !important;
	pointer-events: none;
	opacity: 0.14;
	transition: opacity .3s, transform .4s;
}
:is(.card, .contact-intro) > .card-icon { right: -36px; bottom: -36px; }
:is(.card, .contact-intro) > .card-icon img { width: 230px; height: 230px; }
.card:hover > .card-icon { opacity: 0.22; transform: scale(1.05) rotate(-4deg); }
.service { overflow: visible; min-height: 230px; display: flex !important; flex-direction: column; justify-content: center; }
.service > .service-icon { right: 2%; top: 50%; transform: translateY(-50%); }
.service > .service-icon img { width: 210px; height: 210px; }
/* Trading ha le foto dei materiali sotto: icona in alto, accanto al testo. */
.service:has(.material) > .service-icon { top: 1rem; transform: none; }
.service > :not(.service-icon):not(.material) { max-width: 75%; }
.contact-intro { padding: 2rem 0 !important; }
.contact-intro > .card-icon { right: 0; top: 50%; bottom: auto; transform: translateY(-50%); }
@media (max-width: 600px) {
	:is(.card, .contact-intro) > .card-icon img { width: 170px; height: 170px; }
	.service > .service-icon img { width: 180px; height: 180px; }
	.service > :not(.service-icon):not(.material) { max-width: none; }
}

.page-hero { padding-block: clamp(2.5rem, 6vw, 4rem) !important; margin-bottom: 0 !important; }
.page-hero h1 { font-size: var(--wp--preset--font-size--xx-large); margin: 0.25rem 0 0; }
.page-hero__lead, .page-hero__lead p { color: rgb(255 255 255 / 85%); font-size: var(--wp--preset--font-size--large); max-width: 62ch; margin-top: 0.75rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; color: rgb(255 255 255 / 70%); }
.breadcrumbs li + li::before { content: "›"; margin-right: 0.4rem; }
.breadcrumbs a { color: rgb(255 255 255 / 85%); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Sezioni ---------- */
/* I blocchi più stretti della colonna (titoli, testi) restano allineati a sinistra sulla griglia da 1200px invece di essere centrati. */
:is(.section, .page-hero) > :not(.alignfull) { margin-left: max(0px, calc((100% - 1200px) / 2)) !important; margin-right: auto !important; }
.eyebrow { display: block; }
.section { padding-block: var(--wp--preset--spacing--60) !important; margin-block: 0 !important; }
.section--surface { background: var(--wp--preset--color--surface); background-image: linear-gradient(180deg, #fff 0, var(--wp--preset--color--surface) 6rem); }
.section-head { margin-bottom: var(--wp--preset--spacing--50) !important; }
.section-head > * { max-width: 680px; }
.section-head > h2 { margin-top: 0.35rem; }
.section-head.is-centered { text-align: center; }
.section-head.is-centered > * { margin-inline: auto; }
.legal { max-width: 760px; }
.wp-block-post-content > .section:not(.hero):not(.section--surface):not(.cta-band) + .section:not(.section--surface):not(.section--dark):not(.cta-band) { padding-top: 0 !important; }

/* Griglie di card */
.grid { display: grid !important; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid > * { margin: 0 !important; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--kgt-radius); padding: 1.75rem !important; box-shadow: var(--kgt-shadow); transition: box-shadow .25s, transform .25s; position: relative; }
.card:hover { box-shadow: var(--kgt-shadow-hover); transform: translateY(-2px); }
.card h3 { margin: 0 0 0.5rem; }
.card p { margin: 0 0 0.75rem; color: var(--wp--preset--color--muted); }
.card > :last-child { margin-bottom: 0; }
.card .more a { font-weight: 600; text-decoration: none; }
.card .more a::after { content: " →"; }
.card--feature { display: grid !important; grid-template-columns: 112px 1fr; gap: 1.5rem; align-items: start; padding: 2rem !important; }
.card--feature .wp-block-image { margin: 0; grid-row: span 4; }
.card--feature .wp-block-image img { width: 112px; height: 112px; border-radius: 18px; background: var(--wp--preset--color--blue-light); }
.card--feature > :not(.wp-block-image) { grid-column: 2; }
@media (max-width: 560px) { .card--feature { grid-template-columns: 1fr; } .card--feature > :not(.wp-block-image) { grid-column: 1; } .card--feature .wp-block-image img { width: 88px; height: 88px; } }
.card__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--wp--preset--color--blue-light); color: var(--wp--preset--color--blue); font-weight: 700; margin-bottom: 1rem !important; }
.card--accent { background: var(--wp--preset--color--blue-light); border-color: transparent; box-shadow: none; }

/* Passi */
.steps { counter-reset: step; }
.steps .card { padding-top: 2rem !important; }
.steps .card::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 2rem; font-weight: 800; color: var(--wp--preset--color--blue); opacity: 0.25; line-height: 1; margin-bottom: 0.75rem; }

/* Split immagine + testo */
.split { gap: clamp(2rem, 5vw, 4rem) !important; align-items: center !important; }
.split .wp-block-image img, .media-frame img { border-radius: var(--kgt-radius); box-shadow: var(--kgt-shadow-hover); width: 100%; object-fit: cover; }
.media-frame--tall img { aspect-ratio: 1 / 1; }

/* Liste */
.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: 0.6rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--wp--preset--color--blue-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231565c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat; }
.spec { border: 1px solid var(--wp--preset--color--line); border-radius: var(--kgt-radius); overflow: hidden; }
.spec table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.spec th, .spec td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--wp--preset--color--line); vertical-align: top; }
.spec thead th { background: var(--wp--preset--color--navy); color: #fff; font-weight: 600; }
.spec tbody tr:nth-child(even) { background: var(--wp--preset--color--surface); }
.spec tbody tr:last-child td { border-bottom: 0; }
.wp-block-table.spec { margin-block: 1.5rem; }

/* Sezioni servizio (pagina consulenza) */
.service { border-top: 1px solid var(--wp--preset--color--line); padding-top: var(--wp--preset--spacing--50) !important; margin-top: var(--wp--preset--spacing--50) !important; }
.service:first-child { border-top: 0; padding-top: 0 !important; margin-top: 0 !important; }
.service h2 { font-size: var(--wp--preset--font-size--x-large); }
.toc { display: flex !important; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0 !important; }
.toc a { display: inline-block; padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--wp--preset--color--blue-light); color: var(--wp--preset--color--navy); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.toc a:hover { background: var(--wp--preset--color--blue); color: #fff; }

/* FAQ */
.faq .wp-block-details { border: 1px solid var(--wp--preset--color--line); border-radius: 12px; background: #fff; padding: 0 1.25rem; margin: 0 0 0.75rem; }
.faq .wp-block-details summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; color: var(--wp--preset--color--navy); list-style: none; position: relative; }
.faq .wp-block-details summary::-webkit-details-marker { display: none; }
.faq .wp-block-details summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--wp--preset--color--blue); }
.faq .wp-block-details[open] summary::after { content: "–"; }
.faq .wp-block-details > p { margin: 0 0 1.1rem; color: var(--wp--preset--color--muted); }

/* CTA */
.cta-band { padding-block: var(--wp--preset--spacing--60) !important; margin-block: 0 !important; text-align: center; }
.section.cta-band > :not(.alignfull) { margin-inline: auto !important; }
.cta-band p { color: rgb(255 255 255 / 85%); max-width: 60ch; margin-inline: auto; }
.cta-band .wp-block-buttons { justify-content: center; }

/* Contatti */
.contact-card { display: flex !important; flex-direction: column; gap: 0.2rem; }
.contact-card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--wp--preset--color--muted); }
.contact-card p { color: var(--wp--preset--color--ink); font-size: 1.05rem; }
.kgt-form { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--kgt-radius); padding: clamp(1.25rem, 4vw, 2.25rem); box-shadow: var(--kgt-shadow); }
.kgt-form__grid { display: grid; gap: 1rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.kgt-form__full { grid-column: 1 / -1; }
.kgt-form label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; color: var(--wp--preset--color--navy); }
.kgt-form .req { color: #c62828; }
.kgt-form input[type="text"], .kgt-form input[type="email"], .kgt-form input[type="tel"], .kgt-form select, .kgt-form textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 0.75rem 0.9rem; border: 1px solid #c7d3e1; border-radius: 8px; background: #fff; color: var(--wp--preset--color--ink); }
.kgt-form textarea { min-height: 150px; resize: vertical; }
.kgt-form :is(input, select, textarea):focus { outline: none; border-color: var(--wp--preset--color--blue); box-shadow: 0 0 0 3px rgb(21 101 192 / 18%); }
.kgt-form__check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; }
.kgt-form__check input { margin-top: 0.3rem; width: 18px; height: 18px; flex: none; }
.kgt-form__check label { font-weight: 400; color: var(--wp--preset--color--ink); }
.kgt-form__hp { position: absolute; left: -9999px; }
.kgt-form button { border: 0; cursor: pointer; font: inherit; font-weight: 600; padding: 0.9rem 1.6rem; border-radius: 8px; background: var(--wp--preset--color--blue); color: #fff; }
.kgt-form button:hover { background: var(--wp--preset--color--navy); }
.kgt-form__notice { padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1.25rem; font-weight: 500; }
.kgt-form__notice--ok { background: #e7f6ec; color: #1b5e20; border: 1px solid #a5d6a7; }
.kgt-form__notice--err { background: #fdecea; color: #8e1c1c; border: 1px solid #f5b4ae; }
.kgt-form__small { font-size: 0.85rem; color: var(--wp--preset--color--muted); margin: 0.75rem 0 0; }

/* Testi legali */
.legal h2 { font-size: var(--wp--preset--font-size--large); margin-top: 2.25rem; }
.legal p, .legal li { color: #2c3a4d; }

/* ---------- Footer ---------- */
.site-footer { background: var(--wp--preset--color--navy); color: rgb(255 255 255 / 78%); font-size: 0.95rem; }
.ftr { max-width: 1200px; margin: 0 auto; padding: 3rem 1.25rem 1.25rem; }
/* Quattro blocchi: marchio | servizi | sedi | contatti, separati da linee sottili. */
.ftr__grid { display: grid; grid-template-columns: 230px 1.15fr 1.45fr 1.1fr; }
.ftr__grid > * { padding: 0 1.75rem; }
.ftr__grid > :first-child { padding-left: 0; }
.ftr__grid > :last-child { padding-right: 0; }
.ftr__grid > * + * { border-left: 1px solid rgb(255 255 255 / 10%); }
.ftr__logo { background: #fff; border-radius: 10px; padding: 8px 10px; width: 120px; height: auto; display: block; }
.ftr__tagline { font-style: italic; color: rgb(255 255 255 / 70%); margin: 0.75rem 0 0 !important; white-space: nowrap; font-size: 0.9rem; }
.ftr__asseprim { margin-top: 1.25rem !important; }
.ftr__title { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--yellow); margin: 0 0 1rem; }
.ftr a { color: #fff; text-decoration: none; }
.ftr a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ftr p { margin: 0 0 0.9rem; line-height: 1.55; }
.ftr__services { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 0.55rem 1.75rem; }
.ftr__services li { margin: 0; }
.ftr__label { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(255 255 255 / 55%); margin-bottom: 0.15rem; }
.ftr__addr { margin-bottom: 1.1rem !important; }
.ftr__email { font-weight: 600; }
.ftr__vat { color: rgb(255 255 255 / 65%); font-size: 0.88rem; }
.ftr__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; border-top: 1px solid rgb(255 255 255 / 12%); margin-top: 2.25rem; padding-top: 1.25rem; font-size: 0.85rem; color: rgb(255 255 255 / 65%); }
.ftr__bottom p { margin: 0 auto 0 0; }
.ftr__legal { display: flex; gap: 1.25rem; }
.ftr__legal a { color: rgb(255 255 255 / 80%); }
@media (max-width: 1000px) {
	/* Tablet: marchio su una riga in alto, poi tre colonne. */
	.ftr__grid { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
	.ftr__brand { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; padding: 0 0 1.75rem !important; border-bottom: 1px solid rgb(255 255 255 / 10%); }
	.ftr__brand .ftr__tagline, .ftr__brand .ftr__asseprim { margin: 0 !important; }
	.ftr__grid > :nth-child(2) { border-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
	.ftr__grid { grid-template-columns: 1fr; row-gap: 1.75rem; }
	.ftr__grid > * { padding: 0 !important; border-left: 0 !important; }
	.ftr__bottom { flex-direction: column; align-items: flex-start; }
}
.ftr .lang-switch a { color: rgb(255 255 255 / 75%); }
.ftr .lang-switch a[aria-current] { background: #fff; color: var(--wp--preset--color--navy); }

/* ---------- Pagina Contatti: pannello informazioni + modulo ---------- */
.contact-section { background: linear-gradient(180deg, #fff 0, var(--wp--preset--color--surface) 100%); }
.contact-layout { gap: 2rem !important; align-items: stretch !important; margin: 0 !important; }
.contact-panel {
	position: relative; isolation: isolate; overflow: hidden; height: 100%; box-sizing: border-box;
	padding: 2.5rem 2.25rem; border-radius: 20px; color: #fff;
	background-color: var(--wp--preset--color--navy);
	background-image: var(--kgt-grid-bg), radial-gradient(28rem 20rem at 110% -10%, rgb(21 101 192 / 75%), transparent 70%), radial-gradient(22rem 16rem at -10% 110%, rgb(245 184 46 / 16%), transparent 70%);
	box-shadow: 0 24px 60px rgb(11 37 69 / 28%);
}
.contact-panel__icon { position: absolute; right: -50px; bottom: -50px; z-index: -1; margin: 0 !important; opacity: 0.22; transform: rotate(-8deg); }
.contact-panel__icon img { width: 280px; height: 280px; }
.contact-panel__brand { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 2rem !important; line-height: 1.2; }
.contact-panel__brand span { display: block; margin-top: 0.3rem; font-size: 0.95rem; font-weight: 400; font-style: italic; color: rgb(255 255 255 / 70%); }
.contact-item { position: relative; padding-left: 3.4rem; margin: 0 0 1.5rem !important; line-height: 1.55; color: rgb(255 255 255 / 88%); }
.contact-item::before {
	content: ""; position: absolute; left: 0; top: 0.1rem; width: 2.5rem; height: 2.5rem; border-radius: 12px;
	background: rgb(255 255 255 / 9%) center / 20px no-repeat; border: 1px solid rgb(255 255 255 / 14%);
}
.contact-item--mail::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5b82e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.contact-item--pin::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5b82e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.contact-item--vat::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5b82e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 9h6M7 13h10M7 17h4'/%3E%3C/svg%3E"); }
.contact-item__label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--yellow); margin-bottom: 0.2rem; }
.contact-item a { color: #fff; text-decoration-color: rgb(255 255 255 / 40%); }
.contact-item a:hover { color: var(--wp--preset--color--yellow); }
.contact-item--mail a { font-size: 1.15rem; font-weight: 700; text-decoration: none; }

/* Modulo */
.contact-section .kgt-form { position: relative; overflow: hidden; height: 100%; box-sizing: border-box; border: 0; border-radius: 20px; padding: 2.75rem 2.5rem 2.25rem; box-shadow: 0 24px 60px rgb(11 37 69 / 12%); }
.contact-section .kgt-form::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--wp--preset--color--blue), var(--wp--preset--color--navy) 65%, var(--wp--preset--color--yellow)); }
.contact-section .kgt-form__grid { gap: 1.1rem 1.25rem; }
.contact-section .kgt-form p { margin: 0; }
.contact-section .kgt-form label { font-size: 0.85rem; letter-spacing: 0.02em; }
.contact-section .kgt-form :is(input[type="text"], input[type="email"], select, textarea) {
	background: var(--wp--preset--color--surface); border: 1px solid #e1e8f1; border-radius: 10px; padding: 0.9rem 1rem; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.contact-section .kgt-form :is(input, select, textarea):hover { border-color: #c7d3e1; }
.contact-section .kgt-form :is(input, select, textarea):focus { background: #fff; border-color: var(--wp--preset--color--blue); box-shadow: 0 0 0 4px rgb(21 101 192 / 14%); }
.contact-section .kgt-form select {
	appearance: none; padding-right: 2.75rem !important; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231565c0' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
	background-position: right 1rem center !important;
	background-size: 18px !important;
	background-repeat: no-repeat !important;
}
.contact-section .kgt-form textarea { min-height: 170px; }
.contact-section .kgt-form button {
	margin-top: 1.5rem; padding: 1rem 2.4rem; border-radius: 10px; font-size: 1.02rem; letter-spacing: 0.02em;
	background: linear-gradient(135deg, var(--wp--preset--color--blue), var(--wp--preset--color--navy));
	box-shadow: 0 10px 24px rgb(21 101 192 / 30%); transition: transform .2s, box-shadow .2s;
}
.contact-section .kgt-form button::after { content: " →"; }
.contact-section .kgt-form button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgb(21 101 192 / 38%); }
.contact-section .kgt-form__small { margin-top: 1rem !important; }
@media (max-width: 781px) {
	.contact-panel, .contact-section .kgt-form { padding: 2rem 1.5rem; }
	.contact-panel__icon img { width: 200px; height: 200px; }
}
