/* ============================================================
   Fuel Prices Italy – stile moderno (hero + accessi rapidi)
   ============================================================ */

.fpi-widget,
.fpi-landing {
	max-width: 100%;
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1a1a1a;
	box-sizing: border-box;
}

.fpi-widget *,
.fpi-landing * {
	box-sizing: border-box;
}

/* ---------- HERO ---------- */
.fpi-hero {
	position: relative;
	padding: 48px 20px 56px;
	background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
	overflow: hidden;
	border-radius: 0;
}

.fpi-hero--compact {
	padding: 32px 20px 36px;
}

.fpi-hero-bg {
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c5d0de' fill-opacity='0.25'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	opacity: 0.6;
	pointer-events: none;
}

.fpi-hero-inner {
	position: relative;
	max-width: 860px;
	margin: 0 auto;
	text-align: left;
}

.fpi-hero h1 {
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 12px;
	color: #111;
	letter-spacing: -0.02em;
}

.fpi-hero-sub,
.fpi-hero p {
	font-size: 1.05rem;
	line-height: 1.55;
	color: #4a5568;
	margin: 0 0 28px;
	max-width: 620px;
}

/* Search box stile screenshot */
.fpi-search-box {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
	padding: 10px;
	max-width: 720px;
}

.fpi-search-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.fpi-search-input {
	flex: 1 1 200px;
	min-width: 160px;
	padding: 14px 18px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	font-size: 15px;
	outline: none;
	transition: border-color 0.15s;
}

.fpi-search-input:focus {
	border-color: #0d9488;
	box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.fpi-btn-search {
	padding: 14px 24px;
	background: #0d9488;
	color: #fff;
	border: none;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s;
}

.fpi-btn-search:hover {
	background: #0f766e;
}

.fpi-btn-geo {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 10px 16px;
	background: transparent;
	border: none;
	cursor: pointer;
	text-align: left;
	color: #0d9488;
	line-height: 1.25;
}

.fpi-btn-geo .fpi-geo-icon {
	display: none;
}

.fpi-btn-geo .fpi-geo-text {
	font-weight: 600;
	font-size: 14px;
}

.fpi-btn-geo .fpi-geo-sub {
	font-size: 12px;
	color: #64748b;
	font-weight: 400;
}

.fpi-btn-geo:hover .fpi-geo-text {
	text-decoration: underline;
}

/* ---------- ACCESSI RAPIDI ---------- */
.fpi-quick {
	padding: 40px 20px 24px;
	max-width: 1100px;
	margin: 0 auto;
}

.fpi-section-title {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #64748b;
	margin: 0 0 16px;
}

.fpi-section-sub {
	color: #64748b;
	margin: -8px 0 20px;
	font-size: 0.95rem;
}

.fpi-quick-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
}

.fpi-quick-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 16px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.fpi-quick-card:hover {
	border-color: #0d9488;
	box-shadow: 0 4px 16px rgba(13, 148, 136, 0.12);
	transform: translateY(-2px);
	color: inherit;
	text-decoration: none;
}

.fpi-quick-icon {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	font-size: 20px;
	background: #f0fdf4;
}

.fpi-icon-fuel { background: #ecfdf5; }
.fpi-icon-map  { background: #eff6ff; }
.fpi-icon-city { background: #fefce8; }
.fpi-icon-route { background: #f0f9ff; }

.fpi-quick-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.fpi-quick-body strong {
	font-size: 0.95rem;
	font-weight: 600;
	color: #111;
}

.fpi-quick-body span {
	font-size: 0.8rem;
	color: #64748b;
	line-height: 1.35;
}

.fpi-quick-arrow {
	color: #94a3b8;
	font-size: 1.1rem;
	flex-shrink: 0;
}

/* ---------- MAPPA + CONTROLLI ---------- */
.fpi-map-section {
	padding: 24px 20px 40px;
	max-width: 1100px;
	margin: 0 auto;
}

.fpi-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.fpi-controls select,
.fpi-controls .fpi-btn {
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	background: #fff;
	font-size: 14px;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.fpi-controls select:focus {
	outline: none;
	border-color: #0d9488;
}

.fpi-controls .fpi-btn {
	background: #0d9488;
	color: #fff;
	border-color: #0d9488;
	font-weight: 600;
}

.fpi-controls .fpi-btn:hover {
	background: #0f766e;
}

.fpi-controls .fpi-near-me {
	background: #059669;
	border-color: #059669;
}

.fpi-controls .fpi-near-me:hover {
	background: #047857;
}

.fpi-map {
	width: 100%;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	margin-bottom: 12px;
	z-index: 0;
	overflow: hidden;
}

.fpi-status {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 8px;
	min-height: 18px;
}

.fpi-results-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.fpi-results-table th,
.fpi-results-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid #f1f5f9;
}

.fpi-results-table th {
	background: #f8fafc;
	font-weight: 600;
	color: #475569;
	font-size: 13px;
}

.fpi-results-table tr:hover {
	background: #f0fdf4;
	cursor: pointer;
}

.fpi-price-cheap {
	color: #047857;
	font-weight: 700;
}

/* ---------- PROVINCE GRID ---------- */
.fpi-city-section {
	padding: 24px 20px 48px;
	max-width: 1100px;
	margin: 0 auto;
}

.fpi-province-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px;
}

.fpi-province-card {
	display: flex;
	flex-direction: column;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.fpi-province-card:hover {
	border-color: #0d9488;
	box-shadow: 0 2px 10px rgba(13, 148, 136, 0.1);
	color: inherit;
	text-decoration: none;
}

.fpi-province-card strong {
	font-size: 0.95rem;
	font-weight: 600;
	color: #111;
}

.fpi-province-card span {
	font-size: 0.78rem;
	color: #64748b;
	margin-top: 2px;
}

.fpi-all-provinces {
	margin-top: 20px;
}

.fpi-all-provinces summary {
	cursor: pointer;
	font-weight: 600;
	color: #0d9488;
	padding: 8px 0;
	list-style: none;
}

.fpi-all-provinces summary::-webkit-details-marker {
	display: none;
}

.fpi-all-provinces[open] .fpi-province-grid--all {
	margin-top: 14px;
}

/* ---------- POPUP / TABELLE ---------- */
.fpi-popup h4 {
	margin: 0 0 4px;
	font-size: 14px;
}

.fpi-popup table {
	font-size: 12px;
	width: 100%;
	border-collapse: collapse;
}

.fpi-popup td {
	padding: 2px 4px;
}

.fpi-cheapest-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.fpi-cheapest-table td,
.fpi-cheapest-table th {
	padding: 8px 12px;
	border-bottom: 1px solid #f1f5f9;
}

.fpi-cheapest-table th {
	background: #f8fafc;
	font-weight: 600;
	text-align: left;
}

.fpi-cheapest-block {
	margin-top: 32px;
}

.fpi-cheapest-block h2 {
	font-size: 1.25rem;
	margin: 0 0 14px;
}

.fpi-no-data {
	padding: 16px;
	background: #fef3c7;
	border-radius: 10px;
	color: #92400e;
}

/* ---------- PROVINCE PAGE ---------- */
.fpi-province-page {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 0 40px;
}

.fpi-province-content {
	padding: 24px 20px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
	.fpi-hero {
		padding: 32px 16px 40px;
	}

	.fpi-search-row {
		flex-direction: column;
		align-items: stretch;
	}

	.fpi-btn-geo {
		align-items: center;
		text-align: center;
	}

	.fpi-quick,
	.fpi-map-section,
	.fpi-city-section {
		padding-left: 16px;
		padding-right: 16px;
	}

	.fpi-controls {
		flex-direction: column;
	}

	.fpi-controls select,
	.fpi-controls .fpi-btn {
		width: 100%;
	}
}

/* ---------- WIDGET STATION CARDS (stile screenshot) ---------- */
.fpi-capoluoghi-section {
	padding: 24px 20px 40px;
	max-width: 1100px;
	margin: 0 auto;
}

.fpi-station-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
}

.fpi-station-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 2px solid #6ee7b7;
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.fpi-station-card:hover {
	border-color: #059669;
	box-shadow: 0 6px 20px rgba(5, 150, 105, 0.2);
	transform: translateY(-2px);
	color: inherit;
	text-decoration: none;
}

.fpi-station-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 14px 16px 8px;
	background: #fff;
}

.fpi-station-brand {
	flex-shrink: 0;
}

.fpi-brand-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	height: 36px;
	padding: 0 10px;
	border-radius: 50px;
	background: #fff;
	border: 2px solid #e2e8f0;
	font-size: 12px;
	font-weight: 700;
	color: #1e293b;
	letter-spacing: 0.02em;
}

.fpi-brand-generic {
	font-size: 18px;
	border-color: #a7f3d0;
	background: #ecfdf5;
}

.fpi-station-price-block {
	text-align: right;
	line-height: 1.15;
}

.fpi-fuel-tag {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	background: #059669;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	margin-bottom: 4px;
}

.fpi-price-value {
	font-size: 1.55rem;
	font-weight: 700;
	color: #047857;
	letter-spacing: -0.02em;
}

.fpi-price-unit {
	font-size: 0.85rem;
	font-weight: 500;
	color: #047857;
}

.fpi-price-na {
	font-size: 1.1rem;
	color: #94a3b8;
}

.fpi-station-meta {
	padding: 0 16px 6px;
	text-align: right;
}

.fpi-agg {
	font-size: 11px;
	color: #94a3b8;
}

.fpi-station-body {
	padding: 10px 16px 12px;
	background: linear-gradient(135deg, #059669 0%, #047857 100%);
	display: flex;
	flex-direction: column;
	gap: 3px;
	border-top: 1px solid #047857;
}

.fpi-station-name {
	font-size: 0.95rem;
	font-weight: 600;
	color: #fff;
}

.fpi-station-addr {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.88);
	line-height: 1.35;
}

.fpi-station-city {
	font-size: 0.78rem;
	color: #a7f3d0;
	font-weight: 600;
	margin-top: 2px;
}

.fpi-station-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	background: #fff;
	border-top: 1px solid #f1f5f9;
}

