/* ==========================================================================
   Boat Service — foglio di stile del tema

   Identità ripresa dal design system Open Sky Nautica (v13.5): fondo blu
   notte, accento azzurro, serif editoriale per titoli e prezzi, sans-serif
   neutro per tutto il resto, maiuscole sempre spaziate, raggi entro gli 8px.

   Due regole della casa, dal design system (imparate da bug reali):
   1. Le media query stanno IN FONDO al file. Non aggiungono specificità:
      a parità di selettore vince la regola scritta dopo.
   2. Mai stili inline su proprietà che devono adattarsi allo schermo.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Font ospitati sul sito (nessuna richiesta a Google o ad altri servizi)
   Gelasio ha le stesse misure di Georgia; Open Sans è disegnato dallo
   stesso autore di Segoe UI. Entrambi con licenza SIL Open Font License.
   -------------------------------------------------------------------------- */

@font-face {
	font-family: 'Gelasio';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/gelasio-latin-wght-normal.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: 'Gelasio';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/gelasio-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Gelasio';
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/gelasio-latin-wght-italic.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: 'Gelasio';
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/gelasio-latin-ext-wght-italic.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url('../fonts/open-sans-latin-wght-normal.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: 'Open Sans';
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url('../fonts/open-sans-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* --------------------------------------------------------------------------
   2. Variabili
   Nel design system originale l'accento si chiamava --gold pur essendo
   azzurro, e home e catalogo usavano due convenzioni diverse. Qui una sola.
   -------------------------------------------------------------------------- */

:root {
	--accent: #4a90d9;
	--accent-hover: #6aaeef;
	--gold: #c9a96e;             /* accento secondario, usato con parsimonia */

	--bg: #04060e;               /* fondo pagina */
	--surface: #080e1c;          /* card, header di pagina, riquadri */
	--surface-2: #0d1828;        /* campi, box tecnici, fasce alternate */
	--border: #152035;
	--text: #e8eef5;
	--text-soft: rgba(232, 238, 245, 0.84);  /* paragrafi su fondo scuro */
	/* Il grigio-blu originale (#4a6a85) sui testi piccoli non raggiunge il
	   contrasto minimo di leggibilità: schiarito di un tono, stesso colore. */
	--muted: #93afc7;

	--whatsapp: #25d366;
	--whatsapp-hover: #20ba5a;
	--badge-bg: rgba(8, 12, 20, .78);
	--badge-border: rgba(255, 255, 255, .15);
	--st-disponibile: #fff;
	--st-trattativa: #ffd966;
	--st-venduto: #ff8f8f;

	--font-display: 'Gelasio', Georgia, 'Times New Roman', serif;
	--font-ui: 'Open Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

	--nav-h: 66px;
	--barra-h: 0px;              /* barra promo in cima (0 se assente o chiusa) */
	--barra-vis: 0px;            /* quanta barra promo si vede adesso */
	--adm: 0px;                  /* barra di amministrazione di WordPress */
	--wrap: 1600px;              /* sezioni della home e pagine */
	--wrap-wide: 2200px;         /* catalogo: anteprime a tutta larghezza */
	--wrap-detail: 1240px;       /* scheda imbarcazione */
	--wrap-text: 1120px;         /* pagine di contenuto (il testo resta a 780px) */

	--r-xs: 3px;
	--r-sm: 4px;
	--r-md: 6px;
	--r-lg: 8px;

	--t-fast: .2s;
	--t: .3s;
	--t-img: .5s;
}


/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	background: var(--bg);
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--nav-h) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 17px;
	line-height: 1.72;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img,
video,
iframe,
svg {
	max-width: 100%;
	display: block;
}

img {
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.15;
}

p {
	margin: 0 0 1em;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

::selection {
	background: var(--accent);
	color: #fff;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -60px;
	left: 16px;
	z-index: 300;
	padding: 10px 16px;
	background: var(--accent);
	color: #fff;
	border-radius: var(--r-sm);
	font-size: 14.5px;
	transition: top var(--t-fast);
}

.skip-link:focus {
	top: 12px;
}

/* Il contenuto sotto la barra fissa non deve finirci dietro. */
.site-main {
	display: block;
	min-height: 60vh;
}


/* --------------------------------------------------------------------------
   4. Bottoni e collegamenti
   Padding orizzontale generoso e 3px di spaziatura: la firma dei bottoni.
   -------------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 35px;
	border: 1px solid transparent;
	border-radius: var(--r-xs);
	font-family: var(--font-ui);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 3px;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	transition: background-color var(--t), color var(--t), border-color var(--t), transform var(--t);
}

.btn svg {
	width: 17px;
	height: 17px;
	flex-shrink: 0;
}

.btn--primary {
	background: var(--accent);
	color: #fff;
}

.btn--primary:hover {
	background: var(--accent-hover);
	transform: translateY(-2px);
}

.btn--outline {
	border-color: rgba(232, 238, 245, 0.52);
	color: rgba(232, 238, 245, .9);
}

.btn--outline:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.btn--line {
	border-color: var(--accent);
	color: var(--accent);
}

.btn--line:hover {
	background: var(--accent);
	color: #fff;
}

.btn--whatsapp {
	background: var(--whatsapp);
	color: #fff;
}

.btn--whatsapp:hover {
	background: var(--whatsapp-hover);
}

.btn--whatsapp svg {
	fill: currentColor;
}

.btn--block {
	width: 100%;
}

.btn--compact {
	padding: 11px 16px;
	letter-spacing: 1.5px;
	border-radius: var(--r-md);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--accent);
	transition: gap var(--t), color var(--t-fast);
}

.link-arrow:hover {
	gap: 14px;
	color: var(--accent-hover);
}

.link-arrow svg {
	width: 14px;
	height: 14px;
}


/* --------------------------------------------------------------------------
   5. Navigazione
   Logo a sinistra, voci al centro, azioni a destra. Il fondo passa dal 65%
   al 97% di opacità quando si scorre.
   -------------------------------------------------------------------------- */

.site-nav {
	position: fixed;
	top: calc(var(--adm) + var(--barra-vis));
	left: 0;
	right: 0;
	z-index: 100;
	height: var(--nav-h);
	padding: 0 32px;
	display: flex;
	align-items: center;
	gap: 4px;
	background: rgba(4, 6, 14, .65);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(21, 32, 53, .5);
	transition: background-color var(--t), border-color var(--t), top var(--t);
}

.site-nav.is-scrolled,
.site-nav.is-open {
	background: rgba(4, 6, 14, .97);
	border-bottom-color: var(--border);
}

/* Barra di amministrazione (solo per chi ha fatto l'accesso): tutte le parti
   fisse scendono di quanto serve, tramite --adm. */
.admin-bar {
	--adm: 32px;
}

.nav-logo {
	flex-shrink: 0;
	margin-right: 18px;
}

.nav-logo a {
	display: inline-flex;
	align-items: center;
}

.nav-logo img {
	height: 36px;
	width: auto;
}

/* Scritta del sito al posto del logo, nello stile del logo: maiuscole con grazie */
.nav-marchio {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 2px;
	text-transform: uppercase;
	white-space: nowrap;
	color: #fff;
}

.nav-marchio span {
	color: var(--accent);
}

.nav-menu {
	flex: 1;
	display: flex;
	justify-content: center;
	min-width: 0;
}

.nav-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-menu > ul {
	display: flex;
	align-items: center;
	gap: 2px;
}

.nav-menu li {
	position: relative;
}

.nav-menu a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 7px 11px;
	border-radius: var(--r-sm);
	font-size: 14.5px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: rgba(232, 238, 245, 0.67);
	white-space: nowrap;
	transition: color var(--t-fast), background-color var(--t-fast);
}

.nav-menu a:hover,
.nav-menu li:focus-within > a {
	color: rgba(232, 238, 245, .95);
}

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current-menu-ancestor > a,
.nav-menu .current-page-ancestor > a {
	color: var(--accent);
}

/* Freccina sulle voci con sottomenu */
.nav-menu .menu-item-has-children > a::after {
	content: "";
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate(45deg);
	opacity: .7;
}

.nav-menu .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 230px;
	padding: 8px;
	background: rgba(4, 6, 14, .97);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}

/* Ponte invisibile: il puntatore passa dalla voce al sottomenu senza chiuderlo */
.nav-menu .sub-menu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -12px;
	height: 12px;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu,
.nav-menu li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.nav-menu .sub-menu a {
	padding: 9px 12px;
	letter-spacing: 1px;
	color: rgba(232, 238, 245, 0.82);
}

.nav-menu .sub-menu a:hover {
	background: rgba(74, 144, 217, .08);
	color: var(--text);
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	margin-left: 12px;
}

.nav-phone {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 10px;
	font-size: 14.5px;
	letter-spacing: .5px;
	color: rgba(232, 238, 245, 0.82);
	white-space: nowrap;
	transition: color var(--t-fast);
}

.nav-phone:hover {
	color: var(--text);
}

.nav-phone svg {
	width: 15px;
	height: 15px;
	color: var(--accent);
}

.nav-phones {
	display: flex;
	align-items: center;
	gap: 2px;
}

/* Bandiera della lingua parlata a un numero di telefono */
/* Numero di telefono con la cornetta davanti */
.tel {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	vertical-align: middle;
}

.tel svg {
	flex-shrink: 0;
	width: 15px;
	height: 15px;
	color: var(--accent);
}

.tel span {
	white-space: nowrap;
}

.aside-telefoni {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 18px;
	font-size: 14.5px;
	color: var(--text-soft);
}

a.nav-cta {
	padding: 7px 16px;
	border: 1px solid rgba(74, 144, 217, .45);
	border-radius: var(--r-sm);
	font-size: 14.5px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--accent);
	white-space: nowrap;
	transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

a.nav-cta:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

/* Social accanto a "Contatti" */
.nav-menu .menu-social {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-left: 8px;
}

.nav-menu .menu-social a {
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 50%;
	color: rgba(232, 238, 245, 0.72);
	transition: color var(--t-fast), background-color var(--t-fast);
}

.nav-menu .menu-social a:hover {
	background: rgba(74, 144, 217, .12);
	color: var(--accent);
}

.nav-menu .menu-social svg {
	width: 17px;
	height: 17px;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-left: 4px;
	padding: 0;
	background: none;
	border: 1px solid transparent;
	border-radius: var(--r-md);
	color: rgba(232, 238, 245, 0.95);
	cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
	display: block;
	width: 20px;
	height: 1.5px;
	background: currentColor;
	border-radius: 2px;
	transition: transform var(--t), opacity var(--t);
}

.nav-toggle-bars {
	position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle-bars::before {
	top: -6px;
}

.nav-toggle-bars::after {
	top: 6px;
}

.site-nav.is-open .nav-toggle-bars {
	background: transparent;
}

.site-nav.is-open .nav-toggle-bars::before {
	transform: translateY(6px) rotate(45deg);
}

.site-nav.is-open .nav-toggle-bars::after {
	transform: translateY(-6px) rotate(-45deg);
}


/* --------------------------------------------------------------------------
   6. Hero — variante slider
   Il gradiente a tre stop è essenziale: leggero in alto per non spegnere
   l'immagine, quasi opaco in basso per il contrasto e per agganciare la
   sezione successiva.
   -------------------------------------------------------------------------- */

.hero {
	position: relative;
	height: 100vh;
	height: 100svh;
	min-height: 600px;
	overflow: hidden;
	background: var(--bg);
}

.hero-slide {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0;
	transition: opacity 1.2s ease;
}

.hero-slide.is-active {
	z-index: 1;
	opacity: 1;
}

.hero-media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.hero-media img,
.hero-media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.04);
	transition: transform 8s ease;
}

