/* Freddo System: slider home a schede. Colori presi dal logo. */
.fx {
	--fx-navy: #042b45;
	--fx-blue-dark: #035f96;
	--fx-blue: #0088ca;
	--fx-yellow: #fbb31f;
	--fx-orange: #f48220;
	--fx-orange-dark: #d96a0c;
	--fx-ink: #222529;
	--fx-muted: #5d6670;
	--fx-dur: 7s;
	--fx-count: 6;
	position: relative; margin: 0 0 30px; border-radius: 22px; overflow: hidden; isolation: isolate;
	background: var(--fx-navy); box-shadow: 0 30px 60px -30px rgba(4, 43, 69, .55);
	font-family: Poppins, system-ui, sans-serif; color: #fff;
}
.fx *, .fx *::before, .fx *::after { box-sizing: border-box; }
.fx-track { position: relative; height: 560px; }
.fx .fx-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.fx .fx-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.fx-bg { position: absolute; inset: 0; background-size: cover; background-position: center right; transform: scale(1.08); }
.fx-slide.is-active .fx-bg { animation: fx-kenburns calc(var(--fx-dur) + 1.5s) ease-out forwards; }
@keyframes fx-kenburns { from { transform: scale(1.12) translateX(1.5%); } to { transform: scale(1.02) translateX(0); } }