.fpi-station-type {
	font-size: 0.75rem;
	color: #64748b;
	background: #f1f5f9;
	padding: 3px 8px;
	border-radius: 6px;
}

.fpi-station-cta {
	font-size: 0.85rem;
	font-weight: 600;
	color: #0d9488;
}

.fpi-station-card:hover .fpi-station-cta {
	text-decoration: underline;
}

@media (max-width: 640px) {
	.fpi-station-grid {
		grid-template-columns: 1fr;
	}
}

/* Brand logos */
.fpi-brand-logo {
	display: block;
	max-width: 80px;
	max-height: 40px;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
}

.fpi-station-brand {
	display: flex;
	align-items: center;
	min-height: 40px;
}

/* ---------- PIÙ ECONOMICO D'ITALIA (sfondo verde) ---------- */
.fpi-national-section {
	padding: 8px 20px 8px;
	max-width: 1100px;
	margin: 0 auto;
}

.fpi-national-card {
	background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
	border-radius: 16px;
	padding: 4px;
	box-shadow: 0 8px 28px rgba(5, 150, 105, 0.35);
	position: relative;
	overflow: hidden;
}

.fpi-national-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 90% 20%, rgba(255,255,255,0.12) 0%, transparent 50%);
	pointer-events: none;
}

.fpi-national-badge {
	display: inline-block;
	margin: 12px 16px 0;
	padding: 5px 12px;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(4px);
	border-radius: 20px;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.fpi-national-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 18px 18px;
	text-decoration: none;
	color: #fff;
	position: relative;
}

.fpi-national-inner:hover {
	color: #fff;
	text-decoration: none;
}

.fpi-national-left {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	flex: 1;
}

.fpi-national-left .fpi-brand-logo,
.fpi-national-left .fpi-brand-badge {
	background: #fff;
	border-radius: 10px;
	padding: 4px 8px;
}

.fpi-national-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.fpi-national-name {
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.3;
}

.fpi-national-addr {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.35;
}

.fpi-national-city {
	font-size: 0.8rem;
	color: #a7f3d0;
	font-weight: 600;
	margin-top: 2px;
}

.fpi-national-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	flex-shrink: 0;
}

.fpi-national-right .fpi-fuel-tag {
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
}

.fpi-national-price .fpi-price-value {
	font-size: 2rem;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.03em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.fpi-national-price .fpi-price-unit {
	font-size: 1rem;
	color: #d1fae5;
	font-weight: 600;
}

.fpi-national-right .fpi-agg {
	color: rgba(255, 255, 255, 0.7);
	font-size: 11px;
}

.fpi-national-cta {
	margin-top: 4px;
	font-size: 0.9rem;
	font-weight: 700;
	color: #ecfdf5;
	background: rgba(255, 255, 255, 0.15);
	padding: 6px 14px;
	border-radius: 8px;
	transition: background 0.15s;
}

.fpi-national-inner:hover .fpi-national-cta {
	background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 640px) {
	.fpi-national-inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.fpi-national-right {
		align-items: flex-start;
		width: 100%;
	}
	.fpi-national-price .fpi-price-value {
		font-size: 1.75rem;
	}
}

/* ============================================================
   MAP FULL – layout stile prezzi-benzina (mappa + sidebar)
   ============================================================ */
.fpi-map-full {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	background: #f8fafc;
	max-width: 100%;
}

.fpi-mf-topbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	padding: 12px 14px;
	background: #fff;
	border-bottom: 1px solid #e2e8f0;
}

.fpi-mf-search-wrap {
	display: flex;
	flex: 1 1 260px;
	gap: 6px;
	min-width: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.fpi-mf-search {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	padding: 10px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	font-size: 14px;
	outline: none;
}

.fpi-mf-search:focus {
	border-color: #059669;
	box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.fpi-mf-btn-search {
	padding: 10px 16px;
	background: #059669;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-weight: 600;
	cursor: pointer;
	font-size: 14px;
}

.fpi-mf-btn-search:hover { background: #047857; }

.fpi-mf-btn-home {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex-shrink: 0;
	padding: 10px 16px;
	border-radius: 10px;
	background: #0f172a;
	color: #fff !important;
	font-weight: 800;
	font-size: 0.9rem;
	text-decoration: none !important;
	letter-spacing: 0.02em;
	border: none;
	line-height: 1.2;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
	transition: background 0.15s, transform 0.12s;
}
.fpi-mf-btn-home:hover,
.fpi-mf-btn-home:focus {
	background: #1e293b;
	color: #fff !important;
	text-decoration: none !important;
	transform: translateY(-1px);
}

.fpi-mf-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.fpi-mf-filters select,
.fpi-mf-filters button {
	padding: 9px 12px;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	background: #fff;
	font-size: 13px;
	cursor: pointer;
}

.fpi-mf-fuel {
	font-weight: 700;
	text-transform: uppercase;
	border-color: #059669 !important;
	color: #047857;
}

.fpi-mf-btn-geo {
	background: #ecfdf5 !important;
	border-color: #a7f3d0 !important;
	color: #047857;
	font-weight: 600;
}

.fpi-mf-btn-refresh {
	background: #1e293b !important;
	color: #fff !important;
	border-color: #1e293b !important;
	font-weight: 600;
}

.fpi-mf-body {
	display: flex;
	min-height: 480px;
}

.fpi-mf-map-col {
	flex: 1 1 55%;
	min-width: 0;
	position: relative;
}

.fpi-mf-map {
	width: 100%;
	height: 100%;
	min-height: 480px;
	z-index: 0;
}

.fpi-mf-sidebar {
	flex: 0 0 380px;
	max-width: 100%;
	background: #fff;
	border-left: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	max-height: 640px;
}

.fpi-mf-sidebar-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-bottom: 1px solid #f1f5f9;
	flex-shrink: 0;
}

.fpi-mf-logo {
	font-weight: 800;
	font-size: 13px;
	color: #0d9488;
	letter-spacing: 0.02em;
}

.fpi-mf-tabs {
	display: flex;
	gap: 4px;
	margin-left: auto;
}

.fpi-mf-tab {
	padding: 6px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	color: #64748b;
}

.fpi-mf-tab.active {
	background: #059669;
	border-color: #059669;
	color: #fff;
}

.fpi-mf-count {
	font-size: 12px;
	color: #94a3b8;
	white-space: nowrap;
}

.fpi-mf-savings {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: linear-gradient(90deg, #059669, #047857);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	flex-shrink: 0;
}

.fpi-mf-list {
	flex: 1;
	overflow-y: auto;
	padding: 8px;
}

.fpi-mf-loading,
.fpi-mf-empty {
	padding: 24px 16px;
	text-align: center;
	color: #94a3b8;
	font-size: 14px;
}

.fpi-mf-card {
	display: flex;
	gap: 10px;
	padding: 12px;
	margin-bottom: 8px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
	background: #fff;
}

.fpi-mf-card:hover {
	border-color: #6ee7b7;
	box-shadow: 0 2px 10px rgba(5, 150, 105, 0.1);
}

.fpi-mf-card--best {
	border-color: #34d399;
	background: #ecfdf5;
}

.fpi-mf-card--active {
	border-color: #059669;
	box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.25);
}

.fpi-mf-card-main {
	flex: 1;
	min-width: 0;
}

.fpi-mf-card-title {
	font-size: 13px;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.3;
	margin-bottom: 2px;
}

.fpi-mf-card-addr {
	font-size: 12px;
	color: #64748b;
	line-height: 1.35;
}

.fpi-mf-card-loc {
	font-size: 11px;
	color: #94a3b8;
	margin-top: 2px;
}

.fpi-mf-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}

.fpi-mf-pill {
	font-size: 10px;
	padding: 2px 8px;
	border-radius: 6px;
	background: #f1f5f9;
	color: #64748b;
	font-weight: 600;
}

.fpi-mf-card-brand {
	font-size: 10px;
	padding: 2px 8px;
	border-radius: 6px;
	background: #eff6ff;
	color: #1e40af;
	font-weight: 700;
}

.fpi-mf-card-dist {
	font-weight: 600;
	color: #0d9488;
}

.fpi-mf-card-price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	flex-shrink: 0;
}

