/* ### Classi tipo tema bootstrap per comodità ### */

.clr-principale { color: var(--e-global-color-primary) !important; }
.clr-secondario { color: var(--e-global-color-secondary) !important; }
.clr-testo { color: var(--e-global-color-text) !important; }
.clr-in-risalto { color: var(--e-global-color-accent) !important; }
.clr-bianco-1 { color: var(--e-global-color-db995cf) !important; }
.clr-bianco-2 { color: var(--e-global-color-22bc20c) !important; }
.clr-bianco-3 { color: var(--e-global-color-e5d9f2d) !important; }
.clr-rosso-scuro { color: var(--e-global-color-5d28993) !important; }

.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-fit { width: fit-content !important; }

/* ### Nuovo Pulsante ### */

.flp-custom-btn {
    color: var(--e-global-color-accent);
    font-family: 'Jost', sans-serif !important;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--e-global-color-accent) !important;
    border-radius: 0 !important;
    padding: 10px 20px;
    font-size: 16px !important;
    cursor: pointer;
    font-weight: 600 !important;
    background: transparent;
    position: relative;
    transition: color 0.5s ease;
    overflow: hidden;
    /* display: inline-block; */
	height: 100%;
    display: flex;
	justify-content: center;
    
    /* Crea un contesto isolato: niente dentro il pulsante può finire dietro la sezione */
    isolation: isolate; 
}

.flp-custom-btn::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 0%;
    top: 0;
    left: -40px;
    transform: skewX(45deg);
    background-color: var(--e-global-color-accent) !important;
    
    /* z-index: -1 qui va sotto al testo, MA grazie a isolation: isolate del padre, 
       NON andrà MAI sotto lo sfondo della sezione Elementor */
    z-index: -1; 
    transition: width 0.5s ease, left 0.5s ease;
}

.flp-custom-btn:hover {
    color: white !important;
    background-color: transparent !important;
    cursor: pointer;
}

.flp-custom-btn:hover::before {
    width: 160%;
}

/* ### Pulsante alternativo: pieno → outline in hover ### */

.flp-custom-alt-btn {
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    font-family: 'Jost', sans-serif;
    border: 1px solid var(--e-global-color-accent);
    border-radius: 0 !important;
    padding: 10px 20px;
    font-size: 16px !important;
    cursor: pointer;
    font-weight: 600;
    background: transparent;
    position: relative;
    transition: color 0.5s ease, border-color 0.5s ease;
    overflow: hidden;
    /* display: inline-block; */
	height: 100%;
    display: flex;
	justify-content: center;

    /* Stesso contesto isolato del pulsante originale */
    isolation: isolate;
}

.flp-custom-alt-btn::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 160%;              /* parte già espanso = pulsante pieno */
    top: 0;
    left: -40px;
    transform: skewX(45deg);
    background-color: var(--e-global-color-accent) !important;
    z-index: -1;
    transition: left 0.5s ease;
}

.flp-custom-alt-btn:hover {
    color: var(--e-global-color-accent) !important;
    border-color: var(--e-global-color-accent);
    background-color: transparent !important;
    cursor: pointer;
}

.flp-custom-alt-btn:hover::before {
    left: 200%;               /* la tendina esce verso destra */
}

/* ### Pulsante alternativo 2: pieno → outline in hover ### */

.flp-custom-alt-2-btn {
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    font-family: 'Jost', sans-serif;
    border: 1px solid var(--e-global-color-accent);
    border-radius: 0 !important;
    padding: 10px 20px;
    font-size: 16px !important;
    cursor: pointer;
    font-weight: 600;
    background: transparent;
    position: relative;
    transition: color 0.5s ease, border-color 0.5s ease;
    overflow: hidden;
    display: inline-block;

    /* Stesso contesto isolato del pulsante originale */
    isolation: isolate;
}

.flp-custom-alt-2-btn::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 160%;              /* parte già espanso = pulsante pieno */
    top: 0;
    left: -40px;
    transform: skewX(45deg);
    background-color: var(--e-global-color-accent) !important;
    z-index: -1;
    transition: left 0.5s ease;
}

.flp-custom-alt-2-btn:hover {
    color: #fff !important;
    border-color: #fff;
    background-color: transparent !important;
    cursor: pointer;
}

.flp-custom-alt-2-btn:hover::before {
    left: 200%;               /* la tendina esce verso destra */
}