/* Il video sta sopra l'immagine della slide, che resta come ripiego */
.hero-media video {
	position: absolute;
	inset: 0;
}

.hero-slide.is-active .hero-media img,
.hero-slide.is-active .hero-media video {
	transform: scale(1);
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(4, 6, 14, .35) 0%, rgba(4, 6, 14, .5) 55%, rgba(4, 6, 14, .95) 100%);
}

.hero-content {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: var(--nav-h) 24px 70px;
	text-align: center;
}

.hero-eyebrow {
	margin-bottom: 20px;
	font-size: 12.5px;
	letter-spacing: 6px;
	text-transform: uppercase;
	color: var(--accent);
	text-shadow: 0 1px 6px rgba(0, 0, 0, .98), 0 0 24px rgba(0, 0, 0, .9);
}

.hero-title {
	max-width: 900px;
	margin-bottom: 20px;
	font-size: clamp(34px, 6vw, 74px);
	line-height: 1.1;
	letter-spacing: -1px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .98), 0 4px 32px rgba(0, 0, 0, .8), 1px 1px 0 rgba(0, 0, 0, .7);
}

.hero-title em {
	color: var(--accent);
	font-style: italic;
}

.hero-sub {
	max-width: 580px;
	margin-bottom: 36px;
	font-size: clamp(14px, 1.8vw, 18px);
	line-height: 1.7;
	color: rgba(232, 238, 245, .92);
	text-shadow: 0 1px 8px rgba(0, 0, 0, .99), 0 2px 20px rgba(0, 0, 0, .9);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

/* Gli indicatori sono trattini, non pallini. */
.hero-dots {
	position: absolute;
	bottom: 28px;
	left: 50%;
	z-index: 10;
	display: flex;
	gap: 10px;
	transform: translateX(-50%);
}

.hero-dot {
	position: relative;
	width: 28px;
	height: 3px;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: rgba(255, 255, 255, .3);
	cursor: pointer;
	transition: width var(--t), background-color var(--t);
}

/* Area di tocco più alta del trattino visibile */
.hero-dot::before {
	content: "";
	position: absolute;
	inset: -10px 0;
}

.hero-dot.is-active {
	width: 44px;
	background: var(--accent);
}

.hero-arrows {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	z-index: 10;
	display: flex;
	justify-content: space-between;
	padding: 0 20px;
	transform: translateY(-50%);
	pointer-events: none;
}

.hero-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 50%;
	background: rgba(0, 0, 0, .45);
	color: #fff;
	cursor: pointer;
	pointer-events: auto;
	transition: background-color var(--t-fast), border-color var(--t-fast);
}

.hero-arrow:hover {
	background: var(--accent);
	border-color: var(--accent);
}

.hero-arrow svg {
	width: 18px;
	height: 18px;
}


/* --------------------------------------------------------------------------
   7. Hero — variante video a scorrimento
   Il video resta fermo al suo posto e avanza solo mentre si scorre. Le
   sezioni scorrono subito sopra; le due marcate "trasparenti" lo lasciano
   intravedere al 70%. Nessun velo colorato sopra il video: solo una lieve
   sfumatura dietro al testo, per leggerlo.
   -------------------------------------------------------------------------- */

/* Il fondo della pagina passa a <html>: il body diventa trasparente per
   lasciar vedere il video, che sta sotto a tutto (z-index negativo). */
body.is-home-video {
	background: transparent;
}

.scroll-video {
	position: fixed;
	inset: 0;
	z-index: -1;
	height: 100vh;
	height: 100lvh;          /* non si ridimensiona quando la barra del browser si ritrae */
	overflow: hidden;
	background: var(--bg);
}

.scroll-video video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero--video {
	background: transparent;
}

.hero--video .hero-overlay {
	background:
		radial-gradient(70% 55% at 50% 52%, rgba(4, 6, 14, .42) 0%, rgba(4, 6, 14, .12) 55%, rgba(4, 6, 14, 0) 80%),
		linear-gradient(to bottom, rgba(4, 6, 14, .35) 0%, rgba(4, 6, 14, 0) 22%, rgba(4, 6, 14, 0) 70%, rgba(4, 6, 14, .6) 100%);
}

.hero-scroll-cue {
	position: absolute;
	bottom: 26px;
	left: 50%;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	transform: translateX(-50%);
	font-size: 11.5px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: rgba(232, 238, 245, 0.82);
	transition: opacity var(--t);
}

.hero-scroll-cue::after {
	content: "";
	width: 1px;
	height: 34px;
	background: linear-gradient(var(--accent), transparent);
	animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
	0%, 100% { opacity: .3; }
	50% { opacity: 1; }
}

/* In modalità video ogni sezione ha il suo fondo pieno, tranne le due
   dichiarate trasparenti (al 70%, come nella demo approvata). */
.is-home-video .site-main > .section:not(.section--alt) {
	background-color: var(--bg);
}

.is-home-video .site-main > .hero {
	background: transparent;
}

.is-home-video .site-main > .section.see-through {
	background-color: rgba(4, 6, 14, .7);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.is-home-video .site-main > .section--alt.see-through {
	background-color: rgba(13, 24, 40, .7);
}


/* --------------------------------------------------------------------------
   8. Sezioni
   Sequenza costante: occhiello azzurro, titolo serif, sottotitolo grigio.
   -------------------------------------------------------------------------- */

.section {
	padding: 90px 48px;
}

.section--alt {
	background: var(--surface-2);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.section-inner {
	max-width: var(--wrap);
	margin: 0 auto;
}

.eyebrow {
	display: block;
	margin-bottom: 14px;
	font-family: var(--font-ui);
	font-size: 11.5px;
	letter-spacing: 5px;
	text-transform: uppercase;
	color: var(--accent);
}

.section-title {
	margin-bottom: 18px;
	font-size: clamp(26px, 4vw, 48px);
	line-height: 1.15;
}

.section-sub {
	max-width: 560px;
	margin: 0;
	font-size: 17px;
	line-height: 1.8;
	color: var(--text-soft);
}

.section-head--center {
	text-align: center;
}

.section-head--center .section-sub {
	margin-inline: auto;
}

/* Titolo a sinistra, collegamento "vedi tutte" a destra */
.section-head--row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px 40px;
	flex-wrap: wrap;
}

.section-head--row .section-title {
	margin-bottom: 10px;
}


/* --------------------------------------------------------------------------
   9. Numeri
   -------------------------------------------------------------------------- */

.numbers {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	padding: 38px 48px;
	background: var(--surface-2);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.numbers--3 {
	grid-template-columns: repeat(3, 1fr);
}

.number {
	padding: 0 20px;
	text-align: center;
	border-right: 1px solid var(--border);
}

.number:last-child {
	border-right: 0;
}

.number-value {
	white-space: nowrap;
	font-family: var(--font-display);
	font-size: 38px;
	line-height: 1;
	letter-spacing: -1px;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}

.number-label {
	margin-top: 8px;
	font-size: 11.5px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--muted);
}


/* --------------------------------------------------------------------------
   10. In evidenza — una card grande a sinistra, due piccole a destra.
   Le classi --1/--2/--3 dipendono da quante barche ci sono: niente buchi.
   -------------------------------------------------------------------------- */

.featured-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	grid-template-rows: auto auto;
	gap: 14px;
	margin-top: 44px;
}

.featured-grid--2 {
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto;
}

.featured-grid--1 {
	grid-template-columns: 1fr;
	max-width: 760px;
	margin-inline: auto;
}

.featured-card {
	position: relative;
	display: block;
	min-height: 280px;
	overflow: hidden;
	border-radius: var(--r-sm);
	background: var(--surface);
}

.featured-grid--3 .featured-card:first-child {
	grid-row: 1 / 3;
	min-height: 560px;
}

.featured-grid--2 .featured-card,
.featured-grid--1 .featured-card {
	min-height: 420px;
}

.featured-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--t-img);
}

.featured-card:hover img {
	transform: scale(1.05);
}

.featured-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .1) 50%, transparent 100%);
}

.featured-body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 26px;
}

.featured-badge {
	display: inline-block;
	margin-bottom: 10px;
	padding: 4px 11px;
	border-radius: 2px;
	background: var(--accent);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.featured-title {
	margin-bottom: 5px;
	font-family: var(--font-display);
	font-size: clamp(16px, 2vw, 21px);
	letter-spacing: .3px;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .95), 0 0 24px rgba(0, 0, 0, .9);
}

