/*
Theme Name: Coletta Moto Child
Description: Tema figlio di Hello Elementor per il concessionario Coletta Moto. Palette rosso e nero dal logo.
Author: Coletta Moto
Template: hello-elementor
Version: 0.1.0
Text Domain: coletta-child
*/

/* Font caricati dal sito, nessuna chiamata a server esterni */
@font-face {
	font-family: "Anton";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/anton-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Anton";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/anton-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/barlow-condensed-500-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/barlow-condensed-500-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/barlow-condensed-600-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/barlow-condensed-600-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/barlow-condensed-700-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/barlow-condensed-700-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("assets/fonts/barlow-condensed-800-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("assets/fonts/barlow-condensed-800-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/inter-400-700-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/inter-400-700-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Brand kit: palette e font ufficiali del sito */
:root {
	--cm-red: #E60018;
	--cm-red-hover: #BC0014;
	--cm-black: #0B0B0B;
	--cm-carbon: #242424;
	--cm-ink: #1d1d1d;
	--cm-grey: #777777;
	--cm-line: #dcdcde;
	--cm-soft: #F5F5F5;
	--cm-white: #FFFFFF;
	--font-heading: "Anton", sans-serif;
	--font-subheading: "Barlow Condensed", sans-serif;
	--font-secondary: "Barlow Condensed", sans-serif;
	--font-body: "Inter", sans-serif;
}

body {
	color: var(--cm-ink);
	background: var(--cm-white);
	font-family: var(--font-body);
	line-height: 1.6;
}

h1, h2 {
	font-family: var(--font-heading);
	color: var(--cm-black);
	text-transform: uppercase;
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: .01em;
}

h3, h4 {
	font-family: var(--font-subheading);
	color: var(--cm-black);
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: .02em;
}

a {
	color: var(--cm-red);
}

a:hover {
	color: var(--cm-black);
}

/* Intestazione */
.cm-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 32px;
	border-bottom: 3px solid var(--cm-red);
	background: var(--cm-white);
}

.cm-header .custom-logo {
	max-height: 64px;
	width: auto;
}

.cm-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cm-nav a {
	color: var(--cm-black);
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 14px;
}

.cm-nav a:hover {
	color: var(--cm-red);
}

/* Piè di pagina */
.cm-footer {
	margin-top: 64px;
	padding: 32px;
	background: var(--cm-black);
	color: #d6d6d6;
	font-size: 14px;
}

.cm-footer a {
	color: #ffffff;
}

.cm-footer .cm-footer-red {
	color: var(--cm-red);
	font-weight: 700;
}

/* Contenuti */
.cm-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 32px;
}

/* Pulsanti */
.cm-btn,
.wp-element-button,
button,
input[type="submit"] {
	background: var(--cm-red);
	color: var(--cm-white);
	border: 0;
	border-radius: 0;
	padding: 16px 28px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	cursor: pointer;
}

.cm-btn {
	display: inline-block;
	text-decoration: none;
	color: var(--cm-white);
}

.cm-btn:hover,
button:hover,
input[type="submit"]:hover {
	background: var(--cm-red-hover);
	color: var(--cm-white);
}

/* Caratteristiche in evidenza (blocco in cima alla scheda moto) */
.coletta-highlights {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 0;
	margin: 0 0 32px;
	border: 1px solid var(--cm-black);
}

.coletta-tile {
	padding: 20px 18px;
	border-right: 1px solid var(--cm-black);
	background: var(--cm-white);
}

.coletta-tile:last-child {
	border-right: 0;
}

.coletta-tile strong {
	display: block;
	font-size: 28px;
	font-weight: 900;
	color: var(--cm-black);
	line-height: 1.1;
}

.coletta-tile span {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--cm-grey);
	text-transform: uppercase;
	letter-spacing: .04em;
}

/* Scheda tecnica */
table.coletta-specs {
	width: 100%;
	max-width: 720px;
	border-collapse: collapse;
}

table.coletta-specs th,
table.coletta-specs td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--cm-line);
	text-align: left;
	font-size: 15px;
}

table.coletta-specs th {
	width: 45%;
	color: var(--cm-black);
	font-weight: 700;
}

/* Archivio catalogo */
.cm-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.cm-filters a {
	padding: 6px 12px;
	border: 1px solid var(--cm-black);
	color: var(--cm-black);
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.cm-filters a.is-active,
.cm-filters a:hover {
	background: var(--cm-red);
	border-color: var(--cm-red);
	color: var(--cm-white);
}

.cm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}

.cm-card {
	border: 1px solid var(--cm-line);
	background: var(--cm-white);
}

.cm-card img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
	background: var(--cm-soft);
}

.cm-card-body {
	padding: 16px;
}

.cm-card-body h3 {
	margin: 0 0 6px;
	font-size: 18px;
}

.cm-card-body h3 a {
	color: var(--cm-black);
	text-decoration: none;
}

.cm-card-body h3 a:hover {
	color: var(--cm-red);
}

.cm-card-meta {
	font-size: 13px;
	color: var(--cm-grey);
	margin: 0;
}

/* Titoli di sezione con filetto rosso */
.cm-section-title {
	display: inline-block;
	padding-bottom: 6px;
	border-bottom: 3px solid var(--cm-red);
	margin-bottom: 24px;
}

/* Home: direzione "name as monument" */
.cm-hero-monument {
	min-height: 92vh;
	display: flex;
	align-items: flex-end;
}

.cm-monument .elementor-heading-title {
	font-size: clamp(44px, 19vw, 300px);
	line-height: .85;
	letter-spacing: -.05em;
	color: var(--cm-white);
}

.cm-dove-line .elementor-heading-title {
	font-size: clamp(28px, 3.4vw, 52px);
	line-height: 1.15;
	text-transform: none;
	font-weight: 700;
	letter-spacing: 0;
}

.elementor-section.cm-hero > .elementor-container,
.elementor-section.cm-dove > .elementor-container,
.elementor-section.cm-photos > .elementor-container {
	max-width: 1180px;
}

.cm-photos .elementor-image img {
	width: 100%;
	height: 420px;
	object-fit: cover;
	display: block;
}

.cm-footer-red {
	color: var(--cm-white) !important;
}

.cm-empty a {
	color: var(--cm-black);
}

.cm-monument {
	font-size: clamp(44px, 19vw, 300px);
	line-height: .85;
	letter-spacing: -.05em;
	text-transform: none;
	font-weight: 800;
	margin: 0 0 24px -.04em;
	white-space: nowrap;
}

