/* ============================================================
   SPEEDCROSS — design system (demo corporate B2B)
   Aggancia i token brand (style.css) alle variabili di Blocksy
   e definisce i componenti del sito: header, hero, card, ponte
   Sempion, footer, pagine interne. Palette SOBRIA: fondi Gravel/
   bianco, testo Asphalt, Blue SOLO per CTA/link/accenti, Granite
   per secondari/bordi. ZT Nature unico font (400/700, NO 500).
   ============================================================ */

:root {
	--theme-font-family:         var(--scx-font);
	--theme-heading-font-family: var(--scx-font);
	--theme-button-font-family:  var(--scx-font);

	--theme-palette-color-1: var(--scx-blue);
	--theme-palette-color-2: var(--scx-granite);
	--theme-palette-color-3: var(--scx-asphalt);
	--theme-palette-color-4: var(--scx-gravel);

	--theme-text-color:         var(--scx-asphalt);
	--theme-link-initial-color: var(--scx-blue);

	/* Token derivati (solo child) */
	--scx-blue-dark:   var(--scx-blue);
	--scx-granite-30:  rgba(124, 124, 155, 0.3);
	--scx-container:   1180px;
	--scx-radius:      10px;
	--scx-section-pad: clamp(56px, 8vw, 104px);
}

/* Palette Speedcross dal brand book, anche nei controlli Blocksy. */
html:root {
	--theme-palette-color-1: var(--scx-blue);
	--theme-palette-color-2: var(--scx-blue);
	--theme-link-initial-color: var(--scx-blue);
	--theme-link-hover-color: var(--scx-blue);
	--theme-button-background-initial-color: var(--scx-blue);
	--theme-button-background-hover-color: var(--scx-blue);
	--theme-button-border-radius: 999px;
}

body {
	font-family: var(--scx-font);
	background: var(--scx-gravel);
	color: var(--scx-asphalt);
	font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--scx-font);
	font-weight: 700;
	color: var(--scx-asphalt);
}

/* ============================================================
   Layout di base
   ============================================================ */

.scx-container {
	width: 100%;
	max-width: var(--scx-container);
	margin-inline: auto;
	padding-inline: clamp(20px, 4vw, 32px);
}

.scx-section-title {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	line-height: 1.15;
	margin: 0 0 0.6em;
}

.scx-kicker {
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin: 0 0 0.8em;
	opacity: 0.85;
}

.scx-textlink {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--scx-blue);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}
.scx-textlink:hover { color: #fff; text-decoration: none; }

/* ============================================================
   Bottoni
   ============================================================ */

.scx-btn {
	display: inline-block;
	font-family: var(--scx-font);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1;
	padding: 13px 22px;
	border-radius: 999px;
	border: 2px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.scx-btn--lg { padding: 16px 30px; font-size: 1.05rem; }

.scx-btn--primary {
	background: var(--scx-blue);
	color: #fff;
}
.scx-btn--primary:hover {
	background: var(--scx-blue-dark);
	color: #fff;
}

.scx-btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.75);
}
.scx-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

/* Su fondo Blue o Asphalt */
.scx-btn--light {
	background: var(--scx-gravel);
	color: var(--scx-asphalt);
}
.scx-btn--light:hover {
	background: #fff;
	color: var(--scx-asphalt);
}

/* Outline su fondo chiaro */
.scx-btn--outline {
	background: transparent;
	color: var(--scx-blue);
	border-color: var(--scx-blue);
}
.scx-btn--outline:hover {
	background: var(--scx-blue);
	color: #fff;
}

/* ============================================================
   Header — logo + menu + CTA Sempion
   ============================================================ */

/* Logo: image replacement del site title testuale (nessun attachment
   in DB richiesto). Variante tricolore con payoff, dal brandbook. */
.ct-header .site-title,
.ct-header [class*="ct-panel"] .site-title {
	line-height: 1;
}

.ct-header .site-title a {
	display: block;
	width: 208px;
	height: 46px;
	background: url("../images/logo-speedcross-tricolore.png") no-repeat left center / contain;
	overflow: hidden;
	text-indent: -9999px;
	white-space: nowrap;
}

/* Se un domani viene impostato un logo vero (attachment), limita l'altezza. */
.ct-header .site-logo-container img { max-height: 52px; width: auto; }

.ct-header .site-description { display: none; }