.featured-grid--3 .featured-card:first-child .featured-title {
	font-size: clamp(20px, 2.4vw, 28px);
}

.featured-loc {
	margin-bottom: 10px;
	font-size: 13.5px;
	color: rgba(232, 238, 245, 0.82);
}

.featured-price {
	font-family: var(--font-display);
	font-size: clamp(17px, 2.5vw, 24px);
	color: var(--accent-hover);
}

.featured-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-top: 6px;
	font-size: 12.5px;
	color: rgba(232, 238, 245, 0.72);
}


/* --------------------------------------------------------------------------
   11. Servizi / perché noi
   -------------------------------------------------------------------------- */

.why-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-top: 52px;
}

.why-card {
	display: flex;
	flex-direction: column;
	padding: 34px 26px;
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	transition: border-color var(--t), transform var(--t);
}

.why-card:hover {
	border-color: var(--accent);
	transform: translateY(-4px);
}

.why-icon {
	width: 38px;
	height: 38px;
	margin-bottom: 18px;
	color: var(--accent);
}

.why-icon svg {
	width: 100%;
	height: 100%;
}

.why-num {
	margin-bottom: 14px;
	font-family: var(--font-display);
	font-size: 30px;
	line-height: 1;
	color: var(--accent);
}

.why-title {
	margin-bottom: 10px;
	font-size: 20px;
}

.why-text {
	margin: 0;
	font-size: 16px;
	line-height: 1.8;
	color: var(--text-soft);
}

.why-card .link-arrow {
	margin-top: auto;
	padding-top: 20px;
}


/* --------------------------------------------------------------------------
   12. Sezione affiancata immagine / testo
   La cornice azzurra sfalsata che sborda dall'immagine è un dettaglio da
   mantenere: sta dietro alla foto, spunta solo in basso a destra.
   -------------------------------------------------------------------------- */

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 72px;
	align-items: center;
}

.split--reverse .split-media {
	order: -1;
}

.split-media {
	position: relative;
	isolation: isolate;
}

.split-media-inner {
	position: relative;
	z-index: 1;
	overflow: hidden;
	border-radius: var(--r-sm);
}

.split-media img {
	width: 100%;
	height: 460px;
	object-fit: cover;
}

.split-frame {
	position: absolute;
	right: -14px;
	bottom: -14px;
	z-index: 0;
	width: 55%;
	height: 55%;
	border: 2px solid var(--accent);
	border-radius: var(--r-sm);
	pointer-events: none;
}

.split-text .section-sub {
	max-width: 600px;
}

.split-list {
	display: flex;
	flex-direction: column;
	gap: 13px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.split-list li {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	font-size: 16.5px;
	line-height: 1.6;
	color: var(--text-soft);
}

.split-list svg {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-top: 3px;
	color: var(--accent);
}

.split-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}


/* --------------------------------------------------------------------------
   13. Fascia di invito all'azione (immagine coperta da un velo all'82%)
   -------------------------------------------------------------------------- */

.cta-band {
	position: relative;
	overflow: hidden;
	padding: 100px 48px;
	text-align: center;
	background: var(--surface);
}

.cta-band-bg {
	position: absolute;
	inset: 0;
}

.cta-band-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cta-band-overlay {
	position: absolute;
	inset: 0;
	background: rgba(4, 6, 14, .82);
}

.cta-band-content {
	position: relative;
	z-index: 1;
	max-width: 680px;
	margin: 0 auto;
}

.cta-band h2 {
	margin-bottom: 18px;
	font-size: clamp(24px, 4vw, 48px);
}

.cta-band p {
	margin-bottom: 34px;
	font-size: 17px;
	line-height: 1.72;
	color: rgba(232, 238, 245, 0.84);
}

.cta-band-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

/* Versione compatta, dentro le pagine (es. barche vendute) */
.sell-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px 32px;
	flex-wrap: wrap;
	margin-bottom: 30px;
	padding: 22px 26px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-left: 2px solid var(--accent);
	border-radius: var(--r-md);
}

.sell-banner-title {
	margin: 0 0 4px;
	font-size: 20px;
}

.sell-banner p {
	margin: 0;
	font-size: 16px;
	color: var(--text-soft);
}

.sell-banner-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}


/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */

.site-footer {
	padding: 56px 48px 24px;
	background: #020409;
	border-top: 1px solid var(--border);
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
	max-width: var(--wrap);
	margin: 0 auto 40px;
}

.footer-brand img {
	height: 68px;
	width: auto;
	margin-bottom: 22px;
}

.footer-desc {
	max-width: 300px;
	margin: 0;
	font-size: 15.5px;
	line-height: 1.8;
	color: var(--muted);
}

.footer-col h4 {
	margin-bottom: 14px;
	font-family: var(--font-ui);
	font-size: 11.5px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--accent);
}

.footer-col ul {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-col li,
.footer-col a {
	font-size: 15.5px;
	line-height: 1.5;
	color: var(--muted);
}

.footer-col a {
	transition: color var(--t-fast);
}

.footer-col a:hover {
	color: var(--accent);
}

.footer-social {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--border);
	border-radius: 50%;
	color: var(--muted);
	transition: border-color var(--t-fast), color var(--t-fast);
}

.footer-social a:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.footer-social svg {
	width: 15px;
	height: 15px;
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	max-width: var(--wrap);
	margin: 0 auto;
	padding-top: 18px;
	border-top: 1px solid var(--border);
}

.footer-bottom p {
	margin: 0;
	font-size: 12.5px;
	color: var(--muted);
}

.footer-bottom a {
	color: var(--muted);
	transition: color var(--t-fast);
}

.footer-bottom a:hover {
	color: var(--accent);
}

.footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}


/* --------------------------------------------------------------------------
   15. WhatsApp flottante
   -------------------------------------------------------------------------- */

.wa-float {
	position: fixed;
	right: 28px;
	bottom: 28px;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--whatsapp);
	box-shadow: 0 4px 20px rgba(37, 211, 102, .38);
	transition: transform var(--t), background-color var(--t);
}

.wa-float:hover {
	transform: scale(1.1);
	background: var(--whatsapp-hover);
}

.wa-float svg {
	width: 52%;
	height: 52%;
	fill: #fff;
}

/* La barra flottante di iubenda copriva l'angolo in basso a destra: si toglie,
   le preferenze si riaprono dal collegamento "Preferenze cookie" nel footer,
   che resta sempre raggiungibile. */
.iubenda-tp-btn,
.iubenda-tp-alert-btn,
.iubenda-uspr-btn,
[class*="iubenda-floatable"] {
	display: none !important;
}

/* Accanto al bollino di iubenda: stessa misura, ombra piu' discreta. */
.wa-float.is-accanto {
	box-shadow: 0 2px 10px rgba(37, 211, 102, .32);
}


/* --------------------------------------------------------------------------
   16. Intestazione delle pagine interne
   -------------------------------------------------------------------------- */

.page-head {
	padding: calc(var(--nav-h) + 40px) 40px 0;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}

.page-head-inner {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	max-width: var(--wrap-wide);
	margin: 0 auto;
	padding-bottom: 26px;
}

/* L'intestazione si allinea alla colonna del contenuto che la segue:
   catalogo (a tutta larghezza), sezioni (contatti, vendi) o testo. */
.page-head--sezioni,
.page-hero--sezioni {
	padding-left: 48px;
	padding-right: 48px;
}

.page-head--sezioni .page-head-inner,
.page-hero--sezioni .page-hero-content {
	max-width: var(--wrap);
}

.page-head--testo .page-head-inner,
.page-hero--testo .page-hero-content {
	max-width: calc(var(--wrap-text) - 80px);
}

.page-head h1 {
	font-size: clamp(24px, 2.6vw, 32px);
	letter-spacing: 2px;
}

.page-head-intro {
	max-width: 720px;
	margin: 8px 0 0;
	font-size: 16.5px;
	line-height: 1.75;
	color: var(--text-soft);
}

.page-head-intro p {
	margin: 0 0 .6em;
}

.page-head-intro p:last-child {
	margin-bottom: 0;
}

.breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
	font-size: 13.5px;
	color: var(--muted);
}

.breadcrumb a {
	transition: color var(--t-fast);
}

.breadcrumb a:hover {
	color: var(--accent);
}

.breadcrumb-sep {
	color: #2a3d5c;
}

/* Intestazione con immagine (pagine di contenuto) */
.page-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 440px;
	padding: calc(var(--nav-h) + 60px) 40px 56px;
	overflow: hidden;
	background: var(--surface);
}

.page-hero-bg {
	position: absolute;
	inset: 0;
}

.page-hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.page-hero .hero-overlay {
	z-index: 0;
}

.page-hero-content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--wrap-wide);
	margin: 0 auto;
}

.page-hero h1 {
	max-width: 900px;
	font-size: clamp(30px, 4.6vw, 58px);
	line-height: 1.1;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .9), 0 4px 32px rgba(0, 0, 0, .7);
}

.page-hero .page-head-intro {
	color: rgba(232, 238, 245, .9);
	font-size: 17px;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .95);
}

.page-hero .breadcrumb {
	color: rgba(232, 238, 245, 0.82);
	text-shadow: 0 1px 6px rgba(0, 0, 0, .9);
}

/* Testate sempre centrate: i cataloghi a tutta larghezza e le pagine in box
   stanno sullo stesso asse, così la differenza di impaginazione non si nota. */