.fpi-mf-price-val {
	font-size: 1.25rem;
	font-weight: 800;
	color: #047857;
	line-height: 1.1;
}

.fpi-mf-price-unit {
	font-size: 11px;
	color: #64748b;
	font-weight: 600;
}

.fpi-mf-card--best .fpi-mf-price-val {
	color: #059669;
}

/* Marker custom sulla mappa */
.fpi-div-icon {
	background: transparent !important;
	border: none !important;
}

.fpi-marker {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #fff;
	border: 2px solid var(--mk, #059669);
	border-radius: 10px;
	padding: 2px 6px 3px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	min-width: 56px;
	line-height: 1.15;
}

.fpi-marker--best {
	border-width: 3px;
	background: #ecfdf5;
	box-shadow: 0 3px 12px rgba(5, 150, 105, 0.35);
}

.fpi-marker-brand {
	font-size: 9px;
	font-weight: 700;
	color: #475569;
	text-transform: uppercase;
	max-width: 64px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fpi-marker-price {
	font-size: 12px;
	font-weight: 800;
	color: var(--mk, #059669);
}

@media (max-width: 900px) {
	.fpi-mf-body {
		flex-direction: column;
	}
	.fpi-mf-sidebar {
		flex: none;
		max-height: 360px;
		border-left: none;
		border-top: 1px solid #e2e8f0;
	}
	.fpi-mf-map {
		min-height: 360px;
	}
}

/* ---------- PIÙ CARO D'ITALIA (sfondo rosso) ---------- */
.fpi-national-section--max {
	padding-top: 4px;
}

.fpi-national-card--max {
	background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
	box-shadow: 0 8px 28px rgba(220, 38, 38, 0.35);
}

.fpi-national-card--max::before {
	background: radial-gradient(circle at 90% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.fpi-national-badge--max {
	background: rgba(255, 255, 255, 0.22);
}

.fpi-fuel-tag--max {
	background: rgba(255, 255, 255, 0.28) !important;
	color: #fff !important;
}

.fpi-national-card--max .fpi-national-city {
	color: #fecaca;
}

.fpi-national-diff {
	font-size: 0.75rem;
	font-weight: 600;
	color: #fecaca;
	background: rgba(0, 0, 0, 0.15);
	padding: 3px 8px;
	border-radius: 6px;
}

.fpi-national-cta--max {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.fpi-national-card--max .fpi-national-inner:hover .fpi-national-cta--max {
	background: rgba(255, 255, 255, 0.32);
}

/* ---------- VICINO A TE (geo – sopra tutto, verde) ---------- */
.fpi-near-section {
	padding: 20px 20px 8px;
	max-width: 1100px;
	margin: 0 auto;
}

.fpi-near-card {
	background: linear-gradient(135deg, #059669 0%, #047857 55%, #065f46 100%);
	border-radius: 16px;
	padding: 20px 22px;
	box-shadow: 0 8px 28px rgba(5, 150, 105, 0.35);
	color: #fff;
	position: relative;
	overflow: hidden;
}

.fpi-near-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 85% 15%, rgba(255,255,255,0.14) 0%, transparent 45%);
	pointer-events: none;
}

.fpi-near-prompt {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	position: relative;
}

.fpi-near-icon {
	font-size: 2rem;
	flex-shrink: 0;
	line-height: 1;
}

.fpi-near-prompt-text {
	flex: 1;
	min-width: 200px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fpi-near-prompt-text strong {
	font-size: 1.15rem;
	font-weight: 700;
	color: #fff;
}

.fpi-near-prompt-text span {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.88);
	line-height: 1.4;
}

.fpi-near-btn {
	flex-shrink: 0;
	padding: 12px 22px;
	background: #fff;
	color: #047857;
	border: none;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	transition: transform 0.15s, box-shadow 0.15s;
}

.fpi-near-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.fpi-near-loading {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.95rem;
	font-weight: 600;
	position: relative;
}

.fpi-near-spinner {
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255,255,255,0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: fpi-spin 0.7s linear infinite;
}

@keyframes fpi-spin {
	to { transform: rotate(360deg); }
}

.fpi-near-error {
	font-size: 0.95rem;
	font-weight: 600;
	color: #fecaca;
	position: relative;
}

.fpi-near-result-inner {
	position: relative;
}

.fpi-near-badge {
	display: inline-block;
	padding: 4px 12px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.fpi-near-result-body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.fpi-near-result-left {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	flex: 1;
}

.fpi-near-name {
	font-size: 1.15rem;
	font-weight: 700;
	color: #fff;
}

.fpi-near-addr {
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.88);
}

.fpi-near-loc {
	font-size: 0.85rem;
	color: #a7f3d0;
	font-weight: 600;
}

.fpi-near-loc em {
	font-style: normal;
	color: #fff;
}

.fpi-near-type {
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.75);
	margin-top: 2px;
}

.fpi-near-result-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	flex-shrink: 0;
}

.fpi-near-price .fpi-price-value {
	font-size: 2rem;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.03em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.fpi-near-price .fpi-price-unit {
	font-size: 1rem;
	color: #d1fae5;
	font-weight: 600;
}

.fpi-near-retry {
	margin-top: 12px;
	padding: 8px 14px;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 8px;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}

.fpi-near-retry:hover {
	background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 640px) {
	.fpi-near-prompt {
		flex-direction: column;
		align-items: flex-start;
	}
	.fpi-near-btn {
		width: 100%;
		text-align: center;
	}
	.fpi-near-result-body {
		flex-direction: column;
		align-items: flex-start;
	}
	.fpi-near-result-right {
		align-items: flex-start;
	}
}

.fpi-more-capoluoghi {
	margin-top: 16px;
}

.fpi-more-capoluoghi summary {
	cursor: pointer;
	font-weight: 700;
	color: #047857;
	padding: 10px 14px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: 10px;
	list-style: none;
	display: inline-block;
}

.fpi-more-capoluoghi summary::-webkit-details-marker {
	display: none;
}

.fpi-more-capoluoghi[open] summary {
	margin-bottom: 4px;
}

.fpi-station-card--static {
	cursor: default;
}
.fpi-station-card--static:hover {
	transform: none;
}
.fpi-province-cities {
	margin-bottom: 24px;
}

/* Prezzi da 2,000 €/l in su → rosso */
.fpi-price-high,
.fpi-price-high .fpi-price-value,
.fpi-price-high .fpi-price-unit,
.fpi-mf-price-val.fpi-price-high {
	color: #dc2626 !important;
}
.fpi-station-card.fpi-price-high-card {
	border-color: #fca5a5;
}
.fpi-station-card.fpi-price-high-card .fpi-price-value {
	color: #dc2626;
}
.fpi-marker.fpi-marker--high {
	border-color: #dc2626;
}
.fpi-marker.fpi-marker--high .fpi-marker-price {
	color: #dc2626;
}
.fpi-mf-card.fpi-price-high-card .fpi-mf-price-val {
	color: #dc2626 !important;
}

/* Switch carburanti mappa full */
.fpi-mf-fuel-switches {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	width: 100%;
	padding: 4px 0 2px;
}
.fpi-mf-fuel-btn {
	padding: 10px 16px;
	border-radius: 22px;
	border: 1px solid #e2e8f0;
	background: #fff;
	font-size: 15.6px;
	font-weight: 600;
	color: #475569;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
	white-space: nowrap;
}
.fpi-mf-fuel-btn:hover {
	border-color: #059669;
	color: #047857;
}
.fpi-mf-fuel-btn.is-active {
	background: #059669;
	border-color: #059669;
	color: #fff;
}

/* Prezzi >= 2 €/l → arancio-rosso (mappa + città) */
.fpi-price-high,
.fpi-price-high .fpi-price-value,
.fpi-price-high .fpi-price-unit,
.fpi-mf-price-val.fpi-price-high {
	color: #ea580c !important;
}
.fpi-station-card.fpi-price-high-card {
	border-color: #fdba74;
}
.fpi-station-card.fpi-price-high-card .fpi-price-value {
	color: #ea580c;
}
.fpi-marker.fpi-marker--high {
	border-color: #ea580c !important;
	background: #fff7ed;
}
.fpi-marker.fpi-marker--high .fpi-marker-price {
	color: #ea580c !important;
}
.fpi-mf-card.fpi-price-high-card .fpi-mf-price-val {
	color: #ea580c !important;
}
.fpi-mf-card.fpi-price-high-card {
	border-color: #fdba74;
}


.fpi-mf-scroll-more {
	text-align: center;
	padding: 12px;
	font-size: 12px;
	color: #94a3b8;
	font-weight: 600;
}

/* Portami – Google + Apple Maps */
.fpi-portami {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	flex-wrap: wrap;
}
.fpi-portami-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px;
	background: #2563eb;
	color: #fff !important;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none !important;
	line-height: 1.2;
}
.fpi-portami-btn:hover {
	background: #1d4ed8;
	color: #fff !important;
}
.fpi-portami-apple {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 28px;
	background: #111;
	color: #fff !important;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
}
.fpi-portami-apple:hover {
	background: #333;
	color: #fff !important;
}
.fpi-mf-card-price .fpi-portami {
	margin-top: 6px;
	justify-content: flex-end;
}
.fpi-popup .fpi-portami {
	margin-top: 10px;
}

/* FAQ provincia */
.fpi-faq {
	max-width: 1100px;
	margin: 28px auto 8px;
	padding: 0 16px;
}
.fpi-faq-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 14px;
}
.fpi-faq-item {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 4px 16px 4px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.fpi-faq-item summary {
	cursor: pointer;
	font-weight: 700;
	font-size: 1rem;
	color: #0f172a;
	padding: 12px 0;
	list-style: none;
}
.fpi-faq-item summary::-webkit-details-marker {
	display: none;
}
.fpi-faq-item summary::before {
	content: "▸ ";
	color: #059669;
	font-weight: 800;
}
.fpi-faq-item[open] summary::before {
	content: "▾ ";
}
.fpi-faq-item p {
	margin: 0 0 14px;
	color: #475569;
	line-height: 1.55;
	font-size: 0.95rem;
}

/* Preferiti */
#fpi-fav-fab {
	position: fixed;
	right: 18px;
	bottom: 22px;
	z-index: 99990;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: none;
	background: linear-gradient(135deg, #e11d48, #be123c);
	color: #fff;
	box-shadow: 0 6px 20px rgba(190, 18, 60, 0.4);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}
#fpi-fav-fab:hover { transform: scale(1.05); }
.fpi-fav-fab-count {
	position: absolute;
	top: -4px;
	right: -4px;
	background: #fff;
	color: #be123c;
	font-size: 11px;
	font-weight: 800;
	min-width: 20px;
	height: 20px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
#fpi-fav-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.35);
	z-index: 99991;
}
#fpi-fav-panel {
	position: fixed;
	right: 16px;
	bottom: 88px;
	width: min(360px, calc(100vw - 24px));
	max-height: min(70vh, 520px);
	overflow: auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0,0,0,0.2);
	z-index: 99992;
	padding: 14px 14px 12px;
}
.fpi-fav-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 4px;
}
.fpi-fav-panel-head strong {
	font-size: 1.05rem;
	color: #0f172a;
}
#fpi-fav-close {
	border: none;
	background: #f1f5f9;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	font-size: 20px;
	cursor: pointer;
	line-height: 1;
}
.fpi-fav-hint {
	font-size: 12px;
	color: #94a3b8;
	margin: 0 0 10px;
}
.fpi-fav-empty {
	text-align: center;
	padding: 24px 12px;
	color: #64748b;
	font-size: 0.9rem;
	line-height: 1.45;
}
.fpi-fav-item {
	display: flex;
	gap: 8px;
	padding: 10px 0;
	border-bottom: 1px solid #f1f5f9;
}
.fpi-fav-item-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.fpi-fav-item-main strong {
	font-size: 0.92rem;
	color: #0f172a;
}
.fpi-fav-item-addr,
.fpi-fav-item-loc {
	font-size: 0.8rem;
	color: #64748b;
}
.fpi-fav-item-price {
	font-size: 0.85rem;
	font-weight: 700;
	color: #047857;
	margin-top: 2px;
}
.fpi-fav-remove {
	border: none;
	background: #fee2e2;
	color: #b91c1c;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 16px;
	flex-shrink: 0;
}
.fpi-fav-clear {
	width: 100%;
	margin-top: 10px;
	padding: 8px;
	border: 1px solid #fecaca;
	background: #fff;
	color: #b91c1c;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	font-size: 13px;
}
.fpi-fav-toggle {
	border: none;
	background: #f1f5f9;
	color: #94a3b8;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	flex-shrink: 0;
	transition: background 0.15s, color 0.15s, transform 0.15s;
}
.fpi-fav-toggle.is-fav {
	background: #ffe4e6;
	color: #e11d48;
}
.fpi-fav-toggle:hover {
	transform: scale(1.08);
}
.fpi-mf-card-price-row {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
}
.fpi-popup-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}
.fpi-fav-cell {
	width: 40px;
	text-align: center;
}