.cm-poster-row {
	font-size: clamp(56px, 9vw, 130px);
	line-height: .95;
	text-transform: uppercase;
	font-weight: 800;
	letter-spacing: -.02em;
	margin: 0;
	padding: 12px 0;
	border-bottom: 2px solid var(--cm-black);
}

.cm-poster-row a {
	color: var(--cm-black);
	text-decoration: none;
}

.cm-poster-row:hover a,
.cm-poster-row a:hover {
	color: var(--cm-red);
}

.cm-hero {
	background: var(--cm-black);
	color: var(--cm-white);
	padding: 96px 32px;
	border-bottom: 6px solid var(--cm-red);
}

.cm-hero-inner {
	max-width: 1180px;
	margin: 0 auto;
}

.cm-hero-kicker {
	color: var(--cm-red);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: 14px;
	margin: 0 0 16px;
}

.cm-hero h1 {
	color: var(--cm-white);
	font-size: clamp(36px, 6vw, 68px);
	line-height: 1.05;
	margin: 0 0 20px;
}

.cm-hero-text {
	max-width: 560px;
	font-size: 18px;
	color: #d6d6d6;
	margin: 0 0 32px;
}

.cm-btn-ghost {
	background: transparent;
	border: 2px solid var(--cm-white);
	color: var(--cm-white);
}

.cm-btn-ghost:hover {
	background: var(--cm-white);
	color: var(--cm-black);
}

.cm-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.cm-more {
	color: var(--cm-black);
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 14px;
}

.cm-empty {
	padding: 32px;
	background: var(--cm-soft);
	max-width: 720px;
}

.cm-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 0;
	border: 1px solid var(--cm-black);
}

.cm-tile {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 32px 28px;
	min-height: 180px;
	border-right: 1px solid var(--cm-black);
	text-decoration: none;
	color: var(--cm-black);
	background: var(--cm-white);
}

.cm-tile:last-child {
	border-right: 0;
}

.cm-tile:hover {
	box-shadow: inset 0 -4px 0 var(--cm-red);
}

.cm-tile-kicker {
	color: var(--cm-red);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: .08em;
}

.cm-tile strong {
	font-size: 22px;
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1.2;
}

.cm-tile-link {
	margin-top: auto;
	font-weight: 700;
	color: var(--cm-red);
}

.cm-dove {
	background: var(--cm-soft);
	padding: 48px 0;
	margin-top: 48px;
}

.cm-dove-inner {
	padding-top: 0;
	padding-bottom: 0;
}

@media (max-width: 720px) {
	.cm-hero {
		padding: 64px 20px;
	}
	.cm-tile {
		border-right: 0;
		border-bottom: 1px solid var(--cm-black);
	}
	.cm-header {
		flex-direction: column;
		align-items: flex-start;
		padding: 16px 32px;
	}
	.cm-wrap {
		padding: 20px 16px;
	}
	.coletta-tile {
		border-right: 0;
		border-bottom: 1px solid var(--cm-black);
	}
}

/* Loghi delle marche: stessa altezza, centrati, in una riga */
.cm-loghi .elementor-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 56px 80px;
	max-width: 1180px;
}

.cm-loghi .elementor-column {
	width: auto !important;
	flex: 0 0 auto;
}

.cm-loghi .cm-logo .elementor-widget-container {
	display: flex;
	justify-content: center;
}

.cm-loghi .cm-logo img {
	height: 56px;
	width: auto;
	max-width: none;
	object-fit: contain;
}

/* Home: centratura, movimento d'ingresso, feedback */
.elementor-section.cm-hero > .elementor-container,
.elementor-section.cm-dove > .elementor-container,
.elementor-section.cm-photos > .elementor-container,
.cm-loghi .elementor-container {
	margin-inline: auto;
	width: 100%;
}

.cm-card {
	border: 0;
	background: var(--cm-soft);
}

@keyframes cm-rise {
	from { opacity: 0; transform: translateY(28px); }
	to { opacity: 1; transform: none; }
}

.cm-monument .elementor-heading-title,
.cm-hero-text,
.cm-hero .elementor-button,
.cm-poster-row,
.cm-photos .elementor-image,
.cm-loghi .elementor-image {
	animation: cm-rise .9s cubic-bezier(.2, .7, .2, 1) both;
}

.cm-poster-row { animation-delay: .05s; }
.cm-photos .elementor-image { animation-delay: .15s; }
.cm-hero .elementor-button:nth-of-type(2) { animation-delay: .2s; }

.cm-btn,
.cm-hero .elementor-button,
.cm-tile-link,
.cm-more {
	transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.cm-btn:hover,
.cm-hero .elementor-button:hover {
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
	.cm-monument .elementor-heading-title,
	.cm-hero-text,
	.cm-hero .elementor-button,
	.cm-poster-row,
	.cm-photos .elementor-image,
	.cm-loghi .elementor-image {
		animation: none;
	}
	.cm-btn:hover,
	.cm-hero .elementor-button:hover {
		transform: none;
	}
}

/* Piè di pagina sulla stessa colonna del contenuto */
.cm-footer {
	padding-left: max(32px, calc(50% - 590px));
	padding-right: max(32px, calc(50% - 590px));
}

/* Card moto: tre dati in grande (cilindrata, potenza, peso) */
.cm-specs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 14px;
	border-top: 2px solid var(--cm-red);
}

.cm-spec {
	padding: 10px 0 0;
}

.cm-spec strong {
	display: block;
	font-size: 24px;
	font-weight: 900;
	color: var(--cm-black);
	line-height: 1;
}

.cm-spec span {
	font-size: 12px;
	color: var(--cm-grey);
	text-transform: uppercase;
	letter-spacing: .06em;
}

/* Striscia foto a tutta pagina: tre immagini affiancate, senza margini */
.elementor-section.cm-photos > .elementor-container {
	max-width: none;
	width: 100%;
	margin-inline: 0;
}

.elementor-section.cm-photos .elementor-column-gap-no > .elementor-row > .elementor-column > .elementor-column-wrap > .elementor-widget-wrap,
.elementor-section.cm-photos .elementor-container > .elementor-row > .elementor-column > .elementor-widget-wrap {
	padding: 0;
}

.cm-photos .elementor-image img {
	width: 100%;
	height: 72vh;
	min-height: 360px;
	object-fit: cover;
	display: block;
	border-radius: 0;
}

.cm-photos {
	margin: 0 !important;
}

/* Card moto: stessa altezza, foto intera al centro su fondo chiaro, testo allineato */
.cm-grid {
	align-items: stretch;
}