.page-head-inner {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.page-hero-content {
	text-align: center;
}

.page-head .breadcrumb,
.page-hero .breadcrumb {
	justify-content: center;
}

.page-hero h1,
.page-head-intro {
	margin-left: auto;
	margin-right: auto;
}

.page-head .scope-tabs,
.page-hero .scope-tabs,
.page-hero-actions {
	justify-content: center;
}


/* --------------------------------------------------------------------------
   17. Barra filtri del catalogo (fissa sotto la navigazione)
   -------------------------------------------------------------------------- */

.filters {
	position: sticky;
	top: calc(var(--adm) + var(--barra-vis) + var(--nav-h));
	z-index: 40;
	padding: 16px 40px;
	background: var(--surface-2);
	border-bottom: 1px solid var(--border);
}

.filters-form {
	max-width: var(--wrap-wide);
	margin: 0 auto;
}

.filters-fields {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 12px;
}

.filter {
	display: flex;
	align-items: center;
	gap: 7px;
}

.filter-label {
	font-size: 12.5px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--muted);
	white-space: nowrap;
}

.filter-select,
.filter-input {
	padding: 7px 12px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 14px;
	transition: border-color var(--t-fast);
}

.filter-select {
	padding-right: 30px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%234a90d9' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 11px center;
}

.filter-select option {
	background: var(--surface);
	color: var(--text);
}

.filter-input {
	width: 190px;
}

.filter-input::placeholder {
	color: var(--muted);
}

.filter-select:focus,
.filter-input:focus {
	outline: none;
	border-color: var(--accent);
}

.filter-select.is-set {
	border-color: rgba(74, 144, 217, .6);
}

.filter-submit {
	padding: 7px 16px;
	border: 0;
	border-radius: var(--r-md);
	background: var(--accent);
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color var(--t-fast);
}

.filter-submit:hover {
	background: var(--accent-hover);
}

.filter-reset {
	padding: 7px 12px;
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	color: var(--muted);
	font-size: 13.5px;
	white-space: nowrap;
	transition: border-color var(--t-fast), color var(--t-fast);
}

.filter-reset:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.results-count {
	margin-left: auto;
	font-size: 13.5px;
	color: var(--muted);
	white-space: nowrap;
}

.filters-toggle {
	display: none;
}

/* Con JavaScript il bottone "Filtra" non serve: si applica da solo */
.js .filters-form[data-auto] .filter-submit {
	display: none;
}


/* --------------------------------------------------------------------------
   18. Catalogo: griglia e card
   Tre colonne a tutta larghezza, anteprime ampie (richiesta del cliente).
   L'hover combina bordo azzurro, sollevamento e alone.
   -------------------------------------------------------------------------- */

.catalog {
	max-width: var(--wrap-wide);
	margin: 0 auto;
	padding: 32px 40px 70px;
}

.catalog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.catalog-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.boat-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}

.boat-card:hover {
	border-color: var(--accent);
	transform: translateY(-4px);
	box-shadow: 0 8px 32px rgba(74, 144, 217, .1);
}

.boat-card-media {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #060d1a;
}

.boat-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--t-img);
}

.boat-card:hover .boat-card-media img {
	transform: scale(1.06);
}

.boat-card-noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #1f3150;
}

.boat-card-noimg svg {
	width: 64px;
	height: 64px;
}

/* Etichetta libera, in alto a sinistra, con alone luminoso */
.badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 4px 11px;
	border: 1px solid rgba(255, 255, 255, .9);
	border-radius: var(--r-xs);
	background: rgba(0, 0, 0, .5);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	box-shadow: 0 0 10px rgba(255, 255, 255, .3), inset 0 0 6px rgba(255, 255, 255, .08);
	text-shadow: 0 0 8px rgba(255, 255, 255, .7);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

/* Stato, in alto a destra: stesso fondo per tutti, cambia solo il testo */
.status {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	padding: 4px 11px;
	border: 1px solid var(--badge-border);
	border-radius: var(--r-xs);
	background: var(--badge-bg);
	color: var(--st-disponibile);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.status--venduta {
	color: var(--st-venduto);
}

.status--trattativa {
	color: var(--st-trattativa);
}

.status--noleggio {
	color: var(--accent-hover);
}

.badge--inline,
.status--inline {
	position: static;
	display: inline-block;
}

.boat-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px 22px 22px;
}

.boat-card-title {
	margin-bottom: 4px;
	font-family: var(--font-display);
	font-size: 20px;
	line-height: 1.25;
	letter-spacing: .3px;
}

.boat-card-sub {
	margin-bottom: 4px;
	font-size: 14.5px;
	color: var(--muted);
}

.boat-card .bs-anteprima {
	margin-top: 8px;
	color: rgba(232, 238, 245, 0.82);
	font-size: 15px;
}

.boat-card .bs-anteprima-voce {
	opacity: 1;
}

.boat-card .bs-anteprima-icona {
	color: var(--accent);
}

.boat-card-price {
	margin-top: auto;
	padding-top: 16px;
	font-family: var(--font-display);
	font-size: 21px;
	line-height: 1.2;
	color: var(--accent);
}

.boat-card-price--nota {
	font-size: 16px;
	color: var(--text-soft);
}

.boat-card-price--venduta {
	font-size: 16px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--st-venduto);
}

/* Card compatte (fasce in home e "potrebbero interessarti") */
.catalog-grid--compact .boat-card-body {
	padding: 16px 18px 18px;
}

.catalog-grid--compact .boat-card-title {
	font-size: 18px;
}

.catalog-grid--compact .boat-card-price {
	font-size: 19px;
	padding-top: 12px;
}

/* Le vendute restano leggibili ma un passo indietro */
.boat-card--venduta .boat-card-media img {
	filter: saturate(.65);
}

.catalog-empty {
	grid-column: 1 / -1;
	padding: 80px 20px;
	text-align: center;
	color: var(--muted);
}

.catalog-empty .btn {
	margin-top: 18px;
}

/* Numerazione pagine */
.pagination {
	margin-top: 44px;
}

.pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	font-size: 14.5px;
	color: var(--muted);
	transition: border-color var(--t-fast), color var(--t-fast);
}

.pagination a.page-numbers:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.pagination .page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.pagination .page-numbers.dots {
	border-color: transparent;
}


/* --------------------------------------------------------------------------
   19. Scheda imbarcazione
   Galleria a sinistra, riquadro fisso di 360px a destra.
   -------------------------------------------------------------------------- */

.detail {
	max-width: var(--wrap-detail);
	margin: 0 auto;
	padding: calc(var(--nav-h) + 30px) 40px 70px;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 22px;
	font-size: 14.5px;
	color: var(--muted);
	transition: color var(--t-fast);
}

.back-link:hover {
	color: var(--accent);
}

.back-link svg {
	width: 14px;
	height: 14px;
}

.detail-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 32px;
	align-items: start;
}

.detail-head {
	margin-bottom: 20px;
}

.detail-labels {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.detail-title {
	margin-bottom: 8px;
	font-size: clamp(24px, 2.8vw, 34px);
	letter-spacing: .4px;
}

.detail-loc {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 0;
	font-size: 16.5px;
	color: var(--muted);
}

.detail-loc span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.detail-loc svg {
	width: 15px;
	height: 15px;
	color: var(--accent);
}

/* Galleria */
.gallery-main {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--r-lg);
	background: #060d1a;
	cursor: zoom-in;
}

.gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery-nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .73);
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color var(--t-fast);
}

.gallery-nav:hover {
	background: var(--accent);
}

.gallery-nav svg {
	width: 18px;
	height: 18px;
}

.gallery-prev {
	left: 12px;
}

.gallery-next {
	right: 12px;
}

.gallery-counter {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	padding: 4px 10px;
	border-radius: var(--r-lg);
	background: rgba(0, 0, 0, .73);
	color: #fff;
	font-size: 13.5px;
}

/* Le miniature vanno a capo su più righe invece di scorrere di lato */
.gallery-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, 76px);
	gap: 8px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.gallery-thumb {
	display: block;
	width: 76px;
	height: 52px;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 5px;
	background: #060d1a;
	cursor: pointer;
	opacity: .75;
	transition: border-color var(--t-fast), opacity var(--t-fast);
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
	border-color: var(--accent);
	opacity: 1;
}

.gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Lightbox */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .94);
}

.lightbox.is-open {
	display: flex;
}

.lightbox-close {
	position: absolute;
	top: 18px;
	right: 20px;
	z-index: 3;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	cursor: pointer;
}

.lightbox-close svg {
	width: 26px;
	height: 26px;
	margin: auto;
}

.lightbox-close:hover {
	color: var(--accent);
}

.lightbox-img {
	max-width: 92vw;
	max-height: 82vh;
	max-height: 82svh;
	object-fit: contain;
	border-radius: var(--r-sm);
}

.lightbox-nav {
	position: fixed;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .73);
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color var(--t-fast);
}

.lightbox-nav:hover {
	background: var(--accent);
}

.lightbox-nav svg {
	width: 22px;
	height: 22px;
}

.lightbox-prev {
	left: 20px;
}

.lightbox-next {
	right: 20px;
}

.lightbox-counter {
	margin-top: 12px;
	font-size: 13.5px;
	color: #8a8f99;
}

.is-locked {
	overflow: hidden;
}

/* Riquadro laterale */
.detail-aside {
	position: sticky;
	top: calc(var(--adm) + var(--barra-vis) + var(--nav-h) + 24px);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.aside-box {
	padding: 24px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
}

.price-big {
	margin-bottom: 6px;
	font-family: var(--font-display);
	font-size: 30px;
	line-height: 1.2;
	color: var(--accent);
}

.price-big--nota {
	font-size: 22px;
	color: var(--text);
}

.price-big--venduta {
	font-size: 22px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--st-venduto);
}

.price-note {
	margin: 0 0 14px;
	font-size: 14.5px;
	color: var(--muted);
}

.status-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 18px;
	padding: 5px 14px;
	border: 1px solid #1a4070;
	border-radius: 20px;
	background: #0a1e35;
	color: var(--accent);
	font-size: 13.5px;
	font-weight: 700;
}

.status-pill::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.status-pill--venduta {
	border-color: #5c1a1a;
	background: #2e0d0d;
	color: #dd6666;
}

.status-pill--noleggio {
	border-color: #1a4070;
	background: #0a1e35;
	color: var(--accent-hover);
}

.aside-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 12px;
}

.aside-contact {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 15.5px;
	color: var(--text-soft);
	transition: color var(--t-fast);
}