/* Barra header su fondo chiaro, bordo sottile granite */
header[data-id="type-1"] [data-row] > .ct-container,
.ct-header {
	background: transparent;
}
[data-header] [data-row="middle"] {
	background: rgba(244, 244, 237, 0.97);
	border-bottom: 1px solid var(--scx-granite-30);
}

/* Voci menu */
.ct-header .ct-menu-link {
	font-weight: 700;
	color: var(--scx-asphalt);
}
.ct-header .ct-menu-link:hover { color: var(--scx-blue); }

/* CTA Sempion in coda al menu (vale sia per la voce custom-link del menu
   WP sia per il fallback del child) */
.scx-menu-cta { display: flex; align-items: center; }
.scx-menu-cta > a {
	background: var(--scx-blue);
	color: #fff !important;
	border-radius: 999px;
	padding: 0 18px !important;
	margin-left: 10px;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1;
	height: 40px !important;
	min-height: 0 !important;
	display: inline-flex;
	align-items: center;
	align-self: center;
}
.scx-menu-cta > a:hover {
	background: var(--scx-blue-dark);
}

/* Dropdown nativo Blocksy (menu WP): dal navy default alla palette brand
   (pannello bianco, testo Asphalt, hover Gravel/Blue) */
[data-header] .menu-item-has-children > .sub-menu {
	--dropdown-background: #fff;
	--dropdown-divider: 1px solid var(--scx-granite-30);
	background: #fff;
	border: 1px solid var(--scx-granite-30);
	border-radius: var(--scx-radius);
	box-shadow: 0 12px 30px rgba(20, 20, 20, 0.12);
}
[data-header] .menu-item-has-children > .sub-menu .ct-menu-link {
	color: var(--scx-asphalt);
}
[data-header] .menu-item-has-children > .sub-menu .ct-menu-link:hover {
	color: var(--scx-blue);
	background: var(--scx-gravel);
}

/* Dropdown del menu di fallback (markup del child, senza walker Blocksy).
   Il menu "vero" creato da scx-contenuti usa il dropdown nativo Blocksy. */
.scx-has-sub { position: relative; }
.scx-has-sub > .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 250px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--scx-granite-30);
	border-radius: var(--scx-radius);
	box-shadow: 0 12px 30px rgba(20, 20, 20, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	z-index: 99;
}
.scx-has-sub:hover > .sub-menu,
.scx-has-sub:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.scx-has-sub > .sub-menu .ct-menu-link {
	display: block;
	padding: 10px 18px;
	font-weight: 400;
}
.scx-has-sub > .sub-menu .ct-menu-link:hover {
	background: var(--scx-gravel);
	color: var(--scx-blue);
}

/* Nel pannello mobile Blocksy il fallback del child (ul.menu piatto) va
   reso come lista verticale con tap target generosi */
#offcanvas nav.mobile-menu > ul.menu,
.ct-panel-content nav.mobile-menu > ul.menu {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	gap: 2px;
}
#offcanvas nav.mobile-menu .menu-item { display: block; }
#offcanvas nav.mobile-menu .ct-menu-link {
	display: block;
	padding: 12px 0;
	font-size: 1.05rem;
	color: #fff;
}
#offcanvas nav.mobile-menu .ct-menu-link:hover { color: var(--scx-gravel); }

#offcanvas .scx-has-sub > .sub-menu,
.ct-panel-content .scx-has-sub > .sub-menu {
	display: block !important; /* Blocksy lo nasconde in attesa del toggle: il fallback lo mostra espanso */
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	box-shadow: none;
	border: 0;
	background: transparent;
	padding-left: 16px;
	min-width: 0;
}
#offcanvas .scx-has-sub > .sub-menu .ct-menu-link {
	font-weight: 400;
	font-size: 0.98rem;
	padding: 9px 0;
}
#offcanvas .scx-has-sub > .sub-menu .ct-menu-link:hover { background: transparent; }

#offcanvas .scx-menu-cta,
.ct-panel-content .scx-menu-cta { display: block; }
#offcanvas .scx-menu-cta > a,
.ct-panel-content .scx-menu-cta > a {
	margin: 14px 0 0;
	display: inline-flex;
	justify-content: center;
}

/* ============================================================
   HOME — hero
   ============================================================ */

.scx-hero {
	position: relative;
	min-height: clamp(480px, 72vh, 720px);
	display: flex;
	align-items: center;
	overflow: hidden;
}