/* ### Container con angoli tagliati (senza bordo) ### */
.flp-container {
	--posizione-taglio: 50px;
	clip-path: polygon(
		0 0,
		calc(100% - var(--posizione-taglio)) 0,
		100% var(--posizione-taglio),
		100% 100%,
		var(--posizione-taglio) 100%,
		0 calc(100% - var(--posizione-taglio))
	);
}

/* ### Container con angoli tagliati (senza bordo) ### */
.flp-container {
	--posizione-taglio: 50px;
	clip-path: polygon(
		0 0,
		calc(100% - var(--posizione-taglio)) 0,
		100% var(--posizione-taglio),
		100% 100%,
		var(--posizione-taglio) 100%,
		0 calc(100% - var(--posizione-taglio))
	);
}

/* ============ FLP GALLERIA AUTO ============ */
.flp-gallery-wrap, .flp-gallery-wrap *,
.flp-gallery-modal, .flp-gallery-modal * {
	border-radius: 0 !important;
	box-sizing: border-box;
}

/* ---- Griglia hero ---- */
.flp-gallery-hero {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	width: 100%;
	aspect-ratio: 2.35 / 1;
}
.flp-gallery-hero figure {
	position: relative;      /* le img sono assolute: il tema non può più */
	margin: 0;                /* rompere object-fit con height:auto !important */
	overflow: hidden;
	cursor: zoom-in;
	min-height: 0;
	min-width: 0;
}
.flp-gallery-hero figure img {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	display: block;
	transition: transform .35s ease;
}
.flp-gallery-hero figure:hover img { transform: scale(1.04); }

.flp-gallery-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 10px;
	min-height: 0;
}
.flp-gallery-cta {
	position: absolute;
	right: 18px;
	bottom: 18px;
	z-index: 3;
}

/* ---- Lente mobile: nascosta su desktop ---- */
.flp-gallery-wrap button.flp-gallery-open-mobile {
	display: none !important;
	appearance: none !important;
	background: rgba(0, 0, 0, .55) !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 44px !important;
	height: 44px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	align-items: center;
	justify-content: center;
	color: var(--e-global-color-accent, #fff) !important;
	cursor: pointer;
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
}
.flp-gallery-wrap button.flp-gallery-open-mobile svg {
	width: 24px !important;
	height: 24px !important;
	display: block;
}

/* ---- Modal fullscreen ---- */
.flp-gallery-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	background: #0a0a0a;
}
.flp-gallery-modal[hidden] { display: none; }

.flp-modal-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	flex: 0 0 auto;
}
.flp-modal-counter {
	color: #fff;
	font-size: 15px;
	letter-spacing: .04em;
	user-select: none;
}
.flp-modal-actions { display: flex; gap: 6px; }