.aside-contact:hover {
	color: var(--accent);
}

.aside-contact svg {
	width: 15px;
	height: 15px;
	color: var(--accent);
}

/* Blocchi della colonna principale */
.desc-section {
	margin-top: 32px;
	padding-top: 26px;
	border-top: 1px solid var(--border);
}

.desc-section-hd {
	margin: 0 0 16px;
	font-family: var(--font-ui);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--muted);
}

.desc-text {
	font-size: 17px;
	line-height: 1.85;
	color: var(--text);
}

.desc-text p {
	margin: 0 0 1em;
}

.desc-text b,
.desc-text strong {
	color: #d8e4ef;
	font-weight: 700;
}

.desc-text u {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.desc-text ul {
	padding-left: 1.2em;
}

.desc-text a {
	color: var(--accent);
}

/* Scheda tecnica del plugin, vestita come i box tecnici del design system */
.detail .bs-specifiche {
	margin: 0;
}

.detail .bs-sez {
	margin: 0 0 26px;
}

.detail .bs-sez:last-child {
	margin-bottom: 0;
}

.detail .bs-sez-titolo {
	margin: 0 0 10px;
	font-family: var(--font-ui);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 2.5px;
	color: var(--muted);
	opacity: 1;
}

.detail .bs-specifiche-lista {
	gap: 10px;
}

.detail .bs-spec {
	gap: 12px;
	padding: 11px 13px;
	border: 0;
	border-radius: var(--r-md);
	background: var(--surface-2);
}

.detail .bs-spec-icona {
	width: 32px;
	height: 32px;
	background: rgba(74, 144, 217, .12);
	color: var(--accent);
	opacity: 1;
}

.detail .bs-spec-icona svg {
	width: 17px;
	height: 17px;
}

.detail .bs-spec-etichetta {
	font-size: 11.5px;
	letter-spacing: .8px;
	color: var(--muted);
	opacity: 1;
}

.detail .bs-spec-valore {
	font-size: 16.5px;
	font-weight: 700;
	color: var(--text);
}

.detail .bs-mappa-cornice {
	height: 300px;
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	background: var(--surface-2);
}

.detail .bs-mappa-link {
	color: var(--accent);
	opacity: 1;
}

.detail .bs-video {
	margin-top: 12px;
	border-radius: var(--r-md);
	overflow: hidden;
}

.detail .bs-video-link {
	border-color: var(--accent);
	border-radius: var(--r-md);
	color: var(--accent);
}

.related {
	margin-top: 64px;
	padding-top: 44px;
	border-top: 1px solid var(--border);
}

.related .catalog-grid {
	margin-top: 26px;
}


/* --------------------------------------------------------------------------
   20. Moduli
   Focus segnalato solo dal bordo, nessuna ombra.
   -------------------------------------------------------------------------- */

.form-title {
	margin: 0 0 12px;
	font-family: var(--font-ui);
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: var(--accent);
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 10px;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="number"],
.form select,
.form textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
	display: block;
	width: 100%;
	margin-bottom: 9px;
	padding: 10px 12px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 14.5px;
	transition: border-color var(--t-fast);
}

.form textarea,
.wpcf7 textarea {
	min-height: 96px;
	resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
	outline: none;
	border-color: var(--accent);
}

.form ::placeholder {
	color: var(--muted);
}

.form label.form-label {
	display: block;
	margin: 4px 0 5px;
	font-size: 12.5px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--muted);
}

.form-consent {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 6px 0 14px;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--muted);
	cursor: pointer;
}

.form-consent input {
	flex-shrink: 0;
	width: 15px;
	height: 15px;
	margin: 1px 0 0;
	accent-color: var(--accent);
}

.form-consent a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Campo trappola per i robot: invisibile alle persone */
.form-trap {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-msg {
	margin: 0 0 14px;
	padding: 11px 13px;
	border-radius: var(--r-md);
	font-size: 14.5px;
	line-height: 1.5;
}

.form-msg--ok {
	background: rgba(37, 211, 102, .1);
	border: 1px solid rgba(37, 211, 102, .35);
	color: #8fe8b3;
}

.form-msg--err {
	background: rgba(255, 143, 143, .08);
	border: 1px solid rgba(255, 143, 143, .35);
	color: var(--st-venduto);
}

.form .btn[disabled] {
	opacity: .6;
	cursor: wait;
}

.wpcf7 input[type="submit"] {
	padding: 13px 30px;
	border: 0;
	border-radius: var(--r-md);
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}


/* --------------------------------------------------------------------------
   21. Pagine di contenuto
   -------------------------------------------------------------------------- */

.content-area {
	max-width: var(--wrap-text);
	margin: 0 auto;
	padding: 64px 40px 90px;
}

.content-area--wide {
	max-width: var(--wrap);
}

.prose {
	font-size: 16.5px;
	line-height: 1.85;
	color: var(--text-soft);
}

.prose > * {
	margin-top: 0;
	margin-bottom: 0;
}

.prose > * + * {
	margin-top: 1.1em;
}

.prose h2 {
	margin-top: 1.8em;
	font-size: clamp(22px, 2.8vw, 32px);
	color: var(--text);
}

.prose h3 {
	margin-top: 1.6em;
	font-size: 22px;
	color: var(--text);
}

.prose h4 {
	margin-top: 1.4em;
	font-family: var(--font-ui);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--accent);
}

.prose h2:first-child,
.prose h3:first-child {
	margin-top: 0;
}

.prose strong,
.prose b {
	color: var(--text);
}

.prose a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

.prose li + li {
	margin-top: .35em;
}

.prose li::marker {
	color: var(--accent);
}

.prose img,
.prose figure img {
	border-radius: var(--r-sm);
}

.prose figure {
	margin: 2em 0;
}

.prose figcaption {
	margin-top: 8px;
	font-size: 14.5px;
	color: var(--muted);
}

.prose blockquote {
	margin: 2em 0;
	padding-left: 20px;
	border-left: 2px solid var(--accent);
	font-family: var(--font-display);
	font-size: 20px;
	font-style: italic;
	color: var(--text);
}

.prose hr {
	margin: 2.4em 0;
	border: 0;
	border-top: 1px solid var(--border);
}

.prose .wp-block-columns {
	display: flex;
	gap: 36px;
}

.prose .wp-block-column {
	flex: 1;
	min-width: 0;
}

.prose .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.prose .wp-block-button__link {
	display: inline-flex;
	padding: 13px 30px;
	border-radius: var(--r-xs);
	background: var(--accent);
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	text-decoration: none;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16.5px;
}

.prose th,
.prose td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--border);
	text-align: left;
}

/* Riquadri di contenuto per le pagine servizi / cantiere */
.cards-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: 44px;
}

.info-card {
	padding: 30px 28px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
}

.info-card h3 {
	margin-bottom: 12px;
	font-size: 21px;
}

.info-card p,
.info-card li {
	font-size: 16.5px;
	line-height: 1.8;
	color: var(--text-soft);
}

.info-card ul {
	margin: 0;
	padding-left: 1.2em;
}

/* Pagina contatti */
.contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 48px;
	align-items: start;
}

.contact-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.contact-list .contact-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(74, 144, 217, .12);
	color: var(--accent);
}

.contact-list .contact-icon svg {
	width: 17px;
	height: 17px;
}

.contact-list small {
	display: block;
	font-size: 11.5px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--muted);
}

.contact-list a,
.contact-list span {
	font-size: 17px;
	color: var(--text);
}

.contact-list a:hover {
	color: var(--accent);
}

.contact-map {
	margin-top: 30px;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--r-md);
}

.contact-map iframe {
	width: 100%;
	height: 300px;
	border: 0;
}

.mappa-avvia {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 300px;
	padding: 24px;
	border: 0;
	background: var(--surface-2);
	color: var(--text);
	font-family: inherit;
	text-align: center;
	cursor: pointer;
	transition: background .2s ease;
}

.mappa-avvia:hover {
	background: var(--surface);
}

.mappa-avvia svg {
	width: 26px;
	height: 26px;
	color: var(--accent);
}

.mappa-avvia-testo {
	font-size: 15px;
	font-weight: 600;
}

.mappa-avvia-nota {
	max-width: 420px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--muted);
}

.contact-map-link {
	display: inline-block;
	margin-top: 8px;
	font-size: 13.5px;
	color: var(--accent);
}

/* 404 */
.not-found {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 70vh;
	padding: calc(var(--nav-h) + 40px) 24px 60px;
	text-align: center;
}

.not-found-code {
	font-family: var(--font-display);
	font-size: clamp(80px, 14vw, 160px);
	line-height: 1;
	color: var(--accent);
}


/* --------------------------------------------------------------------------
   22. WooCommerce: solo quel che resta visibile senza i suoi stili
   -------------------------------------------------------------------------- */

.woocommerce-notices-wrapper:empty {
	display: none;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	margin: 0 0 20px;
	padding: 12px 16px;
	list-style: none;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	font-size: 14.5px;
}


/* --------------------------------------------------------------------------
   23. Comparsa al passaggio (solo con JavaScript attivo)
   -------------------------------------------------------------------------- */

.js .reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

.js .reveal-d1 { transition-delay: .08s; }
.js .reveal-d2 { transition-delay: .16s; }
.js .reveal-d3 { transition-delay: .24s; }


/* --------------------------------------------------------------------------
   23b. Componenti dei modelli di pagina
   -------------------------------------------------------------------------- */

/* Voce di menu con classe CSS "nav-cta" (Aspetto › Menu › Classi CSS):
   diventa il bottone azzurro in fondo alla barra. */
.nav-menu li.nav-cta > a {
	margin-left: 8px;
	padding: 7px 16px;
	border: 1px solid rgba(74, 144, 217, .45);
	color: var(--accent);
}

.nav-menu li.nav-cta > a:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.nav-logo-testo {
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: var(--accent);
}

/* Varianti di griglia secondo quanti elementi ci sono */
.numbers--2 {
	grid-template-columns: repeat(2, 1fr);
}

.numbers--1 {
	grid-template-columns: 1fr;
}

