/* =========================================================================
   Pagine interne — tipografia, intestazione, composizione con lo scroll.
   Caricato solo fuori dalla Home (functions.php).
   ========================================================================= */
:root {
    --tt-ink: #1F1F1F;
    --tt-accent: #E8300A;
    --tt-text: #3b3b3b;
    --tt-muted: #6d6d6d;
    --tt-rule: #e2dfdc;
    --tt-warm: #f4f2f0;
    --tt-ease: cubic-bezier(.22, 1, .36, 1);
    --tt-max: 1320px;
}

body:not(.home) main.tt-inner { padding-top: 0; }
.tt-inner { font-family: Barlow, sans-serif; color: var(--tt-text); font-size: 17px; line-height: 1.7; }
.tt-inner :is(h1, h2, h3, h4) { font-family: Barlow, sans-serif; color: var(--tt-ink); }
.tt-inner a { text-underline-offset: .22em; text-decoration-thickness: 1px; }

/* ---------- Etichette ---------- */
.tt-eyebrow {
    display: flex;
    align-items: center;
    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);
}
.tt-eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; flex: none; }
.tt-arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 48px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--tt-ink);
    color: var(--tt-ink);
    font: 600 13px/1.2 Barlow, sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    transition: gap .5s var(--tt-ease), color .3s, border-color .3s;
}
.tt-arrow-link:hover { gap: 24px; color: var(--tt-accent); border-color: var(--tt-accent); }