/* velatura: blu notte da sinistra */
.fx-slide::before { content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(90deg, rgba(4, 43, 69, .96) 0%, rgba(4, 43, 69, .86) 34%, rgba(4, 43, 69, .25) 62%, rgba(4, 43, 69, 0) 80%); }
.fx-slide.is-light::before { background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .9) 36%, rgba(255, 255, 255, .2) 64%, rgba(255, 255, 255, 0) 80%); }
.fx-slide.no-photo::before { background: linear-gradient(90deg, rgba(4, 43, 69, .7) 0%, rgba(4, 43, 69, 0) 60%); }
.fx-slide.no-photo .fx-bg { background: radial-gradient(circle at 78% 40%, #0088ca 0%, #035f96 45%, #042b45 100%); transform: none; animation: none; }
.fx-slide.no-photo .fx-bg::after { content: ""; position: absolute; inset: 0; opacity: .18;
	background-image: radial-gradient(#fff 1.2px, transparent 1.2px); background-size: 26px 26px; }

/* fiamma del logo come segno grafico */
.fx-flame { position: absolute; z-index: 1; right: -60px; bottom: -80px; width: 380px; height: 380px; opacity: .14; pointer-events: none;
	background: url("../img/slider/logo.png") no-repeat left center / auto 100%; filter: saturate(1.2); clip-path: inset(0 62% 0 0); transform: translateX(62%); }

.fx-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center;
	padding: 48px 56px 96px; max-width: 640px; color: #fff; }
.fx .is-light .fx-content { color: var(--fx-ink); }

.fx .fx-eyebrow { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 0 0 18px;
	padding: 7px 14px; border-radius: 999px; font-size: 12px; line-height: 1.3; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); color: inherit; }
.fx .fx-eyebrow i { color: var(--fx-orange); }
.fx .is-light .fx-eyebrow { background: #fff; border-color: rgba(3, 95, 150, .18); color: var(--fx-blue-dark); }

.fx .fx-title { margin: 0 0 14px; font-family: inherit; font-size: 50px; line-height: 1.04; font-weight: 800; letter-spacing: -.02em; color: #fff; text-transform: none; }
.fx .fx-title em { font-style: normal; color: var(--fx-orange); display: block; }
.fx .is-light .fx-title { color: var(--fx-blue-dark); }
.fx .fx-sub { margin: 0 0 22px; font-size: 17px; line-height: 1.55; max-width: 480px; opacity: .92; color: inherit; }

.fx .fx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.fx .fx-chips li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 13px; border-radius: 10px; font-size: 13.5px; line-height: 1.3; font-weight: 600;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); color: inherit; }
.fx .fx-chips li::before { content: none; }
.fx .fx-chips i { color: var(--fx-orange); }
.fx .is-light .fx-chips li { background: #fff; border-color: rgba(3, 95, 150, .12); box-shadow: 0 4px 14px -8px rgba(3, 95, 150, .35); }

.fx .fx-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fx a.fx-btn, .fx a.fx-btn:visited { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 12px; font-weight: 700; font-size: 14px; line-height: 1.2;
	letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: #fff; background: var(--fx-orange);
	box-shadow: 0 12px 26px -10px rgba(244, 130, 32, .8); transition: transform .2s, background .2s; }
.fx a.fx-btn:hover, .fx a.fx-btn:focus { color: #fff; background: var(--fx-orange-dark); transform: translateY(-2px); text-decoration: none; }
.fx a.fx-btn--ghost, .fx a.fx-btn--ghost:visited { background: transparent; box-shadow: none; border: 1.5px solid rgba(255, 255, 255, .55); }
.fx a.fx-btn--ghost:hover, .fx a.fx-btn--ghost:focus { background: rgba(255, 255, 255, .12); }
.fx .is-light a.fx-btn--ghost { color: var(--fx-blue-dark); border-color: rgba(3, 95, 150, .35); }
.fx .is-light a.fx-btn--ghost:hover { color: var(--fx-blue-dark); background: rgba(3, 95, 150, .06); }
.fx .fx-btn--ghost .fa-whatsapp { color: #25d366; font-size: 18px; }
.fx a:focus-visible, .fx button:focus-visible { outline: 3px solid var(--fx-yellow); outline-offset: 2px; }

/* card dati (offerta / kit) */
.fx .fx-card { position: absolute; z-index: 2; right: 40px; bottom: 104px; width: 320px; padding: 22px 24px; border-radius: 18px;
	background: rgba(255, 255, 255, .94); color: var(--fx-ink); backdrop-filter: blur(10px);
	box-shadow: 0 24px 50px -20px rgba(4, 43, 69, .6); border-top: 4px solid var(--fx-orange); }
.fx .fx-card--image { display: flex; align-items: center; gap: 18px; width: 470px; bottom: 50%; transform: translateY(50%); }
.fx .fx-card__img { width: 150px; height: auto; flex: none; border-radius: 10px; }
.fx .fx-card__label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fx-muted); }
.fx a.fx-card__model { display: block; margin: 4px 0 2px; font-size: 21px; font-weight: 800; color: var(--fx-blue-dark); line-height: 1.2; text-decoration: none; }
.fx a.fx-card__model:hover { color: var(--fx-orange); }
.fx .fx-card__price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0; font-size: 54px; font-weight: 800; color: var(--fx-orange); line-height: 1; letter-spacing: -.03em; }
.fx .fx-card__terms { font-size: 12px; line-height: 1.4; color: var(--fx-muted); }
.fx .fx-card__spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; margin-top: 10px; }
.fx .fx-card__spec b { font-size: 30px; font-weight: 800; color: var(--fx-orange); line-height: 1; }
.fx .fx-card__spec span { font-size: 13px; font-weight: 600; color: var(--fx-blue-dark); line-height: 1.25; }

/* sigillo DM 37/2008 */
.fx .fx-seal { position: absolute; z-index: 2; right: 44px; top: 40px; width: 128px; height: 128px; border-radius: 50%;
	display: grid; place-items: center; text-align: center; color: #fff; background: var(--fx-orange);
	box-shadow: 0 0 0 8px rgba(244, 130, 32, .25), 0 20px 40px -14px rgba(0, 0, 0, .5); font-weight: 800; line-height: 1.1; transform: rotate(-8deg); }
.fx .fx-seal small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.fx .fx-seal b { font-size: 19px; }

/* marchi assistenza */
.fx .fx-brands { position: absolute; z-index: 2; right: 40px; bottom: 104px; display: grid; gap: 10px; width: 300px; }
.fx a.fx-brand { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; text-decoration: none;
	background: rgba(255, 255, 255, .95); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6); transition: transform .2s; }
.fx a.fx-brand:hover { transform: translateX(-4px); }
.fx .fx-brand b { font-size: 22px; font-weight: 800; line-height: 1.1; }
.fx .fx-brand span { font-size: 12px; color: var(--fx-muted); text-align: right; }
.fx .fx-brand--sime b { color: #005eaa; text-transform: lowercase; }
.fx .fx-brand--chigo b { color: #e30613; text-transform: uppercase; font-style: italic; }
.fx .fx-brand--termotek b { color: #16965a; text-transform: uppercase; font-size: 18px; }

/* servizi del team */
.fx .fx-services { position: absolute; z-index: 2; right: 40px; top: 50%; transform: translateY(-50%); width: 470px;
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: -24px; }
.fx .fx-service { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .95); color: var(--fx-ink);
	box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6); }
.fx .fx-service:last-child { grid-column: 1 / -1; }
.fx .fx-service i { font-size: 20px; color: var(--fx-orange); }
.fx .fx-service strong { font-size: 14px; color: var(--fx-blue-dark); text-transform: uppercase; letter-spacing: .03em; }
.fx .fx-service span { font-size: 12.5px; line-height: 1.4; color: var(--fx-muted); }

/* navigazione a schede con barra di avanzamento */
.fx .fx-nav { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(var(--fx-count), minmax(0, 1fr));
	background: rgba(4, 43, 69, .72); backdrop-filter: blur(10px); border-top: 1px solid rgba(255, 255, 255, .12); }
.fx button.fx-tab { position: relative; margin: 0; padding: 16px 14px 18px; border: 0; border-radius: 0; background: none; box-shadow: none;
	color: rgba(255, 255, 255, .62); text-align: left; text-transform: none; letter-spacing: 0;
	font: 600 13px/1.25 Poppins, system-ui, sans-serif; cursor: pointer; transition: color .3s, background .3s; }
.fx button.fx-tab + .fx-tab { border-left: 1px solid rgba(255, 255, 255, .08); }
.fx .fx-tab small { display: block; font-size: 11px; font-weight: 700; color: var(--fx-orange); letter-spacing: .1em; margin-bottom: 2px; }
.fx button.fx-tab:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.fx button.fx-tab.is-active { color: #fff; }
.fx .fx-tab::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--fx-blue), var(--fx-orange), var(--fx-yellow)); }
.fx .fx-tab.is-active::after { animation: fx-progress var(--fx-dur) linear forwards; }
.fx.is-paused .fx-tab.is-active::after { animation-play-state: paused; }
@keyframes fx-progress { to { width: 100%; } }

