/* =========================================================================
   Home — allineata alla tipografia delle pagine interne.
   Barlow Light per i titoli, etichette arancioni in maiuscoletto,
   testi nella colonna destra, lontani dal box logo/menu.
   ========================================================================= */
.home .elementor-widget-heading .elementor-heading-title { font-family: Barlow, sans-serif; text-transform: none; }
.home .elementor-heading-title em { font-style: normal; color: var(--tt-accent); }

/* Etichetta e link riutilizzabili come widget Elementor */
.home .tt-eyebrow-w .elementor-heading-title {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin: 0 0 22px;
    font: 600 12.5px/1.2 Barlow, sans-serif;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--tt-accent);
}
.home .tt-eyebrow-w .elementor-heading-title::after { content: ""; width: 32px; height: 1px; background: currentColor; }
.home .tt-link-w .elementor-button {
    padding: 0 0 6px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border-bottom: 1px solid currentColor;
    font: 600 13px/1.2 Barlow, sans-serif !important;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff !important;
    transition: color .3s, letter-spacing .5s var(--tt-ease);
}
.home .tt-link-w .elementor-button:hover { color: #ff6546 !important; letter-spacing: .2em; }

/* ---------- Hero ---------- */
.home .elementor .elementor-element.tt-slide-title { left: auto !important; right: 8vw; bottom: 15%; width: min(64%, 920px) !important; text-align: right; }
.home .tt-slide-title .elementor-heading-title {
    font-weight: 300;
    font-size: clamp(44px, 6vw, 92px);
    line-height: .98;
    letter-spacing: -.02em;
    color: #fff;
    text-wrap: balance;
}
.home .tt-slide-title a { color: inherit; text-decoration: none; }
.home .tt-slide::after { background: linear-gradient(to top left, #000000b0 0, #00000033 55%, #00000014 100%); }
.home .tt-hero::before { background: transparent !important; }
.tt-slide-index {
    position: absolute;
    z-index: 4;
    right: 8vw;
    top: calc(var(--tt-admin) + 44px);
    display: flex;
    align-items: center;
    gap: 14px;
    font: 600 12.5px/1 Barlow, sans-serif;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.tt-slide-index b { color: var(--tt-accent); font-weight: 600; }
.tt-slide-index i { display: block; width: 64px; height: 1px; background: #ffffff55; position: relative; overflow: hidden; }
.tt-slide-index i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(var(--tt-slide-p, 0)); transform-origin: left; transition: transform .6s var(--tt-ease); }
.home .tt-slide-controls { inset: auto auto 15% 8vw !important; justify-content: flex-start; gap: 10px; }
.home .tt-slide-controls button {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    padding: 0 0 4px;
    background: transparent;
    border: 1px solid #ffffff73;
    font: 300 34px/1 Barlow, sans-serif;
    color: #fff;
    transition: background .3s, border-color .3s;
}
.home .tt-slide-controls button:hover { background: var(--tt-accent); border-color: var(--tt-accent); }

/* ---------- Numeri ---------- */
.home .elementor .elementor-element.tt-facts { grid-template-columns: 54% 46% !important; }
.home .tt-facts .tt-facts-gallery { order: 1; margin-left: 0 !important; }
.home .tt-facts .tt-facts-copy { order: 2; text-align: right; align-items: flex-end; }
.home .tt-facts-copy .elementor-widget-heading { width: 100%; }
.home .tt-facts-copy > .elementor-widget-heading:first-child .elementor-heading-title {
    font-weight: 300;
    font-size: clamp(100px, 11vw, 168px);
    line-height: .9;
    letter-spacing: -.045em;
    color: #fff;
}
.home .tt-facts-copy > .elementor-widget-heading:nth-child(2) .elementor-heading-title,
.home .tt-facts-copy .tt-unit {
    display: block;
    margin-top: 14px;
    font: 600 13px/1.4 Barlow, sans-serif;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #fff;
}
.home .tt-facts .tt-stat-rule { max-width: 360px; margin: 34px 0 0 auto; padding-top: 28px; border-top: 1px solid #ffffff8c; }
.home .tt-facts .tt-stat-rule .elementor-heading-title { font-weight: 300; font-size: clamp(52px, 5vw, 76px); line-height: .95; letter-spacing: -.03em; color: #fff; }
.home .tt-facts .tt-stat-rule .tt-unit { letter-spacing: .18em; }

/* ---------- Competenze ---------- */
.home .elementor .elementor-element.tt-home-head {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    padding: clamp(90px, 10vw, 140px) 8vw 0 !important;
    background: var(--tt-ink);
    text-align: right;
}
.home .tt-home-head h2.elementor-heading-title { max-width: 16ch; margin-left: auto; font-weight: 300; font-size: clamp(34px, 3.6vw, 56px); line-height: 1.04; letter-spacing: -.015em; color: #fff; }
.home .tt-home-head .tt-link-w { margin-top: 34px; }
.home .elementor .elementor-element.tt-sectors { padding-top: 64px !important; counter-reset: tt-sector; }
.home .tt-sector { counter-increment: tt-sector; }
.home .tt-sector .tt-sector-title { bottom: 0 !important; left: 0 !important; width: 100% !important; min-height: 0 !important; padding: 20px 18px 22px !important; background: linear-gradient(0deg, #000000c0, #00000000); }
.home .tt-sector-title .elementor-heading-title { font-weight: 400; font-size: clamp(15px, 1.45vw, 19px); line-height: 1.15; color: #fff; overflow-wrap: normal !important; hyphens: auto; }
.home .tt-sector-title .elementor-heading-title::before {
    content: counter(tt-sector, decimal-leading-zero);
    display: block;
    margin-bottom: 12px;
    font: 600 12px/1 Barlow, sans-serif;
    letter-spacing: .18em;
    color: var(--tt-accent);
}
.home .tt-sector-title .elementor-heading-title::after { content: ""; display: block; width: 32px; height: 2px; margin-top: 16px; background: var(--tt-accent); transition: width .85s var(--tt-ease); }
@media (hover: hover) and (min-width: 1025px) {
    .home .tt-sector:hover .tt-sector-title .elementor-heading-title,
    .home .tt-sector:focus-within .tt-sector-title .elementor-heading-title { font-size: 34px; }
    .home .tt-sector:hover .tt-sector-title .elementor-heading-title::after,
    .home .tt-sector:focus-within .tt-sector-title .elementor-heading-title::after { width: 96px; }
}

/* ---------- Presentazione ---------- */
.home .tt-company .tt-company-copy { order: 2; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.home .tt-company .tt-office { order: 1; }
.home .tt-company h2.elementor-heading-title { font-weight: 300; font-size: clamp(30px, 3vw, 46px); line-height: 1.16; letter-spacing: -.01em; color: var(--tt-ink); text-transform: none; }
.home .tt-company .elementor-widget-button { margin-top: 36px; }
.home .tt-company-copy .elementor-widget-button .elementor-button,
.home #clienti .elementor-widget-button .elementor-button {
    border-radius: 0 !important;
    padding: 19px 28px !important;
    background: transparent !important;
    color: var(--tt-ink) !important;
    box-shadow: inset 0 0 0 1px var(--tt-ink);
    font: 600 13px/1 Barlow, sans-serif !important;
    letter-spacing: .16em;
    text-transform: uppercase;
    transition: background .3s, color .3s;
}
.home .tt-company-copy .elementor-widget-button .elementor-button:hover { background: var(--tt-ink) !important; color: #fff !important; }

/* ---------- Clienti ---------- */
.home #clienti { --padding-top: clamp(90px, 9vw, 140px) !important; --padding-bottom: clamp(90px, 9vw, 140px) !important; }
.home #clienti .tt-wrap > .elementor-widget-heading { align-self: flex-end; text-align: right; }
.home #clienti h2.elementor-heading-title { max-width: 20ch; margin: 0 0 48px auto; font-weight: 300; font-size: clamp(30px, 2.8vw, 44px); line-height: 1.08; letter-spacing: -.01em; color: var(--tt-ink); }
.home .tt-logo-carousel .swiper-slide figure { border-color: #e6e2df; }

@media (max-width: 1024px) {
    .home .elementor .elementor-element.tt-slide-title { width: 84% !important; bottom: 20%; }
    .home .tt-slide-controls { bottom: 6% !important; }
}
@media (max-width: 767px) {
    .home .elementor .elementor-element.tt-facts { grid-template-columns: 1fr !important; }
    .home .tt-facts .tt-facts-copy { order: 1; }
    .home .tt-facts .tt-facts-gallery { order: 2; }
    .home .tt-slide-controls button { width: 46px; height: 46px; font-size: 28px; }
    .tt-slide-index { top: calc(var(--tt-admin) + 28px); right: 6vw; }
    .tt-slide-index i { width: 36px; }
    .home .tt-sector-title .elementor-heading-title { font-size: 16px; }
    .home .tt-company .tt-company-copy { order: 1; }
    .home .tt-company .tt-office { order: 2; }
}