.cm-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.cm-card > a {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--cm-soft);
	padding: 16px;
}

.cm-card > a img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.cm-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 22px 20px 24px;
}

.cm-card-body .cm-specs {
	margin-top: auto;
}

/* Card bianche su fondo grigio chiaro */
.cm-card {
	background: var(--cm-white);
}

.cm-card > a {
	background: var(--cm-white);
}

.elementor-section.cm-moto {
	background: var(--cm-white);
}

/* Foto card: riempie il riquadro bianco, senza bande grigie */
.cm-card > a {
	background: var(--cm-white);
	padding: 0;
	overflow: hidden;
}

.cm-card > a img {
	object-fit: cover;
	object-position: center;
}

.cm-btn-ghost-red {
	background: var(--cm-white);
	color: var(--cm-red);
	border: 2px solid var(--cm-red);
	margin-right: 12px;
}

.cm-btn-ghost-red:hover {
	background: var(--cm-red);
	color: var(--cm-white);
}

/* Etichette della scheda: frase normale, leggibili */
.cm-spec span {
	text-transform: none;
	letter-spacing: 0;
	font-size: 14px;
	color: var(--cm-grey);
}

/* Telefono: la striscia foto resta sugli stessi margini del resto della pagina */
@media (max-width: 720px) {
	.elementor-section.cm-photos > .elementor-container {
		padding-inline: 32px;
		box-sizing: border-box;
	}
}

/* Galleria della scheda moto */
.cm-slider {
	margin: 24px 0 32px;
}

.cm-gallery figure {
	margin: 0;
	background: var(--cm-white);
}

.cm-gallery img {
	display: block;
	width: 100%;
	height: auto;
}

/* Slider foto della scheda: scorrimento a passi, con il dito o con i pulsanti */
.cm-gallery {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 4px;
}

.cm-gallery figure {
	flex: 0 0 min(80%, 640px);
	scroll-snap-align: start;
}

.cm-gallery:focus-visible {
	outline: 2px solid var(--cm-red);
	outline-offset: 4px;
}

.cm-slider-nav {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 12px;
}

.cm-slider-nav button {
	width: 48px;
	height: 48px;
	font-size: 20px;
	line-height: 1;
	padding: 0;
}

.cm-slider-nav button:focus-visible {
	outline: 2px solid var(--cm-red);
	outline-offset: 3px;
}

/* Testi della home: colonna di lettura, non a tutta larghezza */
.cm-intro-text,
.cm-servizi .elementor-text-editor {
	max-width: 60ch;
}

/* Home in Elementor: pulsanti, titoli e testi di marca anche sui widget Elementor */
body:is(.home, .page) .elementor-button {
	background: var(--cm-red) !important;
	color: var(--cm-white) !important;
	border: 0;
	border-radius: 0;
	font-family: var(--font-secondary);
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	padding: 16px 28px;
}

body:is(.home, .page) .elementor-button:hover {
	background: var(--cm-red-hover) !important;
}

body:is(.home, .page) .elementor-heading-title {
	font-family: var(--font-heading);
	font-weight: 400;
	text-transform: uppercase;
	color: var(--cm-black);
}

body:is(.home, .page) .elementor-heading-title a {
	color: inherit;
}

body:is(.home, .page) .cm-h-hero .elementor-heading-title,
body:is(.home, .page) .cm-h-banner .elementor-heading-title,
body:is(.home, .page) .cm-h-servizi .elementor-heading-title,
body:is(.home, .page) .cm-h-dove .elementor-heading-title,
body:is(.home, .page) .cm-h-intro .elementor-heading-title {
	color: var(--cm-white) !important;
}

body:is(.home, .page) .cm-h-hero .elementor-widget-container,
body:is(.home, .page) .cm-h-banner .elementor-widget-container,
body:is(.home, .page) .cm-h-servizi .elementor-widget-container,
body:is(.home, .page) .cm-h-dove .elementor-widget-container,
body:is(.home, .page) .cm-h-intro .elementor-widget-container {
	color: var(--cm-white);
}

/* Home Elementor, causa della striscia tagliata: il widget Shortcode di Elementor è largo il 116% della colonna. Lo riporto alla colonna */
body:is(.home, .page) .cm-h-catalogo .elementor-widget-shortcode,
body:is(.home, .page) .cm-h-usato .elementor-widget-shortcode {
	width: 100% !important;
	max-width: 100% !important;
	--container-widget-width: 100%;
}

/* Home Elementor, passo 1: larghezze delle sezioni. Sfondo a tutta larghezza, contenuto centrato a 1280 px */
body:is(.home, .page) .elementor-top-section > .elementor-container {
	max-width: 1280px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	padding-left: 32px;
	padding-right: 32px;
}

body:is(.home, .page) .cm-h-hero > .elementor-container,
body:is(.home, .page) .cm-h-banner > .elementor-container,
body:is(.home, .page) .cm-h-servizi > .elementor-container {
	max-width: 1280px;
}

body.home .cm-h-marche > .elementor-container,
body:is(.home, .page) .cm-h-catalogo > .elementor-container,
body:is(.home, .page) .cm-h-categorie > .elementor-container,
body:is(.home, .page) .cm-h-intro > .elementor-container,
body:is(.home, .page) .cm-h-dove > .elementor-container {
	max-width: 1280px;
}