/* Composer ricerca homepage stile ChatGPT */
.fpi-composer {
	max-width: 960px;
	width: 100%;
	margin: 28px auto 0;
}
.fpi-composer-shell {
	background: rgba(255,255,255,0.97);
	border-radius: 24px;
	padding: 10px 12px 12px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.2);
}
.fpi-composer-input-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	padding: 6px 8px 6px 14px;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.fpi-composer-input-wrap:focus-within {
	border-color: #059669;
	box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
	background: #fff;
}
.fpi-composer-icon {
	font-size: 1.32rem;
	opacity: 0.7;
}
.fpi-composer-input {
	flex: 1;
	border: none;
	background: transparent;
	font-size: 1.26rem;
	padding: 12px 4px;
	outline: none;
	color: #0f172a;
	min-width: 0;
}
.fpi-composer-input::placeholder {
	color: #94a3b8;
}
.fpi-composer-geo,
.fpi-composer-go {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	font-size: 1.38rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.12s, background 0.12s;
}
.fpi-composer-geo {
	background: #ecfdf5;
	color: #047857;
}
.fpi-composer-geo:hover {
	background: #d1fae5;
}
.fpi-composer-go {
	background: #059669;
	color: #fff;
	font-weight: 700;
}
.fpi-composer-go:hover {
	background: #047857;
	transform: scale(1.04);
}
.fpi-composer-options {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	margin-top: 10px;
	padding: 0 4px;
}
.fpi-composer-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}
.fpi-composer-row--radius {
	padding-top: 2px;
}
.fpi-composer-opt-label {
	font-size: 0.9rem;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-right: 2px;
}
.fpi-composer-opt-sep {
	width: 1px;
	height: 18px;
	background: #e2e8f0;
	margin: 0 4px;
}
.fpi-chip {
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #475569;
	font-size: 1.02rem;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.fpi-chip:hover {
	border-color: #059669;
	color: #047857;
}
.fpi-chip.is-active {
	background: #059669;
	border-color: #059669;
	color: #fff;
}
.fpi-composer-status {
	margin-top: 10px;
	padding: 8px 12px;
	font-size: 1.08rem;
	color: #0f172a;
	background: #f1f5f9;
	border-radius: 12px;
}
@media (max-width: 560px) {
	.fpi-composer-opt-sep { display: none; }
	.fpi-composer-input { font-size: 1.2rem; }
}

/* Tools: alert + history */
.fpi-tools-section {
	max-width: 1100px;
	margin: 24px auto;
	padding: 0 16px;
}
.fpi-tools-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
@media (max-width: 800px) {
	.fpi-tools-grid { grid-template-columns: 1fr; }
}
.fpi-alert-box,
.fpi-history-box {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 18px 18px 16px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.fpi-alert-box h3,
.fpi-history-box h3 {
	margin: 0 0 8px;
	font-size: 1.1rem;
}
.fpi-alert-box p,
.fpi-history-box > p {
	margin: 0 0 12px;
	color: #64748b;
	font-size: 0.9rem;
	line-height: 1.4;
}
.fpi-alert-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.fpi-alert-email,
.fpi-alert-threshold {
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	font-size: 0.95rem;
}
.fpi-alert-row {
	display: flex;
	align-items: center;
	gap: 10px;
}
.fpi-alert-row label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #475569;
	white-space: nowrap;
}
.fpi-alert-row input {
	flex: 1;
}
.fpi-alert-submit {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 12px 16px;
	border: none;
	border-radius: 10px;
	background: #059669;
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
}
@media (max-width: 560px) {
	.fpi-alert-form .fpi-alert-submit {
		width: 100%;
		margin-top: 8px;
	}
	.fpi-alert-row {
		flex-direction: column;
		align-items: stretch;
	}
	.fpi-alert-row input {
		width: 100%;
		box-sizing: border-box;
	}
}
.fpi-alert-submit:hover { background: #047857; }
.fpi-alert-msg {
	margin: 8px 0 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: #047857;
}
.fpi-alert-note {
	font-size: 0.78rem !important;
	color: #94a3b8 !important;
	margin-top: 10px !important;
}
.fpi-history-tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 12px;
}
.fpi-hist-tab {
	padding: 6px 12px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	background: #fff;
	font-weight: 600;
	font-size: 0.85rem;
	cursor: pointer;
}
.fpi-hist-tab.is-active {
	background: #059669;
	border-color: #059669;
	color: #fff;
}
.fpi-history-chart {
	min-height: 140px;
}
.fpi-history-empty {
	padding: 24px;
	text-align: center;
	color: #94a3b8;
	font-size: 0.9rem;
}
.fpi-hist-bars {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	height: 160px;
	padding: 8px 0 0;
}
.fpi-hist-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	height: 100%;
	min-width: 0;
}
.fpi-hist-bar {
	width: 100%;
	max-width: 28px;
	background: linear-gradient(180deg, #34d399, #059669);
	border-radius: 6px 6px 2px 2px;
	min-height: 8px;
}
.fpi-hist-val {
	font-size: 0.65rem;
	font-weight: 700;
	color: #047857;
	margin-top: 4px;
}
.fpi-hist-day {
	font-size: 0.65rem;
	color: #94a3b8;
}

/* Confronto pieno */
.fpi-mf-tank {
	font-size: 0.75rem;
	color: #475569;
	margin-top: 4px;
	text-align: right;
}
.fpi-mf-tank-diff {
	font-size: 0.72rem;
	color: #ea580c;
	text-align: right;
}
.fpi-mf-tank-best {
	font-size: 0.72rem;
	color: #059669;
	font-weight: 700;
	text-align: right;
}
.fpi-mf-savings-sub {
	font-size: 0.8rem;
	font-weight: 500;
	opacity: 0.9;
}

/* Filtro autostrada */
.fpi-mf-highway-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #334155;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	padding: 8px 12px;
	border-radius: 10px;
	cursor: pointer;
	white-space: nowrap;
}
.fpi-mf-highway-label input {
	accent-color: #059669;
}