/* ---------- Intestazione ---------- */
.tt-ihero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: min(78svh, 760px);
    padding: clamp(200px, 25vh, 250px) 8vw clamp(56px, 7vw, 96px);
    display: flex;
    align-items: flex-end;
    background: var(--tt-ink);
    color: #fff;
}
.tt-ihero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: linear-gradient(#ffffff0a 1px, transparent 1px), linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
    background-size: 64px 64px;
    background-position: -1px -1px;
}
.tt-ihero::after {
    content: "";
    position: absolute;
    left: 8vw;
    bottom: 0;
    width: 120px;
    height: 4px;
    background: var(--tt-accent);
    transform-origin: left;
    animation: tt-grow 1.4s .3s var(--tt-ease) both;
}
.tt-ihero:not(.has-photo) { min-height: min(68svh, 620px); padding-top: clamp(250px, 32vh, 290px); }
.tt-ihero-copy { position: relative; z-index: 2; max-width: 760px; }
.tt-ihero.has-photo .tt-ihero-copy { max-width: min(760px, 52%); }
.tt-crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; font: 500 12px/1.2 Barlow, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #8d8d8d; }
.tt-crumbs a { color: #bdbdbd; text-decoration: none; transition: color .3s; }
.tt-crumbs a:hover { color: #fff; }
.tt-crumbs span:last-child { display: none; }
.tt-ihero .tt-eyebrow { color: #ff6a4a; }
.tt-ihero-index { color: #fff; margin-right: 18px; font-variant-numeric: tabular-nums; }
.tt-inner .tt-ihero-title {
    margin: 0;
    max-width: 17ch;
    font-weight: 300;
    font-size: clamp(40px, 4.6vw, 70px);
    line-height: 1.03;
    letter-spacing: -.015em;
    color: #fff;
    text-wrap: balance;
}
.tt-ihero-lead { margin: 30px 0 0; max-width: 46ch; font-weight: 300; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.55; color: #cfcfcf; text-wrap: pretty; }
.tt-ihero-photo { position: absolute; z-index: 0; inset: 0 0 0 auto; width: 46%; margin: 0; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.tt-ihero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--tt-ink) 0, #1f1f1f55 30%, #1f1f1f10 70%); }
.tt-ihero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: tt-settle 2.2s var(--tt-ease) both; }
.tt-ihero-copy > * { animation: tt-rise 1.1s var(--tt-ease) both; }
.tt-ihero-copy > :nth-child(2) { animation-delay: .08s; }
.tt-ihero-copy > :nth-child(3) { animation-delay: .16s; }
.tt-ihero-copy > :nth-child(4) { animation-delay: .26s; }
@keyframes tt-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes tt-settle { from { transform: scale(1.14); } to { transform: scale(1.02); } }
@keyframes tt-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Titoli a destra: lontani dal box logo/menu in alto a sinistra */
.tt-ihero { justify-content: flex-end; text-align: right; }
.tt-ihero-copy { margin-left: auto; }
.tt-ihero .tt-crumbs, .tt-ihero .tt-eyebrow { justify-content: flex-end; }
.tt-ihero .tt-eyebrow::before { order: 2; }
.tt-ihero .tt-ihero-index { order: 0; }
.tt-inner .tt-ihero-title, .tt-ihero-lead { margin-left: auto; }
.tt-ihero::after { left: auto; right: 8vw; transform-origin: right; }
.tt-ihero-photo { inset: 0 auto 0 0; clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
.tt-ihero-photo::after { background: linear-gradient(270deg, var(--tt-ink) 0, #1f1f1f55 30%, #1f1f1f10 70%); }

/* Sfondo fotografico sfumato dietro il titolo (pagine senza foto laterale) */
.tt-ihero-bg { position: absolute; inset: 0; z-index: -3; margin: 0; overflow: hidden; }
.tt-ihero-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% 50%;
    filter: saturate(.55) contrast(1.05) brightness(.78);
    opacity: .9;
    transform-origin: 30% 50%;
    /* Entrata: la foto si scopre da sinistra e si assesta; solo transform/opacity/clip, niente lavoro durante lo scroll. */
    animation: tt-bg-in 2.4s var(--tt-ease) both;
}
.tt-ihero-bg { animation: tt-bg-wipe 1.5s .1s var(--tt-ease) both; }
.tt-ihero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(270deg, var(--tt-ink) 0, #1f1f1fd9 26%, #1f1f1f66 52%, #1f1f1f1a 78%),
        linear-gradient(0deg, var(--tt-ink) 0, #1f1f1f00 38%),
        linear-gradient(180deg, #1f1f1fb3 0, #1f1f1f00 30%);
}
.tt-ihero.has-backdrop::before { z-index: -2; opacity: .7; }
@keyframes tt-bg-in { from { opacity: 0; transform: scale(1.12) translateX(-2%); } to { opacity: .9; transform: none; } }
@keyframes tt-bg-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Menu: sottovoci (competenze) ---------- */
.tt-menu nav .sub-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 2px 0 14px; padding: 0 0 16px; border-bottom: 1px solid #ffffff1f; }
.tt-menu nav .sub-menu a { padding: 7px 0; font-size: 15px; line-height: 1.3; letter-spacing: .06em; color: #bdbdbd; }
.tt-menu nav .sub-menu a::before { content: "— "; color: var(--tt-accent); }
.tt-menu nav .sub-menu a:hover, .tt-menu nav .sub-menu .current-menu-item > a { color: #ff6546; }
@media (max-width: 520px) { .tt-menu nav .sub-menu { grid-template-columns: 1fr; } }

/* ---------- Testo corrente (pagine non Elementor) ---------- */
.tt-prose > * { max-width: 62ch; }
.tt-prose p { margin: 0 0 1.2em; }
.tt-prose .tt-lead, .tt-prose > p:first-child { font-weight: 300; font-size: clamp(21px, 1.75vw, 27px); line-height: 1.45; color: var(--tt-ink); max-width: 34ch; margin-bottom: 1.6em; text-wrap: pretty; }
.tt-prose h2 { margin: 2.6em 0 1em; font-weight: 300; font-size: clamp(28px, 2.4vw, 38px); line-height: 1.1; letter-spacing: -.01em; }
.tt-prose h2::before { content: ""; display: block; width: 40px; height: 2px; margin-bottom: 22px; background: var(--tt-accent); }
.tt-prose h3 { margin: 2em 0 .6em; font-weight: 600; font-size: 19px; line-height: 1.3; }
.tt-prose ul { counter-reset: tt-item; list-style: none; margin: 0 0 1em; padding: 0; max-width: 640px; }
.tt-prose ul li {
    counter-increment: tt-item;
    position: relative;
    padding: 19px 0 19px 64px;
    border-top: 1px solid var(--tt-rule);
    font-size: 18px;
    line-height: 1.4;
    color: var(--tt-ink);
}
.tt-prose ul li:last-child { border-bottom: 1px solid var(--tt-rule); }
.tt-prose ul li::before {
    content: counter(tt-item, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 22px;
    font: 600 12px/1 Barlow, sans-serif;
    letter-spacing: .14em;
    color: var(--tt-accent);
}
.tt-prose ul li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: var(--tt-ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .9s var(--tt-ease);
}
.tt-prose ul li.is-in::after { transform: scaleX(1); }
.tt-prose ul li:last-child::after { bottom: -1px; }

/* ---------- Composizione: testo + disegno ---------- */
.tt-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .78fr);
    gap: 7vw;
    width: min(100% - 16vw, var(--tt-max));
    margin-inline: auto;
    padding-block: clamp(80px, 9vw, 150px);
}
.tt-compose-text { padding-bottom: 14vh; }
@media (min-width: 1025px) { .tt-compose { min-height: 175vh; } }
.tt-compose-stage { position: relative; }
.tt-compose-frame {
    position: sticky;
    top: calc(var(--tt-admin) + 6vh);
    display: flex;
    flex-direction: column;
    height: 88vh;
    max-height: 840px;
    padding: 34px 30px 22px;
    background-color: var(--tt-ink);
    background-image: radial-gradient(#ffffff24 1px, transparent 1.2px);
    background-size: 22px 22px;
    color: #fff;
}
.tt-drawing { display: block; width: 100%; height: 100%; min-height: 0; flex: 1; overflow: visible; }
.tt-drawing g { stroke: #fff; stroke-width: 1.6; }
.tt-drawing .t { stroke-width: 1; stroke-opacity: .55; }
.tt-drawing .a { stroke: var(--tt-accent); stroke-opacity: 1; }
.tt-drawing .f { fill: var(--tt-accent); stroke: none; }
.tt-compose-caption {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid #ffffff2e;
    font: 600 11.5px/1 Barlow, sans-serif;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.tt-compose-caption span:first-child { color: var(--tt-accent); }
.tt-compose-meter { flex: 1; height: 1px; background: #ffffff2e; position: relative; }
.tt-compose-meter i { position: absolute; inset: 0; background: var(--tt-accent); transform: scaleX(var(--tt-p, 0)); transform-origin: left; }

/* ---------- Lavori del settore ---------- */
.tt-sector-works {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 2fr);
    gap: 32px 6vw;
    padding: clamp(80px, 9vw, 140px) 8vw;
    background: var(--tt-warm);
}
.tt-sector-works-head h2 { margin: 0; font-weight: 300; font-size: clamp(30px, 2.8vw, 44px); line-height: 1.06; letter-spacing: -.01em; }
.tt-sector-works-count { margin: 26px 0 0; color: var(--tt-muted); font-size: 15px; }
.tt-sector-works-count strong { display: block; font-weight: 300; font-size: 64px; line-height: 1; color: var(--tt-accent); font-variant-numeric: tabular-nums; }
.tt-sector-works-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tt-ink); }
.tt-sector-works-list li { display: grid; grid-template-columns: 64px minmax(0, .9fr) minmax(0, 1.6fr); gap: 8px 28px; padding: 22px 0; border-bottom: 1px solid #d8d4d0; }
.tt-sw-year { font-weight: 600; color: var(--tt-accent); font-variant-numeric: tabular-nums; }
.tt-sw-client { font: 600 13.5px/1.45 Barlow, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--tt-ink); padding-top: 3px; }
.tt-sw-desc { font-size: 16px; line-height: 1.55; }
.tt-sw-desc a { color: var(--tt-ink); font-weight: 600; white-space: nowrap; }
.tt-sector-works > .tt-arrow-link { grid-column: 2; justify-self: start; margin-top: 8px; }

/* ---------- Navigazione fra le competenze ---------- */
.tt-sector-nav { padding: clamp(70px, 8vw, 120px) 8vw; background: var(--tt-ink); color: #fff; }
.tt-sector-nav .tt-eyebrow { color: #ff6a4a; }
.tt-sector-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid #ffffff26; }
.tt-sector-nav li + li { border-left: 1px solid #ffffff26; }
.tt-sector-nav a { position: relative; display: flex; flex-direction: column; gap: 18px; height: 100%; padding: 26px 20px 30px; color: #fff; text-decoration: none; transition: background .5s var(--tt-ease); }
.tt-sector-nav a::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--tt-accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--tt-ease); }
.tt-sector-nav a:hover::before, .tt-sector-nav .is-current a::before { transform: scaleX(1); }
.tt-sector-nav a:hover { background: #ffffff08; }
.tt-sn-num { font: 600 12px/1 Barlow, sans-serif; letter-spacing: .16em; color: var(--tt-accent); }
.tt-sn-icon { display: block; height: 128px; }
.tt-sn-icon .tt-drawing g { stroke-width: 3.2; stroke-opacity: .5; transition: stroke-opacity .5s; }
.tt-sector-nav a:hover .tt-drawing g, .tt-sector-nav .is-current .tt-drawing g { stroke-opacity: 1; }
.tt-sn-label { font-size: 17px; line-height: 1.3; font-weight: 400; }
.tt-sector-nav .is-current .tt-sn-label { font-weight: 600; }

/* ---------- Invito al contatto ---------- */
.tt-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 6vw; padding: clamp(64px, 7vw, 110px) 8vw; background: var(--tt-accent); color: #fff; }
.tt-inner .tt-cta h2 { margin: 0; max-width: 24ch; font-weight: 300; font-size: clamp(28px, 2.8vw, 44px); line-height: 1.1; color: #fff; letter-spacing: -.01em; }
.tt-cta-button { display: inline-flex; gap: 14px; align-items: center; padding: 20px 30px; background: #fff; color: var(--tt-ink); font: 600 13px/1 Barlow, sans-serif; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; transition: gap .5s var(--tt-ease), background .3s, color .3s; }
.tt-cta-button:hover { gap: 24px; background: var(--tt-ink); color: #fff; }

/* ---------- Pagine Elementor: tipografia del tema ---------- */
.tt-inner .elementor .e-con.tt-section { --padding-top: clamp(72px, 8vw, 128px); --padding-bottom: clamp(72px, 8vw, 128px); }
.tt-inner .elementor-widget-heading .elementor-heading-title { font-family: Barlow, sans-serif; color: var(--tt-ink); }
.tt-inner .elementor-widget-heading h1.elementor-heading-title { font-weight: 300; font-size: clamp(40px, 4.6vw, 70px); line-height: 1.03; letter-spacing: -.015em; }
.tt-inner .elementor-widget-heading h2.elementor-heading-title { font-weight: 300; font-size: clamp(30px, 2.8vw, 44px); line-height: 1.08; letter-spacing: -.01em; }
.tt-inner .elementor-widget-heading h2.elementor-heading-title::before { content: ""; display: block; width: 40px; height: 2px; margin-bottom: 24px; background: var(--tt-accent); }
.tt-inner .elementor-widget-heading h3.elementor-heading-title { font-weight: 600; font-size: 19px; line-height: 1.3; letter-spacing: .005em; }
.tt-inner .elementor-widget-text-editor { font-family: Barlow, sans-serif; font-size: 17px; line-height: 1.7; color: var(--tt-text); }
.tt-inner .elementor-widget-text-editor p { margin: 0 0 1.1em; }
.tt-inner .tt-measure p, .tt-inner .tt-measure { max-width: 64ch; }
/* Primo testo della pagina = attacco */
.tt-inner .elementor > .e-con:first-child .tt-wrap > .elementor-widget-text-editor:first-child { font-weight: 300; font-size: clamp(21px, 1.75vw, 27px); line-height: 1.45; color: var(--tt-ink); }
.tt-inner .elementor > .e-con:first-child .tt-wrap > .elementor-widget-text-editor:first-child p { max-width: 34ch; }
.tt-inner .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) !important;
    font: 600 13px/1 Barlow, sans-serif !important;
    letter-spacing: .16em !important;
    text-transform: uppercase;
    transition: background .3s, color .3s;
}
.tt-inner .elementor-widget-button .elementor-button:hover { background: var(--tt-ink) !important; color: #fff !important; }
.tt-inner .elementor-widget-image img { filter: saturate(.9); }
.tt-inner .tt-placeholder .elementor-widget-text-editor { color: var(--tt-muted); font-style: italic; }

/* Apertura di Chi siamo: testo a sinistra, foto che accompagna lo scroll a destra */
.tt-inner .elementor .tt-inner-intro > .tt-wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 28px 7vw; }
.tt-inner .tt-inner-intro .tt-wrap > .elementor-widget-text-editor { grid-column: 1; }
.tt-inner .tt-inner-intro .tt-wrap > .tt-inner-photo { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: calc(var(--tt-admin) + 8vh); align-self: start; }
.tt-inner .tt-inner-photo img { height: auto !important; aspect-ratio: 4 / 5; }

/* Cronologia */
.tt-inner .elementor .e-con.tt-milestone { padding: 6px 0 36px 32px; }
.tt-inner .tt-milestone h3.elementor-heading-title { font-weight: 400; font-size: 21px; }
.tt-inner .tt-milestone .elementor-widget-text-editor { font-size: 16px; }

/* Indice delle competenze (Cosa facciamo) */
.tt-inner .elementor .e-con.tt-areas { counter-reset: tt-area; gap: 0; border-top: 1px solid var(--tt-ink); }
.tt-inner .elementor .tt-areas .tt-area {
    counter-increment: tt-area;
    position: relative;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--tt-rule);
    background: transparent;
}
.tt-inner .tt-areas .tt-area:not(:nth-child(3n + 1)) { border-left: 1px solid var(--tt-rule); }
.tt-inner .tt-area .elementor-heading-title a {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 46px;
    min-height: 220px;
    padding: 30px 28px 28px;
    font-weight: 400;
    font-size: 22px;
    line-height: 1.2;
    color: var(--tt-ink);
    text-decoration: none;
    transition: background .5s var(--tt-ease), color .3s;
}
.tt-inner .tt-area .elementor-heading-title a::before { content: counter(tt-area, decimal-leading-zero); font: 600 12px/1 Barlow, sans-serif; letter-spacing: .16em; color: var(--tt-accent); }
.tt-inner .tt-area .elementor-heading-title a::after { content: "→"; align-self: flex-end; font-size: 24px; transition: transform .5s var(--tt-ease); }
.tt-inner .tt-area .elementor-heading-title a:hover { background: var(--tt-ink); color: #fff; }
.tt-inner .tt-area .elementor-heading-title a:hover::after { transform: translateX(8px); color: var(--tt-accent); }

/* ---------- Testi provvisori: etichetta discreta, si spegne togliendo la classe tt-draft ---------- */
.tt-draft { position: relative; }
.tt-draft::before {
    content: "Testo provvisorio";
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 9px 4px;
    border: 1px dashed #e8300a99;
    font: 600 10.5px/1 Barlow, sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--tt-accent);
}

/* ---------- Mission e valori ---------- */
.tt-inner .tt-mission { font-weight: 300; font-size: clamp(21px, 1.75vw, 27px); line-height: 1.45; color: var(--tt-ink); max-width: 36ch; }
.tt-values { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--tt-ink); }
.tt-values li { padding: 26px 26px 30px 0; border-bottom: 1px solid var(--tt-rule); font-size: 16px; line-height: 1.6; }
.tt-values strong { display: block; margin-bottom: 10px; font-weight: 600; font-size: 18px; color: var(--tt-ink); }

/* ---------- Perché sceglierci ---------- */
.tt-reasons { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--tt-ink); }
.tt-reasons li { padding: 30px 30px 36px 0; border-bottom: 1px solid var(--tt-rule); font-size: 16px; line-height: 1.6; }
.tt-reasons li:not(:nth-child(3n + 1)) { padding-left: 30px; border-left: 1px solid var(--tt-rule); }
.tt-reasons b { display: block; margin-bottom: 26px; font: 600 12px/1 Barlow, sans-serif; letter-spacing: .16em; color: var(--tt-accent); }
.tt-reasons strong { display: block; margin-bottom: 12px; font-weight: 400; font-size: 23px; line-height: 1.2; color: var(--tt-ink); }
.tt-reasons-w, .tt-values-w, .tt-docs-w { width: 100%; }

/* ---------- Documenti (certificati, politiche) ---------- */
.tt-docs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1024px) { .tt-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tt-docs { grid-template-columns: 1fr; } }
.tt-docs a { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 150px; padding: 24px 24px 52px; background: #fff; border: 1px solid var(--tt-rule); color: var(--tt-text); text-decoration: none; font-size: 15.5px; line-height: 1.45; transition: border-color .3s, transform .5s var(--tt-ease); }
.tt-tint .tt-docs a { border-color: #fff; }
.tt-docs a span { font-weight: 400; font-size: 22px; color: var(--tt-ink); }
.tt-docs a::after { content: "PDF ↓"; position: absolute; left: 24px; bottom: 20px; font: 600 11px/1 Barlow, sans-serif; letter-spacing: .16em; color: var(--tt-accent); }
.tt-docs a[href*="whistleblowing"]::after { content: "Apri →"; }
.tt-docs a:hover { border-color: var(--tt-ink); transform: translateY(-3px); }
.tt-award { margin-top: 18px !important; padding: 26px 0 0 28px; border-left: 3px solid var(--tt-accent); }
.tt-award strong { display: block; margin-bottom: 8px; font-weight: 600; color: var(--tt-ink); }

/* ---------- Cosa facciamo: settori e servizi ---------- */
.tt-inner .elementor .e-con.tt-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 6vw; margin-top: 40px; }
.tt-tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tt-tags li { padding: 10px 16px; border: 1px solid #cfcac6; background: #fff; font-size: 15px; color: var(--tt-ink); }
.tt-checks { list-style: none; margin: 18px 0 0; padding: 0; }
.tt-checks li { position: relative; padding: 13px 0 13px 30px; border-top: 1px solid #ddd8d4; font-size: 16.5px; line-height: 1.45; color: var(--tt-ink); }
.tt-checks li::before { content: ""; position: absolute; left: 0; top: 22px; width: 14px; height: 2px; background: var(--tt-accent); }

/* ---------- Contatti ---------- */
.tt-inner .elementor .e-con.tt-contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-areas: "info form" "map form"; gap: 40px 6vw; align-items: start; margin-top: 16px; }
.tt-contact .tt-contact-info { grid-area: info; }
.tt-contact .tt-contact-map { grid-area: map; }
.tt-contact .tt-contact-form { grid-area: form; }
.tt-contact-data { font-style: normal; }
.tt-contact-data p { margin: 0 0 14px; }
.tt-contact-data span { display: block; font: 600 11px/1.4 Barlow, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--tt-muted); }
.tt-contact-data a { color: var(--tt-ink); }
.tt-map { position: relative; }
.tt-map-cover, .tt-map iframe { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; width: 100%; height: 280px; padding: 28px; border: 0; background-color: var(--tt-ink); background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px); background-size: 28px 28px; color: #fff; }
.tt-map iframe { padding: 0; filter: grayscale(.4); }
.tt-map-address { margin: 0; font-weight: 300; font-size: 22px; }
.tt-map-load { padding: 14px 20px; border: 1px solid #fff; background: transparent; color: #fff; font: 600 12px/1 Barlow, sans-serif; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background .3s, color .3s; }
.tt-map-load:hover { background: #fff; color: var(--tt-ink); }
.tt-map-note { margin: 0; font-size: 12.5px; color: #aaa; }
.tt-map-directions { display: inline-block; margin-top: 14px; color: var(--tt-ink); font: 600 12px/1 Barlow, sans-serif; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Moduli ---------- */
.tt-form { width: 100%; padding: clamp(24px, 3vw, 44px); background: #fff; border: 1px solid var(--tt-rule); }
.tt-tint .tt-form { border-color: #fff; }
.tt-career-form { width: 100%; max-width: 900px; margin-top: 18px; }
.tt-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.tt-field { margin: 0 0 20px; }
.tt-field--textarea, .tt-field--file { grid-column: 1 / -1; }
.tt-field label { display: block; margin-bottom: 8px; font: 600 11.5px/1.3 Barlow, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--tt-ink); }
.tt-field label span { color: var(--tt-accent); }
.tt-field small { margin-left: 6px; font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--tt-muted); }
.tt-field input:not([type="checkbox"]), .tt-field textarea { width: 100%; padding: 13px 14px; border: 0; border-bottom: 1px solid #bdb7b2; border-radius: 0; background: #f7f5f3; font: 400 16px/1.4 Barlow, sans-serif; color: var(--tt-ink); transition: border-color .3s, background .3s; }
.tt-field input:focus, .tt-field textarea:focus { outline: none; border-color: var(--tt-accent); background: #fff; }
.tt-field--check label { display: flex; gap: 12px; align-items: flex-start; font: 400 14.5px/1.5 Barlow, sans-serif; letter-spacing: 0; text-transform: none; color: var(--tt-text); }
.tt-field--check label span { color: inherit; }
.tt-field--check a { color: var(--tt-ink); }
.tt-field--check input { margin-top: 4px; accent-color: var(--tt-accent); width: 18px; height: 18px; flex: none; }
.tt-form-submit { display: inline-flex; gap: 14px; align-items: center; padding: 18px 28px; border: 0; background: var(--tt-accent); color: #fff; font: 600 13px/1 Barlow, sans-serif; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background .3s, gap .5s var(--tt-ease); }
.tt-form-submit:hover { background: var(--tt-ink); gap: 22px; }
.tt-form-notice { margin: 0 0 22px; padding: 16px 18px; font-size: 15.5px; }
.tt-form-notice.is-ok { background: #eef6ee; border-left: 3px solid #2e7d32; }
.tt-form-notice.is-err { background: #fdeeea; border-left: 3px solid var(--tt-accent); }
.tt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 1024px) {
    .tt-reasons { grid-template-columns: 1fr 1fr; }
    .tt-reasons li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
    .tt-reasons li:nth-child(even) { padding-left: 26px; border-left: 1px solid var(--tt-rule); }
    .tt-inner .elementor .e-con.tt-contact { grid-template-columns: 1fr; grid-template-areas: "info" "form" "map"; }
}
@media (max-width: 767px) {
    .tt-reasons { grid-template-columns: 1fr; }
    .tt-reasons li:nth-child(even) { padding-left: 0; border-left: 0; }
    .tt-inner .elementor .e-con.tt-split { grid-template-columns: 1fr; }
    .tt-form-grid { grid-template-columns: 1fr; }
}

/* ---------- Archivi, schede ---------- */
.tt-shell { width: min(100% - 16vw, var(--tt-max)); margin-inline: auto; padding-block: clamp(72px, 8vw, 130px); }
.tt-single { width: min(100% - 16vw, 900px); margin-inline: auto; padding-block: clamp(72px, 8vw, 130px); }
.tt-inner .tt-featured-work > h2, .tt-inner .tt-work-list > h2, .tt-inner .tt-work-map h2 { font-weight: 300; font-size: clamp(30px, 2.8vw, 44px); line-height: 1.08; letter-spacing: -.01em; margin: 0 0 36px; }
.tt-inner .tt-featured-copy h3 { font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.tt-inner .tt-featured-copy .tt-featured-year { font-weight: 300; font-size: 44px; line-height: 1; }
.tt-inner .tt-featured-copy p { font-size: 16px; }
.tt-inner .tt-work-list { scroll-margin-top: 200px; }
.tt-work-sectors { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tt-work-sectors a { padding: 10px 16px; border: 1px solid #cfcac6; color: var(--tt-ink); text-decoration: none; font: 600 12px/1 Barlow, sans-serif; letter-spacing: .12em; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s; }
.tt-work-sectors a:hover { border-color: var(--tt-ink); }
.tt-work-sectors a[aria-current] { background: var(--tt-ink); border-color: var(--tt-ink); color: #fff; }
.tt-inner .tt-work-filters { background: var(--tt-warm); }
.tt-inner .tt-work-table { font-size: 16px; }
.tt-inner .tt-work-table tbody th { font-size: 13.5px; letter-spacing: .07em; text-transform: uppercase; }
.tt-inner .tt-project-card-copy :is(h2, h3) { font-weight: 400; font-size: 21px; color: #fff; }

/* ---------- Binario di scroll (tutte le pagine interne) ---------- */
.tt-rail { position: fixed; z-index: 50; left: calc(4vw - 10px); top: var(--tt-admin); width: 20px; height: calc(100vh - var(--tt-admin)); pointer-events: none; }
.tt-rail path { fill: none; stroke-width: 1; }
.tt-rail .tt-rail-base { stroke: #8c8c8c44; }
.tt-rail .tt-rail-live { stroke: var(--tt-accent); stroke-width: 1.5; }
.tt-rail circle { fill: #fff; stroke: #8c8c8c88; stroke-width: 1; transition: fill .4s, stroke .4s; }
.tt-rail circle.is-on { fill: var(--tt-accent); stroke: var(--tt-accent); }

/* ---------- Comparsa morbida ---------- */
.tt-js .tt-reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--tt-ease), transform 1s var(--tt-ease); }
.tt-js .tt-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .tt-sector-nav ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tt-sector-nav li:nth-child(4) { border-left: 0; }
    .tt-sector-nav li:nth-child(n + 4) { border-top: 1px solid #ffffff26; }
}
@media (max-width: 1024px) {
    .tt-rail { display: none; }
    .tt-ihero { min-height: 0; padding-top: 170px; flex-direction: column; align-items: stretch; }
    .tt-ihero.has-photo .tt-ihero-copy { max-width: none; }
    .tt-ihero-photo { position: relative; inset: auto; width: calc(100% + 16vw); margin: 48px -8vw -56px; height: 46vh; clip-path: none; }
    .tt-ihero-photo::after { background: linear-gradient(180deg, var(--tt-ink) 0, #1f1f1f00 35%); }
    .tt-ihero-photo { clip-path: none; }
    .tt-ihero::after { display: none; }
    .tt-compose { grid-template-columns: 1fr; gap: 56px; }
    .tt-compose-text { padding-bottom: 0; }
    .tt-compose-frame { position: relative; top: 0; height: 78vh; max-height: 680px; max-width: 440px; margin-inline: auto; }
    .tt-sector-works { grid-template-columns: 1fr; }
    .tt-sector-works > .tt-arrow-link { grid-column: 1; }
    .tt-inner .tt-areas .tt-area:not(:nth-child(3n + 1)) { border-left: 0; }
    .tt-inner .tt-areas .tt-area:nth-child(even) { border-left: 1px solid var(--tt-rule); }
}
@media (max-width: 767px) {
    .tt-inner { font-size: 16px; }
    .tt-ihero { padding: 160px 6vw 48px; }
    .tt-ihero-photo { width: calc(100% + 12vw); margin: 40px -6vw -48px; height: 38vh; }
    .tt-crumbs { margin-bottom: 30px; }
    .tt-ihero.has-backdrop { min-height: 72svh; }
    .tt-ihero-bg::after { background: linear-gradient(0deg, var(--tt-ink) 0, #1f1f1fcc 45%, #1f1f1f73 75%, #1f1f1fb3 100%); }
    .tt-compose, .tt-shell, .tt-single { width: calc(100% - 12vw); }
    .tt-sector-works, .tt-sector-nav, .tt-cta { padding-inline: 6vw; }
    .tt-sector-works-list li { grid-template-columns: 1fr; gap: 4px; }
    .tt-prose ul li { padding-left: 48px; font-size: 17px; }
    .tt-sector-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tt-sector-nav li:nth-child(n) { border-left: 0; border-top: 1px solid #ffffff26; }
    .tt-sector-nav li:nth-child(even) { border-left: 1px solid #ffffff26; }
    .tt-sn-icon { height: 96px; }
    .tt-inner .tt-areas .tt-area:nth-child(even) { border-left: 0; }
    .tt-inner .tt-area .elementor-heading-title a { min-height: 0; gap: 26px; padding: 24px 4px; }
}
@media (prefers-reduced-motion: reduce) {
    .tt-ihero-copy > *, .tt-ihero-photo img, .tt-ihero-bg, .tt-ihero-bg img, .tt-ihero::after { animation: none; }
    .tt-js .tt-reveal { opacity: 1; transform: none; transition: none; }
    .tt-prose ul li::after { transition: none; }
}

/* ---------- Pagine competenza: numeri del settore ---------- */
.tt-sector-facts { width: min(100% - 16vw, var(--tt-max)); margin: 0 auto; padding-top: clamp(56px, 6vw, 96px); }
.tt-sector-facts dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--tt-ink); border-bottom: 1px solid #d8d4d0; }
.tt-sector-facts dl > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 14px; padding: 30px 28px 32px; }
.tt-sector-facts dl > div + div { border-left: 1px solid #d8d4d0; }
.tt-sector-facts dt { font: 600 12px/1.3 Barlow, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--tt-muted); }
.tt-sector-facts dd { margin: 0; font-weight: 300; font-size: clamp(44px, 4.6vw, 76px); line-height: .95; letter-spacing: -.03em; color: var(--tt-ink); font-variant-numeric: tabular-nums; }
.tt-sector-facts dd span { color: var(--tt-accent); margin: 0 .06em; }
.tt-sector-facts dl > div:first-child dd { color: var(--tt-accent); }
.tt-sector-page .tt-compose { padding-top: clamp(64px, 7vw, 120px); }
.tt-sector-works-note { margin: 22px 0 0; max-width: 26ch; color: var(--tt-muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 767px) {
    .tt-sector-facts { width: calc(100% - 12vw); }
    .tt-sector-facts dl { grid-template-columns: 1fr 1fr; }
    .tt-sector-facts dl > div { padding: 22px 16px 24px 0; }
    .tt-sector-facts dl > div + div { padding-left: 16px; }
    .tt-sector-facts dl > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #d8d4d0; padding-left: 0; }
}

/* Testo e disegno affiancati anche fra 861 e 1024 px (prima il disegno finiva sotto tutte le liste). */
@media (min-width: 861px) and (max-width: 1024px) {
    .tt-compose { grid-template-columns: minmax(0, 1fr) minmax(250px, .72fr); gap: 5vw; min-height: 175vh; }
    .tt-compose-text { padding-bottom: 14vh; }
    .tt-compose-frame { position: sticky; top: calc(var(--tt-admin) + 6vh); height: 82vh; max-height: 760px; max-width: none; margin: 0; }
}

/* Binario laterale a forma d'onda (inner.js): fascia larga 40 px, punto in testa al tratto. */
.tt-rail { left: calc(4vw - 20px); width: 40px; overflow: visible; }
.tt-rail path { stroke-linejoin: round; stroke-linecap: round; }
.tt-rail .tt-rail-base { stroke: #8c8c8c38; stroke-width: 1; }
.tt-rail .tt-rail-live { stroke-width: 1.4; }
.tt-rail .tt-rail-head { fill: var(--tt-accent); stroke: none; filter: drop-shadow(0 0 5px #e8300a99); }