/* entrata del testo */
.fx-slide .fx-content > *, .fx-slide .fx-card, .fx-slide .fx-brands, .fx-slide .fx-services, .fx-slide .fx-seal { opacity: 0; }
.fx-slide.is-active .fx-content > * { animation: fx-rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.fx-slide.is-active .fx-card, .fx-slide.is-active .fx-brands, .fx-slide.is-active .fx-services { animation: fx-fade .7s .4s ease forwards; }
.fx-slide.is-active .fx-seal { animation: fx-pop .7s .5s cubic-bezier(.2, .9, .3, 1.3) forwards; }
.fx-slide.is-active .fx-content > :nth-child(2) { animation-delay: .08s; }
.fx-slide.is-active .fx-content > :nth-child(3) { animation-delay: .16s; }
.fx-slide.is-active .fx-content > :nth-child(4) { animation-delay: .24s; }
.fx-slide.is-active .fx-content > :nth-child(5) { animation-delay: .32s; }
@keyframes fx-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fx-fade { to { opacity: 1; } }
@keyframes fx-pop { from { opacity: 0; transform: scale(.6) rotate(-20deg); } to { opacity: 1; transform: rotate(-8deg); } }

@media (prefers-reduced-motion: reduce) {
	.fx-slide.is-active .fx-bg, .fx .fx-tab.is-active::after { animation: none; }
	.fx-slide .fx-content > *, .fx-slide .fx-card, .fx-slide .fx-brands, .fx-slide .fx-services, .fx-slide .fx-seal { opacity: 1; animation: none !important; }
}

/* schermi medi: le schede mostrano solo il numero */
@media (max-width: 1199px) {
	.fx button.fx-tab { padding: 14px 4px; text-align: center; font-size: 0; }
	.fx .fx-tab small { font-size: 12px; margin: 0; }
	.fx .fx-services { width: 400px; }
	.fx .fx-card--image { width: 400px; }
	.fx .fx-card__img { width: 110px; }
}

/* tablet / mobile: testo in basso, niente riquadri laterali */
@media (max-width: 991px) {
	.fx-track { height: 600px; }
	.fx-content { padding: 40px 32px 90px; max-width: 100%; }
	.fx .fx-title { font-size: 40px; }
	.fx .fx-card, .fx .fx-brands, .fx .fx-services { display: none; }
	.fx .fx-seal { width: 104px; height: 104px; right: 24px; top: 24px; }
}
@media (max-width: 600px) {
	.fx { border-radius: 14px; }
	.fx-track { height: 640px; }
	.fx-slide::before { background: linear-gradient(0deg, rgba(4, 43, 69, .97) 0%, rgba(4, 43, 69, .9) 48%, rgba(4, 43, 69, .2) 78%, rgba(4, 43, 69, .05) 100%); }
	.fx-slide.is-light::before { background: linear-gradient(0deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .92) 50%, rgba(255, 255, 255, .15) 80%, rgba(255, 255, 255, 0) 100%); }
	.fx-content { justify-content: flex-end; padding: 24px 16px 84px; }
	.fx .fx-title { font-size: 31px; }
	.fx .fx-sub { font-size: 14.5px; margin-bottom: 16px; }
	.fx .fx-chips { margin-bottom: 18px; }
	.fx .fx-chips li { font-size: 12px; padding: 6px 10px; }
	.fx a.fx-btn { padding: 13px 18px; font-size: 12.5px; }
	.fx .fx-seal { width: 88px; height: 88px; right: 14px; top: 14px; }
	.fx .fx-seal b { font-size: 15px; }
	.fx .fx-tab small { font-size: 11px; }
}
