/* Fermi Home Slider */
.fhs { --fhs-per: 1; --fhs-gap: 24px; box-sizing: border-box; width: 100%; }
.fhs *, .fhs *::before, .fhs *::after { box-sizing: border-box; }
.fhs-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.fhs-viewport { overflow: hidden; touch-action: pan-y; }
.fhs-track {
	display: flex; gap: var(--fhs-gap); margin: 0 !important; padding: 0 !important; list-style: none !important;
	transition: transform .7s cubic-bezier(.25, 1, .5, 1); will-change: transform;
}
.fhs-slide {
	flex: 0 0 calc((100% - (var(--fhs-per) - 1) * var(--fhs-gap)) / var(--fhs-per));
	min-width: 0; margin: 0 !important; padding: 0; list-style: none !important;
}
.fhs-slide::before { content: none !important; }
.fhs.is-dragging a { pointer-events: none; }
.fhs .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.fhs-empty { padding: 12px 16px; border: 1px dashed #c00; color: #c00; background: #fff5f5; }

/* Controlli */
.fhs-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.fhs-controls[hidden] { display: none; }
.fhs-dots { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.fhs-dot {
	width: 12px; height: 12px; padding: 0; border-radius: 50%; cursor: pointer;
	border: 1.5px solid #5c6f82; background: transparent; transition: background .2s, transform .2s;
}
.fhs-dot.is-active { background: #455b71; border-color: #455b71; }
.fhs-dot:hover { transform: scale(1.15); }
.fhs-arrow {
	display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: #455b71; cursor: pointer; transition: background .2s;
}
.fhs-arrow:hover { background: rgba(69, 91, 113, .1); }
.fhs-dot:focus-visible, .fhs-arrow:focus-visible, .fhs a:focus-visible { outline: 2px solid #ff9900; outline-offset: 2px; }

/* ------------------------------------------------------------------ */
/* Slider notizie                                                      */
/* ------------------------------------------------------------------ */
.fhs-slider {
	position: relative; padding: 44px 0 40px;
	background-color: var(--fhs-bg);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='65' height='65'%3E%3Cg stroke='%23ffffff' stroke-opacity='.22' stroke-width='1.4'%3E%3Cpath d='M32.5 25v15M25 32.5h15'/%3E%3C/g%3E%3Cg stroke='%23ffffff' stroke-opacity='.08' stroke-dasharray='2 4'%3E%3Cpath d='M0 32.5h25M40 32.5h25M32.5 0v25M32.5 40v25'/%3E%3C/g%3E%3C/svg%3E");
}
.fhs-slider .fhs-container { position: relative; }
.fhs-slider .fhs-viewport { background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .12); }
.fhs-slider .fhs-slide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 300px; background: #fff; }
.fhs-media { display: block; position: relative; overflow: hidden; background: #e6e9f2; min-height: 220px; }
.fhs-media img, .fhs-noimg {
	position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none;
	object-fit: cover; display: block; transition: transform .6s ease;
}
.fhs-slide:hover .fhs-media img { transform: scale(1.03); }
.fhs-body { display: flex; flex-direction: column; padding: 32px 40px 28px; color: #1a1a1a; }
.fhs-meta { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #5c6f82; margin-bottom: 12px; }
.fhs-sep { margin: 0 8px; }
.fhs-title { font-size: 1.5rem !important; line-height: 1.25 !important; font-weight: 600 !important; margin: 0 0 12px !important; }
.fhs-title a { color: #17324d; text-decoration: none; }
.fhs-title a:hover { color: var(--fhs-accent); text-decoration: underline; }
.fhs-excerpt { font-family: Lora, Georgia, serif; font-size: 15px; line-height: 1.55; color: #3d3d3d; margin: 0 0 16px; }
.fhs-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; flex-wrap: wrap; }
.fhs-author { font-family: Lora, Georgia, serif; font-style: italic; font-weight: 700; font-size: 14px; color: #3d4955; }
.fhs-more {
	display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
	color: var(--fhs-accent) !important; text-transform: uppercase; font-weight: 600; font-size: 14px;
	letter-spacing: .04em; text-decoration: none !important;
}
.fhs-more svg { transition: transform .2s; }
.fhs-more:hover svg { transform: translateX(4px); }

/* Controlli sullo sfondo colorato */
.fhs-slider .fhs-controls { margin-top: 20px; }
.fhs-slider .fhs-dot { border-color: rgba(255, 255, 255, .85); }
.fhs-slider .fhs-dot.is-active { background: #fff; border-color: #fff; }
.fhs-slider .fhs-arrow { color: #fff; }
.fhs-slider .fhs-arrow:hover { background: rgba(255, 255, 255, .15); }

@media (max-width: 767px) {
	.fhs-slider { padding: 24px 0; }
	.fhs-slider .fhs-slide { grid-template-columns: 1fr; min-height: 0; }
	.fhs-media { aspect-ratio: 16 / 9; min-height: 0; }
	.fhs-body { padding: 20px 20px 18px; }
	.fhs-title { font-size: 1.2rem !important; }
}

/* ------------------------------------------------------------------ */
/* Collegamenti utili                                                  */
/* ------------------------------------------------------------------ */
.fhs-links { background: var(--fhs-links-bg); padding: 28px 0 24px; }
.fhs-links-title { text-align: center; color: #3d4955; font-size: 16px; margin: 0 0 20px !important; }
.fhs-links .fhs-viewport { padding: 4px 0; }
.fhs-links.is-static .fhs-track { justify-content: center; transform: none !important; }
.fhs-logo {
	display: flex; align-items: center; justify-content: center; height: 110px; padding: 8px 16px;
	border-radius: 6px; text-decoration: none; transition: transform .25s, background .25s;
}
a.fhs-logo:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .7); }
.fhs-logo img { max-width: 100% !important; max-height: 100% !important; width: auto !important; height: auto !important; object-fit: contain; display: block; }
.fhs-link-text { font-weight: 700; font-size: 1.1rem; color: #17324d; text-align: center; }

@media (prefers-reduced-motion: reduce) {
	.fhs-track, .fhs-media img, .fhs-logo { transition: none !important; }
}
