/* ==========================================================================
   DM Allarmi — tema su misura
   Direzione: "centrale operativa". Indaco notte del logo, archi di segnale
   rossi, blu per le azioni, etichette in monospazio da scheda tecnica.
   ========================================================================== */

@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-wdth.woff2") format("woff2-variations"), url("../fonts/archivo-wdth.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("../fonts/figtree.woff2") format("woff2-variations"), url("../fonts/figtree.woff2") format("woff2");
	font-weight: 300 900;
	font-display: swap;
}
@font-face {
	font-family: "JetBrains Mono";
	src: url("../fonts/jetbrains-mono.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}

:root {
	--night: #110b33;
	--night-2: #1a1145;
	--indigo: #2b1a63;
	--indigo-soft: #ece9f8;
	--blue: #1976d2;
	--blue-700: #1360ad;
	--red: #b80000;
	--signal: #e3262b;
	--ink: #16132b;
	--text: #3a384f;
	--muted: #6c6a82;
	--line: #e4e2ee;
	--soft: #f5f4fa;
	--white: #fff;

	--f-display: "Archivo", "Arial Narrow", sans-serif;
	--f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 1px 2px rgba(22, 19, 43, .06), 0 10px 30px -12px rgba(22, 19, 43, .18);
	--shadow-lg: 0 30px 70px -25px rgba(10, 6, 40, .55);
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong { color: var(--ink); font-weight: 650; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: 780px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Elementi ricorrenti ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: .55em;
	font-family: var(--f-mono); font-size: .75rem; font-weight: 500;
	letter-spacing: .12em; text-transform: uppercase;
	color: var(--blue); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--signal); }
.eyebrow--light { color: #c9c3ee; }
.eyebrow .icon, .eyebrow .live-dot { order: -1; }
.eyebrow:has(.icon)::before, .eyebrow:has(.live-dot)::before { display: none; }

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--soft { background: var(--soft); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 760; font-stretch: 108%; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: end; }
.section-head__aside { color: var(--muted); margin: 0; }
.lead { font-size: 1.15rem; color: var(--text); }

.live-dot {
	position: relative; width: 8px; height: 8px; border-radius: 50%;
	background: var(--signal); flex: none; display: inline-block;
}
.live-dot::after {
	content: ""; position: absolute; inset: -4px; border-radius: 50%;
	border: 2px solid var(--signal); opacity: 0; animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 80%, 100% { transform: scale(1.8); opacity: 0; } }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Pulsanti ---------- */
.btn {
	--b: var(--blue);
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 48px; padding: .7em 1.35em; border-radius: 999px;
	font: 650 1rem/1.1 var(--f-body); text-decoration: none; cursor: pointer;
	border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 56px; padding-inline: 1.6em; font-size: 1.05rem; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(25, 118, 210, .7); }
.btn--primary:hover { background: var(--blue-700); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--indigo); }
.btn--light:hover { background: var(--indigo-soft); color: var(--indigo); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }

/* ---------- Topbar + header ---------- */
.topbar { background: var(--night); color: #d9d5f3; font-size: .875rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: .6em; }
.topbar__sep { opacity: .4; }
.topbar__contacts { gap: 22px !important; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .icon { color: #9d93e0; }

.site-header {
	position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(22, 19, 43, .5); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { width: auto; height: 62px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
	position: relative; display: block; padding: .55em .85em; border-radius: 10px;
	font-weight: 600; color: var(--ink); text-decoration: none;
}
.nav-list a::after {
	content: ""; position: absolute; left: .85em; right: .85em; bottom: .3em; height: 2px;
	background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav__cta { min-height: 44px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; color: #e6e3fa;
	background:
		radial-gradient(900px 500px at 85% 15%, rgba(25, 118, 210, .35), transparent 60%),
		radial-gradient(700px 500px at 0% 100%, rgba(184, 0, 0, .18), transparent 60%),
		linear-gradient(160deg, var(--night-2), var(--night) 70%);
	padding-top: clamp(56px, 8vw, 104px);
}
.hero__grid-bg {
	position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image:
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__eyebrow .icon { color: var(--signal); }
.hero__title {
	color: #fff; font-size: clamp(2.6rem, 6.4vw, 5.1rem); font-weight: 800; font-stretch: 112%;
	line-height: .98; letter-spacing: -.025em; margin-bottom: .45em;
}
.hero__title em { font-style: normal; color: #fff; position: relative; white-space: nowrap; }
.hero__title em::after {
	content: ""; position: absolute; left: 0; right: .2em; bottom: .02em; height: .14em;
	background: var(--signal); border-radius: 2px; transform-origin: left;
	animation: underline 1s .5s var(--ease) both;
}
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); max-width: 560px; color: #cfcaee; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__device { margin: 0; justify-self: center; position: relative; }
.device-card {
	position: relative; width: min(360px, 78vw); background: #fff; border-radius: var(--radius-lg);
	padding: 22px 22px 18px; box-shadow: var(--shadow-lg); transform: rotate(2.5deg);
	animation: floaty 7s ease-in-out infinite;
}
.device-card img { width: 100%; aspect-ratio: 631 / 640; object-fit: contain; object-position: center 30%; }
.device-card figcaption { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
.device-card figcaption strong { font: 750 1.35rem/1.1 var(--f-display); font-stretch: 110%; color: var(--ink); }
.device-card__brand { font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.device-card__tag {
	position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px;
	background: var(--night); color: #fff; font: 500 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
	padding: 8px 12px; border-radius: 999px;
}
@keyframes floaty { 0%, 100% { transform: rotate(2.5deg) translateY(0); } 50% { transform: rotate(1.5deg) translateY(-10px); } }

.signal-rings { position: absolute; pointer-events: none; }
.signal-rings span {
	position: absolute; border-radius: 50%; border: 2px solid rgba(227, 38, 43, .55);
	border-left-color: transparent; border-bottom-color: transparent; transform: rotate(-45deg);
	animation: ring 3.6s var(--ease) infinite;
}
.signal-rings span:nth-child(1) { inset: 35%; }
.signal-rings span:nth-child(2) { inset: 18%; animation-delay: .35s; }
.signal-rings span:nth-child(3) { inset: 0; animation-delay: .7s; }
@keyframes ring { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }
.signal-rings--hero { width: 520px; height: 520px; right: -60px; top: -40px; }

.facts {
	position: relative; list-style: none; margin: clamp(48px, 7vw, 88px) 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .12);
}
.facts li { padding: 26px 20px 30px 0; display: flex; flex-direction: column; gap: 4px; }
.facts li + li { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .12); }
.facts strong { color: #fff; font: 760 1.5rem/1.1 var(--f-display); font-stretch: 112%; }
.facts span { font-size: .92rem; color: #a9a3d6; }

/* ---------- Prodotto in evidenza ---------- */
.product { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.product__frame {
	position: relative; background: var(--soft); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px);
}
.product__frame::before, .product__frame::after {
	content: ""; position: absolute; width: 38px; height: 38px; border: 3px solid var(--signal);
}
.product__frame::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.product__frame::after { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.product__frame img { mix-blend-mode: multiply; margin-inline: auto; max-height: 520px; width: auto; }
.spec-sheet { margin: 28px 0; border-top: 1px solid var(--line); }
.spec-sheet div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-sheet dt { font: 500 .75rem/1.6 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.spec-sheet dd { margin: 0; color: var(--ink); font-weight: 550; }
.product__note { color: var(--muted); }

/* ---------- Valori ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card {
	position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: 34px 30px 30px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.value-card::before {
	content: ""; position: absolute; left: 30px; right: 30px; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
	background: var(--signal); transform: scaleX(.18); transform-origin: left; transition: transform .45s var(--ease);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.value-card:hover::before { transform: scaleX(1); }
.value-card__num { position: absolute; top: 26px; right: 28px; font: 500 .8rem/1 var(--f-mono); color: var(--muted); letter-spacing: .1em; }
.value-card__icon, .service-card__icon {
	display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
	background: var(--indigo); color: #fff; margin-bottom: 22px;
}
.value-card__icon .icon, .service-card__icon .icon { width: 26px; height: 26px; }
.value-card h3, .service-card h3 { font-size: 1.35rem; font-weight: 720; font-stretch: 106%; }
.value-card p, .service-card p { font-size: .98rem; margin: 0; }

/* ---------- Linea Tyco ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { display: flex; flex-direction: column; }
.product-card__media {
	display: grid; place-items: center; height: 200px; padding: 22px; margin-bottom: 18px;
	background: linear-gradient(180deg, var(--soft), #fff); border: 1px solid var(--line); border-radius: var(--radius);
	transition: border-color .3s, box-shadow .3s;
}
.product-card__media img { max-height: 150px; width: auto; transition: transform .45s var(--ease); }
.product-card:hover .product-card__media { border-color: #cfcbe3; box-shadow: var(--shadow); }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__type { font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.product-card h3 { font-size: 1.15rem; font-weight: 720; line-height: 1.2; }
.product-card p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- Fascia CTA ---------- */
.cta-band {
	position: relative; overflow: hidden; color: #fff;
	background: linear-gradient(120deg, var(--indigo), var(--night) 70%);
}
.cta-band::before {
	content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--signal);
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: clamp(48px, 6vw, 72px); }
.cta-band__title { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 760; font-stretch: 108%; margin: 0; max-width: 620px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ---------- Pagine interne ---------- */
.page-hero {
	position: relative; overflow: hidden; color: #e6e3fa;
	background: radial-gradient(700px 360px at 90% 0%, rgba(25, 118, 210, .3), transparent 60%), linear-gradient(160deg, var(--night-2), var(--night));
	padding-block: clamp(56px, 8vw, 96px);
}
.page-hero .signal-rings { width: 380px; height: 380px; right: -40px; top: -60px; }
.page-hero__inner { position: relative; }
.page-hero__title { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; max-width: 820px; }
.page-hero__lead { color: #cfcaee; font-size: 1.15rem; max-width: 620px; margin: 0; }

.mission { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.mission__media { margin: 0; }
.mission__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.checklist .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--indigo-soft); color: var(--indigo); stroke-width: 2.5; }

.partner-strip { border-block: 1px solid var(--line); padding-block: 28px; background: #fff; }
.partner-strip img { margin-inline: auto; max-height: 120px; width: auto; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { background: #fff; border-radius: var(--radius-lg); padding: 32px 30px; border: 1px solid var(--line); }

/* ---------- Contatti ---------- */
.section--contact { background: var(--soft); padding-top: 0; }
.contact { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: start; margin-top: clamp(-96px, -7vw, -56px); position: relative; }
.contact__form { background: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 48px); box-shadow: var(--shadow-lg); }
.contact__title { font-size: 1.9rem; font-weight: 780; font-stretch: 110%; }
.contact__intro { color: var(--muted); margin-bottom: 26px; }
.contact__info { display: grid; gap: 14px; }
.info-card {
	display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 2px; align-items: center;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: inherit; text-decoration: none;
	transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
a.info-card:hover { border-color: #cfcbe3; transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.info-card__icon { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--indigo-soft); color: var(--indigo); }
.info-card__label { font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.info-card__value { font-weight: 650; color: var(--ink); line-height: 1.35; word-break: break-word; }
.info-card--primary { background: var(--indigo); border-color: var(--indigo); }
.info-card--primary .info-card__icon { background: rgba(255, 255, 255, .12); color: #fff; }
.info-card--primary .info-card__label { color: #b9b1ea; }
.info-card--primary .info-card__value { color: #fff; font-size: 1.25rem; font-family: var(--f-display); font-stretch: 110%; }
a.info-card--primary:hover { border-color: var(--indigo); }
.info-card--map .link-arrow { grid-column: 2; margin-top: 8px; font-size: .95rem; }

/* Modulo Contact Form 7 */
.wpcf7 form { display: grid; gap: 16px; }
.wpcf7 form > p, .wpcf7 form .row { margin: 0; display: contents; }
.wpcf7 .form-group { margin: 0; }
.wpcf7 label { display: grid; gap: 7px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
	width: 100%; font: 400 1rem/1.5 var(--f-body); color: var(--ink);
	background: var(--soft); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 16px;
	transition: border-color .2s, background .2s, box-shadow .2s;
}
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(25, 118, 210, .15); }
.wpcf7 .input-icon { display: none; }
.wpcf7 .wpcf7-acceptance label, .wpcf7 .wpcf7-list-item label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .92rem; color: var(--text); }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); }
.wpcf7 form br { display: none; }
.dm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wpcf7 .wpcf7-acceptance a { font-weight: 600; }
.wpcf7 label .optional { font-weight: 400; color: var(--muted); }
.wpcf7 input[type="submit"], .wpcf7 button {
	justify-self: start; min-height: 54px; padding: 0 1.8em; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--blue); color: #fff; font: 650 1.02rem/1 var(--f-body); box-shadow: 0 10px 24px -10px rgba(25, 118, 210, .7);
	transition: background .2s, transform .2s var(--ease);
}
.wpcf7 input[type="submit"]:hover, .wpcf7 button:hover { background: var(--blue-700); transform: translateY(-1px); }
.wpcf7 .wpcf7-spinner { margin: 0 0 0 12px; }
.wpcf7 .wpcf7-not-valid { border-color: var(--red) !important; }
.wpcf7 .wpcf7-not-valid-tip { color: var(--red); font-size: .85rem; margin-top: 6px; }
.wpcf7 form .wpcf7-response-output { margin: 4px 0 0; padding: 14px 16px; border-radius: 12px; border-width: 1.5px; font-size: .95rem; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #1f9d55; background: #ecf8f1; color: #14532d; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: var(--red); background: #fdf0f0; color: #7a0000; }

/* Testo lungo (privacy, ecc.) */
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose figure { margin: 1.2em 0 1.6em; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--soft); }
.prose code { font-family: var(--f-mono); font-size: .85em; background: var(--soft); padding: 2px 6px; border-radius: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #b3add6; font-size: .97rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr 1fr; gap: 40px; padding-block: clamp(56px, 7vw, 88px); }
.site-footer__logo { display: inline-block; background: #fff; border-radius: 16px; padding: 12px 16px; margin-bottom: 18px; }
.site-footer__logo img { height: 66px; width: auto; }
.site-footer__brand p { max-width: 300px; margin: 0; }
.site-footer__title { font: 500 .75rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 8px 0 20px; }
.site-footer__links, .site-footer__contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #e8e5fa; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__contacts li, .site-footer__address { display: flex; gap: 12px; align-items: flex-start; }
.site-footer .icon { color: #8a80d6; margin-top: .25em; }
.site-footer__address { margin-bottom: 14px; }
.site-footer .link-arrow { color: #fff; font-size: .95rem; }
.site-footer .link-arrow .icon { margin: 0; color: var(--signal); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); position: relative; }
.site-footer__bottom::before { content: ""; position: absolute; left: 0; top: -1px; width: 120px; height: 2px; background: var(--signal); }
.site-footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; font-size: .88rem; }
.site-footer__bottom p { margin: 0; }

.site-footer__legal { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: #e8e5fa; cursor: pointer; }
.link-button:hover { color: #fff; text-decoration: underline; }

/* ---------- Banner cookie ---------- */
.cookie-banner {
	position: fixed; left: 16px; bottom: 16px; z-index: 80; width: min(440px, calc(100vw - 32px));
	background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: 24px 24px 20px;
	box-shadow: 0 30px 70px -20px rgba(10, 6, 40, .45), 0 0 0 1px var(--line);
	opacity: 0; transform: translateY(12px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner::before { content: ""; position: absolute; left: 24px; top: 0; width: 48px; height: 3px; background: var(--signal); border-radius: 0 0 3px 3px; }
.cookie-banner__title { font: 760 1.15rem/1.2 var(--f-display); font-stretch: 108%; color: var(--ink); margin: 0 32px 8px 0; }
.cookie-banner__text { font-size: .93rem; margin: 0 0 18px; }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie-banner__actions .btn { min-height: 46px; }
.cookie-banner__close {
	position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center;
	border: 0; border-radius: 10px; background: var(--soft); color: var(--ink); cursor: pointer;
}
.cookie-banner__close:hover { background: var(--indigo-soft); }
@media (max-width: 960px) { .cookie-banner { bottom: 88px; } }

/* ---------- Pulsante chiamata (mobile) ---------- */
.call-fab {
	position: fixed; right: 16px; bottom: 16px; z-index: 60; display: none; align-items: center; gap: 8px;
	background: var(--signal); color: #fff; text-decoration: none; font-weight: 700;
	padding: 14px 20px; border-radius: 999px; box-shadow: 0 14px 30px -10px rgba(184, 0, 0, .7);
}
.call-fab:hover { color: #fff; }

/* ---------- Animazioni di comparsa ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.hero__copy > * { animation: rise .8s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.products { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
	.topbar__status .topbar__sep, .topbar__area { display: none; }
	.nav-toggle {
		display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
		border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
	}
	.nav-toggle .icon { width: 24px; height: 24px; }
	.nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
	.main-nav {
		position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px;
		background: #fff; padding: 16px var(--gutter) 24px; border-bottom: 1px solid var(--line);
		box-shadow: 0 20px 30px -20px rgba(22, 19, 43, .35); display: none;
	}
	.main-nav.is-open { display: flex; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.1rem; }
	.nav-list a::after { display: none; }
	.nav-list a[aria-current="page"] { color: var(--blue); }

	.hero__inner, .product, .mission, .contact, .section-head--split { grid-template-columns: 1fr; }
	.hero__device { order: 2; }
	.signal-rings--hero { width: 360px; height: 360px; right: -140px; }
	.facts { grid-template-columns: 1fr 1fr; }
	.facts li:nth-child(3) { padding-left: 0; border-left: 0; }
	.facts li:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .12); }
	.values, .services { grid-template-columns: 1fr; }
	.cta-band__inner { flex-direction: column; align-items: flex-start; }
	.contact { margin-top: -40px; }
	.call-fab { display: inline-flex; }
	body { padding-bottom: 72px; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
	body { font-size: 1rem; }
	.topbar__contacts a:last-child { display: none; }
	.topbar__inner { min-height: 38px; font-size: .82rem; }
	.site-header__inner { min-height: 72px; }
	.brand img { height: 50px; }
	.hero__title em { white-space: normal; }
	.hero__actions .btn { width: 100%; }
	.products { grid-template-columns: 1fr; }
	.spec-sheet div { grid-template-columns: 1fr; gap: 4px; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.cta-band__actions, .cta-band__actions .btn { width: 100%; }
	.wpcf7 input[type="submit"], .wpcf7 button { width: 100%; justify-self: stretch; }
}