/* Badge aggiornamento */
.fpi-badge-fresh {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 0.7rem;
	font-weight: 700;
	background: #ecfdf5;
	color: #047857;
}
.fpi-badge-stale {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 0.7rem;
	font-weight: 700;
	background: #fff7ed;
	color: #c2410c;
}
.fpi-badge-sponsored {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 0.7rem;
	font-weight: 800;
	background: #fef3c7;
	color: #b45309;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-right: 4px;
}
.fpi-mf-card--sponsored {
	border-color: #d4a017 !important;
	background: linear-gradient(90deg, #fef3c7 0%, #fffbeb 35%, #fff 100%);
	box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.45), 0 4px 14px rgba(212, 160, 23, 0.2);
	order: -1;
}
.fpi-mf-card--sponsored .fpi-mf-card-title {
	font-weight: 800;
}
.fpi-marker--sponsored {
	border: 2px solid #d4a017 !important;
	background: linear-gradient(180deg, #fef3c7, #fde68a) !important;
	box-shadow: 0 2px 10px rgba(212, 160, 23, 0.55);
	min-width: 72px;
}
.fpi-marker--sponsored .fpi-marker-price {
	color: #92400e !important;
	font-weight: 800;
}
.fpi-marker-spon {
	display: block;
	text-align: center;
	font-size: 9px;
	font-weight: 800;
	color: #92400e;
	letter-spacing: 0.03em;
	line-height: 1.1;
}
.fpi-badge-sponsored {
	background: linear-gradient(135deg, #fbbf24, #d4a017) !important;
	color: #422006 !important;
	border: 1px solid #b45309;
}
.fpi-report-btn {
	border: none;
	background: transparent;
	color: #94a3b8;
	font-size: 0.72rem;
	text-decoration: underline;
	cursor: pointer;
	padding: 0 4px;
}
.fpi-report-btn:hover {
	color: #b91c1c;
}
.fpi-metodologia {
	max-width: 720px;
	margin: 0 auto;
	padding: 12px 16px 32px;
	line-height: 1.55;
	color: #334155;
}
.fpi-metodologia h2 {
	color: #0f172a;
	margin-bottom: 12px;
}
.fpi-metodologia h3 {
	margin-top: 22px;
	color: #0f172a;
	font-size: 1.1rem;
}
.fpi-metodologia ul {
	padding-left: 1.2em;
}
.fpi-metodologia li {
	margin: 6px 0;
}
.fpi-brand-logo {
	object-fit: contain;
}


/* LIVE pulse – stazione più economica */
.fpi-live-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 8px;
	border-radius: 999px;
	background: #dc2626;
	color: #fff;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	vertical-align: middle;
	box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55);
	animation: fpi-live-pulse 1.6s ease-out infinite;
}
.fpi-live-badge--sm {
	font-size: 0.62rem;
	padding: 2px 6px;
}
.fpi-live-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
	animation: fpi-live-dot 1.6s ease-out infinite;
}
@keyframes fpi-live-pulse {
	0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55); }
	70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
	100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}
@keyframes fpi-live-dot {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.55; transform: scale(0.85); }
}
.fpi-marker-live {
	display: block;
	text-align: center;
	font-size: 9px;
	font-weight: 800;
	color: #dc2626;
	letter-spacing: 0.04em;
	line-height: 1.1;
}
.fpi-marker--best {
	border-color: #dc2626 !important;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
}
.fpi-mf-card--best {
	border-color: #86efac;
	box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}
.fpi-mf-card--best .fpi-mf-card-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}


/* Carousel prezzi medi grandi città */
.fpi-avg-carousel-section {
	max-width: 1100px;
	margin: 28px auto 16px;
	padding: 0 16px;
}
.fpi-avg-carousel {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding: 8px 4px 16px;
	scrollbar-width: thin;
}
.fpi-avg-carousel::-webkit-scrollbar {
	height: 6px;
}
.fpi-avg-carousel::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 3px;
}
.fpi-avg-card {
	flex: 0 0 min(200px, 72vw);
	scroll-snap-align: start;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 14px 16px;
	text-decoration: none !important;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 4px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	transition: border-color 0.15s, transform 0.15s;
}
.fpi-avg-card:hover {
	border-color: #059669;
	transform: translateY(-2px);
}
.fpi-avg-city {
	font-weight: 800;
	font-size: 1.05rem;
	color: #0f172a;
}
.fpi-avg-code {
	font-size: 0.75rem;
	color: #94a3b8;
	font-weight: 600;
}
.fpi-avg-mean {
	margin-top: 8px;
	font-size: 1.15rem;
	font-weight: 800;
	color: #047857;
}
.fpi-avg-mean small {
	font-size: 0.7rem;
	font-weight: 600;
	color: #64748b;
}
.fpi-avg-min {
	font-size: 0.85rem;
	color: #475569;
}

/* Mode provincia / città */
.fpi-mf-mode-switches {
	display: flex;
	gap: 6px;
	margin-bottom: 8px;
}
.fpi-mf-mode-btn {
	padding: 8px 14px;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	background: #fff;
	font-size: 0.9rem;
	font-weight: 700;
	color: #475569;
	cursor: pointer;
}
.fpi-mf-mode-btn.is-active {
	background: #0f172a;
	border-color: #0f172a;
	color: #fff;
}

