/**
 * TFS Oleodinamica — Utility Classes
 *
 * Classi helper applicabili direttamente in Kadence Blocks
 * tramite il campo "Avanzate → Classe CSS aggiuntiva".
 *
 * Convenzione: prefisso .tfs- per evitare conflitti con Kadence/altri plugin.
 */

/* ============================================
   CONTAINER — wrapper di larghezza controllata
   ============================================ */

.tfs-container {
  width: 100%;
  max-width: var(--tfs-container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--tfs-space-4);
  padding-right: var(--tfs-space-4);
}

.tfs-container-sm { max-width: var(--tfs-container-sm); }
.tfs-container-md { max-width: var(--tfs-container-md); }
.tfs-container-lg { max-width: var(--tfs-container-lg); }
.tfs-container-xl { max-width: var(--tfs-container-xl); }
.tfs-container-2xl { max-width: var(--tfs-container-2xl); }
.tfs-container-full { max-width: var(--tfs-container-full); }
.tfs-container-fluid { max-width: 100%; }

/* Padding laterale incrementato su desktop */
@media (min-width: 1024px) {
  .tfs-container,
  .tfs-container-sm,
  .tfs-container-md,
  .tfs-container-lg,
  .tfs-container-xl,
  .tfs-container-2xl,
  .tfs-container-full {
    padding-left: var(--tfs-space-6);
    padding-right: var(--tfs-space-6);
  }
}

/* ============================================
   SECTION — padding verticale standard
   ============================================ */

.tfs-section {
  padding-top: var(--tfs-section-py);
  padding-bottom: var(--tfs-section-py);
}

.tfs-section-lg {
  padding-top: var(--tfs-section-py-lg);
  padding-bottom: var(--tfs-section-py-lg);
}

.tfs-section-sm {
  padding-top: var(--tfs-space-8);
  padding-bottom: var(--tfs-space-8);
}

/* ============================================
   BACKGROUND — sfondi sezione
   ============================================ */

.tfs-bg-primary     { background-color: var(--tfs-color-primary); color: var(--tfs-color-white); }
.tfs-bg-primary-dark{ background-color: var(--tfs-color-primary-dark); color: var(--tfs-color-white); }
.tfs-bg-primary-tint{ background-color: var(--tfs-color-primary-tint); }
.tfs-bg-accent      { background-color: var(--tfs-color-accent); color: var(--tfs-color-white); }
.tfs-bg-dark        { background-color: var(--tfs-color-gray-900); color: var(--tfs-color-white); }
.tfs-bg-light       { background-color: var(--tfs-color-gray-50); }
.tfs-bg-section     { background-color: var(--tfs-color-bg-section); }
.tfs-bg-white       { background-color: var(--tfs-color-white); }

/* Sezioni con sfondo scuro — assicura che headings e testo siano leggibili */
.tfs-bg-primary h1, .tfs-bg-primary h2, .tfs-bg-primary h3,
.tfs-bg-primary h4, .tfs-bg-primary h5, .tfs-bg-primary h6,
.tfs-bg-primary-dark h1, .tfs-bg-primary-dark h2, .tfs-bg-primary-dark h3,
.tfs-bg-primary-dark h4, .tfs-bg-primary-dark h5, .tfs-bg-primary-dark h6,
.tfs-bg-dark h1, .tfs-bg-dark h2, .tfs-bg-dark h3,
.tfs-bg-dark h4, .tfs-bg-dark h5, .tfs-bg-dark h6 {
  color: var(--tfs-color-white);
}

.tfs-bg-primary a,
.tfs-bg-primary-dark a,
.tfs-bg-dark a {
  color: var(--tfs-color-accent-light);
}

/* ============================================
   TEXT COLOR
   ============================================ */

.tfs-text-primary    { color: var(--tfs-color-primary); }
.tfs-text-accent     { color: var(--tfs-color-accent); }
.tfs-text-white      { color: var(--tfs-color-white); }
.tfs-text-muted      { color: var(--tfs-color-text-muted); }
.tfs-text-dark       { color: var(--tfs-color-gray-900); }

/* ============================================
   TEXT ALIGNMENT
   ============================================ */

.tfs-text-left   { text-align: left; }
.tfs-text-center { text-align: center; }
.tfs-text-right  { text-align: right; }

/* ============================================
   FONT WEIGHTS E SIZE
   ============================================ */

.tfs-fw-light     { font-weight: var(--tfs-fw-light); }
.tfs-fw-regular   { font-weight: var(--tfs-fw-regular); }
.tfs-fw-medium    { font-weight: var(--tfs-fw-medium); }
.tfs-fw-semibold  { font-weight: var(--tfs-fw-semibold); }
.tfs-fw-bold      { font-weight: var(--tfs-fw-bold); }
.tfs-fw-extrabold { font-weight: var(--tfs-fw-extrabold); }

.tfs-uppercase  { text-transform: uppercase; letter-spacing: var(--tfs-ls-wide); }
.tfs-lowercase  { text-transform: lowercase; }
.tfs-capitalize { text-transform: capitalize; }

/* ============================================
   SPACING — margin e padding helper
   ============================================ */

/* Margin top */
.tfs-mt-0  { margin-top: 0; }
.tfs-mt-2  { margin-top: var(--tfs-space-2); }
.tfs-mt-4  { margin-top: var(--tfs-space-4); }
.tfs-mt-6  { margin-top: var(--tfs-space-6); }
.tfs-mt-8  { margin-top: var(--tfs-space-8); }
.tfs-mt-12 { margin-top: var(--tfs-space-12); }
.tfs-mt-16 { margin-top: var(--tfs-space-16); }

/* Margin bottom */
.tfs-mb-0  { margin-bottom: 0; }
.tfs-mb-2  { margin-bottom: var(--tfs-space-2); }
.tfs-mb-4  { margin-bottom: var(--tfs-space-4); }
.tfs-mb-6  { margin-bottom: var(--tfs-space-6); }
.tfs-mb-8  { margin-bottom: var(--tfs-space-8); }
.tfs-mb-12 { margin-bottom: var(--tfs-space-12); }
.tfs-mb-16 { margin-bottom: var(--tfs-space-16); }

/* ============================================
   DISPLAY E VISIBILITÀ
   ============================================ */

.tfs-block        { display: block; }
.tfs-inline       { display: inline; }
.tfs-inline-block { display: inline-block; }
.tfs-flex         { display: flex; }
.tfs-grid         { display: grid; }
.tfs-hidden       { display: none; }