.scx-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 38%;
}

.scx-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(20, 20, 20, 0.78) 0%, rgba(20, 20, 20, 0.55) 46%, rgba(20, 20, 20, 0.28) 100%);
}

.scx-hero__content {
	position: relative;
	z-index: 1;
	padding-block: 72px;
}

.scx-hero__title {
	color: #fff;
	font-size: clamp(2.4rem, 6vw, 4.2rem);
	line-height: 1.05;
	margin: 0 0 0.35em;
	max-width: 14ch;
}

.scx-hero__subtitle {
	color: var(--scx-gravel);
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	line-height: 1.55;
	max-width: 56ch;
	margin: 0 0 1.6em;
}

.scx-hero__brand {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	max-width: 100%;
	padding: 18px 24px;
	margin-bottom: 18px;
}
.scx-hero__brand img { width: 156px; height: auto; flex-shrink: 0; }
.scx-hero__brand span { font-size: 0.9rem; white-space: nowrap; }
@media (max-width: 480px) {
	.scx-hero__brand { width: 100%; gap: 12px; padding-inline: 18px; }
	.scx-hero__brand img { width: 140px; }
}

.scx-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

/* ============================================================
   HOME — striscia numeri
   ============================================================ */

.scx-numbers {
	background: var(--scx-asphalt);
	color: var(--scx-gravel);
	padding-block: 34px;
}

.scx-numbers__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.scx-numbers__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: center;
}

.scx-numbers__value {
	font-weight: 700;
	font-size: clamp(1.05rem, 2vw, 1.5rem);
	color: #fff;
}

.scx-numbers__label {
	font-size: 0.9rem;
	color: var(--scx-granite);
}

/* ============================================================
   HOME — card servizi
   ============================================================ */

.scx-services { padding-block: var(--scx-section-pad); }

.scx-services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(20px, 3vw, 32px);
	margin-top: 28px;
}

.scx-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--scx-granite-30);
	border-radius: var(--scx-radius);
	overflow: hidden;
	text-decoration: none;
	color: var(--scx-asphalt);
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.scx-card:hover {
	box-shadow: 0 16px 36px rgba(20, 20, 20, 0.12);
	transform: translateY(-3px);
}

.scx-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.scx-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.scx-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 24px 26px;
}

.scx-card__title {
	font-weight: 700;
	font-size: 1.2rem;
	line-height: 1.2;
}

.scx-card__text {
	font-size: 0.98rem;
	line-height: 1.55;
	color: #3d3d3d;
}

.scx-card__link {
	margin-top: auto;
	padding-top: 6px;
	font-weight: 700;
	color: var(--scx-blue);
	font-size: 0.95rem;
}

/* ============================================================
   HOME — ponte Sempion (requisito hard)
   ============================================================ */

.scx-bridge {
	background: var(--scx-blue);
	color: #fff;
	padding-block: var(--scx-section-pad);
}

.scx-bridge__grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}

.scx-bridge__text .scx-kicker { color: var(--scx-gravel); }

.scx-bridge__title {
	color: #fff;
	font-size: clamp(1.8rem, 3.6vw, 2.7rem);
	line-height: 1.12;
	margin: 0 0 0.5em;
}

.scx-bridge__copy {
	color: var(--scx-gravel);
	font-size: clamp(1rem, 1.6vw, 1.15rem);
	line-height: 1.6;
	max-width: 54ch;
	margin: 0 0 1.6em;
}

.scx-bridge__media img {
	width: 100%;
	max-height: 460px;
	object-fit: cover;
	object-position: center 60%;
	border-radius: var(--scx-radius);
	display: block;
	box-shadow: 0 18px 44px rgba(20, 20, 20, 0.28);
}

/* ============================================================
   HOME — fascia storia + CTA contatti
   ============================================================ */

.scx-story {
	background: #fff;
	padding-block: var(--scx-section-pad);
}

.scx-story__grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}

.scx-story__media img {
	width: 100%;
	max-height: 420px;
	object-fit: cover;
	border-radius: var(--scx-radius);
	display: block;
}

.scx-story__text p {
	font-size: 1.05rem;
	line-height: 1.65;
	margin: 0 0 1.2em;
	max-width: 52ch;
}

.scx-contact-cta {
	background: var(--scx-gravel);
	padding-block: var(--scx-section-pad);
}