.why-grid--4 {
	grid-template-columns: repeat(4, 1fr);
}

.split--solo-testo {
	grid-template-columns: 1fr;
}

.section-head--row + .catalog-grid {
	margin-top: 36px;
}

/* Contenuto delle card in evidenza, sopra la foto */
.featured-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.featured-body .bs-anteprima {
	margin-top: 8px;
	font-size: 14.5px;
	color: rgba(232, 238, 245, 0.87);
}

.featured-body .bs-anteprima-voce {
	opacity: 1;
}

.featured-body .bs-anteprima-icona {
	color: var(--accent-hover);
}

/* Linguette fra le sezioni della vendita */
.scope-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Bottoni ben leggibili anche sopra la foto di testata: fondo scuro velato */
.scope-tab {
	padding: 11px 22px;
	border: 1px solid rgba(232, 238, 245, 0.44);
	border-radius: 26px;
	background: rgba(4, 6, 14, .5);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: rgba(232, 238, 245, .92);
	transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast);
}

.scope-tab:hover {
	border-color: var(--accent);
	background: rgba(74, 144, 217, .22);
	color: #fff;
}

.scope-tab.is-active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.page-hero .scope-tabs {
	margin-top: 28px;
}

/* Seconda riga di bottoni: fasce di prezzo (vendita) e luoghi (charter) */
.scope-riga {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin-top: 16px;
}

.scope-riga-titolo {
	font-size: 13.5px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: rgba(232, 238, 245, 0.87);
}

.page-hero .scope-riga .scope-tabs,
.scope-riga .scope-tabs {
	margin-top: 0;
}

.scope-tab--piccola {
	padding: 8px 16px;
	font-size: 13.5px;
	letter-spacing: 1.2px;
}

/* Prezzi: varianti */
.boat-card-price--noleggio {
	font-size: 18px;
}

.boat-card-price del,
.price-big del,
.featured-price del {
	margin-right: 8px;
	font-size: .68em;
	color: var(--muted);
	text-decoration-thickness: 1px;
}

.price-big--noleggio {
	font-size: 22px;
	line-height: 1.35;
}

/* Galleria: la foto grande e' un bottone che apre la lightbox */
.gallery-zoom {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

/* Descrizione: titoletti e tabelle ricavate dal testo */
.desc-sub {
	margin: 26px 0 10px;
	font-family: var(--font-ui);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--accent);
}

.desc-sub:first-child {
	margin-top: 0;
}

.desc-table {
	width: 100%;
	margin: 0 0 8px;
	border-collapse: collapse;
	font-size: 16px;
}

.desc-table th,
.desc-table td {
	padding: 9px 12px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

.desc-table th {
	width: 45%;
	font-weight: 400;
	color: var(--muted);
}

.desc-table td {
	font-weight: 600;
	color: var(--text);
}

.desc-table tr:nth-child(odd) {
	background: rgba(13, 24, 40, .55);
}

.detail-note {
	margin: 30px 0 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--muted);
}

/* Prezzo in alto, solo su telefono (il riquadro laterale finisce in fondo) */
.detail-price-mobile {
	display: none;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin: 18px 0 4px;
	padding: 14px 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
}

.detail-price-mobile .price-big {
	margin: 0;
	font-size: 24px;
}

.sold-note {
	margin: 0 0 16px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--text-soft);
}

.related-title {
	margin-bottom: 4px;
	font-size: clamp(22px, 2.4vw, 30px);
}

/* Contatti */
.contact-office + .contact-office {
	margin-top: 40px;
	padding-top: 34px;
	border-top: 1px solid var(--border);
}

.contact-office-title {
	margin-bottom: 4px;
	font-size: clamp(22px, 2.4vw, 30px);
}

.contact-note {
	margin: 26px 0 0;
	font-size: 14.5px;
	color: var(--muted);
}

/* Pagina Contatti: le due sedi come schede uguali, mappa in cima */
.sedi {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
	margin-top: 48px;
}

.sede {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
}

.sede .contact-map {
	margin: 0;
	border: 0;
	border-bottom: 1px solid var(--border);
	border-radius: 0;
}

.sede .contact-map iframe,
.sede .mappa-avvia {
	display: flex;
	height: 260px;
}

.sede .contact-map iframe {
	display: block;
}

.sede-corpo {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 30px 32px 32px;
}

.sede .contact-office-title {
	margin-bottom: 0;
}

.sede .contact-list {
	margin-top: 22px;
}

.sede-azioni {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: auto;
	padding-top: 28px;
}

/* Il testo accanto al modulo sta a metà altezza, senza vuoto sotto */
.contact-layout--centrato {
	align-items: center;
}

.contatti-scrivi .section-sub {
	max-width: 480px;
}

.contatti-social {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 36px;
	font-size: 13.5px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--muted);
}

.contatti-social .footer-social {
	margin-top: 0;
}

/* Vendi la tua barca: a sinistra testo e domande, a destra il modulo.
   Su telefono l'ordine diventa testo, modulo, domande. */
.page-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

.vendi-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 440px;
	grid-template-rows: auto 1fr;
	grid-template-areas:
		"intro modulo"
		"faq   modulo";
	gap: 0 72px;
	align-items: start;
}

.vendi-intro {
	grid-area: intro;
}

.vendi-intro .section-sub {
	max-width: 540px;
}

.vendi-layout .aside-box {
	grid-area: modulo;
	position: sticky;
	top: calc(var(--adm) + var(--barra-vis) + var(--nav-h) + 24px);
}

.vendi-layout .faq {
	grid-area: faq;
}

.faq {
	margin-top: 44px;
	padding-top: 34px;
	border-top: 1px solid var(--border);
}

.faq-titolo {
	margin: 0 0 6px;
	font-size: 22px;
}

.faq-voce {
	border-bottom: 1px solid var(--border);
}

.faq-voce summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 0;
	font-size: 17px;
	color: var(--text);
	list-style: none;
	cursor: pointer;
	transition: color var(--t-fast);
}

.faq-voce summary::-webkit-details-marker {
	display: none;
}

.faq-voce summary:hover {
	color: var(--accent);
}

.faq-voce summary svg {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	color: var(--accent);
	transition: transform var(--t-fast);
}

.faq-voce[open] summary svg {
	transform: rotate(90deg);
}

.faq-voce p {
	margin: 0 0 20px;
	padding-right: 36px;
	font-size: 16.5px;
	line-height: 1.8;
	color: var(--text-soft);
}

/* Passi numerati, uniti da una linea sottile */
.passi {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
	margin: 56px 0 0;
	padding: 0;
	list-style: none;
}

.passi--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.passi--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.passo {
	position: relative;
}

.passo:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 30px;
	left: 100px;
	right: -24px;
	height: 1px;
	background: linear-gradient(90deg, var(--accent), transparent);
	opacity: .45;
}

.passo .numero-contorno {
	margin-bottom: 20px;
	font-size: 60px;
}

.passo-titolo {
	margin: 0 0 10px;
	font-size: 21px;
}

.passo-testo {
	max-width: 340px;
	margin: 0;
	font-size: 16.5px;
	line-height: 1.8;
	color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   Promo del momento
   La barra sta sopra la navigazione finche' si e' in cima; allo scorrimento
   sale e la navigazione prende il suo posto. Il body scende della sua
   altezza, cosi' non copre nulla.
   -------------------------------------------------------------------------- */
body.has-promo {
	--barra-h: 40px;
	--barra-vis: 40px;
	padding-top: var(--barra-h);
}

.promo-chiusa body.has-promo {
	--barra-h: 0px;
	--barra-vis: 0px;
}

.promo-su body.has-promo {
	--barra-vis: 0px;
}

.promo-bar {
	position: fixed;
	top: var(--adm);
	left: 0;
	right: 0;
	z-index: 101;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 56px;
	background: #0a1a2e;
	border-bottom: 1px solid rgba(201, 169, 110, .22);
	font-size: 14px;
	letter-spacing: .4px;
	color: rgba(232, 238, 245, 0.95);
	transition: transform var(--t);
}

.promo-su .promo-bar {
	transform: translateY(-100%);
}

.promo-chiusa .promo-bar {
	display: none;
}

.promo-bar-link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	max-width: 100%;
}

.promo-bar-etichetta {
	flex-shrink: 0;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--gold);
}

.promo-bar-testo {
	display: block;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.promo-bar-breve {
	display: none;
}

.promo-bar-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	font-weight: 600;
	color: var(--accent-hover);
}

.promo-bar-cta svg {
	width: 13px;
	height: 13px;
	transition: transform var(--t-fast);
}

.promo-bar-link:hover .promo-bar-cta svg {
	transform: translateX(3px);
}

.promo-bar-chiudi {
	position: absolute;
	top: 50%;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: none;
	color: rgba(232, 238, 245, 0.67);
	cursor: pointer;
	transform: translateY(-50%);
	transition: color var(--t-fast);
}

.promo-bar-chiudi:hover {
	color: var(--text);
}

.promo-bar-chiudi svg {
	width: 16px;
	height: 16px;
}

/* Fascia della promo in cima al charter */
.promo-banner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px 28px;
	margin-bottom: 30px;
	padding: 18px 22px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-left: 2px solid var(--gold);
	border-radius: var(--r-md);
}

.promo-banner-thumb {
	display: block;
	flex-shrink: 0;
	width: 118px;
	height: 84px;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	background: #060d1a;
	cursor: zoom-in;
}

.promo-banner-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--t-img);
}

.promo-banner-thumb:hover img {
	transform: scale(1.06);
}

.promo-banner-testo {
	flex: 1;
	min-width: 240px;
}

.promo-banner .eyebrow {
	margin-bottom: 6px;
	color: var(--gold);
}

.promo-banner-titolo {
	margin: 0 0 4px;
	font-size: 21px;
}

.promo-banner p {
	margin: 0;
	font-size: 16px;
	color: var(--text-soft);
}