body:is(.home, .page) .cm-h-categorie > .elementor-container {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

/* Catalogo e usato: card più grandi e più alte (pagina moto e scooter, pagina usato) */
.cm-grid {
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.cm-grid .cm-card > a {
	aspect-ratio: 1 / 1;
	height: auto;
}

/* Foto intera al centro del riquadro bianco: nessun ritaglio, tutte le card alla stessa altezza */
.cm-grid .cm-card > a img,
.cm-h-catalogo .cm-card > a img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	padding: 18px;
	box-sizing: border-box;
	background: var(--cm-white);
}

.cm-grid .cm-card-body {
	padding: 28px 24px 32px;
}

/* Nessuno sfondo grigio sotto le card usato e moto: tutto bianco, senza ombre */
.cm-grid,
.cm-grid .cm-card,
.cm-grid .cm-card > a,
.cm-grid .cm-card img,
.cm-grid .cm-card-body,
.cm-grid .cm-card-body * {
	background-color: var(--cm-white) !important;
	box-shadow: none !important;
}

.cm-grid .cm-card-body h3 {
	font-size: 26px;
}

@media (max-width: 1024px) {
	.cm-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.cm-grid {
		grid-template-columns: 1fr;
	}
}

/* Piè di pagina: logo, menu e social in una riga, copyright e link legali sotto */
.cm-footer {
	background: var(--cm-black);
	color: #d6d6d6;
	margin-top: 0;
	padding: 56px 32px 32px;
	font-size: 14px;
}

.cm-footer-top {
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
	padding-bottom: 32px;
	border-bottom: 1px solid #2a2a2a;
}

.cm-footer-logo {
	display: inline-block;
	background: var(--cm-white);
	padding: 10px 16px;
}

.cm-footer-logo img,
.cm-footer-logo .custom-logo {
	display: block;
	height: 56px;
	width: auto;
	max-width: 240px;
}

.cm-footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cm-footer-nav a {
	color: var(--cm-white);
	font-family: var(--font-secondary);
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
}

.cm-footer-nav a:hover {
	color: var(--cm-red);
}

.cm-footer-social {
	display: flex;
	gap: 20px;
}

.cm-footer-social a {
	color: var(--cm-white);
}

.cm-footer-social a:hover {
	color: var(--cm-red);
}

.cm-footer-social svg {
	display: block;
	width: 28px;
	height: 28px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cm-footer-bottom {
	max-width: 1280px;
	margin: 24px auto 0;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 13px;
	color: #9a9a9a;
}

.cm-footer-bottom p {
	margin: 0;
}

.cm-footer-bottom a {
	color: #d6d6d6;
}

/* Fascia del titolo in catalogo e scheda moto: stesso linguaggio della home */
.cm-page-band {
	/* a tutta larghezza anche dentro la colonna stretta della pagina */
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	box-sizing: border-box;
	background: var(--cm-black);
	color: var(--cm-white);
	padding: 80px 32px;
	border-bottom: 6px solid var(--cm-red);
}

.cm-page-band-inner {
	max-width: 1280px;
	margin: 0 auto;
}

.cm-page-band h1 {
	font-family: var(--font-heading);
	font-size: clamp(48px, 7vw, 96px);
	line-height: .95;
	color: var(--cm-white);
	margin: 0 0 16px;
}

.cm-page-band .cm-h-kicker {
	color: var(--cm-red);
}

.cm-page-band-testo {
	color: #d6d6d6;
	font-size: 18px;
	max-width: 56ch;
	margin: 0;
}

/* Home Elementor: spaziature e misure del brief (sezioni e colonne, nessuna migrazione a container) */
body:is(.home, .page) .cm-h-intro,
body:is(.home, .page) .cm-h-marche,
body:is(.home, .page) .cm-h-catalogo,
body:is(.home, .page) .cm-h-categorie,
body:is(.home, .page) .cm-h-servizi,
body:is(.home, .page) .cm-h-dove {
	padding-top: 80px;
	padding-bottom: 80px;
}

body:is(.home, .page) .cm-h-hero {
	min-height: 650px;
	padding-top: 0;
	padding-bottom: 96px;
}

body:is(.home, .page) .cm-h-hero .elementor-heading-title {
	font-family: var(--font-heading);
	font-size: 72px;
	line-height: .95;
	color: var(--cm-white);
}

body:is(.home, .page) .cm-h-banner {
	min-height: 500px;
	padding-top: 80px;
	padding-bottom: 80px;
}

@media (max-width: 1024px) {
	body:is(.home, .page) .cm-h-intro,
	body:is(.home, .page) .cm-h-marche,
	body:is(.home, .page) .cm-h-catalogo,
	body:is(.home, .page) .cm-h-categorie,
	body:is(.home, .page) .cm-h-servizi,
	body:is(.home, .page) .cm-h-dove {
		padding-top: 56px;
		padding-bottom: 56px;
	}
	body:is(.home, .page) .cm-h-catalogo .cm-gallery > .cm-card {
		flex-basis: calc((100% - 16px) / 2);
	}
}

@media (max-width: 560px) {
	body:is(.home, .page) .cm-h-intro,
	body:is(.home, .page) .cm-h-marche,
	body:is(.home, .page) .cm-h-catalogo,
	body:is(.home, .page) .cm-h-categorie,
	body:is(.home, .page) .cm-h-servizi,
	body:is(.home, .page) .cm-h-dove {
		padding-top: 40px;
		padding-bottom: 40px;
	}
	body:is(.home, .page) .cm-h-hero .elementor-heading-title {
		font-size: 44px;
	}
	body:is(.home, .page) .cm-h-catalogo .cm-gallery > .cm-card {
		flex-basis: 80%;
	}
}

/* Home Elementor: rosso del marchio su titoli e icone, velo scuro dietro i servizi */
body:is(.home, .page) .elementor-widget-heading .elementor-heading-title {
	display: inline-block;
	padding-bottom: 8px;
	border-bottom: 3px solid var(--cm-red);
}

body:is(.home, .page) .cm-h-hero .elementor-widget-heading .elementor-heading-title,
body:is(.home, .page) .cm-h-banner .elementor-widget-heading .elementor-heading-title,
body:is(.home, .page) .cm-h-dove .elementor-widget-heading .elementor-heading-title {
	border-bottom-color: var(--cm-red);
}

body:is(.home, .page) .cm-h-servizi {
	background: linear-gradient(to right, rgba(11,11,11,.92) 40%, rgba(11,11,11,.55)), url("assets/home/servizi-meccanico.webp") right center / cover no-repeat, var(--cm-black) !important;
}

body:is(.home, .page) .cm-h-servizio svg {
	stroke: var(--cm-red);
	width: 56px;
	height: 56px;
}

body:is(.home, .page) .cm-h-servizio h3 {
	color: var(--cm-red);
	font-size: 26px;
	margin: 0 0 12px;
}

body:is(.home, .page) .cm-h-servizio p {
	color: var(--cm-white);
	font-size: 17px;
	line-height: 1.5;
	margin: 0;
}

/* Home Elementor: sistemazioni di layout */
body.home .cm-h-marche > .elementor-container {
	flex-wrap: wrap;
}

body.home .cm-h-marche .elementor-column:first-child {
	width: 100% !important;
	flex: 0 0 100%;
	margin-bottom: 40px;
}

body.home .cm-h-marche .elementor-column:not(:first-child) {
	width: 25% !important;
	flex: 0 0 25%;
}

body:is(.home, .page) .cm-h-marche .elementor-widget-image img {
	display: block;
	width: 100%;
	height: 236px;
	object-fit: cover;
	object-position: center;
	border-radius: 16px;
}

body:is(.home, .page) .cm-h-categorie > .elementor-container {
	max-width: none;
	width: 100%;
	padding: 0;
}

body:is(.home, .page) .cm-h-categorie .elementor-column {
	position: relative;
	padding: 0 !important;
}

body:is(.home, .page) .cm-h-categorie .elementor-widget-image img {
	display: block;
	width: 100%;
	height: 480px;
	object-fit: cover;
}

body:is(.home, .page) .cm-h-categorie .elementor-widget-image {
	margin: 0;
}

body:is(.home, .page) .cm-h-categorie .elementor-widget-text-editor {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 36px 28px;
	background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0));
}