/* Visibilità responsive */
@media (max-width: 767px) {
  .tfs-hide-mobile { display: none !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .tfs-hide-tablet { display: none !important; }
}

@media (min-width: 1024px) {
  .tfs-hide-desktop { display: none !important; }
}

/* ============================================
   FLEXBOX HELPER
   ============================================ */

.tfs-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tfs-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tfs-flex-column {
  display: flex;
  flex-direction: column;
}

.tfs-gap-2 { gap: var(--tfs-space-2); }
.tfs-gap-4 { gap: var(--tfs-space-4); }
.tfs-gap-6 { gap: var(--tfs-space-6); }
.tfs-gap-8 { gap: var(--tfs-space-8); }

/* ============================================
   ELEVAZIONE (shadow)
   ============================================ */

.tfs-shadow-sm { box-shadow: var(--tfs-shadow-sm); }
.tfs-shadow    { box-shadow: var(--tfs-shadow-md); }
.tfs-shadow-lg { box-shadow: var(--tfs-shadow-lg); }
.tfs-shadow-xl { box-shadow: var(--tfs-shadow-xl); }

/* ============================================
   BORDER RADIUS
   ============================================ */

.tfs-rounded-none { border-radius: 0; }
.tfs-rounded-sm   { border-radius: var(--tfs-radius-sm); }
.tfs-rounded      { border-radius: var(--tfs-radius-md); }
.tfs-rounded-lg   { border-radius: var(--tfs-radius-lg); }
.tfs-rounded-xl   { border-radius: var(--tfs-radius-xl); }
.tfs-rounded-full { border-radius: var(--tfs-radius-full); }

/* ============================================
   ACCESSIBILITÀ
   ============================================ */

/* Nasconde visualmente ma resta leggibile da screen reader */
.tfs-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reset focus default ma mantieni visibilità per keyboard users */
.tfs-focus-ring:focus-visible {
  outline: 2px solid var(--tfs-color-primary);
  outline-offset: 2px;
  border-radius: var(--tfs-radius-sm);
}

.tfs-color-primary { color: #305473 !important; }

/* Partner sidebar */
.tfs-partner-sidebar {
    background-color: #d0d6db;
    padding: 24px 20px;
    border-radius: 6px;
}

/* Sticky sidebar partner */
.tfs-partner-sidebar {
    position: sticky;
    top: 100px;
}



/* Fix sticky: target inner div */
.tfs-partner-sidebar .kt-inside-inner-col {
    position: sticky;
    top: 100px;
}

/* CF7 sidebar form */
.tfs-cf7-sidebar .wpcf7-submit {
    display: block;
    margin: 16px auto 0;
    width: 100%;
}

/* Foto referente sidebar */
.tfs-referente-photo img {
    border-radius: 50%;
    object-fit: cover;
    width: 80px !important;
    height: 80px !important;
}

/* Foto referente sidebar — dimensione e margini */
.tfs-referente-photo {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
}
.tfs-referente-photo img {
    width: 100px !important;
    height: 100px !important;
}

/* Riduce spazio tra foto e nome referente */
.tfs-referente-photo {
    margin-bottom: 4px !important;
}

/* Spaziatura armonica sidebar referente — reset e regole definitive */
.tfs-partner-sidebar .kt-inside-inner-col > h4:first-child { margin-bottom: 16px !important; }
.tfs-referente-photo { margin-top: 0 !important; margin-bottom: 16px !important; }
.tfs-partner-sidebar .kt-inside-inner-col > p { margin-top: 0 !important; margin-bottom: 4px !important; line-height: 1.4 !important; }
.tfs-partner-sidebar .wp-block-separator { margin-top: 12px !important; margin-bottom: 12px !important; }
.tfs-partner-sidebar .kt-inside-inner-col > h4:not(:first-child) { margin-top: 0 !important; margin-bottom: 8px !important; }

/* Foto referente — diametro finale */
.tfs-referente-photo img {
    width: 111px !important;
    height: 111px !important;
}

/* Avvicina blocco referente alla foto */
.tfs-referente-photo { margin-bottom: 5px !important; }

/* Azzera padding sotto foto referente */
.tfs-referente-photo,
.tfs-referente-photo figure,
.tfs-referente-photo img {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
.tfs-referente-photo + p { margin-top: 5px !important; }

/* Padding sotto foto referente — 3mm */
.tfs-referente-photo { padding-bottom: 11px !important; }


/* Brand nav — toggle bar */
.tfs-brand-nav details > summary {
    background-color: #022442;
    color: #FAFAFA;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 3px;
    font-weight: 600;
    font-size: 13px;
    list-style: none;
    margin-bottom: 6px;
}
.tfs-brand-nav details > summary::-webkit-details-marker { display: none; }
.tfs-brand-nav details > summary::marker { display: none; }
.tfs-brand-nav details > summary::after { content: "+"; float: right; }
.tfs-brand-nav details[open] > summary::after { content: "-"; }
.tfs-brand-nav details > summary:hover { background-color: #305473; }

.tfs-brand-nav details + details { margin-top: 5mm; }


/* Brand nav — container */
.tfs-brand-nav {
    background-color: #d0d6db;
    border-radius: 6px;
}

/* Brand nav — lista */
.tfs-brand-nav ul {
    margin: 8px 0 0 0 !important;
    padding: 0 0 0 8px !important;
    list-style: none !important;
}
.tfs-brand-nav ul li {
    padding: 3px 0 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    border-bottom: 1px solid rgba(2,36,66,0.15);
}
.tfs-brand-nav ul li:last-child { border-bottom: none !important; }
.tfs-brand-nav a { color: #1A1A1A !important; text-decoration: none !important; font-weight: 600 !important; }
.tfs-brand-nav a:hover { color: #E87722 !important; text-decoration: underline !important; }

/* Mobile partner nav */
@media (max-width: 767px) {
    .kadence-column235_col_brandnav { display: none; }
    .kadence-column235_col_brandnav.is-open { display: block; margin-bottom: 16px; }
    .tfs-mobile-actions {
        display: flex; gap: 8px; padding: 10px 0;
        position: sticky; top: 0; z-index: 50;
        background: #fff; border-bottom: 2px solid #d0d6db; margin-bottom: 16px;
    }
    .tfs-btn-espandi, .tfs-btn-contattaci {
        flex: 1; padding: 10px 12px; border-radius: 4px;
        font-weight: 700; font-size: 14px; cursor: pointer;
        text-align: center; border: none; text-decoration: none; display: inline-block;
    }
    .tfs-btn-espandi { background: #d0d6db; color: #FAFAFA; }
    .tfs-btn-espandi:hover, .tfs-btn-espandi[aria-expanded="true"] { background: #305473; }
    .tfs-btn-contattaci { background: #305473; color: #FAFAFA; }
    .tfs-btn-contattaci:hover { background: #d0d6db; }
}
@media (min-width: 768px) { .tfs-mobile-actions { display: none !important; } }

@media (min-width: 768px) { .kb-btns235_0d6dfa-9b { display: none !important; } }

/* ===== TFS Icon Box Columns (partner pages) ===== */
.tfs-iconbox-col .kt-inside-inner-col {
    background-color: #d0d6db;
    border-radius: 6px;
    padding: 20px;
    height: 100%;
    border-left: 3px solid #305473;
}
.tfs-iconbox-col h3 {
    color: #305473;
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 8px;
}
.tfs-iconbox-col p.has-small-font-size {
    color: #444444;
    margin-bottom: 12px;
}
.tfs-iconbox-col a {
    color: #305473;
    font-weight: 600;
    text-decoration: none;
}
.tfs-iconbox-col a:hover {
    text-decoration: underline;
}

/* ===== TFS Icon Box — bordo visibile + link allineato in basso ===== */
.tfs-iconbox-col .kt-inside-inner-col {
    border: 1px solid #B8CDE8;
    display: flex;
    flex-direction: column;
}
.tfs-iconbox-col .kt-inside-inner-col > p:last-child {
    margin-top: auto;
    padding-top: 12px;
}

/* ===== Badge TFS CE Rexroth — fix dimensione Imagify picture tag ===== */

/* ===== Badge Kawasaki TFS Service — fix Imagify picture tag ===== */
.wp-image-289 {
    width: 100px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}
figure.aligncenter picture img.wp-image-289 {
    width: 100px !important;
    height: auto !important;
}

/* ===== Kawasaki page — badge enlarged + title centered ===== */
.postid-287 .entry-title {
    text-align: center;
}
.wp-image-289 {
    width: 160px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}
figure.aligncenter picture img.wp-image-289 {
    width: 160px !important;
    height: auto !important;
}

/* ===== Badge Kawasaki — allineato a Rexroth 100px ===== */
.wp-image-289 {
    width: 100px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}
figure.aligncenter picture img.wp-image-289 {
    width: 100px !important;
    height: auto !important;
}

/* ===== Badge Kawasaki — 170px per parità visiva con Rexroth badge ===== */
.wp-image-289 {
    width: 170px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}
figure.aligncenter picture img.wp-image-289 {
    width: 170px !important;
    height: auto !important;
}

/* ===== Badge Kawasaki — 255px (170 x 1.5) ===== */
.wp-image-289 {
    width: 255px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}
figure.aligncenter picture img.wp-image-289 {
    width: 255px !important;
    height: auto !important;
}

/* ===== Badge CE Rexroth+TFS — fix Imagify picture tag ===== */
.wp-image-288 {
    width: 170px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}
figure.aligncenter picture img.wp-image-288 {
    width: 170px !important;
    height: auto !important;
}

/* ===== Mobile partner nav — Kawasaki (post 287) ===== */
@media (max-width: 767px) {
    .kadence-column287_col_brandnav { display: none; }
    .kadence-column287_col_brandnav.is-open { display: block; margin-bottom: 16px; }
}
@media (min-width: 768px) { .kb-btns287_0d6dfa-9b { display: none !important; } }

/* ===== H2 centrati su tutto il sito ===== */
h2.wp-block-heading {
    text-align: center;
}

/* ===== Logo hero Hägglunds (media ID 90, 473x162px) ===== */
figure.aligncenter img.wp-image-90,
figure.aligncenter picture img.wp-image-90 {
    width: 400px !important;
    height: auto !important;
}

/* ===== Mobile partner nav — Hägglunds (post 317) ===== */
@media (max-width: 767px) {
    .kadence-column317_col_brandnav { display: none; }
    .kadence-column317_col_brandnav.is-open { display: block; margin-bottom: 16px; }
}
@media (min-width: 768px) { .kb-btns317_cta_hag { display: none !important; } }

/* ===== Logo hero Moog (media ID 88, 1280x198px) ===== */
figure.aligncenter img.wp-image-88,
figure.aligncenter picture img.wp-image-88 {
    width: 500px !important;
    height: auto !important;
}

/* ===== TIER 2 PARTNERS — Setup generico mobile nav + desktop CTA hide ===== */
/* Vale per tutti i partner Tier 2: usa classi tfs-brand-nav-col + tfs-tier2-cta-wrap */
@media (max-width: 767px) {
    .single-partner .tfs-brand-nav-col { display: none; }
    .single-partner .tfs-brand-nav-col.is-open { display: block !important; margin-bottom: 16px; }
}
@media (min-width: 768px) {
    .tfs-tier2-cta-wrap { display: none !important; }
}

/* ===== HUB /partner/ — Grid Tier 2 e Tier 3 ===== */
.tfs-partner-grid-medium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.tfs-partner-grid-medium .tfs-partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #d0d6db;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    background: #FFFFFF;
    text-decoration: none;
    color: #305473;
    transition: all 0.2s ease;
    min-height: 130px;
}
.tfs-partner-grid-medium .tfs-partner-card:hover {
    border-color: #4a9fd4;
    box-shadow: 0 4px 12px rgba(31, 78, 121, 0.08);
    transform: translateY(-2px);
}
.tfs-partner-grid-medium .tfs-partner-card img {
    max-height: 60px;
    max-width: 140px;
    width: auto;
    height: auto;
    margin-bottom: 12px;
    object-fit: contain;
}
.tfs-partner-grid-medium .tfs-partner-card .tfs-partner-name {
    font-weight: 600;
    font-size: 14px;
    color: #305473;
}

.tfs-partner-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 24px 0;
}
.tfs-partner-grid-small .tfs-tier3-name {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    background: #F5F8FB;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #305473;
    text-align: center;
    min-height: 48px;
}

/* ===== Aggiornamento mobile nav: estendi a tutte le pagine con .tfs-brand-nav-col ===== */
@media (max-width: 767px) {
    .tfs-brand-nav-col { display: none; }
    .tfs-brand-nav-col.is-open { display: block !important; margin-bottom: 16px; }
}

/* ===== HUB /partner/ Tier 3 — card non cliccabili (no hover) ===== */
.tfs-partner-grid-disabled .tfs-partner-card { cursor: default; }
.tfs-partner-grid-disabled .tfs-partner-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #d0d6db;
}
/* Card text-only per brand senza logo (Voac) */
.tfs-partner-card.tfs-partner-card-textonly {
    background: #F5F8FB;
    border-style: dashed;
}
.tfs-partner-card.tfs-partner-card-textonly .tfs-partner-name {
    font-size: 15px;
}

/* ===== Centratura H1 su tutte le pagine partner ===== */
.single-partner h1,
.page-id-372 h1 {
    text-align: center;
}

/* Brand grid /servizi/ */
.tfs-s-brand-t1 img,
.tfs-s-brand-t1 picture img { max-width: 150px; height: auto; }
.tfs-s-brand-t2 img,
.tfs-s-brand-t2 picture img { max-width: 100px; height: auto; }
.tfs-s-brand-t3 img,
.tfs-s-brand-t3 picture img { max-width:  90px; height: auto; }

/* Sticky service nav /servizi/ */
.tfs-service-nav-col .kt-inside-inner-col {
    position: sticky;
    top: 100px;
}

/* Service card grid /servizi/ */
.tfs-service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 0 0 1.5em;
}
.tfs-service-card {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    background: #022442;
    border: 1px solid #305473;
    border-radius: 6px;
    text-decoration: none;
    color: #ffffff;
    transition: background .15s, border-color .15s;
}
.tfs-service-card:hover {
    background: #305473;
    border-color: #4a9fd4;
}
.tfs-service-name {
    font-weight: 700;
    font-size: .95rem;
    color: #ffffff;
    margin-bottom: 4px;
}
.tfs-service-desc {
    font-size: .82rem;
    color: #c8dcee;
    line-height: 1.35;
}
@media (max-width: 767px) {
    .tfs-service-grid { grid-template-columns: 1fr; }
    .tfs-service-nav-col .kt-inside-inner-col { position: static; }
    .tfs-service-nav-col { display: none; }
    .tfs-service-nav-col.is-open { display: block; }
    .tfs-servizi-mobile-heading {
        font-size: 1rem; font-weight: 700; color: #022442;
        margin: 8px 0 6px; text-align: center;
    }
    .tfs-btn-cta-servizi {
        display: block; width: 100%; padding: 12px 16px;
        background: #305473; color: #FAFAFA; border: none;
        border-radius: 4px; font-weight: 700; font-size: 14px;
        cursor: pointer; text-align: center; margin-bottom: 16px;
    }
    .tfs-btn-cta-servizi:hover { background: #d0d6db; }
}

/* Service card icon layout */
.tfs-sc-icon {
    display: block;
    color: #ffffff;
    margin-bottom: 10px;
    flex-shrink: 0;
}

/* Sticky settori nav /settori/ */
.tfs-settori-nav-col .kt-inside-inner-col {
    position: sticky;
    top: 100px;
}
@media (max-width: 767px) {
    .tfs-settori-nav-col { display: none; }
    .tfs-settori-nav-col.is-open { display: block; }
    .tfs-settori-mobile-heading {
        font-size: 1rem; font-weight: 700; color: #022442;
        margin: 8px 0 6px; text-align: center;
    }
}
@media (min-width: 768px) {
    .tfs-settori-nav-col .kt-inside-inner-col { position: static; }
}

/* ── /azienda/ timeline ── */
.tfs-timeline {
    position: relative;
    padding-left: 20px;
    margin: 24px 0;
    border-left: 3px solid #022442;
}
.tfs-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
    position: relative;
}
.tfs-timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #022442;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #022442;
}
.tfs-timeline-year {
    font-weight: 700;
    color: #022442;
    font-size: 15px;
    min-width: 70px;
    padding-top: 2px;
}
.tfs-timeline-text {
    color: #333;
    font-size: 15px;
    line-height: 1.5;
}

/* ── Kadence Form — messaggio successo ── */
.kadence-blocks-form-message.kadence-blocks-form-warning,
.kb-adv-form-message.kb-adv-form-message-success,
.kadence-blocks-form-message {
    background-color: #2D7A3E !important;
    color: #ffffff !important;
    border-color: #2D7A3E !important;
}

/* ── Kadence Form — messaggi esito ── */
.kb-adv-form-message.kb-adv-form-message-success,
.kadence-blocks-form-message.kadence-blocks-form-success {
    background-color: #2D7A3E !important;
    color: #ffffff !important;
    border-color: #2D7A3E !important;
}
.kb-adv-form-message.kb-adv-form-message-error,
.kadence-blocks-form-message.kadence-blocks-form-warning,
.kadence-blocks-form-message.kadence-blocks-form-error {
    background-color: #C0392B !important;
    color: #ffffff !important;
    border-color: #C0392B !important;
}

/* ── Kadence Form — messaggi esito ── */
.kb-adv-form-message.kb-adv-form-success {
    background-color: #2D7A3E !important;
    color: #ffffff !important;
    border-color: #2D7A3E !important;
}
.kb-adv-form-message.kb-adv-form-success h2 {
    color: #ffffff !important;
}
.kb-adv-form-message.kb-adv-form-warning {
    background-color: #C0392B !important;
    color: #ffffff !important;
    border-color: #C0392B !important;
}
.kb-adv-form-message.kb-adv-form-warning h2 {
    color: #ffffff !important;
}

/* ── /catalogo/ nav sinistra ── */
.tfs-catalogo-nav-col {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}
.tfs-catalogo-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tfs-catalogo-nav-list li {
    margin: 0 0 8px 0;
}
.tfs-catalogo-nav-list a {
    display: block;
    padding: 8px 12px;
    color: #022442;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}
.tfs-catalogo-nav-list a:hover {
    background: #f0f4f8;
    border-left-color: #1f4e79;
}

/* Mobile /catalogo/ — toggle */
@media (max-width: 767px) {
    .tfs-catalogo-nav-col {
        display: none;
        position: static;
    }
    .tfs-catalogo-nav-col.is-open {
        display: block;
    }
    .tfs-catalogo-mobile-heading {
        font-size: 22px;
        color: #022442;
        margin: 16px 0 12px 0;
    }
}

/* /catalogo/ mobile heading centrato */
.tfs-catalogo-mobile-heading {
    text-align: center !important;
}

/* ── /partner/ → /catalogo/ cross-link section ── */
.tfs-partner-catalogo-section {
    max-width: 1140px;
    margin: 40px auto;
    padding: 30px;
    background: #d0d6db;
    border-radius: 8px;
}
.tfs-partner-catalogo-section h2 {
    color: #022442;
    margin-top: 0;
}
.tfs-partner-catalogo-links {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}
.tfs-partner-catalogo-links li {
    margin: 0;
}
.tfs-partner-catalogo-links a {
    display: block;
    padding: 12px 16px;
    background: #fff;
    color: #022442;
    border-left: 3px solid #1f4e79;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}
.tfs-partner-catalogo-links a:hover {
    background: #1f4e79;
    color: #fff;
    border-left-color: #022442;
}

/* /partner/ Tier 1 — hover effect immagini cat */
.tfs-partner-cat-img {
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 14px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tfs-partner-cat-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
}
.tfs-partner-cat-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(22, 58, 90, 0.18);
}
.tfs-partner-cat-img:hover img {
    transform: scale(1.06);
    filter: brightness(1.05);
}
.tfs-partner-cat-img a {
    display: block;
    overflow: hidden;
    border-radius: 6px;
}

/* Uniforma dimensioni immagini nei box partner (Rexroth/Hagglunds/Kawasaki/Staffa) */
.tfs-iconbox-col .tfs-partner-cat-img {
    width: 100%;
    margin-bottom: 14px !important;
}
.tfs-iconbox-col .tfs-partner-cat-img img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #f5f7fa;
    border-radius: 6px;
    padding: 12px;
    box-sizing: border-box;
}
@media (max-width: 767px) {
    .tfs-iconbox-col .tfs-partner-cat-img img {
        height: 180px;
    }
}

/* Uniforma dimensioni immagini nei box partner (Rexroth/Hagglunds/Kawasaki/Staffa) */
.tfs-iconbox-col .tfs-partner-cat-img {
    width: 100%;
    margin-bottom: 14px !important;
}
.tfs-iconbox-col .tfs-partner-cat-img img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #f5f7fa;
    border-radius: 6px;
    padding: 12px;
    box-sizing: border-box;
}
@media (max-width: 767px) {
    .tfs-iconbox-col .tfs-partner-cat-img img {
        height: 180px;
    }
}

/* ============================================
   PALETTE v2.0 — OVERRIDE SIDEBAR BG (26/5/2026)
   Sidebar sx + dx entrambi Primary Light.
   Toggle Primary Dark. Testo contenuti Gray 900.
   ============================================ */
.tfs-partner-sidebar { background-color: #d0d6db !important; }
.tfs-brand-nav { background-color: #d0d6db !important; }
.tfs-brand-nav details > summary { background-color: #022442 !important; color: #FFFFFF !important; }
.tfs-brand-nav details > summary:hover { background-color: #305473 !important; }
.tfs-brand-nav a { color: #1A1A1A !important; }
.tfs-brand-nav a:hover { color: #E87722 !important; }
.tfs-brand-nav ul li { border-bottom: 1px solid rgba(2,36,66,0.15) !important; }

/* ============================================
   PALETTE v2.1 — OVERRIDE SIDEBAR BG estesa (26/5/2026)
   Sidebar sx + dx entrambi Primary Light cross-tutte-sezioni.
   Toggle Primary Dark. Testo contenuti Gray 900.
   Sostituisce blocco PALETTE v2.0 precedente.
   ============================================ */
.tfs-partner-sidebar,
.tfs-brand-nav,
.tfs-service-nav-col,
.tfs-settori-nav-col,
.tfs-catalogo-nav-col { background-color: #d0d6db !important; padding: 16px !important; border-radius: 6px !important; }

.tfs-brand-nav details > summary,
.tfs-service-nav-col details > summary,
.tfs-settori-nav-col details > summary,
.tfs-catalogo-nav-col details > summary { background-color: #022442 !important; color: #FFFFFF !important; }

.tfs-brand-nav details > summary:hover,
.tfs-service-nav-col details > summary:hover,
.tfs-settori-nav-col details > summary:hover,
.tfs-catalogo-nav-col details > summary:hover { background-color: #305473 !important; }

.tfs-brand-nav a,
.tfs-service-nav-col a,
.tfs-settori-nav-col a,
.tfs-catalogo-nav-col a { color: #1A1A1A !important; }

.tfs-brand-nav a:hover,
.tfs-service-nav-col a:hover,
.tfs-settori-nav-col a:hover,
.tfs-catalogo-nav-col a:hover { color: #E87722 !important; }

.tfs-brand-nav ul li,
.tfs-service-nav-col ul li,
.tfs-settori-nav-col ul li,
.tfs-catalogo-nav-col ul li { border-bottom: 1px solid rgba(2,36,66,0.15) !important; }

.tfs-service-nav-col h3,
.tfs-settori-nav-col h3,
.tfs-catalogo-nav-col h3 { color: #022442 !important; }

/* ============================================
   PALETTE v2.2 — ICONBOX bg uniformato a sidebar (26/5/2026)
   Box categorie prodotti partner (.tfs-iconbox-col) → stesso #d0d6db sidebar.
   ============================================ */
.tfs-iconbox-col .kt-inside-inner-col { background-color: #d0d6db !important; }

/* ============================================
   PALETTE v2.4 — ICONBOX border refresh (26/5/2026)
   Border iconbox da legacy blu #B8CDE8 → Primary Dark alpha 10% (coerente palette v2.x).
   ============================================ */
.tfs-iconbox-col .kt-inside-inner-col { border: 1px solid rgba(2,36,66,0.1) !important; }

/* ============================================
   PALETTE v2.7 — SIDEBAR SX /catalogo/ width fix (26/5/2026)
   Allarga colonna sx /catalogo/ 20% → 25% per evitare wrap di "Filtrazione e condizionamento".
   Riduce main 55% → 50%. Sidebar dx mantiene 25%.
   ============================================ */
@media (min-width: 768px) {
  .kb-row-layout-wrap:has(.tfs-catalogo-nav-col) > .kt-row-column-wrap {
    grid-template-columns: minmax(0, calc(25% - ((var(--kb-default-row-gutter, var(--global-row-gutter-md, 2rem)) * 2 ) / 3))) minmax(0, calc(50% - ((var(--kb-default-row-gutter, var(--global-row-gutter-md, 2rem)) * 2 ) / 3))) minmax(0, calc(25% - ((var(--kb-default-row-gutter, var(--global-row-gutter-md, 2rem)) * 2 ) / 3))) !important;
  }
}

/* ============================================
   PALETTE v2.8 — tfs-partner-grid-small extension (26/5/2026)
   Estende grid-small per supportare tfs-partner-card con logo + nome,
   dimensioni più piccole vs grid-medium (logo 40px vs 60px, padding ridotto).
   Usato in hub /catalogo/ tier 1/2/3 box loghi.
   ============================================ */
.tfs-partner-grid-small .tfs-partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #d0d6db;
    padding: 8px 10px;
    background: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}
.tfs-partner-grid-small .tfs-partner-card:hover {
    border-color: #022442;
    box-shadow: 0 2px 8px rgba(2, 36, 66, 0.08);
    transform: translateY(-2px);
}
.tfs-partner-grid-small .tfs-partner-card img {
    max-height: 40px;
    max-width: 110px;
    width: auto;
    height: auto;
    margin-bottom: 6px;
    object-fit: contain;
}
.tfs-partner-grid-small .tfs-partner-card .tfs-partner-name {
    font-weight: 600;
    font-size: 12px;
    color: #305473;
    text-align: center;
    line-height: 1.3;
}

/* ============================================
   PALETTE v2.9 — tfs-catalogo-families-grid (26/5/2026)
   Grid 4x2 (8 famiglie) hub /catalogo/ con immagini hero + hover effect partner-style.
   ============================================ */
.tfs-catalogo-families-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 32px auto;
    max-width: 1200px;
    justify-items: center;
}
@media (max-width: 1024px) {
    .tfs-catalogo-families-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .tfs-catalogo-families-grid { grid-template-columns: 1fr; }
}
.tfs-catalogo-family-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border: 1px solid #d0d6db;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s ease;
}
.tfs-catalogo-family-card:hover {
    border-color: #E87722;
    box-shadow: 0 6px 20px rgba(2, 36, 66, 0.12);
    transform: translateY(-4px);
}
.tfs-catalogo-family-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}
.tfs-catalogo-family-card .tfs-family-name {
    padding: 14px 14px 16px;
    font-weight: 700;
    font-size: 14px;
    color: #022442;
    text-align: center;
    line-height: 1.3;
}

/* ============================================
   HOMEPAGE TFS — CSS scoped (28/5/2026)
   Append a utilities.css per render post 155 "Home".
   Tutti selettori prefissati .tfs-home- per scope safety.
   ============================================ */

.tfs-home { font-family: var(--tfs-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif); color: #1A1A1A; line-height: 1.6; }
.tfs-home * { box-sizing: border-box; }
.tfs-home img { max-width: 100%; height: auto; display: block; }
.tfs-home a { color: #305473; text-decoration: none; transition: color 0.2s; }
.tfs-home a:hover { color: #E87722; }
.tfs-home .tfs-container { max-width: 1600px; margin: 0 auto; padding: 0 32px; }
.tfs-home section { padding: 96px 0; }
.tfs-home h1, .tfs-home h2, .tfs-home h3, .tfs-home h4 { color: #022442; line-height: 1.2; letter-spacing: -0.02em; }
.tfs-home .tfs-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: #E87722; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
.tfs-home .tfs-title { font-size: clamp(32px, 4vw, 48px); font-weight: 800; margin-bottom: 16px; }
.tfs-home .tfs-subtitle { font-size: 18px; color: #4A4A4A; max-width: 700px; margin-bottom: 48px; }
.tfs-home .tfs-btn { display: inline-flex; align-items: center; gap: 8px; padding: 16px 32px; font-size: 16px; font-weight: 700; border-radius: 4px; cursor: pointer; border: none; transition: all 0.2s; text-decoration: none; }
.tfs-home .tfs-btn-primary { background: #E87722; color: #FFFFFF; }
.tfs-home .tfs-btn-primary:hover { background: #C45F15; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,119,34,0.35); color: #FFFFFF; }
.tfs-home .tfs-btn-ghost { background: transparent; color: #FFFFFF; border: 2px solid #FFFFFF; }
.tfs-home .tfs-btn-ghost:hover { background: #FFFFFF; color: #022442; }

/* ===== HERO ===== */
.tfs-home-hero { position: relative; height: 88vh; min-height: 600px; overflow: hidden; display: flex; align-items: center; margin-top: -2rem; }
.tfs-home-hero-bg { position: absolute; inset: 0; z-index: 1; background-size: cover; background-position: center; }
.tfs-home-hero-video { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.5s; }
.tfs-home-hero-video.is-loaded { opacity: 1; }
.tfs-home-hero-overlay { position: absolute; inset: 0; z-index: 3; background: linear-gradient(135deg, rgba(2,36,66,0.85) 0%, rgba(2,36,66,0.55) 60%, rgba(2,36,66,0.75) 100%); }
.tfs-home-hero-content { position: relative; z-index: 4; color: #FFFFFF; max-width: 900px; }
.tfs-home-hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #E87722; margin-bottom: 24px; padding: 8px 14px; background: rgba(232,119,34,0.12); border: 1px solid rgba(232,119,34,0.3); border-radius: 100px; }
.tfs-home-hero h1 { font-size: clamp(40px, 5.5vw, 72px); font-weight: 800; line-height: 1.05; color: #FFFFFF; margin-bottom: 24px; max-width: 850px; }
.tfs-home-hero h1 span { color: #E87722; }
.tfs-home-hero-sub { font-size: clamp(16px, 1.4vw, 20px); color: #d0d6db; margin-bottom: 40px; max-width: 700px; line-height: 1.5; }
.tfs-home-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.tfs-home-hero-play { display: inline-flex; align-items: center; gap: 12px; color: #FFFFFF; font-weight: 700; cursor: pointer; padding: 8px; background: none; border: none; }
.tfs-home-hero-play-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.15); border: 2px solid #FFFFFF; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.tfs-home-hero-play-icon::before { content: '▶'; color: #FFFFFF; margin-left: 4px; }
.tfs-home-hero-play:hover .tfs-home-hero-play-icon { background: #E87722; border-color: #E87722; transform: scale(1.1); }
.tfs-home-hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 4; color: #FFFFFF; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; opacity: 0.7; animation: tfs-home-float 2s ease-in-out infinite; }
@keyframes tfs-home-float { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ===== COUNTER ===== */
.tfs-home-counter { background: #022442; color: #FFFFFF; padding: 64px 0; position: relative; overflow: hidden; }
.tfs-home-counter::before { content: ''; position: absolute; top: 0; right: 0; width: 8px; height: 100%; background: #E87722; }
.tfs-home-counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.tfs-home-counter-item { text-align: center; }
.tfs-home-counter-num { font-size: clamp(48px, 5vw, 72px); font-weight: 800; color: #E87722; line-height: 1; letter-spacing: -0.04em; margin-bottom: 8px; }
.tfs-home-counter-label { font-size: 14px; font-weight: 600; color: #d0d6db; text-transform: uppercase; letter-spacing: 1.5px; }

/* ===== TRUST ===== */
.tfs-home-trust { background: #F7F8F9; }
.tfs-home-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 48px; }
.tfs-home-trust-card { background: #FFFFFF; border: 1px solid #d0d6db; border-radius: 8px; padding: 32px 24px; text-align: center; transition: all 0.3s; position: relative; overflow: hidden; }
.tfs-home-trust-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: #E87722; transform: scaleX(0); transition: transform 0.3s; }
.tfs-home-trust-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(2,36,66,0.08); }
.tfs-home-trust-card:hover::before { transform: scaleX(1); }
.tfs-home-trust-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(232,119,34,0.1); color: #E87722; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 16px; font-weight: 800; }
.tfs-home-trust-title { font-size: 16px; font-weight: 800; color: #022442; margin-bottom: 8px; line-height: 1.3; }
.tfs-home-trust-meta { font-size: 13px; color: #4A4A4A; }

/* ===== SERVIZI GRID ===== */
.tfs-home-servizi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 48px; }
.tfs-home-card { background: #FFFFFF; border: 1px solid #d0d6db; border-radius: 8px; overflow: hidden; transition: all 0.3s; display: block; text-decoration: none; }
.tfs-home-card:hover { transform: translateY(-6px); border-color: #E87722; box-shadow: 0 16px 32px rgba(2,36,66,0.1); }
.tfs-home-card-img { width: 100%; height: 160px; object-fit: cover; background: #d0d6db; }
.tfs-home-card-body { padding: 16px 18px 20px; }
.tfs-home-card-title { font-size: 14px; font-weight: 700; color: #022442; line-height: 1.3; margin-bottom: 4px; }
.tfs-home-card-link { font-size: 12px; font-weight: 600; color: #E87722; }

/* ===== CATALOGO GRID ===== */
.tfs-home-catalogo { background: #F7F8F9; }
.tfs-home-catalogo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.tfs-home-catalogo-card { background: #FFFFFF; border: 1px solid #d0d6db; border-radius: 8px; overflow: hidden; transition: all 0.3s; text-decoration: none; }
.tfs-home-catalogo-card:hover { transform: translateY(-6px); border-color: #E87722; box-shadow: 0 16px 32px rgba(2,36,66,0.1); }
.tfs-home-catalogo-img { width: 100%; height: 200px; object-fit: cover; }
.tfs-home-catalogo-body { padding: 20px; }
.tfs-home-catalogo-title { font-size: 16px; font-weight: 700; color: #022442; line-height: 1.3; }

/* ===== BOSCH FOCUS ===== */
.tfs-home-bosch { background: linear-gradient(135deg, #022442 0%, #03365e 100%); color: #FFFFFF; position: relative; overflow: hidden; }
.tfs-home-bosch::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 8px; background: #E87722; }
.tfs-home-bosch-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tfs-home-bosch-text h2 { color: #FFFFFF; margin-bottom: 24px; font-size: clamp(32px, 4vw, 48px); }
.tfs-home-bosch-text h2 span { color: #E87722; }
.tfs-home-bosch-text p { color: #d0d6db; margin-bottom: 16px; font-size: 17px; line-height: 1.7; }
.tfs-home-bosch-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.15); border-bottom: 1px solid rgba(255,255,255,0.15); }
.tfs-home-bosch-num { font-size: 32px; font-weight: 800; color: #E87722; }
.tfs-home-bosch-stat-label { font-size: 12px; color: #d0d6db; text-transform: uppercase; letter-spacing: 1px; }
.tfs-home-bosch-video { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; cursor: pointer; box-shadow: 0 24px 48px rgba(0,0,0,0.4); }
.tfs-home-bosch-video img { width: 100%; height: 100%; object-fit: cover; }
.tfs-home-bosch-video-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(2,36,66,0.4), rgba(232,119,34,0.2)); display: flex; align-items: center; justify-content: center; }
.tfs-home-bosch-play { width: 96px; height: 96px; border-radius: 50%; background: #E87722; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 32px rgba(232,119,34,0.5); transition: transform 0.2s; }
.tfs-home-bosch-play::before { content: '▶'; color: #FFFFFF; font-size: 28px; margin-left: 6px; }
.tfs-home-bosch-video:hover .tfs-home-bosch-play { transform: scale(1.1); }

/* ===== SETTORI ===== */
.tfs-home-settori-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; margin-top: 48px; }
.tfs-home-settore-card { background: #FFFFFF; border: 1px solid #d0d6db; border-radius: 8px; overflow: hidden; transition: all 0.3s; text-decoration: none; }
.tfs-home-settore-card:hover { transform: translateY(-4px); border-color: #E87722; box-shadow: 0 12px 24px rgba(2,36,66,0.1); }
.tfs-home-settore-img { width: 100%; height: 140px; object-fit: cover; }
.tfs-home-settore-body { padding: 14px; text-align: center; }
.tfs-home-settore-title { font-size: 13px; font-weight: 700; color: #022442; }

/* ===== PARTNER CAROUSEL ===== */
.tfs-home-partner { background: #F7F8F9; }
.tfs-home-partner-track-wrap { overflow: hidden; margin-top: 48px; mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); }
.tfs-home-partner-track { display: flex; gap: 48px; animation: tfs-home-scroll 60s linear infinite; align-items: center; }
@keyframes tfs-home-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tfs-home-partner-logo { flex: 0 0 auto; font-weight: 800; font-size: 22px; color: #022442; letter-spacing: -0.5px; padding: 0 16px; white-space: nowrap; }

/* ===== CASE STUDY ===== */
.tfs-home-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.tfs-home-case-card { background: #FFFFFF; border-radius: 12px; overflow: hidden; transition: all 0.3s; border: 1px solid #d0d6db; display: flex; flex-direction: column; text-decoration: none; }
.tfs-home-case-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(2,36,66,0.12); border-color: #E87722; }
.tfs-home-case-img-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.tfs-home-case-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.tfs-home-case-card:hover .tfs-home-case-img { transform: scale(1.05); }
.tfs-home-case-tag { position: absolute; top: 16px; left: 16px; background: #E87722; color: #FFFFFF; padding: 6px 12px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.tfs-home-case-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.tfs-home-case-title { font-size: 20px; font-weight: 800; color: #022442; margin-bottom: 12px; line-height: 1.3; }
.tfs-home-case-desc { font-size: 15px; color: #4A4A4A; margin-bottom: 16px; line-height: 1.6; flex: 1; }
.tfs-home-case-meta { display: flex; gap: 16px; font-size: 12px; color: #8C8C8C; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; padding-top: 16px; border-top: 1px solid #d0d6db; }

/* ===== BLOG ===== */
.tfs-home-blog { background: #F7F8F9; }
.tfs-home-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.tfs-home-blog-card { background: #FFFFFF; border-radius: 8px; overflow: hidden; transition: all 0.3s; border: 1px solid #d0d6db; text-decoration: none; display: block; }
.tfs-home-blog-card:hover { transform: translateY(-6px); border-color: #E87722; box-shadow: 0 16px 32px rgba(2,36,66,0.1); }
.tfs-home-blog-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.tfs-home-blog-body { padding: 24px; }
.tfs-home-blog-cat { display: inline-block; font-size: 11px; font-weight: 700; color: #E87722; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.tfs-home-blog-title { font-size: 18px; font-weight: 700; color: #022442; margin-bottom: 12px; line-height: 1.3; }
.tfs-home-blog-excerpt { font-size: 14px; color: #4A4A4A; margin-bottom: 16px; line-height: 1.6; }
.tfs-home-blog-link { font-size: 13px; font-weight: 700; color: #E87722; }

/* ===== CTA ===== */
.tfs-home-cta { background: linear-gradient(135deg, #022442 0%, #03365e 100%); color: #FFFFFF; padding: 96px 0; position: relative; overflow: hidden; text-align: center; }
.tfs-home-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(232,119,34,0.15), transparent 50%); }
.tfs-home-cta-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.tfs-home-cta h2 { color: #FFFFFF; margin-bottom: 16px; font-size: clamp(32px, 4vw, 48px); }
.tfs-home-cta h2 span { color: #E87722; }
.tfs-home-cta p { color: #d0d6db; font-size: 18px; margin-bottom: 32px; }
.tfs-home-cta-phone { font-size: 28px; font-weight: 800; color: #E87722; margin-bottom: 24px; }
.tfs-home-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== MODAL VIDEO ===== */
.tfs-home-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 99999; display: none; align-items: center; justify-content: center; padding: 32px; }
.tfs-home-modal.is-open { display: flex; }
.tfs-home-modal-inner { width: 100%; max-width: 1280px; aspect-ratio: 16/9; position: relative; }
.tfs-home-modal video { width: 100%; height: 100%; border-radius: 8px; }
.tfs-home-modal-close { position: absolute; top: -48px; right: 0; color: #FFFFFF; background: none; border: none; font-size: 32px; cursor: pointer; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
  .tfs-home-servizi-grid { grid-template-columns: repeat(3, 1fr); }
  .tfs-home-catalogo-grid { grid-template-columns: repeat(2, 1fr); }
  .tfs-home-settori-grid { grid-template-columns: repeat(4, 1fr); }
  .tfs-home-counter-grid { grid-template-columns: repeat(2, 1fr); }
  .tfs-home-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .tfs-home-bosch-inner { grid-template-columns: 1fr; }
  .tfs-home-case-grid, .tfs-home-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .tfs-home section { padding: 64px 0; }
  .tfs-home-servizi-grid, .tfs-home-settori-grid { grid-template-columns: repeat(2, 1fr); }
  .tfs-home-catalogo-grid { grid-template-columns: 1fr; }
  .tfs-home-case-grid, .tfs-home-blog-grid { grid-template-columns: 1fr; }
  .tfs-home-counter-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .tfs-home-hero { height: 75vh; }
  .tfs-home-hero-video { display: none; }
}

/* Homepage full-width override v1.0 */
body.page-id-155 .site .content-area,
body.page-id-155 .entry-content,
body.page-id-155 .entry-content-wrap {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.page-id-155 .entry.single-entry { box-shadow: none !important; }
body.page-id-155 .content-area { margin-top: 0 !important; margin-bottom: 0 !important; }

/* Fix card uniformità: img fixed height + testo pinned al fondo */
.tfs-home-card {
  display: flex !important;
  flex-direction: column !important;
}
.tfs-home-card-img {
  height: 200px !important;
  object-fit: cover !important;
  flex-shrink: 0;
}
.tfs-home-card-body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
}

/* Fix card v2: Imagify wrappa img in <picture> con la class → vincolo img interna */
.tfs-home-card { display: flex !important; flex-direction: column !important; }
.tfs-home-card-img,
picture.tfs-home-card-img { display: block !important; height: 200px !important; flex-shrink: 0 !important; overflow: hidden; }
.tfs-home-card-img img,
picture.tfs-home-card-img img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
.tfs-home-card-body { flex: 1 1 auto !important; background: #FFFFFF !important; }

/* Fix universale Imagify <picture>: ogni grid img class può finire sul wrapper picture */
picture.tfs-home-catalogo-img,
picture.tfs-home-settore-img,
picture.tfs-home-blog-img,
picture.tfs-home-case-img { display: block !important; overflow: hidden; }
.tfs-home-catalogo-img img,
.tfs-home-settore-img img,
.tfs-home-blog-img img,
.tfs-home-case-img img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }

/* preserva height per-grid anche sul picture wrapper */
picture.tfs-home-catalogo-img { height: 200px !important; }
picture.tfs-home-settore-img { height: 140px !important; }
picture.tfs-home-blog-img { aspect-ratio: 16/9 !important; }
picture.tfs-home-case-img { aspect-ratio: 16/10 !important; height: 100% !important; }

/* card flex column → body sempre sotto, bianco */
.tfs-home-catalogo-card,
.tfs-home-settore-card,
.tfs-home-blog-card { display: flex !important; flex-direction: column !important; }
.tfs-home-catalogo-card > picture,
.tfs-home-settore-card > picture,
.tfs-home-blog-card > picture { flex-shrink: 0 !important; }

/* Case study: mostra immagine intera (logo Rexroth non tagliato) → contain */
.tfs-home-case-img img,
picture.tfs-home-case-img img { object-fit: contain !important; background: #FFFFFF; }

/* Case study cover come mockup (foto reali) */
.tfs-home-case-img img,
picture.tfs-home-case-img img { object-fit: cover !important; background: transparent !important; }

/* ============ NAV STYLE come mockup (Kadence header) ============ */
/* top-level link */
#site-navigation .primary-menu-container > ul > li.menu-item > a,
#site-navigation ul.menu > li.menu-item > a {
  color: #1a2733 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  position: relative;
  padding: 8px 0 !important;
}
#site-navigation ul.menu > li.menu-item > a::after {
  content: '' !important;
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 2px; background: #E87722;
  transform: scaleX(0);
  transition: transform 0.2s;
}
#site-navigation ul.menu > li.menu-item:hover > a { color: #E87722 !important; }
#site-navigation ul.menu > li.menu-item:hover > a::after { transform: scaleX(1); }
#site-navigation ul.menu > li.menu-item-has-children > a::before {
  content: '\25BE'; font-size: 10px; margin-left: 4px; opacity: 0.6; order: 2;
}

/* dropdown card */
#site-navigation ul.sub-menu {
  background: #FFFFFF !important;
  border: 1px solid #d0d6db !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 48px rgba(2,36,66,0.12) !important;
  padding: 12px 0 !important;
}
#site-navigation ul.sub-menu li.menu-item > a {
  display: block;
  padding: 10px 20px !important;
  color: #1a2733 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  white-space: nowrap;
  border-left: 3px solid transparent !important;
  transition: all 0.15s;
}
#site-navigation ul.sub-menu li.menu-item > a:hover {
  background: #f7f8f9 !important;
  color: #E87722 !important;
  border-left-color: #E87722 !important;
}

/* Servizi (1033): dropdown 2-col largo come mockup */
#site-navigation .menu-item-1033 > ul.sub-menu {
  min-width: 480px !important;
  columns: 2;
  column-gap: 8px;
}
#site-navigation .menu-item-1033 > ul.sub-menu > li { break-inside: avoid; }

/* "Tutti i ..." ultimo item evidenziato accent uppercase */
#site-navigation ul.sub-menu li.menu-item:last-child > a {
  font-weight: 800 !important;
  color: #E87722 !important;
  text-transform: uppercase;
  font-size: 12px !important;
  letter-spacing: 1px;
}

/* ============ TFS CUSTOM HEADER (replica mockup) ============ */
.tfs-bh { background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid #d0d6db; padding: 12px 0; position: sticky; top: 0; z-index: 999; }
.tfs-bh-inner { max-width: 1340px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.tfs-bh-logo { display: flex; align-items: center; flex-shrink: 0; }
.tfs-bh-logo img { height: 56px; width: auto; display: block; }
.tfs-mainnav { display: flex; gap: 22px; font-size: 14px; font-weight: 600; align-items: center; margin: 0; padding: 0; list-style: none; }
.tfs-mainnav > li { position: relative; list-style: none; margin: 0; }
.tfs-mainnav > li > a { color: #1a2733; position: relative; padding: 8px 0; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; line-height: 1.2; }
.tfs-mainnav > li > a::after { content: ''; position: absolute; bottom: 2px; left: 0; right: 0; height: 2px; background: #E87722; transform: scaleX(0); transition: transform 0.2s; }
.tfs-mainnav > li:hover > a { color: #E87722; }
.tfs-mainnav > li:hover > a::after { transform: scaleX(1); }
.tfs-hasdd > a::after { } /* underline gestito sopra */
.tfs-hasdd > a { gap: 5px; }
.tfs-hasdd > a::before { content: '\25BE'; font-size: 10px; opacity: 0.55; order: 2; }

/* dropdown */
.tfs-dd { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px); min-width: 240px; background: #FFFFFF; border: 1px solid #d0d6db; border-radius: 8px; box-shadow: 0 16px 48px rgba(2,36,66,0.12); padding: 12px 0; opacity: 0; visibility: hidden; transition: all 0.2s; list-style: none; margin: 0; }
.tfs-hasdd:hover .tfs-dd { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.tfs-dd::before { content: ''; position: absolute; top: -8px; left: 50%; width: 14px; height: 14px; background: #FFFFFF; border-top: 1px solid #d0d6db; border-left: 1px solid #d0d6db; transform: translateX(-50%) rotate(45deg); }
.tfs-dd li { list-style: none; margin: 0; }
.tfs-dd li a { display: block; padding: 10px 20px; color: #1a2733; font-size: 13px; font-weight: 600; white-space: nowrap; border-left: 3px solid transparent; transition: all 0.15s; text-decoration: none; }
.tfs-dd li a:hover { background: #f7f8f9; color: #E87722; border-left-color: #E87722; }
.tfs-dd-div { border-top: 1px solid #d0d6db; margin: 8px 0; height: 0; padding: 0; }
.tfs-dd-all { font-weight: 800 !important; color: #E87722 !important; font-size: 12px !important; text-transform: uppercase; letter-spacing: 1px; }
/* servizi wide 2-col */
.tfs-dd-wide { min-width: 480px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; padding: 16px; }
.tfs-dd-wide .tfs-dd-fullspan { grid-column: 1 / -1; }
.tfs-dd-wide::before { left: 50%; }

/* actions destra */
.tfs-bh-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.tfs-lang { display: flex; gap: 4px; font-size: 11px; font-weight: 700; }
.tfs-lang a { color: #6b7785; padding: 4px 6px; border-radius: 3px; text-transform: uppercase; text-decoration: none; }
.tfs-lang a.active { background: #022442; color: #FFFFFF; }
.tfs-bh-phone { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.tfs-bh-phone-ic { width: 36px; height: 36px; border-radius: 50%; background: #022442; color: #E87722; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.tfs-bh-phone-lbl { display: block; font-size: 10px; font-weight: 600; color: #6b7785; text-transform: uppercase; letter-spacing: 0.5px; }
.tfs-bh-phone-num { display: block; font-size: 16px; font-weight: 800; color: #022442; }
.tfs-bh-cta { background: #E87722; color: #FFFFFF; padding: 12px 20px; font-size: 14px; font-weight: 700; border-radius: 6px; text-decoration: none; transition: all 0.2s; white-space: nowrap; }
.tfs-bh-cta:hover { background: #cf6418; color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,119,34,0.35); }

/* burger nascosto desktop */
.tfs-bh-burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.tfs-bh-burger span { width: 26px; height: 3px; background: #022442; border-radius: 2px; transition: all 0.2s; }
.tfs-bh-burger.is-open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.tfs-bh-burger.is-open span:nth-child(2){ opacity: 0; }
.tfs-bh-burger.is-open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* responsive */
@media (max-width: 1200px) {
  .tfs-bh-phone-lbl, .tfs-lang { display: none; }
}
@media (max-width: 1100px) {
  .tfs-bh-burger { display: flex; order: 3; }
  .tfs-bh-actions { display: none; }
  .tfs-mainnav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #FFFFFF; border-bottom: 1px solid #d0d6db; box-shadow: 0 16px 32px rgba(2,36,66,0.1); padding: 8px 0; display: none; }
  .tfs-mainnav.is-open { display: flex; }
  .tfs-mainnav > li > a { padding: 14px 24px; }
  .tfs-hasdd > a::before { margin-left: auto; }
  .tfs-dd { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 8px; min-width: 0; display: none; background: #f7f8f9; }
  .tfs-hasdd.dd-open .tfs-dd { display: block; }
  .tfs-dd-wide { display: none; grid-template-columns: 1fr; }
  .tfs-hasdd.dd-open .tfs-dd-wide { display: grid; }
  .tfs-dd::before { display: none; }
  .tfs-dd li a { padding: 12px 40px; white-space: normal; }
}

/* Neutralizza wrapper Kadence masthead attorno header custom */
header#masthead.site-header { border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; min-height: 0 !important; }
header#masthead.site-header > .site-header-wrap > *:not(.tfs-bh) { display: none !important; }

/* Hero: testo centrato + strong bianco */
.tfs-home-hero-content { text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
.tfs-home-hero h1 { margin-left: auto !important; margin-right: auto !important; }
.tfs-home-hero-sub { margin-left: auto !important; margin-right: auto !important; text-align: center !important; }
.tfs-home-hero-sub strong { color: #FFFFFF !important; }
.tfs-home-hero-cta { justify-content: center !important; }
.tfs-home-hero-eyebrow { margin-left: auto !important; margin-right: auto !important; }

/* strong/b bianco su sezioni scure (override typography.css global) */
.tfs-home-hero strong, .tfs-home-hero b, .tfs-home-bosch strong, .tfs-home-bosch b, .tfs-home-counter strong, .tfs-home-counter b, .tfs-home-cta strong, .tfs-home-cta b { color: #FFFFFF !important; }

/* lang placeholder in arrivo */
.tfs-lang-soon { opacity: 0.4; cursor: not-allowed; }

/* ============ MOBILE HEADER v2 — lingue + telefono + CTA nel menu ============ */
@media (max-width: 1100px) {
  .tfs-bh-inner { flex-wrap: wrap; row-gap: 0; }
  .tfs-bh-logo { margin-right: auto; }
  .tfs-bh-burger { display: flex; order: 2; }

  /* nav: in-flow full-width (non più absolute) */
  .tfs-mainnav {
    order: 5; flex-basis: 100%; width: 100%;
    position: static; transform: none; top: auto; left: auto; right: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #FFFFFF; border-top: 1px solid #d0d6db; box-shadow: none;
    padding: 4px 0; margin-top: 12px; display: none;
  }
  .tfs-mainnav.is-open { display: flex; }
  .tfs-mainnav > li > a { padding: 14px 4px; font-size: 16px; }

  /* pannello azioni: sotto il menu, visibile quando menu aperto */
  .tfs-bh-actions { order: 6; }
  .tfs-mainnav.is-open ~ .tfs-bh-actions {
    display: flex !important; flex-basis: 100%; width: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 18px 4px 6px; border-top: 1px solid #d0d6db; margin: 0;
  }
  .tfs-mainnav:not(.is-open) ~ .tfs-bh-actions { display: none !important; }

  /* lingue: forza visibile + touch-friendly */
  .tfs-mainnav.is-open ~ .tfs-bh-actions .tfs-lang {
    display: flex !important; justify-content: center; gap: 10px;
  }
  .tfs-mainnav.is-open ~ .tfs-bh-actions .tfs-lang a {
    font-size: 15px; padding: 8px 14px; border: 1px solid #d0d6db; min-width: 44px; text-align: center;
  }
  /* telefono: full width centrato, label visibile */
  .tfs-mainnav.is-open ~ .tfs-bh-actions .tfs-bh-phone { justify-content: center; }
  .tfs-mainnav.is-open ~ .tfs-bh-actions .tfs-bh-phone-lbl { display: block !important; }
  /* CTA: full width, touch target grande */
  .tfs-mainnav.is-open ~ .tfs-bh-actions .tfs-bh-cta { text-align: center; padding: 14px 20px; font-size: 16px; }
}
@media (max-width: 600px) {
  .tfs-bh-logo img { height: 44px; }
}

/* ============ CASE STUDY layout (.tfs-cs-*) ============ */
.tfs-cs { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.tfs-cs-hero { text-align: center; padding: 48px 0 32px; }
.tfs-cs-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #E87722; background: rgba(232,119,34,0.1); border: 1px solid rgba(232,119,34,0.3); border-radius: 100px; padding: 7px 16px; margin-bottom: 20px; }
.tfs-cs-hero h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; color: #022442; line-height: 1.1; margin: 0 0 24px; }
.tfs-cs-hero h1 span { color: #E87722; }
.tfs-cs-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; font-size: 14px; color: #305473; }
.tfs-cs-meta span strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #99a8b6; margin-bottom: 2px; }
.tfs-cs-cover { margin: 8px 0 40px; border-radius: 12px; overflow: hidden; box-shadow: 0 16px 40px rgba(2,36,66,0.12); }
.tfs-cs-cover img { width: 100%; height: auto; display: block; }
.tfs-cs-body { max-width: 820px; margin: 0 auto; }
.tfs-cs-intro { font-size: 19px; line-height: 1.6; color: #305473; font-weight: 500; margin-bottom: 32px; }
.tfs-cs-body h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: #022442; margin: 40px 0 16px; padding-left: 16px; border-left: 4px solid #E87722; }
.tfs-cs-body p { font-size: 17px; line-height: 1.75; color: #2b3a48; margin-bottom: 16px; }
.tfs-cs-fig { margin: 28px 0; border-radius: 10px; overflow: hidden; box-shadow: 0 12px 28px rgba(2,36,66,0.1); }
.tfs-cs-fig img { width: 100%; height: auto; display: block; }
.tfs-cs-list { margin: 16px 0 8px; padding-left: 0; list-style: none; }
.tfs-cs-list li { position: relative; padding: 8px 0 8px 30px; font-size: 16px; line-height: 1.6; color: #2b3a48; border-bottom: 1px solid #eef1f3; }
.tfs-cs-list li::before { content: '→'; position: absolute; left: 0; color: #E87722; font-weight: 700; }
.tfs-cs-links { margin: 16px 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tfs-cs-links li a { display: block; padding: 14px 18px; background: #f7f8f9; border: 1px solid #d0d6db; border-left: 3px solid #E87722; border-radius: 8px; color: #022442; font-weight: 600; font-size: 15px; text-decoration: none; transition: all 0.15s; }
.tfs-cs-links li a:hover { background: #fff; border-color: #E87722; transform: translateX(3px); }
.tfs-cs-cta { max-width: 820px; margin: 48px auto 56px; padding: 36px; text-align: center; background: linear-gradient(135deg, #022442, #03365e); border-radius: 14px; color: #fff; }
.tfs-cs-cta h3 { font-size: 26px; font-weight: 800; color: #fff; margin: 0 0 8px; }
.tfs-cs-cta p { color: #d0d6db; margin: 0 0 22px; }
.tfs-cs-cta-btn { display: inline-block; background: #E87722; color: #fff; font-weight: 700; padding: 14px 28px; border-radius: 8px; text-decoration: none; transition: all 0.2s; }
.tfs-cs-cta-btn:hover { background: #cf6418; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(232,119,34,0.4); color: #fff; }
@media (max-width: 600px) { .tfs-cs-hero { padding: 32px 0 24px; } .tfs-cs-cta { padding: 28px 20px; } }

/* nav top-level: niente wrap (es. News & Events) */
.tfs-mainnav > li > a { white-space: nowrap; }
.tfs-mainnav { gap: 18px; }

/* ===== Fix hero mobile overlap (13/6/2026) — altezza fissa 75vh troncava il contenuto ===== */
@media (max-width: 768px) {
  .tfs-home-hero {
    height: auto !important;
    min-height: 70vh;
    padding: 40px 0 56px;
  }
  .tfs-home-hero-scroll { display: none !important; }
}