.promo-banner-azioni {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Fascia contatti in fondo alle pagine (senza foto) */
.cta-band--contatti {
	background: var(--surface-2);
	border-top: 1px solid var(--border);
}

.cta-band--contatti p a {
	color: var(--text);
	transition: color var(--t-fast);
}

.cta-band--contatti p a:hover {
	color: var(--accent);
}

/* Pagine di contenuto: il testo resta leggibile, le griglie usano lo spazio */
.prose > p,
.prose > h2,
.prose > h3,
.prose > h4,
.prose > ul,
.prose > ol,
.prose > blockquote {
	max-width: 780px;
}

/* Griglia di riquadri fatta con i blocchi Gruppo dell'editor:
   Gruppo con classe "services-grid" che contiene Gruppi con classe "info-card".
   WordPress nei temi classici aggiunge un contenitore interno: si gestisce
   in tutti e due i casi. */
.prose .services-grid,
.prose .services-grid > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.prose .services-grid {
	margin-top: 2.2em;
}

.prose .services-grid > .wp-block-group__inner-container {
	grid-column: 1 / -1;
}

.prose .info-card {
	margin: 0;
	padding: 26px 24px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	transition: border-color var(--t), transform var(--t);
}

.prose .info-card:hover {
	border-color: var(--accent);
	transform: translateY(-3px);
}

.prose .info-card h3 {
	margin: 0 0 10px;
	font-size: 20px;
}

.prose .info-card p {
	margin: 0;
	font-size: 16.5px;
	line-height: 1.75;
}

.not-found .hero-actions {
	margin-top: 28px;
}

.filter-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* --------------------------------------------------------------------------
   Pagina Servizi: gruppi (in porto, a bordo, a terra)
   Il titolo del gruppo resta fermo a sinistra mentre scorrono i servizi.
   -------------------------------------------------------------------------- */
.gruppo-servizi {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 2fr);
	gap: 56px;
	align-items: start;
}

.gruppo-servizi-testa {
	position: sticky;
	top: calc(var(--adm) + var(--barra-vis) + var(--nav-h) + 40px);
}

.gruppo-servizi-testa .section-sub {
	max-width: 360px;
}

/* Numeri grandi a contorno: oro sui gruppi, azzurro sulle lavorazioni */
.numero-contorno {
	display: block;
	font-family: var(--font-display);
	line-height: 1;
	color: var(--gold);
}

@supports (-webkit-text-stroke: 1px black) {
	.numero-contorno {
		color: transparent;
		-webkit-text-stroke: 1px rgba(201, 169, 110, .65);
	}

	.lavoro .numero-contorno,
	.passo .numero-contorno {
		-webkit-text-stroke: 1px var(--accent);
	}
}

.gruppo-servizi-num {
	margin-bottom: 16px;
	font-size: 76px;
}

