/* ==========================================================================
   TOF – Sito · Engineering Hub
   ========================================================================== */

.te { --te-pad: var(--tof-margine); }
.te-titolo-grande { font-size: 79px; line-height: 1.05; font-weight: 500; letter-spacing: -.02em; color: var(--tof-arancio); }

/* ---------- Hero ---------- */
.te-hero {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; align-items: flex-end;
	height: 765px; max-height: 100svh; min-height: 560px;
	padding: 200px var(--te-pad) 50px; color: var(--tof-bianco); background: #14102a;
}
.te-hero__media { position: absolute; inset: 0; z-index: -2; }
.te-hero__media img, .te-hero__media video { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.te-hero__media video { opacity: 0; transition: opacity 1.2s ease; }
.te-hero__media.is-pronto video { opacity: 1; }
.te-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 6, 25, .5) 0%, rgba(10, 6, 25, .1) 45%, rgba(10, 6, 25, .55) 100%); }
.te-hero__testo { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.te-hero__titolo { font-size: 104px; line-height: 1; font-weight: 500; letter-spacing: -.02em; }

/* ---------- Intro ---------- */
.te-intro { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 120px var(--te-pad); background: var(--tof-bianco); color: var(--tof-notte); text-align: center; }
.te-intro__slash { width: 60px; height: auto; }
.te-intro__titolo { max-width: 900px; font-size: 59px; line-height: 1.1; font-weight: 400; letter-spacing: -.01em; }
.te-intro__testo { max-width: 560px; font-size: 16px; line-height: 1.6; }

/* ---------- Blocchi foto + testo ---------- */
.te-blocco { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 700px; }
.te-blocco__foto { position: relative; overflow: hidden; }
.te-blocco__foto img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.te-blocco__testo { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 26px; padding: 100px 60px 100px var(--te-pad); }
.te-lead { max-width: 620px; font-size: 25px; line-height: 1.4; font-weight: 500; }
.te-lead--grande { font-size: 28px; }

.te-blocco--processo { background: var(--tof-viola); color: var(--tof-bianco); }
.te-fasi { display: flex; flex-direction: column; gap: 14px; margin-top: 10px !important; }
.te-fasi li { display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 500; color: var(--tof-arancio); }
.te-fasi__n { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 50%; font: 400 13px/1 var(--tof-mono); }

.te-blocco--metodo { background: var(--tof-bianco); color: var(--tof-viola); }
.te-blocco--metodo .te-blocco__testo { padding: 100px var(--te-pad) 100px 60px; }

/* ---------- Affidabilità & Qualità ---------- */
.te-qualita { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 20px; padding: 20px; background: var(--tof-viola); color: #F1F1F1; min-height: 900px; }
.te-qualita__testo { display: flex; flex-direction: column; justify-content: space-between; padding: 10px; }
.te-qualita__titolo, .te-qualita .te-titolo-grande { font-size: 104px; }
.te-qualita__piede { max-width: 450px; padding-bottom: 50px; }
.te-qualita__piede p { font-size: 19px; line-height: 1.5; }
.te-qualita__sotto { color: var(--tof-arancio); font-size: 16px !important; margin-bottom: 14px !important; }
.te-qualita__foto { position: relative; overflow: hidden; min-height: 420px; align-self: start; aspect-ratio: 3 / 2; }
.te-qualita__foto img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }

/* ======================= TABLET ======================= */
@media (max-width: 1024px) {
	.te-hero__titolo, .te-qualita .te-titolo-grande { font-size: 72px; }
	.te-titolo-grande { font-size: 56px; }
	.te-intro__titolo { font-size: 42px; }
	.te-blocco__testo, .te-blocco--metodo .te-blocco__testo { padding: 60px 30px; }
	.te-lead, .te-lead--grande { font-size: 21px; }
	.te-qualita { min-height: 0; }
}

/* ======================= MOBILE (≤ 767 px) ======================= */
@media (max-width: 767px) {
	.te { --te-pad: var(--tof-margine-m); }
	.te-hero { height: 560px; padding: 0 var(--te-pad) 32px; }
	.te-hero__titolo { font-size: 46px; line-height: 1.02; }
	.te-titolo-grande, .te-qualita .te-titolo-grande { font-size: 32px; }

	.te-intro { padding: 88px var(--te-pad); gap: 16px; text-align: left; align-items: flex-start; }
	.te-intro__slash { width: 40px; }
	.te-intro__titolo { font-size: 27px; line-height: 1.2; }
	.te-intro .tof-btn { margin-top: 12px; }

	.te-blocco { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.te-blocco__foto { order: -1; aspect-ratio: 4 / 3; }
	.te-blocco__testo, .te-blocco--metodo .te-blocco__testo { padding: 56px var(--te-pad) 88px; gap: 16px; }
	.te-lead, .te-lead--grande { font-size: 17px; line-height: 1.45; }

	.te-qualita { grid-template-columns: minmax(0, 1fr); padding: 88px var(--te-pad); gap: 36px; }
	.te-qualita__testo { padding: 0; gap: 16px; }
	.te-qualita__piede { padding-bottom: 0; }
	.te-qualita__piede p { font-size: 16px; }
	.te-qualita__foto { min-height: 0; }
}