.scx-contact-cta__inner {
	text-align: center;
	max-width: 720px;
}

.scx-contact-cta__title {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	margin: 0 0 0.3em;
}

.scx-contact-cta__copy {
	color: #3d3d3d;
	font-size: 1.1rem;
	margin: 0 0 1.5em;
}

/* ============================================================
   Pagine interne (Gutenberg, contenuti di scx-contenuti)
   ============================================================ */

/* Hero basso riusabile: gruppo con classe scx-page-hero (+ eventuale
   immagine di sfondo via cover block) */
.scx-page-hero {
	background: var(--scx-asphalt);
	color: #fff;
	padding-block: clamp(48px, 7vw, 84px);
}
.scx-page-hero h1 {
	color: #fff;
	font-size: clamp(2rem, 4.5vw, 3.2rem);
	margin: 0 0 0.25em;
}
.scx-page-hero p {
	color: var(--scx-gravel);
	font-size: clamp(1rem, 1.8vw, 1.2rem);
	max-width: 58ch;
	margin: 0;
}

/* Cover block usato come hero fotografico */
.wp-block-cover.scx-page-hero { padding-block: clamp(64px, 9vw, 120px); }

/* Tipografia del contenuto pagina */
.entry-content h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 1.8em; }
.entry-content h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-top: 1.4em; }
.entry-content p, .entry-content li { line-height: 1.65; }

/* CTA Gutenberg: stessa forma a pillola dei pulsanti del sito. */
.entry-content .wp-block-button .wp-block-button__link {
	border-radius: 999px;
	font-family: var(--scx-font);
	font-weight: 700;
}
.entry-content {
	--theme-link-initial-color: var(--scx-blue);
	--theme-link-hover-color: var(--scx-blue);
	--theme-button-background-initial-color: var(--scx-blue);
	--theme-button-background-hover-color: var(--scx-blue);
}
.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background-color: var(--scx-blue);
	color: #fff;
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--scx-blue);
	border-color: var(--scx-blue);
}

/* Step numerati (Assemblaggio): ol con classe scx-steps */
ol.scx-steps {
	list-style: none;
	counter-reset: scx-step;
	padding: 0;
	margin: 1.5em 0;
	display: grid;
	gap: 16px;
}
ol.scx-steps > li {
	counter-increment: scx-step;
	position: relative;
	background: #fff;
	border: 1px solid var(--scx-granite-30);
	border-radius: var(--scx-radius);
	padding: 20px 24px 20px 76px;
	line-height: 1.55;
}
ol.scx-steps > li::before {
	content: counter(scx-step);
	position: absolute;
	left: 22px;
	top: 50%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--scx-blue);
	color: #fff;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Accordion FAQ: details/summary (niente JS) */
.scx-faq details {
	background: #fff;
	border: 1px solid var(--scx-granite-30);
	border-radius: var(--scx-radius);
	margin-bottom: 12px;
	overflow: hidden;
}
.scx-faq summary {
	list-style: none;
	cursor: pointer;
	font-weight: 700;
	padding: 18px 52px 18px 22px;
	position: relative;
}
.scx-faq summary::-webkit-details-marker { display: none; }
.scx-faq summary::after {
	content: "+";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.4rem;
	font-weight: 400;
	color: var(--scx-blue);
	transition: transform 0.15s ease;
}
.scx-faq details[open] summary::after { content: "–"; }
.scx-faq details > *:not(summary) { padding: 0 22px 18px; line-height: 1.6; }
.scx-faq summary:hover { color: var(--scx-blue); }

/* Blocco dati contatti */
.scx-infobox {
	background: #fff;
	border: 1px solid var(--scx-granite-30);
	border-radius: var(--scx-radius);
	padding: 26px 30px;
	line-height: 1.7;
}

/* Form contatti statico (demo) */
.scx-form {
	display: grid;
	gap: 16px;
	max-width: 640px;
}
.scx-form label {
	font-weight: 700;
	font-size: 0.92rem;
	display: block;
	margin-bottom: 6px;
}
.scx-form input[type="text"],
.scx-form input[type="email"],
.scx-form textarea {
	width: 100%;
	font-family: var(--scx-font);
	font-size: 1rem;
	padding: 12px 14px;
	border: 1px solid var(--scx-granite);
	border-radius: 8px;
	background: #fff;
	color: var(--scx-asphalt);
}
.scx-form input:focus,
.scx-form textarea:focus {
	outline: 2px solid var(--scx-blue);
	outline-offset: 1px;
	border-color: var(--scx-blue);
}
.scx-form .scx-form__consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 0.9rem;
	line-height: 1.5;
}
.scx-form .scx-form__consent input { margin-top: 3px; }

