/*
Theme Name: Locker365 Fast
Theme URI: https://locker365.net/
Author: Francesco Infantino
Description: Tema su misura per Locker365, deposito bagagli a Palermo. Leggero e senza page builder: un solo foglio di stile, un solo script, font in locale, illustrazioni in SVG. Bilingue italiano/inglese con Polylang, dati strutturati per Google, mappa schematica, landing page per luogo e protezioni di sicurezza integrate.
Version: 1.7.0
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: locker365
Domain Path: /languages
License: Proprietaria – realizzato per Locker365
*/

/* ---------- Font (in locale, 28 KB, nessuna chiamata a Google) ---------- */
@font-face {
	font-family: "Urbanist";
	src: url("assets/fonts/urbanist.woff2") format("woff2-variations"), url("assets/fonts/urbanist.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- Token ---------- */
:root {
	--ink: #14324d;
	--blue: #2b6cb0;
	--accent: #df6a1a;
	--cta: #b9500d;
	--cta-hover: #9c430b;
	--steel: #e8edf2;
	--steel-2: #d5dee7;
	--line: #c3cfdb;
	--muted: #5a6b7d;
	--paper: #fff;

	--font: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 72rem;
	--gutter: clamp(1rem, 4vw, 2rem);
	--space: clamp(3rem, 7vw, 5.5rem);
	--radius: 10px;
	--header-h: 4.5rem;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	font-feature-settings: "lnum" 1;
	text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(1.95rem, 4.4vw, 3.35rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 760; }
h3 { font-size: 1.2rem; font-weight: 720; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

abbr[title] { text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.screen-reader-text,
.form__trap {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip {
	position: absolute; left: 1rem; top: -4rem; z-index: 100;
	background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

.icon { flex: none; color: var(--blue); }

/* ---------- Pulsanti ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 2.9rem; padding: .7rem 1.25rem;
	border: 2px solid transparent; border-radius: 8px;
	font: inherit; font-weight: 720; line-height: 1.1; text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--cta); color: #fff; }
.btn--primary:hover { background: var(--cta-hover); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { border-color: #fff; color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.btn--large { min-height: 3.4rem; padding-inline: 1.6rem; font-size: 1.1rem; }

.link-strong { font-weight: 720; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid var(--steel-2);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand img { width: auto; height: 42px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
.nav__list a { color: var(--ink); text-decoration: none; font-weight: 640; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav__list a:hover,
.nav__list a[aria-current="page"] { border-bottom-color: var(--accent); }
.header-lang { display: flex; align-items: center; gap: .35rem; order: 3; }
.header-lang a { display: inline-flex !important; padding: 4px; border-radius: 6px; line-height: 0; }
.header-lang > *, .header-lang div, .header-lang span { display: flex !important; flex-direction: row !important; align-items: center; gap: .25rem; }
.header-lang br { display: none; }
.header-lang a:hover { background: var(--steel); }
.header-lang img { width: 26px; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px var(--steel-2); }
.header-lang a { opacity: .55; }
.header-lang a.is-current, .header-lang a:hover { opacity: 1; }
.header-lang select { font: inherit; font-weight: 650; padding: .35rem .5rem; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.nav { order: 2; }
.nav-toggle { order: 4; }

.nav-toggle {
	display: none; margin-left: auto;
	width: 2.9rem; height: 2.9rem;
	align-items: center; justify-content: center;
	padding: 0;
	background: none; border: 2px solid var(--ink); border-radius: 10px;
	color: var(--ink); cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block; width: 20px; height: 2.5px; border-radius: 2px;
	background: currentColor; position: relative;
	transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
/* aperto: le tre linee diventano una X */
.menu-open .nav-toggle__bars { background: transparent; }
.menu-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; margin-left: 0; }
	.header-lang { margin-left: auto; }
	.site-header__inner { gap: .75rem; }
	.brand img { height: 36px; }
	.nav {
		display: none;
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 1rem;
		padding: 1rem var(--gutter) 1.5rem;
		background: var(--paper);
		border-bottom: 1px solid var(--steel-2);
	}
	.menu-open .nav { display: flex; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--steel-2); font-size: 1.15rem; }
	.nav__list a[aria-current="page"] { color: var(--cta); border-bottom-color: var(--steel-2); }
	.nav__cta { display: none; }
}

/* ---------- Sezioni ---------- */
.section { padding-block: var(--space); }
.section--steel { background: var(--steel); }
.section__head { max-width: 40rem; margin-bottom: 2.25rem; }
.section__head p { color: var(--muted); font-size: 1.1rem; }

.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 0; }
.page-head h1 { max-width: none; }
.page-head__lead { max-width: 56rem; font-size: 1.2rem; color: var(--muted); text-wrap: pretty; }
.page-head + .section { padding-top: clamp(2rem, 4vw, 3rem); }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
/* la mappa parte alla stessa altezza del titolo (compensa l'interlinea dell'H1) */
.hero__map { padding-top: .3em; }
.hero h1 { max-width: 16ch; }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.facts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .65rem; }
.facts li { display: flex; align-items: flex-start; gap: .7rem; font-weight: 600; }
.facts--stacked { margin: 0 0 1.5rem; gap: 1rem; }
.facts--stacked li { font-weight: 500; }

/* Mappa "Siamo qui" in testata */
.hero__map { margin: 0; min-width: 0; }
.hero__grid > * { min-width: 0; }
.map { width: 100%; height: auto; display: block; border-radius: 16px; }
.map__road { stroke: #fff; stroke-width: 14; }
.map__road--ours { stroke: #ffe1cc; }
.map__rail { fill: none; stroke: #2b6cb0; stroke-width: 6; stroke-linecap: round; }
.map__rail-ties { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 6 6; }
.map__walk path { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; }
.map__street { font-family: var(--font); font-weight: 600; font-size: 12px; fill: var(--muted); }
.map__sea { font-family: var(--font); font-style: italic; font-weight: 600; font-size: 14px; fill: #5f87ad; }
.map__poi { font-family: var(--font); font-weight: 700; font-size: 15px; fill: var(--ink); }
.map__min { font-family: var(--font); font-weight: 800; font-size: 13px; fill: #fff; }
.map__note { font-family: var(--font); font-weight: 600; font-size: 13px; fill: var(--muted); }
.map__us { font-family: var(--font); font-weight: 800; font-size: 17px; fill: #fff; }
.hero__map-note { margin-top: .6rem; font-size: .9rem; color: var(--muted); }


@media (max-width: 860px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__map { margin-inline: calc(var(--gutter) * -0.5); }
}

/* ---------- Come riconoscerci (foto del posto) ---------- */
.place__grid { display: grid; grid-template-columns: 3fr 2fr; gap: 1rem; }
.place__photo { margin: 0; }
.place__photo img { width: 100%; height: clamp(260px, 34vw, 420px); object-fit: cover; border-radius: var(--radius); background: var(--steel); }
.place__photo figcaption { margin-top: .6rem; font-weight: 700; }
.place__photo:first-child img { object-position: 30% 50%; }
@media (max-width: 760px) {
	.place__grid { grid-template-columns: 1fr; }
	.place__photo img { height: auto; aspect-ratio: 4 / 3; }
}

/* ---------- Illustrazione dei locker (a pezzi, responsive) ---------- */
.sizes { background: var(--steel); }
.lk {
	--lk-ink: #1d3640;
	background: #f8f5ee;
	border-radius: 18px;
	padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2.5rem);
	color: var(--lk-ink);
}
.lk svg { display: block; width: 100%; height: auto; }

/* bagagli di riferimento: stessa scala, allineati in basso */
.lk-bags {
	list-style: none; margin: 0 auto clamp(2rem, 5vw, 3.5rem); padding: 0;
	display: flex; justify-content: center; align-items: flex-end;
	gap: clamp(.5rem, 4vw, 3rem);
}
.lk-bag { width: clamp(84px, 16vw, 150px); text-align: center; }
.lk-bag span { display: block; margin-top: .4rem; font-weight: 800; font-size: clamp(.85rem, 2vw, 1.05rem); line-height: 1.2; }

/* tre locker */
.lk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lk-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 clamp(.5rem, 2vw, 1.5rem); }
.lk-card + .lk-card { border-left: 2px dashed rgba(29, 54, 64, .45); }
.lk-title {
	margin: 0 0 1rem; padding: .45rem .5rem;
	width: min(100%, 17rem);
	border-top: 2px solid var(--lk-ink); border-bottom: 2px solid var(--lk-ink);
	font-size: clamp(1rem, 2.1vw, 1.45rem); font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.lk-art { width: 100%; max-width: 440px; margin-top: auto; }
.lk-fits { margin: .6rem 0 .8rem; font-weight: 700; font-size: clamp(.95rem, 1.6vw, 1.05rem); }
.lk-price {
	margin: 0; padding: .45rem 1.1rem;
	border-radius: 999px; background: var(--cta); color: #fff;
	font-size: clamp(.95rem, 1.6vw, 1.1rem); font-weight: 600;
}
.lk-price strong { font-weight: 800; }

/* tablet: tre colonne più strette, quote leggibili */
@media (max-width: 1024px) {
	.lk-card { padding: 0 .5rem; }
	.lk .ig-dim { font-size: 32px; } /* quote più grandi quando il disegno si rimpicciolisce */
}

/* smartphone: un locker sotto l'altro */
@media (max-width: 680px) {
	.lk-grid { grid-template-columns: 1fr; gap: 0; }
	.lk-card { padding: 1.75rem 0; }
	.lk-card + .lk-card { border-left: 0; border-top: 2px dashed rgba(29, 54, 64, .45); }
	.lk-art { max-width: 380px; }
	.lk .ig-dim { font-size: 30px; }
	.lk-title { margin-bottom: .5rem; }
	/* bagagli: tre colonne uguali, nomi su più righe senza sovrapporsi */
	.lk-bags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; align-items: end; }
	.lk-bag { width: auto; }
	.lk-bag svg { width: min(100%, 96px); margin-inline: auto; }
	.lk-bag span { font-size: .85rem; white-space: normal; overflow-wrap: anywhere; hyphens: auto; }
	.lk-card:first-child { padding-top: 0; }
	.lk-card:last-child { padding-bottom: 0; }
}

/* ---------- Passaggi ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps > li { counter-increment: step; position: relative; padding-top: 3.4rem; }
.steps > li::before {
	content: counter(step);
	position: absolute; top: 0; left: 0;
	width: 2.5rem; height: 2.5rem;
	display: grid; place-items: center;
	border: 2px solid var(--ink); border-radius: 6px;
	font-weight: 800; font-size: 1.1rem;
}
.steps p { color: var(--muted); }

.steps--compact { grid-template-columns: 1fr; gap: 0; margin-bottom: 1.5rem; }
.steps--compact > li { padding: .75rem 0 .75rem 3rem; border-bottom: 1px solid var(--steel-2); }
.steps--compact > li::before { top: .6rem; width: 2rem; height: 2rem; font-size: .95rem; }

@media (max-width: 760px) {
	.steps { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- Come arrivare (home) ---------- */
.arrive { background: var(--steel); }
.arrive__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.arrive__list { margin: 0; display: grid; gap: 0; }
.arrive__list > div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.arrive__list > div:first-child { border-top: 1px solid var(--line); }
.arrive__list dt { font-weight: 760; }
.arrive__list dd { margin: .15rem 0 0; color: var(--muted); }
@media (max-width: 760px) { .arrive__grid { grid-template-columns: 1fr; } }

/* ---------- Recensioni ---------- */
.reviews__widget { min-height: 200px; }

/* ---------- Invito finale ---------- */
.cta { background: var(--ink); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta h2 { margin-bottom: .35rem; }
.cta p { color: #cfdbe7; max-width: 36rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Dove siamo ---------- */
.where { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.where__actions { display: grid; gap: .75rem; max-width: 20rem; }
.where__actions .btn { width: 100%; }
.where__actions .btn--primary .icon { color: #fff; }
.where__hint { margin: -.25rem 0 0; color: var(--muted); font-size: .9rem; }
.gmap { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--steel); }
.gmap iframe { width: 100%; height: 100%; border: 0; display: block; }
.gmap__fallback { margin-top: .75rem; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) {
	.gmap { aspect-ratio: 4 / 5; }
	.where__actions { max-width: none; }
}
@media (max-width: 860px) { .where { grid-template-columns: 1fr; } }

.routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.route { background: var(--paper); border-radius: var(--radius); padding: 1.4rem 1.5rem; border-top: 4px solid var(--blue); }
.route h3 { margin-bottom: .5rem; }
.route__note { color: var(--muted); font-size: .95rem; }
.route ul { margin: 0; padding-left: 1.1rem; }
.route li + li { margin-top: .35rem; }

.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(150px, 18vw, 230px); grid-auto-flow: dense; gap: .75rem; }
.gallery-grid li.is-tall { grid-row: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; background: var(--steel); }
@media (max-width: 680px) { .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 38vw; gap: .5rem; } }

/* ---------- Come funziona ---------- */
.two-paths { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.path > p { color: var(--muted); }
.path__photo { margin: 1.5rem 0 0; }
.path__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 55%; border-radius: var(--radius); background: var(--steel); }
.path__photo figcaption { margin-top: .5rem; font-size: .95rem; color: var(--muted); }
@media (max-width: 860px) { .two-paths { grid-template-columns: 1fr; } }

.rules { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 3rem; }
.rules dt { font-weight: 760; font-size: 1.1rem; }
.rules dd { margin: .25rem 0 0; color: var(--muted); }
@media (max-width: 680px) { .rules { grid-template-columns: 1fr; } }

/* ---------- Tariffe ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--steel-2); border-radius: var(--radius); }
.prices { width: 100%; min-width: 34rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prices caption { text-align: left; padding: 1rem 1.25rem; font-weight: 700; color: var(--muted); }
.prices th,
.prices td { padding: .85rem 1.25rem; text-align: right; border-top: 1px solid var(--steel-2); }
.prices th:first-child { text-align: left; }
.prices thead th { background: var(--ink); color: #fff; font-size: 1.1rem; vertical-align: bottom; }
.prices__fits { display: block; font-size: .8rem; font-weight: 500; color: #cfdbe7; }
.prices tbody th { font-weight: 700; }
.prices tbody tr:nth-child(even) { background: #f6f8fa; }
.prices tbody tr:hover { background: var(--steel); }

/* Mobile: la tabella entra tutta nello schermo, niente scorrimento laterale */
@media (max-width: 560px) {
	.table-scroll { overflow: visible; }
	.prices { min-width: 0; table-layout: fixed; font-size: .98rem; }
	.prices caption { padding: .8rem .75rem; font-size: .9rem; }
	.prices th, .prices td { padding: .7rem .45rem; }
	.prices th:first-child { padding-left: .75rem; width: 28%; }
	.prices td:last-child, .prices thead th:last-child { padding-right: .75rem; }
	.prices thead th { font-size: .95rem; }
	.prices__fits, .prices__eur { display: none; }
}

.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.note { padding: 1.5rem; border-radius: var(--radius); background: var(--steel); }
.note h2 { font-size: 1.35rem; }
.note ul { margin: 0; padding-left: 1.1rem; }
.note li + li { margin-top: .4rem; }
.note__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 760px) { .notes { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 15rem 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq-index { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.faq-index ul { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--steel-2); }
.faq-index a { display: block; padding: .45rem 1rem; color: var(--ink); text-decoration: none; font-weight: 640; }
.faq-index a:hover { color: var(--cta); }
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group h2 { font-size: 1.5rem; }
.faq { border-bottom: 1px solid var(--steel-2); }
.faq summary {
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	padding: 1rem 0; cursor: pointer; list-style: none;
	font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: ""; flex: none; width: 12px; height: 12px;
	border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
	transform: rotate(45deg) translate(-3px, -3px);
	transition: transform .2s;
}
.faq[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__answer { padding: 0 0 1.2rem; max-width: 44rem; color: #2c4660; }
@media (max-width: 860px) {
	.faq-layout { grid-template-columns: 1fr; }
	.faq-index { position: static; }
	.faq-index ul { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; }
	.faq-index a { border: 1.5px solid var(--line); border-radius: 999px; padding: .35rem .9rem; font-size: .95rem; }
}

/* ---------- Contatti ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-card { padding: 1.25rem; border: 1px solid var(--steel-2); border-radius: var(--radius); }
.contact-card h2 { font-size: 1.15rem; margin: .6rem 0 .3rem; }
.contact-card p { color: var(--muted); font-size: .95rem; margin-bottom: .5rem; }
.contact-card a { font-weight: 700; word-break: break-word; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contact__cards { grid-template-columns: 1fr; } }

/* ---------- Modulo ---------- */
.form { display: grid; gap: 1rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__row { display: grid; gap: .35rem; }
.form label { font-weight: 650; }
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
	width: 100%; padding: .75rem .9rem;
	font: inherit; color: var(--ink);
	border: 1.5px solid var(--line); border-radius: 8px; background: #fff;
}
.form input:focus,
.form textarea:focus { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 0; }
.form__check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500 !important; }
.form__check input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; }
.form .btn { justify-self: start; }
.form__notice { padding: .9rem 1rem; border-radius: 8px; font-weight: 600; }
.form__notice--ok { background: #e3f3e8; color: #1d5b33; }
.form__notice--error { background: #fbe6dc; color: #8a3509; }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- Pagamenti accettati ---------- */
.pay { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-top: 1.25rem; font-size: .92rem; color: var(--muted); }
.pay__label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--ink); }
.pay__label .icon { width: 18px; height: 18px; color: #1d7a46; }
.pay__logos { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.pay__logos img { height: 26px; width: auto; display: block; }
.pay--dark { color: #cfdbe7; }
.pay--dark .pay__label { color: #fff; }
.pay--dark .pay__logos li { background: #fff; border-radius: 5px; padding: 2px 4px; }

/* ---------- Footer ---------- */
.site-footer { background: #0f2638; color: #cfdbe7; padding-top: clamp(2.5rem, 6vw, 4rem); font-size: .97rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffd3b5; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer__brand { color: #fff; font-size: 1.4rem; font-weight: 800; margin-bottom: .5rem; }
.site-footer__title { font-size: 1rem; color: #fff; margin-bottom: .75rem; letter-spacing: 0; }
.site-footer__col p { margin-bottom: .5rem; }
.site-footer__menu { list-style: none; margin: 0; padding: 0; }
.site-footer__legal {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
	margin-top: 2.5rem; padding-block: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, .14);
	font-size: .88rem;
}
.site-footer__legal a + a { margin-left: 1.25rem; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Barra azioni mobile (capsula flottante) ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
	/* nessun margine extra in fondo: la capsula si nasconde da sola quando compare il footer */
	.site-footer__legal { padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); }
	.action-bar {
		display: flex; align-items: center; gap: .5rem;
		position: fixed; z-index: 60;
		left: .75rem; right: .75rem;
		bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
		padding: .45rem;
		background: rgba(20, 50, 77, .97);
		border-radius: 22px;
		box-shadow: 0 12px 32px rgba(20, 50, 77, .35);
		transform: translateY(0);
		transition: transform .25s ease, opacity .25s ease;
	}
	.action-bar.is-hidden { transform: translateY(calc(100% + 1.5rem)); opacity: 0; pointer-events: none; }
	.action-bar__icon {
		flex: none; width: 2.9rem; height: 2.9rem;
		display: grid; place-items: center;
		border-radius: 50%;
		background: rgba(255, 255, 255, .12);
	}
	.action-bar__icon .icon { color: #fff; width: 24px; height: 24px; }
	.action-bar__icon--wa { background: #128c7e; }
	.action-bar__book {
		flex: 1; min-height: 3.1rem;
		display: flex; flex-direction: column; justify-content: center; align-items: center;
		padding: .35rem .6rem;
		background: var(--cta); color: #fff; text-decoration: none;
		border-radius: 16px;
		line-height: 1.15; text-align: center; white-space: nowrap;
		min-width: 0;
	}
	.action-bar__book:hover { background: var(--cta-hover); color: #fff; }
	.action-bar__book-main { font-weight: 800; font-size: clamp(.95rem, 4.4vw, 1.05rem); }
	.action-bar__book-sub { font-size: .8rem; font-weight: 600; color: #ffe1cc; }
}

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Classi WordPress di base ---------- */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text { font-size: .9rem; color: var(--muted); }

/* ---------- Articoli ---------- */
.article__meta { color: var(--muted); font-size: .95rem; }
.article__cover { margin: 0 0 2rem; }
.article__cover img { width: 100%; height: auto; border-radius: var(--radius); }
.prose img { height: auto; border-radius: 8px; }
.prose h2 { font-size: 1.6rem; margin-top: 2.25rem; }
.prose p, .prose li { font-size: 1.08rem; }

/* ---------- Come funziona: 4 passaggi, due modi, riquadri ---------- */
.how-flow-section { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.how-flow {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem;
	position: relative;
}
.how-flow::before { /* linea che collega i passaggi */
	content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 44px;
	height: 3px; background: var(--steel-2); z-index: 0;
}
.how-step { position: relative; z-index: 1; text-align: center; }
.how-step__icon {
	position: relative; display: inline-grid; place-items: center;
	width: 88px; height: 88px; border-radius: 50%;
	background: #fff; border: 3px solid var(--accent); color: var(--ink);
}
.how-step__icon svg { width: 36px; height: 36px; }
.how-step__n {
	position: absolute; top: -4px; right: -6px;
	width: 28px; height: 28px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--ink); color: #fff; font-weight: 800; font-size: .9rem;
}
.how-step__title { margin: 1rem 0 .4rem; font-size: 1.15rem; }
.how-step p { color: var(--muted); font-size: .98rem; max-width: 16rem; margin-inline: auto; }

.how-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.how-card { display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; }
.how-card__media { height: 200px; background: #f0f4f8; }
.how-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.how-card__media--phone { display: grid; place-items: end center; }
.how-phone { width: 220px; height: 200px; display: block; }
.how-phone__brand { font-family: var(--font); font-weight: 800; font-size: 11px; fill: var(--ink); }
.how-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; padding: 1.5rem 1.75rem 1.75rem; flex: 1; }
.how-card__body h3 { margin: 0; font-size: 1.45rem; }
.how-card__sub { color: var(--muted); margin-bottom: .6rem; }
.how-checks { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .55rem; }
.how-checks li { position: relative; padding-left: 2rem; font-weight: 600; }
.how-checks li::before {
	content: ""; position: absolute; left: 0; top: .15em;
	width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--accent);
}
.how-checks li::after {
	content: ""; position: absolute; left: .42rem; top: .38em;
	width: .35rem; height: .62rem; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.how-card__body .btn { margin-top: auto; }

.how-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.how-tile { padding: 1.4rem; border: 1.5px solid var(--steel-2); border-radius: 14px; }
.how-tile__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--steel); color: var(--ink); margin-bottom: .8rem; }
.how-tile--wa .how-tile__icon { background: #128c7e; color: #fff; }
.how-tile h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.how-tile p { color: var(--muted); font-size: .97rem; }
.how-tile a { font-weight: 700; }

@media (max-width: 960px) {
	.how-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	/* passaggi in verticale, con la linea a sinistra */
	.how-flow { grid-template-columns: 1fr; gap: 1.25rem; }
	.how-flow::before { left: 35px; right: auto; top: 20px; bottom: 20px; width: 3px; height: auto; }
	.how-step { display: grid; grid-template-columns: 72px 1fr; column-gap: 1rem; text-align: left; align-items: center; }
	.how-step__icon { width: 72px; height: 72px; grid-row: span 2; }
	.how-step__icon svg { width: 30px; height: 30px; }
	.how-step__title { margin: 0; align-self: end; }
	.how-step p { margin: .2rem 0 0; max-width: none; align-self: start; }
	.how-ways { grid-template-columns: 1fr; }
	.how-card__media { height: 170px; }
}
@media (max-width: 520px) {
	.how-tiles { grid-template-columns: 1fr; }
}

/* ---------- Dove siamo: "Come arrivare" a schede ---------- */
.arrivals__tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.25rem; }
.arrivals__tab {
	min-height: 2.9rem; padding: .55rem 1.2rem;
	border: 2px solid var(--steel-2); border-radius: 999px; background: #fff;
	font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; white-space: nowrap;
}
.arrivals__tab:hover { border-color: var(--ink); }
.arrivals__tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.arrivals:not(.is-enhanced) .arrivals__tabs { display: none; } /* senza JS: tutti i riquadri in colonna */
.arrivals__panel { background: #fff; border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem); }
.arrivals:not(.is-enhanced) .arrivals__panel + .arrivals__panel { margin-top: 1rem; }
.arrivals__panel h3 { font-size: 1.4rem; margin-bottom: .75rem; }
.arrivals__list { list-style: none; margin: 0; padding: 0; }
.arrival { display: grid; grid-template-columns: 3.25rem 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; }
.arrival + .arrival { border-top: 1.5px solid var(--steel-2); }
.arrival__icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 12px; background: var(--steel); color: var(--ink); }
.arrival__icon--train { color: var(--blue); }
.arrival__title { margin: 0; font-weight: 800; font-size: 1.08rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.arrival__best { padding: .15rem .6rem; border-radius: 999px; background: #e3f3e8; color: #1d5b33; font-size: .78rem; font-weight: 800; }
.arrival__desc { margin: .2rem 0 0; color: var(--muted); }
.arrival__time {
	margin: 0; min-width: 7.5rem; padding: .5rem .9rem;
	border-radius: 12px; background: var(--ink); color: #fff; text-align: left; line-height: 1.15;
}
.arrival__time strong { display: block; font-size: 1.35rem; font-weight: 800; }
.arrival__time span { display: block; font-size: .78rem; color: #cfdbe7; margin-top: .15rem; }
.arrivals__note { margin: .75rem 0 0; padding-top: .75rem; border-top: 1.5px solid var(--steel-2); color: var(--muted); font-size: .95rem; }
.arrivals__nav { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.5rem; }
.arrivals__nav .btn .icon { color: #fff; }
.arrivals__nav p { margin: 0; color: var(--muted); }

@media (max-width: 760px) {
	/* destinazioni che scorrono in orizzontale */
	.arrivals__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) .25rem; }
	.arrivals__tabs::-webkit-scrollbar { display: none; }
	.arrival { grid-template-columns: 2.75rem 1fr; gap: .75rem; align-items: start; }
	.arrival__icon { width: 2.75rem; height: 2.75rem; }
	.arrival__time { grid-column: 2; justify-self: start; min-width: 0; display: flex; align-items: baseline; gap: .5rem; padding: .35rem .75rem; }
	.arrival__time strong { font-size: 1.1rem; }
	.arrival__time span { margin: 0; }
	.arrivals__nav .btn { width: 100%; }
}