/* Reset totale contro gli stili button del tema / Elementor */
.flp-gallery-modal button.flp-modal-btn {
	appearance: none !important;
	background: transparent !important;
	border: none !important;
	outline: none;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 48px !important;
	height: 48px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	font-size: 0 !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	color: var(--e-global-color-accent, #fff) !important;
	cursor: pointer;
	transition: opacity .2s ease;
}
.flp-gallery-modal button.flp-modal-btn:hover { opacity: .65; }

/* Icone topbar (zoom / chiudi) */
.flp-gallery-modal button.flp-modal-btn svg {
	width: 26px !important;
	height: 26px !important;
	display: block;
}
.flp-gallery-modal button.flp-modal-btn.is-active {
	outline: 1px solid var(--e-global-color-accent, #ffffff);
	outline-offset: -5px;
}

/* Frecce: box e icona più grandi, area di click = icona visibile */
.flp-gallery-modal button.flp-modal-btn.flp-modal-arrow {
	width: 84px !important;
	height: 84px !important;
}
.flp-gallery-modal button.flp-modal-btn.flp-modal-arrow svg {
	width: 60px !important;
	height: 60px !important;
}

.flp-modal-stage {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	touch-action: none;
}
.flp-modal-stage > img {
	position: static !important;
	max-width: min(92%, 1400px) !important;
	max-height: 100% !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
	user-select: none;
	-webkit-user-drag: none;
	cursor: zoom-in;
	transition: transform .25s ease;
	will-change: transform;
}
.flp-gallery-modal.is-zoomed .flp-modal-stage > img {
	cursor: grab;
	transition: none;
}
.flp-gallery-modal.is-zoomed.is-panning .flp-modal-stage > img { cursor: grabbing; }

.flp-modal-arrow {
	position: absolute !important;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
}
.flp-modal-arrow--prev { left: 14px; }
.flp-modal-arrow--next { right: 14px; }

.flp-modal-caption {
	flex: 0 0 auto;
	text-align: center;
	color: #fff;
	font-size: 16px;
	padding: 12px 20px 16px;
	user-select: none;
}

/* ---- Striscia miniature: solo immagine + bordo su attiva ---- */
.flp-modal-thumbs {
	flex: 0 0 auto;
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding: 10px 12px;
	background: #000;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;  /* scroll fluido su iOS */
	touch-action: pan-x;                 /* trascinamento touch orizzontale */
	overscroll-behavior-x: contain;
}
.flp-gallery-modal button.flp-modal-thumb {
	appearance: none !important;
	background: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	font-size: 0 !important;
	line-height: 0 !important;
	border: 1px solid transparent !important;
	flex: 0 0 auto;
	cursor: pointer;
	opacity: .7;
	transition: opacity .2s ease, border-color .2s ease;
}
.flp-gallery-modal button.flp-modal-thumb img {
	display: block !important;
	width: 130px !important;
	height: 90px !important;
	max-width: none !important;
	object-fit: cover !important;
	pointer-events: none;
}
.flp-gallery-modal button.flp-modal-thumb:hover { opacity: 1; }
.flp-gallery-modal button.flp-modal-thumb.is-active {
	opacity: 1;
	border-color: var(--e-global-color-accent, #fff) !important;
}

/* Filitri search and filter */
.sf-filters-desktop-container {
    display: flex;
    flex-direction: column;
    gap: 1.5em; 
}
.sf-filters-mobile-container {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    margin: 1em 0;
}

/* ============================================================
   Paginazione griglia auto nuove/usate
============================================================ */

.custom-griglia-auto nav.elementor-pagination * {
	font-size: 35px;
}

.custom-griglia-auto nav.elementor-pagination a.page-numbers {
	color: var(--e-global-color-accent);
}

.custom-griglia-auto nav.elementor-pagination a.page-numbers.current {
	color: var(--e-global-color-primary);
}

.sf-no-results-message {
	margin-top: 1em;
    text-align: center;
    padding: 0 2em;
    font-family: var(--e-global-typography-2b80e1e-font-family), Sans-serif;
    font-size: var(--e-global-typography-2b80e1e-font-size);
    font-weight: var(--e-global-typography-2b80e1e-font-weight);
    line-height: var(--e-global-typography-2b80e1e-line-height);
    color: var(--e-global-color-primary);
}

/* ============================================================
   RESPONSIVE — breakpoint standard Elementor
   Tablet: ≤ 1024px | Mobile: ≤ 767px
============================================================ */

/* ---- Tablet ---- */
@media (max-width: 1024px) {
	.flp-gallery-hero {
		aspect-ratio: 1.9 / 1;
		gap: 8px;
	}
	.flp-gallery-grid { gap: 8px; }
	.flp-gallery-cta { right: 14px; bottom: 14px; }

	.flp-gallery-modal button.flp-modal-btn.flp-modal-arrow {
		width: 64px !important;
		height: 64px !important;
	}
	.flp-gallery-modal button.flp-modal-btn.flp-modal-arrow svg {
		width: 42px !important;
		height: 42px !important;
	}
	.flp-gallery-modal button.flp-modal-thumb img {
		width: 110px !important;
		height: 74px !important;
	}
}

/* ---- Mobile ---- */
@media (max-width: 767px) {

	/* Solo la foto principale con la lente in alto a destra:
	   l'altezza della hero è dettata dall'aspect-ratio della figure,
	   quindi la sezione Elementor si dimensiona correttamente */
	.flp-gallery-hero {
		display: block;
		aspect-ratio: auto;
	}
	.flp-gallery-hero > figure {
		width: 100%;
		aspect-ratio: 4 / 3;
	}
	.flp-gallery-grid { display: none !important; }
	.flp-gallery-cta { display: none !important; }
	.flp-gallery-wrap button.flp-gallery-open-mobile { display: inline-flex !important; }

	/* ---- Modal ---- */
	.flp-modal-topbar { padding: 8px 10px; }
	.flp-modal-counter { font-size: 13px; }

	.flp-gallery-modal button.flp-modal-btn {
		width: 44px !important;
		height: 44px !important;
	}
	.flp-gallery-modal button.flp-modal-btn svg {
		width: 22px !important;
		height: 22px !important;
	}
	.flp-gallery-modal button.flp-modal-btn.flp-modal-arrow {
		width: 44px !important;
		height: 44px !important;
	}
	.flp-gallery-modal button.flp-modal-btn.flp-modal-arrow svg {
		width: 30px !important;
		height: 30px !important;
	}
	.flp-modal-arrow--prev { left: 2px; }
	.flp-modal-arrow--next { right: 2px; }

	.flp-modal-stage > img { max-width: 100% !important; }

	.flp-modal-caption {
		font-size: 14px;
		padding: 8px 14px 10px;
	}

	.flp-modal-thumbs {
		gap: 5px;
		padding: 8px 10px;
	}
	.flp-gallery-modal button.flp-modal-thumb {
		border-width: 1px !important;
	}
	.flp-gallery-modal button.flp-modal-thumb img {
		width: 84px !important;
		height: 56px !important;
	}

	.sf-no-results-message {
		padding: 0;
	}
}

/* Ninja forms */
.nf-pre-call-to-action p {
	font-family: var(--e-global-typography-a02dc0f-font-family), Sans-serif;
    font-size: var(--e-global-typography-a02dc0f-font-size);
    font-weight: var(--e-global-typography-a02dc0f-font-weight);
    line-height: var(--e-global-typography-a02dc0f-line-height);
    color: var(--e-global-color-text);
}

.nf-custom-call-to-action {
    color: var(--e-global-color-accent) !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border: 1px solid var(--e-global-color-accent) !important;
    border-radius: 0 !important;
    padding: 10px 20px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    background: transparent !important;
    position: relative !important;
    transition: color 0.5s ease !important;
    overflow: hidden !important;
    display: inline-block !important;
    
    /* Crea un contesto isolato: niente dentro il pulsante può finire dietro la sezione */
    isolation: isolate !important; 
}
.nf-custom-call-to-action:hover {
	background: var(--e-global-color-accent) !important;
	color: white !important;
}

#minute-select-49, 
#hour-select-49 
{
	color: #6b6b6b !important;
	background-color: #f7f7f7 !important;
	border: 1px solid #c4c4c4 !important;
}

/* Custom search and filter */
.search-filter-component-combobox-base__listbox-option--selected {
    background: var(--e-global-color-accent) !important;
    color: white !important;
	font-weight: bold !important;
}
.search-filter-component-combobox-base__listbox-option--active {
	background: var(--e-global-color-accent) !important;
    color: white !important;
	font-weight: bold !important;
}
.main-container-filtri .search-filter-checkable-button .search-filter-input-button {
	border-width: 2px !important;
}
.main-container-filtri .search-filter-checkable-button .search-filter-input-button--is-selected {
	background: white !important;
	color: var(--e-global-color-accent) !important;
	border-color: var(--e-global-color-accent) !important;
	font-weight: bold !important;
	border-width: 2px !important;
}
.main-container-filtri .search-filter-checkable-button .search-filter-input-button--is-selected:active {
	background: white !important;
	color: var(--e-global-color-accent) !important;
	border-color: var(--e-global-color-accent) !important;
	font-weight: bold !important;
	border-width: 2px !important;
}
.main-container-filtri .search-filter-checkable-button .search-filter-input-button--is-selected:hover {
	background: white !important;
	color: var(--e-global-color-accent) !important;
	border-color: var(--e-global-color-accent) !important;
	font-weight: bold !important;
	border-width: 2px !important;
}

/* Badge auto noleggio */
.badge-container {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: stretch;
	min-height: 58px;
}
.badge {
	padding: 5px 15px;
	background-color: var(--e-global-color-accent);
	color: white;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	line-height: 1.2;
	min-height: 58px;
}
.badge-new {
	font-weight: bold;
}
.badge-promo {
	gap: 2px;
}
.badge-promo span:first-child {
	font-weight: bold;
}

/* Badge auto noleggio responsive (breakpoint default Elementor) */
@media (max-width: 1024px) {
	.badge-container {
		min-height: 52px;
	}

	.badge {
		min-height: 52px;
		padding: 5px 12px;
		font-size: 14px;
	}

	.badge-promo span:last-child {
		font-size: 13px;
	}
}

@media (max-width: 767px) {
	.badge-container {
		min-height: 46px;
	}

	.badge {
		min-height: 46px;
		padding: 4px 10px;
		font-size: 13px;
		line-height: 1.15;
	}

	.badge-promo span:last-child {
		font-size: 12px;
	}
}

.sf-filters-desktop-container * {
	font-size: 16px !important;
}

.container-footer-form form .nf-form-content .list-select-wrap .nf-field-element>div {
    border-radius: 0 !important;
}