.scx-form button,
.scx-form input[type="submit"] {
	justify-self: start;
	font-family: var(--scx-font);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1;
	padding: 15px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--scx-blue);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.scx-form button:hover,
.scx-form input[type="submit"]:hover { background: var(--scx-blue-dark); }

/* Nota "non vendiamo online" e simili */
.scx-note {
	background: var(--scx-gravel);
	border-left: 4px solid var(--scx-blue);
	padding: 16px 20px;
	border-radius: 0 8px 8px 0;
	line-height: 1.6;
}

/* ============================================================
   Footer (renderizzato dal child; quello di Blocksy è nascosto)
   ============================================================ */

.ct-footer { display: none; }

.scx-footer {
	--scx-blue: var(--scx-gravel);
	--scx-blue-dark: var(--scx-gravel);
	--theme-palette-color-1: var(--scx-gravel);
	--theme-palette-color-2: var(--scx-gravel);
	--theme-link-initial-color: var(--scx-gravel);
	--theme-link-hover-color: var(--scx-gravel);
	background: var(--scx-asphalt);
	color: var(--scx-gravel);
}

.scx-footer__grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 0.8fr 1fr;
	gap: clamp(28px, 4vw, 48px);
	padding-block: clamp(48px, 6vw, 72px);
}

.scx-footer__brand img {
	width: 220px;
	height: auto;
	display: block;
	margin-bottom: 12px;
}

.scx-footer__payoff {
	color: var(--scx-granite);
	font-size: 0.95rem;
	margin: 0;
}

.scx-footer__title {
	color: #fff;
	font-size: 1rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0 0 0.9em;
}

.scx-footer__col p {
	line-height: 1.7;
	margin: 0 0 1em;
	color: var(--scx-gravel);
}

.scx-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}
.scx-footer__menu a,
.scx-footer__legal a {
	color: var(--scx-gravel);
	text-decoration: none;
}
.scx-footer__menu a:hover,
.scx-footer__legal a:hover {
	color: var(--scx-gravel);
	text-decoration: underline;
}
.scx-footer .scx-btn--light,
.scx-footer .scx-btn--light:hover {
	background: var(--scx-gravel);
	color: var(--scx-asphalt);
}

.scx-footer__legal {
	border-top: 1px solid rgba(244, 244, 237, 0.14);
	padding-block: 18px;
	font-size: 0.88rem;
	color: var(--scx-granite);
}

.scx-footer__legal-row {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

.scx-footer__note { color: var(--scx-granite); }

/* ============================================================
   Responsive — 1024 / 768 / 375
   ============================================================ */

@media (max-width: 1024px) {
	.scx-services__grid { grid-template-columns: repeat(3, 1fr); }
	.scx-footer__grid { grid-template-columns: 1fr 1fr; }
	.ct-header .site-title a { width: 180px; height: 40px; }
}

@media (max-width: 768px) {
	.scx-hero { min-height: 66vh; }
	.scx-hero__overlay {
		background: linear-gradient(180deg, rgba(20, 20, 20, 0.72) 0%, rgba(20, 20, 20, 0.5) 100%);
	}
	.scx-numbers__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.scx-services__grid { grid-template-columns: 1fr; }
	.scx-bridge__grid,
	.scx-story__grid { grid-template-columns: 1fr; }
	.scx-bridge__media { order: -1; }
	.scx-bridge__media img { max-height: 320px; object-position: center 55%; }
	.scx-story__media img { max-height: 300px; }
}

@media (max-width: 480px) {
	.scx-hero__actions .scx-btn { width: 100%; text-align: center; }
	.scx-numbers__grid { grid-template-columns: 1fr 1fr; }
	.scx-footer__grid { grid-template-columns: 1fr; }
	.scx-footer__legal-row { flex-direction: column; }
	.ct-header .site-title a { width: 165px; height: 37px; }
}


/* Brand book Speedcross: ZT Nature anche nei componenti di Blocksy.
   I pesi distribuiti nel progetto sono Regular 400 e Bold 700. */
#header .site-title a,
#header .ct-menu-link,
#offcanvas .ct-menu-link,
#offcanvas .menu-item > a {
    font-family: var(--scx-font);
    font-weight: 700;
}
#header button,
#offcanvas button,
.entry-content input,
.entry-content select,
.entry-content textarea,
.entry-content button {
    font-family: var(--scx-font);
}