.gruppo-servizi-lista {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.servizio {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 26px 24px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	transition: border-color var(--t), transform var(--t);
}

.section--alt .servizio {
	background: var(--bg);
}

/* Un servizio rimasto solo sull'ultima riga la occupa tutta */
.gruppo-servizi-lista .servizio:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.servizio:hover {
	border-color: var(--accent);
	transform: translateY(-3px);
}

.servizio-icona {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: rgba(74, 144, 217, .12);
	color: var(--accent);
}

.servizio-icona svg {
	width: 23px;
	height: 23px;
}

.servizio-titolo {
	margin: 2px 0 8px;
	font-size: 20px;
}

.servizio-testo {
	margin: 0;
	font-size: 16.5px;
	line-height: 1.75;
	color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   Pagina Cantiere: lavorazioni numerate e "dove siamo"
   -------------------------------------------------------------------------- */
.lavori {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 64px;
	margin-top: 48px;
}

.lavoro {
	display: flex;
	gap: 26px;
	padding: 30px 0;
	border-top: 1px solid var(--border);
}

.lavoro .numero-contorno {
	flex-shrink: 0;
	min-width: 72px;
	font-size: 46px;
}

@supports not (-webkit-text-stroke: 1px black) {
	.lavoro .numero-contorno,
	.passo .numero-contorno {
		color: var(--accent);
	}
}

.lavoro-titolo {
	margin: 4px 0 8px;
	font-size: 21px;
}

.lavoro-testo {
	margin: 0;
	font-size: 16.5px;
	line-height: 1.8;
	color: var(--text-soft);
}

.cta-band-contatti {
	margin: 26px 0 0;
	font-size: 14.5px;
	color: rgba(232, 238, 245, 0.82);
}

.cta-band .cta-band-contatti {
	margin-bottom: 0;
}

.cta-band-contatti a {
	color: var(--text);
	transition: color var(--t-fast);
}

.cta-band-contatti a:hover {
	color: var(--accent);
}

.dove .contact-map {
	margin-top: 0;
}

.dove .contact-map iframe {
	height: 440px;
}

.dove-contatti {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 24px;
	padding-top: 22px;
	border-top: 1px solid var(--border);
	font-size: 17px;
}

.dove-contatti a {
	color: var(--text);
	transition: color var(--t-fast);
}

.dove-contatti a:hover {
	color: var(--accent);
}

/* --------------------------------------------------------------------------
   Home: partnership
   I loghi sono PNG o SVG trasparenti e il filtro li rende tutti bianchi.
   La striscia contiene i loghi due volte e scorre di metà della sua
   larghezza, così il giro ricomincia senza scatti. Lo spazio fra i loghi
   sta nel padding e non in gap, perché le due metà siano identiche.
   -------------------------------------------------------------------------- */
.partner-testa {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 24px 48px;
}

.partner-testa .section-title {
	margin-bottom: 0;
}

.partner-finanziamenti {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 14px 22px;
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	font-size: 14.5px;
	color: var(--text-soft);
	transition: border-color var(--t-fast);
}

a.partner-finanziamenti:hover {
	border-color: var(--accent);
}

.partner-finanziamenti img {
	width: auto;
	height: 22px;
	filter: brightness(0) invert(1);
}

.partner-nastro {
	margin: 52px -48px 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.partner-scorri {
	display: flex;
	align-items: center;
	width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
	animation: partner-scorri var(--durata, 40s) linear infinite;
}

.partner-nastro:hover .partner-scorri,
.partner-nastro:focus-within .partner-scorri {
	animation-play-state: paused;
}

.partner-scorri li {
	flex-shrink: 0;
	padding: 0 44px;
}

.partner-scorri a,
.partner-scorri span {
	display: flex;
	align-items: center;
	height: 72px;
}

.partner-scorri img {
	width: auto;
	max-width: none;
	height: var(--h, 44px);
	filter: brightness(0) invert(1);
	opacity: .62;
	transition: opacity var(--t-fast);
}

.partner-scorri a:hover img,
.partner-scorri a:focus-visible img {
	opacity: 1;
}

@keyframes partner-scorri {
	to {
		transform: translateX(-50%);
	}
}

/* Chi chiede meno movimento vede i loghi fermi, una volta sola */
@media (prefers-reduced-motion: reduce) {
	.partner-nastro {
		-webkit-mask-image: none;
		mask-image: none;
	}

	.partner-scorri {
		flex-wrap: wrap;
		justify-content: center;
		width: auto;
		row-gap: 18px;
		animation: none;
	}

	.partner-scorri [aria-hidden="true"] {
		display: none;
	}
}

/* Bottone "Vedi tutte le foto" sotto le miniature */
.gallery-all {
	display: none;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	padding: 8px 14px;
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	background: transparent;
	color: var(--text-soft);
	font-size: 13.5px;
	letter-spacing: .5px;
	cursor: pointer;
	transition: border-color var(--t-fast), color var(--t-fast);
}

.gallery-all:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.gallery-all svg {
	width: 15px;
	height: 15px;
	color: var(--accent);
}


/* ==========================================================================
   24. Media query — sempre in fondo
   Breakpoint del design system: 1500 · 1240 · 1100 (nav) · 1024 · 1000 ·
   900 · 768 · 640 · 520 · 420
   ========================================================================== */

@media (max-width: 1500px) {
	.section {
		padding: 84px 40px;
	}

	.partner-nastro {
		margin-left: -40px;
		margin-right: -40px;
	}

	.split {
		gap: 56px;
	}
}

/* Barra in alto su schermi medi: prima si stringono le voci del menu,
   poi dei numeri restano solo le bandiere (sempre cliccabili) */
@media (max-width: 1480px) {
	.nav-marchio {
		font-size: 20px;
		letter-spacing: 1px;
	}

	.nav-logo {
		margin-right: 12px;
	}
}

@media (max-width: 1400px) {
	.nav-menu a {
		padding: 7px 8px;
		letter-spacing: 1.2px;
	}

	.nav-menu .menu-social {
		margin-left: 4px;
	}

	.nav-menu .menu-social a {
		width: 30px;
	}
}

@media (max-width: 1460px) {
	/* Senza numero due cornette uguali non direbbero nulla: ne resta una */
	.nav-phone span {
		display: none;
	}

	.nav-phones .nav-phone + .nav-phone {
		display: none;
	}
}

/* Ultimo passo prima del menu a tendina: tutto un filo piu' compatto */
@media (max-width: 1180px) {
	.nav-marchio {
		font-size: 19px;
	}

	.nav-menu a {
		padding: 7px 6px;
		letter-spacing: 1px;
	}

	.nav-menu .menu-social a {
		width: 28px;
	}
}

@media (max-width: 1240px) {
	.site-nav {
		padding: 0 22px;
	}

	.nav-menu a {
		padding: 7px 8px;
		letter-spacing: 1.2px;
	}

	.nav-phone span {
		display: none;
	}

	.why-grid {
		gap: 20px;
	}

	.why-grid--4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Da qui la navigazione diventa un menu a tendina */
@media (max-width: 1100px) {
	.nav-toggle {
		display: flex;
	}

	.nav-menu {
		position: fixed;
		top: calc(var(--adm) + var(--barra-vis) + var(--nav-h));
		left: 0;
		right: 0;
		display: none;
		/* Tendina a tutta altezza e piena: la pagina sotto non deve trasparire */
		height: calc(100vh - var(--adm) - var(--barra-vis) - var(--nav-h));
		height: calc(100dvh - var(--adm) - var(--barra-vis) - var(--nav-h));
		overflow-y: auto;
		padding: 12px 16px 26px;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
	}

	.site-nav.is-open {
		background: var(--bg);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.site-nav.is-open .nav-menu {
		display: block;
	}

	.nav-menu > ul {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.nav-menu a {
		padding: 12px 14px;
		font-size: 16px;
		border-radius: var(--r-md);
	}

	.nav-menu .menu-item-has-children > a::after {
		margin-left: auto;
	}

	.nav-menu .sub-menu {
		position: static;
		display: none;
		min-width: 0;
		padding: 0 0 6px 14px;
		background: transparent;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.nav-menu .sub-menu::before {
		display: none;
	}

	.nav-menu li.is-open > .sub-menu,
	.nav-menu .current-menu-ancestor > .sub-menu {
		display: block;
	}

	.nav-actions {
		margin-left: auto;
	}

	.nav-menu li.nav-cta > a {
		justify-content: center;
		margin: 10px 0 0;
	}

	/* Nella tendina i social diventano una fila di icone sotto a "Contatti" */
	.nav-menu .menu-social {
		justify-content: center;
		gap: 12px;
		margin: 18px 0 0;
	}

	.nav-menu .menu-social a {
		width: 44px;
		height: 44px;
		border: 1px solid var(--border);
	}

	.html-nav-open,
	.html-nav-open body {
		overflow: hidden;
	}
}

@media (max-width: 1024px) {
	.split {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.split--reverse .split-media {
		order: 0;
	}

	.split-media img {
		height: 380px;
	}

	.contact-layout {
		grid-template-columns: 1fr;
	}

	.vendi-layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto;
		grid-template-areas:
			"intro"
			"modulo"
			"faq";
		gap: 36px 0;
	}

	.vendi-layout .faq {
		margin-top: 8px;
	}

	.passi--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gruppo-servizi {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.gruppo-servizi-testa {
		position: static;
	}

	.gruppo-servizi-num {
		font-size: 60px;
	}

	.vendi-layout .aside-box {
		position: static;
	}
}

@media (max-width: 1000px) {
	.catalog-grid,
	.catalog-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.why-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 30px;
	}

	.results-count {
		margin-left: 0;
		width: 100%;
	}
}

@media (max-width: 900px) {
	.sedi {
		grid-template-columns: minmax(0, 1fr);
	}

	.detail-layout {
		grid-template-columns: 1fr;
	}

	.detail-aside,
	.admin-bar .detail-aside {
		position: static;
	}

	.featured-grid,
	.featured-grid--2 {
		grid-template-columns: 1fr;
	}

	.featured-grid--3 .featured-card:first-child {
		grid-row: auto;
		min-height: 360px;
	}

	.featured-card,
	.featured-grid--2 .featured-card,
	.featured-grid--1 .featured-card {
		min-height: 300px;
	}

	.cards-2 {
		grid-template-columns: 1fr;
	}

	.prose .wp-block-columns {
		flex-direction: column;
		gap: 20px;
	}

	.detail-price-mobile {
		display: flex;
	}
}

/* Computer: sedici miniature, poi il bottone "Vedi tutte le foto" */
@media (min-width: 769px) {
	.gallery-all--molte {
		display: inline-flex;
	}

	.gallery-thumbs li:nth-child(n+17) {
		display: none;
	}
}

/* Schermi bassi: il riquadro laterale della scheda non resta fisso, se no
   la parte bassa del modulo non si raggiungerebbe. */
@media (max-height: 820px) {
	.detail-aside,
	.admin-bar .detail-aside,
	.vendi-layout .aside-box {
		position: static;
	}
}

@media (max-width: 782px) {
	.admin-bar {
		--adm: 46px;
	}
}

@media (max-width: 768px) {
	.site-nav {
		padding: 0 14px 0 16px;
	}

	.scope-tabs {
		gap: 8px;
	}

	.sedi {
		gap: 20px;
		margin-top: 36px;
	}

	.sede-corpo {
		padding: 24px 22px 26px;
	}

	.sede .contact-map iframe,
	.sede .mappa-avvia {
		height: 220px;
	}

	.scope-tab {
		padding: 9px 16px;
		font-size: 13.5px;
	}

	/* Bottoni affiancati che riempiono la riga; se non ci stanno, uno per riga */
	.split-actions .btn {
		flex: 1 1 auto;
		justify-content: center;
	}

	.nav-logo img {
		height: 32px;
	}

	.nav-marchio {
		font-size: 19px;
		letter-spacing: 1.5px;
	}

	.nav-cta {
		padding: 6px 12px;
	}

	.section {
		padding: 60px 22px;
	}

	.page-hero-actions .btn {
		flex: 1 1 auto;
		justify-content: center;
	}

	/* Passi in colonna: numero a sinistra, testo a destra */
	.passi,
	.passi--2,
	.passi--4 {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
		margin-top: 40px;
	}

	.passo {
		display: grid;
		grid-template-columns: 62px minmax(0, 1fr);
		column-gap: 16px;
	}

	.passo .numero-contorno {
		grid-row: span 2;
		margin: 0;
		font-size: 42px;
	}

	.passo:not(:last-child)::after {
		display: none;
	}

	.faq-voce p {
		padding-right: 0;
	}

	.partner-nastro {
		margin: 36px -22px 0;
	}

	.partner-scorri li {
		padding: 0 28px;
	}

	.partner-scorri img {
		height: calc(var(--h, 44px) * .8);
	}

	.partner-finanziamenti {
		width: 100%;
		justify-content: space-between;
	}

	.numbers {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 26px;
		padding: 30px 18px;
	}

	.number:nth-child(2) {
		border-right: 0;
	}

	.hero-arrows {
		display: none;
	}

	.hero-content {
		padding-bottom: 80px;
	}

	.hero-eyebrow {
		letter-spacing: 3px;
	}

	/* Barra promo su telefono: testo corto, solo la freccia come invito */
	.promo-bar {
		justify-content: flex-start;
		padding: 0 46px 0 16px;
		font-size: 13.5px;
	}

	.promo-bar-etichetta,
	.promo-bar-lungo,
	.promo-bar-cta span {
		display: none;
	}

	.promo-bar-breve {
		display: block;
	}

	.promo-banner {
		padding: 16px;
	}

	.gruppo-servizi-lista,
	.lavori {
		grid-template-columns: 1fr;
	}

	.lavoro {
		gap: 18px;
		padding: 24px 0;
	}

	.lavoro .numero-contorno {
		min-width: 54px;
		font-size: 38px;
	}

	.servizio {
		padding: 22px 18px;
	}

	.dove .contact-map iframe {
		height: 320px;
	}

	.number-value {
		font-size: 30px;
	}

	/* Galleria: otto miniature, le altre col bottone "Vedi tutte" */
	.gallery-all {
		display: inline-flex;
	}

	.gallery-thumbs li:nth-child(n+9) {
		display: none;
	}

	.why-grid {
		grid-template-columns: 1fr;
		margin-top: 36px;
	}

	.cta-band {
		padding: 70px 22px;
	}

	.page-head {
		padding: calc(var(--nav-h) + 26px) 18px 0;
	}

	.page-hero {
		min-height: 360px;
		padding: calc(var(--nav-h) + 40px) 22px 40px;
	}

	/* Filtri: su telefono si aprono a comando e non restano fissi */
	.filters {
		position: static;
		padding: 12px 16px;
	}

	.filters-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 10px 14px;
		border: 1px solid var(--border);
		border-radius: var(--r-md);
		background: var(--surface);
		color: var(--text);
		font-size: 13.5px;
		font-weight: 600;
		letter-spacing: 1px;
		text-transform: uppercase;
		cursor: pointer;
	}

	.filters-toggle svg {
		width: 16px;
		height: 16px;
		color: var(--accent);
	}

	.js .filters-fields {
		display: none;
	}

	.js .filters-form.is-open .filters-fields {
		display: grid;
		grid-template-columns: 1fr 1fr;
		margin-top: 12px;
	}

	.filter {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}

	.filter--search {
		grid-column: 1 / -1;
	}

	.filter-input {
		width: 100%;
	}

	.filter-actions {
		grid-column: 1 / -1;
		display: flex;
		gap: 10px;
	}

	.catalog {
		padding: 20px 16px 50px;
	}

	.detail {
		padding: calc(var(--nav-h) + 20px) 16px 50px;
	}

	.content-area {
		padding: 44px 22px 70px;
	}

	.site-footer {
		padding: 40px 24px 22px;
	}

	.wa-float {
		right: 18px;
		bottom: 18px;
	}

	.sell-banner {
		padding: 20px;
	}
}

@media (max-width: 640px) {
	.catalog-grid,
	.catalog-grid--4 {
		grid-template-columns: 1fr;
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.split-media img {
		height: 300px;
	}

	.split-frame {
		right: -8px;
		bottom: -8px;
	}

	/* Il volantino e' pieno di testo: su telefono si vede intero, senza tagli */
	.promo-banner-thumb {
		width: 100%;
		height: auto;
	}

	.promo-banner-thumb img {
		height: auto;
	}
}

@media (max-width: 600px) {
	/* Qui la barra di amministrazione scorre via con la pagina */
	.admin-bar {
		--adm: 0px;
	}
}

@media (max-width: 520px) {
	.nav-phone {
		display: none;
	}

	.page-head h1 {
		letter-spacing: 1px;
	}
}

@media (max-width: 420px) {
	.btn {
		padding: 13px 22px;
		letter-spacing: 2px;
	}

	.hero-actions .btn {
		width: 100%;
	}

	.number-value {
		font-size: 26px;
	}

	.js .filters-form.is-open .filters-fields {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		animation: none !important;
	}

	.hero-media img,
	.hero-media video {
		transform: none;
	}

	/* Niente video di sfondo: resta l'immagine della slide */
	.hero-media video {
		display: none;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
	}
}