body:is(.home, .page) .cm-h-categorie .elementor-widget-text-editor,
body:is(.home, .page) .cm-h-categorie .elementor-widget-text-editor p {
	color: var(--cm-white);
	margin: 0;
}

body:is(.home, .page) .cm-h-categorie .elementor-widget-text-editor strong {
	display: block;
	color: var(--cm-red);
	font-family: var(--font-secondary);
	font-size: 32px;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	margin-bottom: 6px;
}

body:is(.home, .page) .cm-h-catalogo .cm-slider {
	display: flex;
	flex-direction: column;
}

body:is(.home, .page) .cm-h-catalogo .cm-slider-nav {
	order: -1;
	position: static;
	justify-content: flex-end;
	left: auto;
	right: auto;
	top: auto;
	margin: 0 0 16px;
}

body:is(.home, .page) .cm-h-catalogo .cm-gallery > .cm-card {
	flex: 0 0 calc((100% - 32px) / 3);
}

body:is(.home, .page) .cm-h-catalogo .cm-card > a {
	aspect-ratio: 1 / 1;
}

body:is(.home, .page) .cm-h-catalogo .cm-card-body {
	padding: 28px 24px 32px;
}

body:is(.home, .page) .cm-h-catalogo .cm-card h3 {
	font-size: 26px;
}

@media (max-width: 768px) {
	body:is(.home, .page) .cm-h-catalogo .cm-gallery > .cm-card {
		flex-basis: 80%;
	}
}

/* Home (front-page.php): hero a tutta altezza, sezioni a pagina piena, fondi alternati nero/bianco/rosso */
.cm-home {
	overflow-x: hidden;
}

.cm-h-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 32px;
}

.cm-h-title {
	font-size: clamp(28px, 3vw, 40px);
	margin: 0 0 32px;
	padding-bottom: 8px;
	border-bottom: 3px solid var(--cm-red);
	display: inline-block;
}

.cm-h-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	flex-wrap: wrap;
}

.cm-h-head .cm-h-title {
	margin-bottom: 32px;
}

.cm-h-head .cm-more {
	color: var(--cm-red) !important;
	opacity: 1 !important;
	font-family: var(--font-secondary);
	font-size: 16px;
	font-weight: 700;
}

.cm-h-hero {
	position: relative;
	min-height: 92vh;
	display: flex;
	align-items: flex-end;
	background: var(--cm-black) center / cover no-repeat;
	color: var(--cm-white);
	border-bottom: 6px solid var(--cm-red);
	padding: 0 32px 96px;
	box-sizing: border-box;
}

.cm-h-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.25));
}

.cm-h-hero-inner {
	position: relative;
	max-width: 1180px;
	width: 100%;
	margin: 0 auto;
}

.cm-h-kicker {
	color: var(--cm-red);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: 14px;
	margin: 0 0 12px;
}

.cm-h-hero h1 {
	color: var(--cm-white);
	font-size: clamp(56px, 9vw, 140px);
	line-height: .9;
	margin: 0 0 24px;
	letter-spacing: -.03em;
}

.cm-h-lead {
	font-size: clamp(18px, 1.6vw, 22px);
	color: #e6e6e6;
	margin: 0 0 32px;
}

.cm-h-intro {
	background: var(--cm-black);
	padding: 112px 32px;
	border-top: 12px solid var(--cm-red);
}

.cm-h-intro-inner {
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 48px;
	align-items: center;
}

.cm-h-intro h2 {
	color: var(--cm-white);
	font-size: clamp(44px, 6vw, 96px);
	line-height: .92;
	letter-spacing: -.03em;
	margin: 0;
}

.cm-h-intro p {
	color: var(--cm-white);
	font-size: clamp(18px, 1.6vw, 24px);
	line-height: 1.45;
	margin: 0;
	padding-left: 32px;
	border-left: 4px solid var(--cm-red);
}

.cm-h-marche {
	padding: 112px 0;
	background: var(--cm-white);
}

.cm-h-tiles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.cm-h-tile {
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--cm-black) center / cover no-repeat;
	text-decoration: none;
}

.cm-h-tile span {
	font-size: clamp(24px, 2.4vw, 36px);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .02em;
}

.cm-h-tile-logo {
	align-items: center;
	justify-content: center;
}

.cm-h-tile-logo img {
	width: 70%;
	height: auto;
}

.cm-h-tile:hover {
	box-shadow: inset 0 -6px 0 var(--cm-red);
}

.cm-h-catalogo {
	padding: 112px 0;
	background: var(--cm-white);
}

.cm-h-usato {
	background: var(--cm-white) !important;
}

.cm-h-catalogo .cm-gallery {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.cm-h-catalogo .cm-gallery::-webkit-scrollbar {
	display: none;
}

.cm-h-catalogo .cm-gallery > .cm-card {
	flex: 0 0 min(340px, 80%);
	scroll-snap-align: start;
}

/* Frecce ai lati del carosello, centrate in verticale, come nel mockup */
.cm-h-catalogo .cm-slider {
	position: relative;
}

.cm-h-catalogo .cm-slider-nav {
	position: absolute;
	top: 42%;
	left: -60px;
	right: -60px;
	display: flex;
	justify-content: space-between;
	pointer-events: none;
	margin: 0;
}

.cm-h-catalogo .cm-slider-nav button {
	pointer-events: auto;
	width: 44px;
	height: 44px;
	padding: 0;
	background: var(--cm-white);
	color: var(--cm-black);
	border: 1px solid var(--cm-line);
	font-size: 22px;
	line-height: 1;
}

.cm-h-catalogo .cm-slider-nav button:hover {
	background: var(--cm-red);
	border-color: var(--cm-red);
	color: var(--cm-white);
}

.cm-card-price {
	margin: 12px 0 0;
	font-weight: 900;
	color: var(--cm-red);
	font-size: 20px;
}

.cm-h-servizi {
	padding: 112px 0;
	background: linear-gradient(to right, rgba(11,11,11,.96) 40%, rgba(11,11,11,.55)), url("assets/home/servizi-meccanico.webp") right center / cover no-repeat, var(--cm-black);
	color: var(--cm-white);
}

.cm-h-servizi .cm-h-title {
	color: var(--cm-white);
	border-bottom-color: var(--cm-red);
}

.cm-h-servizi-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}