.entry-content figcaption,
.entry-content .wp-element-caption {
    font-family: var(--scx-font);
    font-weight: 400;
}


/* Onda Sempion: decorazione dietro i contenuti, senza intercettare i clic. */
.scx-bridge {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.scx-bridge__grid { position: relative; z-index: 1; }
.scx-particle-wave {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: .8;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.15) 30%, #000 75%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.15) 30%, #000 75%);
}
@media (max-width: 768px) {
    .scx-particle-wave {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, rgba(0,0,0,.3) 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, rgba(0,0,0,.3) 100%);
        opacity: .55;
    }
}


/* Feedback cliente 21 ottobre: produzione, rete e punto vendita. */
.scx-card__media--pending {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
    background: var(--scx-gravel);
    color: var(--scx-asphalt);
    border-bottom: 1px solid var(--scx-granite-30);
}
.scx-card__media--pending strong,
.scx-card__media--pending small { display: block; }
.scx-card__media--pending strong { font-size: 1.1rem; }
.scx-card__media--pending small { margin-top: 10px; font-size: .9rem; color: var(--scx-asphalt); }
.scx-shop-photo-pending {
    min-height: 260px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    background: var(--scx-gravel);
    color: var(--scx-asphalt);
    border: 1px dashed var(--scx-granite);
    border-radius: var(--scx-radius);
    margin: 28px 0;
}
.scx-shop-photo-pending strong { font-size: 1.3rem; }
.scx-dealer-band { padding-block: clamp(40px,5vw,64px); }
.scx-dealer-note {
    border-left: 5px solid var(--scx-blue);
    background: #fff;
    padding: clamp(24px,4vw,44px);
    border-radius: 0 var(--scx-radius) var(--scx-radius) 0;
    margin-block: 28px;
}
.scx-dealer-note h2 { margin: 0 0 16px; font-size: clamp(1.5rem,3vw,2.1rem); }
.scx-dealer-note p:not(.scx-kicker) { max-width: 72ch; line-height: 1.65; }
.scx-dealer-note .scx-kicker { color: var(--scx-blue); }
.scx-production-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-block: 30px; }
.scx-production-photo { margin: 0; }
.scx-production-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 38%; border-radius: var(--scx-radius); display: block; }
.scx-production-photo figcaption { font-family: var(--scx-font); font-weight: 400; font-size: .9rem; margin-top: 10px; color: var(--scx-asphalt); }
@media (max-width: 600px) {
    .scx-production-gallery { grid-template-columns: 1fr; }
    .scx-dealer-note .scx-btn { max-width: 100%; line-height: 1.35; }
}

/* Approved portrait photography: preserve operators and full working gestures. */
.scx-production-gallery--portrait img { aspect-ratio: 4 / 5; object-position: center; }

/* Client drone photographs — 2026-10-28. Original photos with a separate location marker. */
.scx-drone-photo { margin: 28px 0; }
.scx-drone-photo > img, .scx-drone-frame > img { width:100%;height:auto;display:block;border-radius:var(--scx-radius); }
.scx-drone-photo figcaption { margin-top:10px;font:400 .9rem/1.5 var(--scx-font);color:var(--scx-asphalt); }
.scx-drone-frame { position:relative;isolation:isolate; }
.scx-drone-pointer { position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible; }
.scx-drone-marker { position:absolute;left:2%;top:2%;display:flex;flex-direction:column;align-items:center;gap:3px;padding:clamp(5px,1vw,10px) clamp(8px,1.5vw,16px);border-radius:8px;background:#5353c9;color:white;box-shadow:0 2px 10px #0003; }
.scx-drone-marker img { width:clamp(90px,15vw,150px);height:auto;display:block;border-radius:0; }
.scx-drone-marker span { font:600 clamp(10px,1.3vw,14px)/1.25 var(--scx-font);letter-spacing:.02em; }

/* Photo stylesheet cache refreshed: 2026-10-28. */

@media (max-width:600px) { .scx-drone-marker { left:auto;right:2%; }  }