/* Carousel frecce + touch */
.fpi-avg-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}
.fpi-avg-arrows {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}
.fpi-avg-prev,
.fpi-avg-next {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #e2e8f0;
	background: #fff;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	color: #0f172a;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.fpi-avg-prev:hover,
.fpi-avg-next:hover {
	border-color: #059669;
	color: #047857;
}
.fpi-avg-carousel-wrap {
	position: relative;
}
.fpi-avg-carousel {
	cursor: grab;
	touch-action: pan-x;
	user-select: none;
}
.fpi-avg-carousel:active {
	cursor: grabbing;
}

/* Capoluoghi home – città e regione in evidenza */
.fpi-cap-card {
	padding-top: 0;
}
.fpi-cap-place {
	padding: 14px 16px 12px;
	background: linear-gradient(135deg, #047857 0%, #059669 55%, #10b981 100%);
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.fpi-cap-city {
	font-size: 1.25rem;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.02em;
	line-height: 1.2;
}
.fpi-cap-region {
	font-size: 0.85rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
}
.fpi-cap-card .fpi-station-body {
	background: #f8fafc;
	border-top: none;
}
.fpi-cap-card .fpi-station-name {
	color: #0f172a;
	font-size: 0.9rem;
}
.fpi-cap-card .fpi-station-addr {
	color: #64748b;
}
.fpi-cap-card:hover .fpi-cap-place {
	filter: brightness(1.05);
}

/* EV map dedicata */
.fpi-ev-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #8b5cf6 100%);
	color: #fff;
	border-radius: 12px 12px 0 0;
	font-size: 0.95rem;
}
.fpi-ev-tag,
.fpi-ev-tag-sm {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	background: #fbbf24;
	color: #422006;
	font-weight: 800;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
}
.fpi-ev-tag-sm {
	font-size: 0.65rem;
	padding: 2px 7px;
}
.fpi-ev-source {
	opacity: 0.85;
	font-size: 0.8rem;
	margin-left: auto;
}
.fpi-ev-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 0.68rem;
	font-weight: 800;
	background: #ede9fe;
	color: #5b21b6;
}
.fpi-ev-badge--fast {
	background: #fef3c7;
	color: #b45309;
}
.fpi-ev-badge--ac {
	background: #dbeafe;
	color: #1d4ed8;
}
.fpi-ev-badge--slow {
	background: #f1f5f9;
	color: #475569;
}
.fpi-ev-marker {
	background: #7c3aed;
	color: #fff;
	border-radius: 10px;
	padding: 4px 8px;
	font-size: 11px;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(91, 33, 182, 0.4);
	text-align: center;
	line-height: 1.15;
	border: 2px solid #ddd6fe;
}
.fpi-ev-marker--fast {
	background: #d97706;
	border-color: #fde68a;
}
.fpi-ev-marker--ac {
	background: #2563eb;
	border-color: #bfdbfe;
}
.fpi-ev-marker-tag {
	display: block;
	font-size: 12px;
}
.fpi-ev-marker-kw {
	display: block;
}
.fpi-ev-conns {
	font-size: 0.75rem;
	color: #64748b;
	margin-top: 4px;
}
.fpi-ev-cost {
	font-size: 0.78rem;
	color: #059669;
	font-weight: 600;
	margin-top: 2px;
}
.fpi-ev-credit {
	font-size: 0.8rem;
	color: #94a3b8;
	padding: 8px 4px 0;
}
.fpi-ev-card .fpi-mf-card-title {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

/* Landing partner / sponsor */
.fpi-partner-landing {
	max-width: 720px;
	margin: 0 auto;
	padding: 8px 16px 40px;
}
.fpi-partner-hero {
	background: linear-gradient(135deg, #78350f 0%, #d4a017 50%, #fbbf24 100%);
	color: #fff;
	border-radius: 16px;
	padding: 28px 24px;
	margin-bottom: 20px;
}
.fpi-partner-badge {
	display: inline-block;
	background: rgba(0,0,0,0.25);
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	margin-bottom: 10px;
}
.fpi-partner-title {
	margin: 0 0 8px;
	font-size: 1.75rem;
	color: #fff;
}
.fpi-partner-blurb {
	margin: 0 0 12px;
	opacity: 0.95;
	line-height: 1.45;
}
.fpi-partner-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 0.85rem;
}
.fpi-partner-status.is-live {
	background: #ecfdf5;
	color: #047857;
	padding: 2px 10px;
	border-radius: 6px;
	font-weight: 700;
}
.fpi-partner-station {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.fpi-partner-station-main {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin-bottom: 16px;
}
.fpi-partner-station-main h2 {
	margin: 0 0 6px;
	font-size: 1.25rem;
}
.fpi-partner-city {
	color: #047857;
	font-weight: 600;
}
.fpi-partner-id {
	font-size: 0.8rem;
	color: #94a3b8;
}
.fpi-partner-prices {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0 20px;
	font-size: 0.9rem;
}
.fpi-partner-prices th,
.fpi-partner-prices td {
	padding: 8px 10px;
	border-bottom: 1px solid #f1f5f9;
	text-align: left;
}
.fpi-partner-prices th {
	background: #f8fafc;
	font-size: 0.75rem;
	text-transform: uppercase;
	color: #64748b;
}
.fpi-partner-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.fpi-partner-btn {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 10px;
	background: #0f172a;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
	font-size: 0.9rem;
}
.fpi-partner-btn--ghost {
	background: #fff;
	color: #0f172a !important;
	border: 1px solid #e2e8f0;
}
.fpi-partner-btn--gold {
	background: linear-gradient(135deg, #d4a017, #fbbf24);
	color: #422006 !important;
}
.fpi-partner-footer {
	margin-top: 20px;
	font-size: 0.8rem;
	color: #94a3b8;
}

/* Trend home */
.fpi-trend-section {
	max-width: 1100px;
	margin: 20px auto;
	padding: 0 16px 8px;
}
.fpi-trend-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}
.fpi-trend-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.fpi-trend-tab {
	padding: 6px 12px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	background: #fff;
	font-weight: 600;
	font-size: 0.85rem;
	cursor: pointer;
}
.fpi-trend-tab.is-active {
	background: #059669;
	border-color: #059669;
	color: #fff;
}
.fpi-trend-chart {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 12px 16px 8px;
	min-height: 160px;
}
.fpi-trend-bars {
	height: 150px;
}
.fpi-trend-caption {
	font-size: 0.85rem;
	color: #64748b;
	margin: 8px 4px 0;
}

/* Aperto ora OSM */
.fpi-open-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 0.7rem;
	font-weight: 700;
	background: #f1f5f9;
	color: #475569;
}
.fpi-open-badge.is-open {
	background: #ecfdf5;
	color: #047857;
}
.fpi-open-badge.is-closed {
	background: #fef2f2;
	color: #b91c1c;
}


.fpi-near-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 14px;
	padding: 12px 4px 4px;
	border-top: 1px solid rgba(255,255,255,0.15);
}
.fpi-near-map-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: 12px;
	border: none;
	background: linear-gradient(135deg, #059669 0%, #047857 100%);
	color: #fff !important;
	font-weight: 800;
	font-size: 0.95rem;
	line-height: 1.2;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.fpi-near-map-btn:hover,
.fpi-near-map-btn:focus {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: #fff !important;
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(5, 150, 105, 0.45);
	text-decoration: none !important;
}
.fpi-near-map-btn:active {
	transform: translateY(0);
}
.fpi-near-actions .fpi-near-retry {
	margin: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 16px;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,0.35);
	background: rgba(255,255,255,0.12);
	color: #fff;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
}
.fpi-near-actions .fpi-near-retry:hover {
	background: rgba(255,255,255,0.22);
}


/* Bollo 2027 checker */
.fpi-bollo-wrap { max-width: 960px; margin: 0 auto; padding: 12px 16px 40px; }
.fpi-bollo-hero { background: linear-gradient(135deg,#0f172a,#1e3a5f); color:#fff; border-radius:16px; padding:24px; margin-bottom:20px; }
.fpi-bollo-tag { display:inline-block; background:#fbbf24; color:#422006; font-weight:800; font-size:0.75rem; padding:4px 10px; border-radius:999px; margin-bottom:8px; }
.fpi-bollo-title { margin:0 0 8px; color:#fff; font-size:1.5rem; }
.fpi-bollo-lead { margin:0; opacity:0.92; line-height:1.5; font-size:0.95rem; }
.fpi-bollo-grid { display:grid; grid-template-columns:1.2fr 1fr; gap:16px; margin-bottom:24px; }
@media (max-width:800px){ .fpi-bollo-grid { grid-template-columns:1fr; } }
.fpi-bollo-form-card, .fpi-bollo-rules { background:#fff; border:1px solid #e2e8f0; border-radius:14px; padding:18px; }
.fpi-bollo-form label { display:block; margin-bottom:12px; font-size:0.9rem; }
.fpi-bollo-form label span { display:block; font-weight:600; margin-bottom:4px; color:#0f172a; }
.fpi-bollo-form select, .fpi-bollo-form input[type=number] { width:100%; padding:10px 12px; border:1px solid #e2e8f0; border-radius:10px; font-size:1rem; }
.fpi-bollo-form small { color:#64748b; font-size:0.8rem; }
.fpi-bollo-check { display:flex !important; align-items:flex-start; gap:8px; }
.fpi-bollo-check input { margin-top:3px; }
.fpi-bollo-btn { width:100%; padding:12px 16px; border:none; border-radius:12px; background:#059669; color:#fff; font-weight:800; font-size:1rem; cursor:pointer; }
.fpi-bollo-btn:hover { background:#047857; }
.fpi-bollo-result { margin-top:14px; padding:14px; border-radius:12px; font-size:0.95rem; line-height:1.45; }
.fpi-bollo-result--ok { background:#ecfdf5; border:1px solid #a7f3d0; color:#065f46; }
.fpi-bollo-result--no { background:#fef2f2; border:1px solid #fecaca; color:#991b1b; }
.fpi-bollo-result--warn { background:#fffbeb; border:1px solid #fde68a; color:#92400e; }
.fpi-bollo-rules ul { margin:0; padding-left:18px; font-size:0.9rem; line-height:1.5; }
.fpi-bollo-rules li { margin-bottom:8px; }
.fpi-bollo-note { font-size:0.8rem; color:#64748b; margin-top:12px; }
.fpi-bollo-models { margin-top:8px; }
.fpi-bollo-models-lead { font-size:0.9rem; color:#64748b; }
.fpi-bollo-table-wrap { overflow-x:auto; border:1px solid #e2e8f0; border-radius:12px; }
.fpi-bollo-table { width:100%; border-collapse:collapse; font-size:0.88rem; }
.fpi-bollo-table th, .fpi-bollo-table td { padding:10px 12px; border-bottom:1px solid #f1f5f9; text-align:left; }
.fpi-bollo-table th { background:#f8fafc; font-size:0.75rem; text-transform:uppercase; color:#64748b; }
.fpi-bollo-table tr.is-ok td:last-child { color:#047857; font-weight:600; }
.fpi-bollo-table tr.is-no td:last-child { color:#b91c1c; }
.fpi-bollo-faq details { background:#fff; border:1px solid #e2e8f0; border-radius:10px; padding:10px 14px; margin-bottom:8px; }
.fpi-bollo-faq summary { font-weight:700; cursor:pointer; }


/* Badge prezzo minimo (al posto di LIVE) */
.fpi-best-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px 3px 6px;
	border-radius: 999px;
	background: linear-gradient(135deg, #059669, #10b981);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	vertical-align: middle;
	animation: fpi-best-pulse 1.6s ease-out infinite;
	box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.45);
}
.fpi-best-txt {
	text-transform: uppercase;
	font-size: 0.68rem;
}
.fpi-best-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	font-weight: 900;
	line-height: 1;
}
.fpi-marker-best {
	display: block;
	text-align: center;
	line-height: 1.1;
	margin-bottom: 1px;
}
.fpi-marker-best .fpi-best-ico {
	display: inline-block;
	padding: 1px 5px;
	border-radius: 6px;
	background: #059669;
	color: #fff;
	font-size: 10px;
	font-weight: 900;
	animation: fpi-best-pulse 1.6s ease-out infinite;
	box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.5);
}
@keyframes fpi-best-pulse {
	0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.5); transform: scale(1); }
	70% { box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); transform: scale(1.04); }
	100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); transform: scale(1); }
}


/* Widget sponsor homepage */
.fpi-sponsor-home-section {
	max-width: 1100px;
	margin: 24px auto 8px;
	padding: 0 16px;
}
.fpi-sponsor-home-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 14px;
}
.fpi-sponsor-home-card {
	display: flex;
	flex-direction: column;
	border: 2px solid #d4a017;
	border-radius: 16px;
	overflow: hidden;
	background: linear-gradient(180deg, #fffbeb 0%, #fff 40%);
	text-decoration: none !important;
	color: inherit;
	box-shadow: 0 4px 16px rgba(212, 160, 23, 0.22);
	transition: transform 0.15s, box-shadow 0.15s;
}
.fpi-sponsor-home-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(212, 160, 23, 0.35);
	color: inherit;
}
.fpi-sponsor-home-badge {
	background: linear-gradient(135deg, #fbbf24, #d4a017);
	color: #422006;
	font-weight: 800;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	text-align: center;
	padding: 8px 12px;
}
.fpi-sponsor-home-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 12px 14px 4px;
}
.fpi-sponsor-home-price {
	text-align: right;
}
.fpi-sponsor-home-price .fpi-price-value {
	color: #92400e;
}
.fpi-sponsor-home-body {
	padding: 8px 14px 12px;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.fpi-sponsor-home-body strong {
	font-size: 1.05rem;
	color: #78350f;
}
.fpi-sponsor-home-body span {
	font-size: 0.85rem;
	color: #64748b;
}
.fpi-sponsor-home-city {
	font-weight: 700 !important;
	color: #b45309 !important;
}
.fpi-sponsor-home-blurb {
	margin-top: 4px;
	font-size: 0.8rem !important;
	color: #78716c !important;
}
.fpi-sponsor-home-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	border-top: 1px solid #fde68a;
	background: #fffbeb;
	font-size: 0.85rem;
}
.fpi-sponsor-home-cta {
	font-weight: 700;
	color: #b45309;
}


/* Acquisto sponsor PayPal */
.fpi-sponsor-buy { max-width: 560px; margin: 0 auto; padding: 12px 16px 32px; }
.fpi-sponsor-buy-hero {
	background: linear-gradient(135deg, #78350f, #d4a017 60%, #fbbf24);
	color: #fff; border-radius: 16px; padding: 22px; margin-bottom: 16px;
}
.fpi-sponsor-buy-tag {
	display: inline-block; background: rgba(0,0,0,0.25); padding: 4px 10px;
	border-radius: 999px; font-size: 0.75rem; font-weight: 800; margin-bottom: 8px;
}
.fpi-sponsor-buy-hero h2 { margin: 0 0 8px; color: #fff; font-size: 1.4rem; }
.fpi-sponsor-buy-hero p { margin: 0; opacity: 0.95; line-height: 1.45; }
.fpi-sponsor-buy-warn {
	background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
	padding: 12px; border-radius: 10px;
}
.fpi-sponsor-buy-form label { display: block; margin-bottom: 12px; }
.fpi-sponsor-buy-form label span { display: block; font-weight: 700; margin-bottom: 4px; font-size: 0.9rem; }
.fpi-sponsor-buy-form input[type=text],
.fpi-sponsor-buy-form input[type=email] {
	width: 100%; padding: 11px 12px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 1rem;
}
.fpi-sp-results { margin: 0 0 12px; max-height: 220px; overflow-y: auto; }
.fpi-sp-hit {
	display: block; width: 100%; text-align: left; padding: 10px 12px;
	border: 1px solid #fde68a; background: #fffbeb; border-radius: 8px;
	margin-bottom: 6px; cursor: pointer; font-size: 0.88rem;
}
.fpi-sp-hit:hover { background: #fef3c7; }
.fpi-sp-selected {
	background: #ecfdf5; border: 1px solid #a7f3d0; padding: 10px 12px;
	border-radius: 10px; margin-bottom: 12px; font-size: 0.9rem;
}
.fpi-paypal-buttons { margin-top: 16px; min-height: 45px; }
.fpi-sp-msg { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 0.9rem; }
.fpi-sp-msg.is-ok { background: #ecfdf5; color: #065f46; }
.fpi-sp-msg.is-err { background: #fef2f2; color: #991b1b; }
.fpi-sp-empty { font-size: 0.85rem; color: #64748b; padding: 8px; }

.fpi-faq-map-link {
	display: inline-block;
	margin-top: 6px;
	font-weight: 700;
	color: #047857 !important;
	text-decoration: underline !important;
}
.fpi-faq-map-link:hover { color: #059669 !important; }

.fpi-composer-row--prov {
	align-items: center;
}
.fpi-composer-prov {
	flex: 1;
	min-width: 180px;
	max-width: 100%;
	padding: 8px 12px;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	font-size: 0.95rem;
	background: #fff;
}
.fpi-composer-prompts {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	margin-top: 12px;
	padding: 0 4px;
}
.fpi-prompt-chip {
	text-align: left;
	padding: 10px 14px;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	color: #0f172a;
	font-size: 0.92rem;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.35;
	transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}
.fpi-prompt-chip:hover {
	border-color: #059669;
	background: #ecfdf5;
	color: #047857;
}
.fpi-prompt-chip.is-active {
	border-color: #059669;
	background: #d1fae5;
	color: #065f46;
	box-shadow: 0 0 0 2px rgba(5,150,105,0.15);
}
.fpi-near-tank50 {
	margin-top: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #047857;
}

.fpi-composer-bot {
	margin-top: 12px;
	padding: 12px 10px;
	border-radius: 14px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
}
.fpi-bot-hint {
	margin: 0 0 10px;
	font-size: 0.95rem;
	font-weight: 700;
	color: #065f46;
}
.fpi-bot-pills {
	margin-top: 0 !important;
	padding: 0 !important;
}

.fpi-sponsor-cta-card {
	display: block;
	border: 2px solid #d4a017;
	border-radius: 16px;
	overflow: hidden;
	background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fff 100%);
	text-decoration: none !important;
	color: inherit;
	box-shadow: 0 4px 18px rgba(212, 160, 23, 0.28);
	transition: transform 0.15s, box-shadow 0.15s;
}
.fpi-sponsor-cta-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 28px rgba(212, 160, 23, 0.4);
	color: inherit;
}
.fpi-sponsor-cta-body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.fpi-sponsor-cta-body strong {
	font-size: 1.15rem;
	color: #78350f;
}
.fpi-sponsor-cta-body span {
	font-size: 0.95rem;
	color: #92400e;
	line-height: 1.4;
}
.fpi-sponsor-cta-body .fpi-sponsor-home-cta {
	margin-top: 8px;
	font-weight: 800;
	color: #b45309;
}

.fpi-mf-updated {
	display: inline-block;
	margin-left: 4px;
	padding: 2px 8px;
	border-radius: 6px;
	background: #f1f5f9;
	color: #475569;
	font-size: 0.72rem;
	font-weight: 600;
}
.fpi-mf-updated.is-stale {
	background: #fff7ed;
	color: #c2410c;
}

/* Mappa full – search 100% su mobile */
@media (max-width: 768px) {
	.fpi-mf-topbar {
		flex-direction: column;
		align-items: stretch;
	}
	.fpi-mf-search-wrap {
		flex: 1 1 auto;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}
	.fpi-mf-search {
		width: 100% !important;
		flex: 1 1 auto;
		min-width: 0;
	}
	.fpi-mf-btn-search,
	.fpi-mf-btn-home {
		flex-shrink: 0;
	}
	.fpi-mf-filters {
		width: 100%;
	}
	.fpi-mf-filters select,
	.fpi-mf-filters button,
	.fpi-mf-filters label {
		max-width: 100%;
		box-sizing: border-box;
	}
	.fpi-mf-filters select {
		width: 100%;
	}
}

.fpi-marker--worst {
	border-color: #dc2626 !important;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.35);
}
.fpi-marker-worst {
	display: block;
	text-align: center;
	font-size: 10px;
	font-weight: 900;
	color: #fff;
	background: #dc2626;
	border-radius: 6px;
	padding: 1px 5px;
	margin-bottom: 1px;
}
button.fpi-national-inner {
	width: 100%;
	text-align: left;
	cursor: pointer;
	font: inherit;
	border: none;
	background: transparent;
	padding: 0;
	color: inherit;
}
button.fpi-national-inner:hover {
	opacity: 0.95;
}

/* Percorso – [fpi_route] */
.fpi-route { max-width: 1100px; margin: 0 auto; padding: 8px 12px 24px; }
.fpi-route-hero {
	background: linear-gradient(135deg, #0f766e, #059669 60%, #34d399);
	color: #fff; border-radius: 16px; padding: 20px 22px; margin-bottom: 14px;
}
.fpi-route-tag {
	display: inline-block; background: rgba(0,0,0,.2); padding: 4px 10px;
	border-radius: 999px; font-size: .75rem; font-weight: 800; margin-bottom: 8px;
}
.fpi-route-hero h2 { margin: 0 0 6px; color: #fff; font-size: 1.35rem; }
.fpi-route-hero p { margin: 0; opacity: .95; line-height: 1.4; }
.fpi-route-form {
	background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
	padding: 14px; margin-bottom: 12px;
}
.fpi-route-fields {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 12px;
}
.fpi-route-fields label, .fpi-route-opts label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 700; color: #334155; }
.fpi-route-fields input, .fpi-route-opts select {
	padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 1rem; font-weight: 500;
}
.fpi-route-opts {
	display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
}
.fpi-route-check {
	flex-direction: row !important; align-items: center; gap: 8px !important;
	font-weight: 600 !important; padding-bottom: 8px;
}
.fpi-route-go {
	padding: 11px 18px; border: none; border-radius: 10px; background: #059669; color: #fff;
	font-weight: 800; cursor: pointer; font-size: .95rem;
}
.fpi-route-go:hover { background: #047857; }
.fpi-route-go:disabled { opacity: .6; cursor: wait; }
.fpi-route-status { margin: 8px 0; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: .9rem; }
.fpi-route-status.is-ok { background: #ecfdf5; color: #065f46; }
.fpi-route-status.is-err { background: #fef2f2; color: #991b1b; }
.fpi-route-layout {
	display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; min-height: 400px;
}
@media (max-width: 860px) {
	.fpi-route-layout { grid-template-columns: 1fr; }
}
.fpi-route-map {
	border-radius: 14px; overflow: hidden; border: 1px solid #e2e8f0; background: #f1f5f9;
}
.fpi-route-side {
	border: 1px solid #e2e8f0; border-radius: 14px; background: #fff;
	display: flex; flex-direction: column; max-height: 560px;
}
.fpi-route-side-head {
	padding: 12px 14px; border-bottom: 1px solid #e2e8f0;
	display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
	font-size: .9rem;
}
.fpi-route-list { overflow-y: auto; padding: 8px; flex: 1; }
.fpi-route-empty { padding: 24px 12px; text-align: center; color: #94a3b8; font-size: .9rem; }
.fpi-route-card {
	display: flex; gap: 10px; padding: 12px; margin-bottom: 8px;
	border: 1px solid #e2e8f0; border-radius: 12px; cursor: pointer; background: #fff;
}
.fpi-route-card:hover { border-color: #6ee7b7; box-shadow: 0 2px 10px rgba(5,150,105,.12); }
.fpi-route-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fpi-route-card-main strong { font-size: .95rem; color: #0f172a; }
.fpi-route-card-main span { font-size: .8rem; color: #64748b; }
.fpi-route-card-meta { font-size: .75rem !important; color: #94a3b8 !important; }
.fpi-route-card-price {
	font-size: 1.15rem; font-weight: 800; color: #047857; white-space: nowrap;
}
.fpi-route-card-price small { font-size: .75rem; font-weight: 600; color: #64748b; }

/* QR code scheda impianto */
.fpi-qr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 4px;
	padding: 2px 8px;
	border-radius: 6px;
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	color: #0f172a;
	font-size: 0.7rem;
	font-weight: 800;
	cursor: pointer;
	letter-spacing: 0.04em;
}
.fpi-qr-btn:hover {
	background: #ecfdf5;
	border-color: #6ee7b7;
	color: #047857;
}
.fpi-qr-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.fpi-qr-modal[hidden] { display: none !important; }
.fpi-qr-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}
.fpi-qr-modal-box {
	position: relative;
	z-index: 1;
	width: min(320px, 100%);
	background: #fff;
	border-radius: 16px;
	padding: 20px 18px 16px;
	text-align: center;
	box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.fpi-qr-modal-x {
	position: absolute;
	top: 8px;
	right: 10px;
	border: none;
	background: transparent;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
}
.fpi-qr-modal-title {
	margin: 0 0 6px;
	font-size: 1rem;
	color: #0f172a;
}
.fpi-qr-modal-name {
	margin: 0 0 12px;
	font-size: 0.85rem;
	color: #64748b;
	font-weight: 600;
}
.fpi-qr-modal-img {
	display: block;
	margin: 0 auto 10px;
	width: 180px;
	height: 180px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}
.fpi-qr-modal-hint {
	margin: 0 0 10px;
	font-size: 0.8rem;
	color: #94a3b8;
}
.fpi-qr-modal-link {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 700;
	color: #047857;
	text-decoration: none;
}
.fpi-qr-modal-link:hover { text-decoration: underline; }