.cm-h-servizio img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
	margin-bottom: 20px;
}

/* Icone a linea bianca sopra ogni servizio */
.cm-h-servizio svg {
	display: block;
	width: 60px;
	height: 60px;
	margin-bottom: 20px;
	fill: none;
	stroke: var(--cm-white);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cm-h-servizio h3 {
	color: var(--cm-white);
	font-size: 22px;
	margin: 0 0 10px;
}

.cm-h-servizio p {
	color: #d6d6d6;
	margin: 0;
}

.cm-h-banner {
	position: relative;
	min-height: 320px;
	aspect-ratio: auto;
	max-height: none;
	display: flex;
	align-items: flex-end;
	background: var(--cm-black) center / cover no-repeat;
	color: var(--cm-white);
	padding: 96px 32px;
	box-sizing: border-box;
}

.cm-h-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
}

.cm-h-banner-inner {
	position: relative;
	max-width: 1180px;
	width: 100%;
	margin: 0 auto;
}

.cm-h-banner h2 {
	color: var(--cm-white);
	font-size: clamp(40px, 6vw, 88px);
	line-height: .95;
	margin: 0 0 24px;
}

.cm-h-dove {
	background: var(--cm-red);
	color: var(--cm-white);
	padding: 112px 0;
}

.cm-h-dove .cm-h-title {
	color: var(--cm-white);
	border-bottom-color: var(--cm-white);
}

.cm-h-dove p {
	color: var(--cm-white);
	font-size: 20px;
}

.cm-h-dove-grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 48px;
	align-items: start;
}

.cm-h-mappa {
	display: block;
	width: 100%;
	height: 420px;
	border: 0;
}

.cm-h-dove .cm-h-title {
	font-family: var(--font-heading);
	font-size: 32px;
}

.cm-h-dove-indirizzo {
	font-family: var(--font-body);
	font-size: 40px !important;
	font-weight: 700;
	line-height: 1.35 !important;
	margin: 0 0 32px !important;
}

.cm-nowrap {
	white-space: nowrap;
}

.cm-h-contatti {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px 32px;
}

.cm-h-contatti li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	margin: 0;
}

.cm-h-contatti li > span {
	font-weight: 400;
}

.cm-h-contatti li:last-child {
	grid-column: 1 / -1;
}

.cm-h-contatti svg {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin-top: 3px;
	fill: none;
	stroke: var(--cm-white);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cm-h-contatti a {
	color: var(--cm-white);
	text-decoration: underline;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

.cm-h-dove-btn {
	display: inline-flex;
	box-sizing: border-box;
	align-items: center;
	gap: 10px;
	height: 56px;
	padding: 0 28px;
	font-family: var(--font-secondary);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

@media (max-width: 560px) {
	.cm-h-contatti {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.cm-h-dove-indirizzo {
		font-size: 28px !important;
	}
}

.cm-btn-ghost {
	background: transparent;
	border: 2px solid var(--cm-white);
	color: var(--cm-white);
}

.cm-btn-ghost:hover {
	background: var(--cm-white);
	color: var(--cm-black);
}

/* Categorie: quattro immagini a fila, con titolo e frase sopra */
.cm-h-categorie {
	display: block;
	padding: 0;
}

.cm-h-cat {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 480px;
	padding: 36px 28px;
	box-sizing: border-box;
	background: var(--cm-black) center / cover no-repeat;
	color: var(--cm-white);
	text-decoration: none;
}

.cm-h-cat::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,0) 60%);
}

.cm-h-cat-titolo,
.cm-h-cat-testo {
	position: relative;
}

.cm-h-cat-titolo {
	font-family: var(--font-subheading);
	font-size: clamp(28px, 2.6vw, 40px);
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1;
}

.cm-h-cat-testo {
	font-size: 15px;
	margin-top: 6px;
	color: #e6e6e6;
}

.cm-h-cat:hover .cm-h-cat-titolo {
	color: var(--cm-red);
}

.cm-h-banner .cm-h-kicker {
	color: var(--cm-red);
}

.cm-h-banner-testo {
	font-size: clamp(16px, 1.4vw, 20px);
	color: #e6e6e6;
	margin: 0 0 24px;
}

@media (max-width: 900px) {
	.cm-h-categorie {
		grid-template-columns: repeat(2, 1fr);
	}
	.cm-h-dove-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 900px) {
	.cm-h-tiles,
	.cm-h-servizi-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.cm-h-intro-inner {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.cm-h-tiles,
	.cm-h-servizi-grid {
		grid-template-columns: 1fr;
	}
	.cm-h-wrap {
		padding: 0 20px;
	}
	.cm-h-hero,
	.cm-h-intro,
	.cm-h-banner {
		padding-left: 20px;
		padding-right: 20px;
	}
}

/* Home a pagine piene: ogni sezione occupa tutta la larghezza, con fondo alternato */
body:is(.home, .page) .elementor-section.cm-wrap > .elementor-container {
	max-width: none;
	width: 100%;
	padding: 0 max(32px, calc(50% - 590px));
	box-sizing: border-box;
}

body:is(.home, .page) .elementor-section.cm-wrap {
	max-width: none !important;
	padding: 112px 0 !important;
	margin: 0 !important;
}

/* Introduzione sotto l'hero: titolo a scala di manifesto, fascia rossa, testo più grande */
body:is(.home, .page) .cm-hero + .elementor-section {
	border-top: 12px solid var(--cm-red);
}

body:is(.home, .page) .cm-hero + .elementor-section .cm-section-title {
	display: block;
	border-bottom: 0;
	margin-bottom: 40px;
	padding-bottom: 0;
}

body:is(.home, .page) .cm-hero + .elementor-section {
	background: var(--cm-black) !important;
}

body:is(.home, .page) .cm-hero + .elementor-section .elementor-heading-title {
	font-size: clamp(44px, 7.4vw, 124px);
	line-height: .9;
	letter-spacing: -.03em;
	font-weight: 900;
	text-transform: uppercase;
	color: var(--cm-white) !important;
}

body:is(.home, .page) .cm-hero + .elementor-section p {
	font-size: clamp(20px, 1.8vw, 28px);
	line-height: 1.45;
	max-width: 36ch;
	color: var(--cm-white) !important;
}

/* Servizi: foto sopra titolo e testo di ogni colonna (immagini di repertorio con licenza aperta, crediti in assets/servizi/credits.json) */
/* Ogni colonna riserva lo spazio della foto, così titoli e testi restano allineati; senza foto lo spazio è vuoto */
body:is(.home, .page) .cm-servizi .elementor-column {
	display: block;
}

body:is(.home, .page) .cm-servizi .elementor-column::before {
	content: "";
	display: block;
	width: 100%;
	height: 260px;
	margin-bottom: 28px;
	background: var(--cm-soft) center / cover no-repeat;
}

body:is(.home, .page) .cm-servizi .elementor-column:nth-child(1)::before,
body:is(.home, .page) .cm-servizi .elementor-column:nth-child(4)::before {
	background: none;
}

body:is(.home, .page) .cm-servizi .elementor-column:nth-child(2)::before {
	background-image: url("assets/servizi/mekanik-motor-motorcycle-mechanic.jpg");
}

body:is(.home, .page) .cm-servizi .elementor-column:nth-child(3)::before {
	background-image: url("assets/servizi/motorcycle-spare-parts.jpg");
}

/* Elementor scrive i fondi per singola sezione con regole più specifiche: qui li vince il tema */
body:is(.home, .page) .cm-moto {
	background: var(--cm-white) !important;
	color: var(--cm-ink);
}

body:is(.home, .page) .cm-moto h2,
body:is(.home, .page) .cm-moto h3,
body:is(.home, .page) .cm-moto .elementor-heading-title {
	color: var(--cm-black) !important;
}

/* Le card moto (nuove e usate) restano sempre bianche, sul sito intero e dentro le sezioni nere o grigie */
.cm-card,
.cm-card > a,
.cm-card > a img,
.cm-card img,
.cm-card-body {
	background: var(--cm-white) !important;
}

body:is(.home, .page) .cm-poster {
	background: var(--cm-black) !important;
	color: var(--cm-white);
}

body:is(.home, .page) .cm-poster a,
body:is(.home, .page) .cm-poster .elementor-heading-title {
	color: var(--cm-white) !important;
}

body:is(.home, .page) .cm-poster-row {
	border-bottom: 1px solid #333;
}

body:is(.home, .page) .cm-poster-row:hover a {
	color: var(--cm-red) !important;
}

body:is(.home, .page) .cm-dove {
	background: var(--cm-red) !important;
	color: var(--cm-white);
	margin-top: 0;
	padding: 112px 0;
}

body:is(.home, .page) .cm-dove .elementor-heading-title,
body:is(.home, .page) .cm-dove a,
body:is(.home, .page) .cm-dove p {
	color: var(--cm-white) !important;
}

@media (max-width: 720px) {
	body:is(.home, .page) .elementor-section.cm-wrap {
		padding-top: 64px;
		padding-bottom: 64px;
	}
	body:is(.home, .page) .elementor-section.cm-wrap > .elementor-container {
		padding: 0 20px;
	}
}

/* Mobile first (sotto i 767 px, il breakpoint mobile di Elementor): stessa struttura, misure e griglie adattate */
@media (max-width: 767px) {
	body:is(.home, .page) .elementor-top-section > .elementor-container {
		padding-left: 20px;
		padding-right: 20px;
	}

	body:is(.home, .page) .cm-h-hero {
		min-height: 560px;
		padding-bottom: 56px;
	}

	body:is(.home, .page) .cm-h-hero .elementor-heading-title {
		font-size: 44px;
	}

	body:is(.home, .page) .cm-h-hero .elementor-button,
	body:is(.home, .page) .cm-h-banner .elementor-button,
	body:is(.home, .page) .cm-h-dove .elementor-button {
		width: 100%;
		text-align: center;
		margin-bottom: 12px;
	}

	body:is(.home, .page) .cm-h-intro .elementor-heading-title {
		font-size: 44px;
	}

	body.home .cm-h-marche .elementor-column:not(:first-child) {
		width: 50% !important;
		flex: 0 0 50%;
	}

	body:is(.home, .page) .cm-h-marche .elementor-widget-image img {
		height: 150px;
	}

	body:is(.home, .page) .cm-h-categorie .elementor-column {
		width: 50% !important;
		flex: 0 0 50%;
	}

	body:is(.home, .page) .cm-h-categorie .elementor-widget-image img {
		height: 300px;
	}

	body:is(.home, .page) .cm-h-categorie .elementor-widget-text-editor strong {
		font-size: 24px;
	}

	body:is(.home, .page) .cm-h-servizi .elementor-widget-html {
		margin-bottom: 8px;
	}

	body:is(.home, .page) .cm-h-banner {
		min-height: 380px;
		padding-top: 56px;
		padding-bottom: 56px;
	}

	body:is(.home, .page) .cm-h-banner .elementor-heading-title {
		font-size: 40px;
	}

	body:is(.home, .page) .cm-h-dove .elementor-widget-iframe,
	body:is(.home, .page) .cm-h-dove .cm-h-mappa {
		height: 300px;
	}

	.cm-page-band {
		padding: 48px 20px;
	}

	.cm-page-band h1 {
		font-size: 48px;
	}

	.cm-footer {
		padding: 40px 20px 24px;
	}

	.cm-footer-top {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.cm-footer-bottom {
		flex-direction: column;
		gap: 8px;
	}

	.cm-grid {
		gap: 20px;
	}

	.cm-filters a {
		font-size: 12px;
		padding: 6px 10px;
	}

	.cm-gallery figure {
		flex-basis: 88%;
	}
}

/* Menù hamburger: visibile solo sul mobile */
.cm-menu-toggle {
	display: none;
	background: transparent;
	border: 0;
	padding: 10px;
	cursor: pointer;
	width: 48px;
	height: 48px;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
}

.cm-menu-toggle span {
	display: block;
	width: 26px;
	height: 3px;
	background: var(--cm-black);
}

@media (max-width: 767px) {
	.cm-header {
		flex-wrap: wrap;
		align-items: center;
		padding: 12px 20px;
		gap: 12px;
	}

	.cm-header .custom-logo {
		max-height: 48px;
	}

	.cm-menu-toggle {
		display: flex;
		margin-left: auto;
	}

	.cm-nav {
		display: none;
		width: 100%;
		order: 3;
	}

	.cm-nav.is-open {
		display: block;
	}

	.cm-nav ul {
		flex-direction: column;
		gap: 0;
		border-top: 1px solid var(--cm-line);
	}

	.cm-nav li a {
		display: block;
		padding: 16px 0;
		font-size: 16px;
		border-bottom: 1px solid var(--cm-line);
	}
}

/* Mobile: le sezioni Elementor non centrano il contenuto oltre il bordo sinistro (il contenitore prende tutta la larghezza) */
@media (max-width: 767px) {
	body:is(.home, .page) .elementor-top-section {
		justify-content: flex-start;
		width: 100%;
	}

	body:is(.home, .page) .elementor-top-section > .elementor-container {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}

	body:is(.home, .page) .cm-h-hero {
		justify-content: flex-start;
	}
}

/* Mobile: servizi più compatti (icone, titoli e spaziature ridotti) */
@media (max-width: 767px) {
	body:is(.home, .page) .cm-h-servizio svg {
		width: 36px;
		height: 36px;
		margin-bottom: 8px;
	}

	body:is(.home, .page) .cm-h-servizio h3 {
		font-size: 20px;
		margin: 0 0 4px;
	}

	body:is(.home, .page) .cm-h-servizio p {
		font-size: 15px;
		line-height: 1.4;
	}

	body:is(.home, .page) .cm-h-servizi .elementor-column {
		padding-bottom: 12px;
	}

	body:is(.home, .page) .cm-h-servizi .cm-h-title {
		margin-bottom: 20px;
	}
}

/* Mobile: l'indirizzo va a capo invece di uscire dallo schermo */
@media (max-width: 767px) {
	.cm-nowrap {
		white-space: normal;
	}

	body:is(.home, .page) .cm-h-dove .cm-h-dove-indirizzo,
	.cm-h-dove-indirizzo {
		font-size: 24px !important;
		overflow-wrap: anywhere;
	}
}

/* Mobile: margine sopra al banner, così il kicker non tocca il bordo */
@media (max-width: 767px) {
	body:is(.home, .page) .cm-h-banner {
		padding-top: 72px !important;
		padding-bottom: 56px !important;
	}
}

/* Mobile: il titolo dell'introduzione resta su due righe */
@media (max-width: 767px) {
	body:is(.home, .page) .cm-h-intro .elementor-heading-title {
		font-size: 34px;
	}
}

/* Tablet: Dove siamo in una colonna, indirizzo che va a capo */
@media (max-width: 1024px) {
	body:is(.home, .page) .cm-h-dove .elementor-column {
		width: 100% !important;
		flex: 0 0 100%;
	}

	body:is(.home, .page) .cm-h-dove .cm-nowrap {
		white-space: normal;
	}

	body:is(.home, .page) .cm-h-dove .cm-h-dove-indirizzo {
		font-size: 32px !important;
	}

	body:is(.home, .page) .cm-h-dove .cm-h-mappa {
		margin-top: 32px;
	}
}

/* Scheda moto: marca e categoria sono già nella fascia del titolo */
.cm-scheda > .cm-card-meta {
	display: none;
}

/* Mobile: logo a sinistra e hamburger a destra sulla stessa riga; il menù aperto va sotto */
@media (max-width: 767px) {
	.cm-header {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
	}

	.cm-header .cm-brand {
		margin-right: auto;
	}

	.cm-header .cm-menu-toggle {
		margin-left: 0;
	}
}

/* Tablet: hamburger anche fino a 1024 px, così il menù non va su due righe */
@media (max-width: 1024px) {
	.cm-header {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
		padding: 12px 24px;
		gap: 12px;
	}

	.cm-header .cm-brand {
		margin-right: auto;
	}

	.cm-menu-toggle {
		display: flex;
	}

	.cm-nav {
		display: none;
		width: 100%;
		order: 3;
	}

	.cm-nav.is-open {
		display: block;
	}

	.cm-nav ul {
		flex-direction: column;
		gap: 0;
		border-top: 1px solid var(--cm-line);
	}

	.cm-nav li a {
		display: block;
		padding: 16px 0;
		font-size: 16px;
		border-bottom: 1px solid var(--cm-line);
	}
}

/* Categorie: titoli rossi leggibili, con un velo nero più deciso sotto il testo */
body:is(.home, .page) .cm-h-categorie .elementor-widget-text-editor {
	padding-top: 96px;
	background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.8) 55%, rgba(0,0,0,0) 100%);
}

/* Catalogo: le card escluse dal filtro spariscono (il display flex della card non deve vincere su hidden) */
.cm-card[hidden],
.cm-empty[hidden] {
	display: none !important;
}

/* Servizi in home: titolo su una riga, tre servizi affiancati da tablet in su */
body.home .cm-h-servizi > .elementor-container {
	flex-wrap: wrap;
}

body.home .cm-h-servizi .elementor-column:first-child {
	width: 100% !important;
	flex: 0 0 100%;
}

@media (min-width: 768px) {
	body.home .cm-h-servizi .elementor-column:not(:first-child) {
		width: 33.333% !important;
		flex: 0 0 33.333%;
	}
}

/* Dove siamo: pulsante bianco a contorno, visibile sul fondo rosso */
body:is(.home, .page) .cm-h-dove .elementor-button {
	background: transparent !important;
	border: 2px solid var(--cm-white);
	color: var(--cm-white) !important;
}

body:is(.home, .page) .cm-h-dove .elementor-button:hover {
	background: var(--cm-white) !important;
	color: var(--cm-red) !important;
}

/* Introduzione: spazio tra i paragrafi. Categorie attaccate ai servizi, senza fascia bianca */
.cm-h-intro p + p {
	margin-top: 16px;
}

body:is(.home, .page) .cm-h-categorie {
	padding-top: 0;
	padding-bottom: 0;
}

/* Footer: logo bianco su fondo nero, senza riquadro */
.cm-footer-logo {
	background: transparent;
	padding: 0;
}

.cm-footer-logo img {
	display: block;
	height: 56px;
	width: auto;
	max-width: 240px;
}

/* Hero: lo slogan resta grande, l'H1 dice cosa fa il sito */
body:is(.home, .page) .cm-h-hero .cm-h-seo-h1 .elementor-heading-title {
	font-family: var(--font-secondary);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	padding-bottom: 0;
	border-bottom: 0;
}

@media (max-width: 767px) {
	body:is(.home, .page) .cm-h-hero .cm-h-seo-h1 .elementor-heading-title {
		font-size: 22px;
	}
}
