/* ===== Canvas Deck (sobria): canvas chiaro + card scura con foto di sfondo.
           Le URL della foto sono le stesse hardcoded in home_v2.php per il preload. ===== */
        .tf-canvas {
          /* Il canvas contiene deck + riga Trustpilot + box app: sfuma nel bianco in fondo
             per evitare lo stacco netto con la sezione successiva. */
          background: linear-gradient(180deg, #f2f0ea 0%, #f2f0ea calc(100% - 180px), #ffffff 100%);
          /* hero full-bleed: nessun padding laterale/superiore, il deck arriva ai bordi */
          padding: 0 0 34px;
        }
        .tf-canvas #app-download { padding-top: 10px; }
        .tf-deck {
          position: relative;
          width: 100%;
          display: flex;
          flex-direction: column;
          /* Hero full-bleed a tutta altezza viewport: edge-to-edge, nessuna cornice. */
          min-height: 100vh;
          min-height: 100svh;
          border-radius: 0;
          /* niente overflow:hidden — i dropdown del picker (calendario, suggerimenti)
             devono poter uscire dalla card; il background rispetta comunque il radius */
          isolation: isolate;
          z-index: 10;
          background:
            linear-gradient(to top, rgba(6,7,10,.55) 0%, rgba(8,9,13,.15) 45%, rgba(5,6,9,.42) 100%),
            radial-gradient(1000px 560px at 50% 34%, rgba(5,6,9,.5), transparent 72%),
            linear-gradient(100deg, rgba(5,6,9,.7) 0%, rgba(5,6,9,.42) 38%, rgba(5,6,9,.1) 72%, rgba(5,6,9,.02) 100%),
            var(--tf-showcase-hero,url('https://images.transfeero.com/www.transfeero.com/2026/03/woman_inside_transfeero_car.png/w=1990,h=1330,fit=cover,dpr=1,format=auto')) 50% 24% / cover no-repeat;
          background-color: #0a0b0e;
          /* niente box-shadow: il deck e' edge-to-edge, non piu' una card flottante */
        }
        .tf-deck::after {
          content: "";
          position: absolute;
          inset: 0;
          pointer-events: none;
          z-index: 5;
          /* nessuna cornice interna: hero full-bleed senza bordo */
        }
        /* Hero "compact" (pagine corporate/testo senza picker): ~65vh invece di full-screen,
           cosi' i contenuti fanno capolino sotto la piega. Solo desktop/tablet: su mobile la
           media query piu' sotto porta comunque il deck ad altezza-contenuto. */
        @media (min-width: 761px) {
          .tf-deck--compact { min-height: clamp(480px, 65svh, 760px); }
        }

        /* ===== Header dentro la card ===== */
        .tfd-header {
          position: relative;
          z-index: 6;
          display: flex;
          align-items: center;
          gap: 16px;
          padding: 22px 28px 0;
        }
        .tfd-z { flex: 1 1 0; min-width: 0; display: flex; align-items: center; }
        .tfd-z-right { justify-content: flex-end; gap: 18px; }
        .tfd-logo { display: inline-flex; align-items: center; }
        .tfd-logo-img { width: 214px; height: auto; display: block; }

        /* Nav centrale: la pill glass è l'unico elemento in vetro del design */
        .tfd-nav {
          display: inline-flex;
          align-items: center;
          gap: 2px;
          padding: 5px;
          border-radius: 999px;
          background: rgba(9,10,13,.38);
          -webkit-backdrop-filter: blur(14px) saturate(1.15);
          backdrop-filter: blur(14px) saturate(1.15);
          border: 1px solid rgba(255,255,255,.11);
          white-space: nowrap;
        }
        .tfd-navlist { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
        .tfd-navlist > li > a,
        .tfd-nav .tfd-nav-a {
          display: inline-flex;
          align-items: center;
          gap: 5px;
          color: rgba(255,255,255,.78);
          font-size: 14px;
          font-weight: 500;
          line-height: 1;
          padding: 10px 15px;
          border-radius: 999px;
          transition: background .18s ease, color .18s ease;
        }
        .tfd-navlist > li > a:hover,
        .tfd-nav .tfd-nav-a:hover { background: rgba(255,255,255,.07); color: #fff; }
        .tfd-navlist > li.current-menu-item > a,
        .tfd-navlist > li.current_page_item > a {
          background: rgba(255,255,255,.13);
          color: #fff;
          font-weight: 600;
        }
        .tfd-caret { width: 12px; height: 12px; opacity: .65; }
        .tfd-biz { position: relative; }
        .tfd-biz-btn { background: none; border: 0; font-family: inherit; cursor: pointer; }
        /* Dropdown "Business" in linea col nuovo stile: pannello dark glass come la pill nav */
        .tfd-biz-menu {
          position: absolute;
          right: 0;
          top: calc(100% + 10px);
          min-width: 236px;
          padding: 8px;
          border-radius: 16px;
          background: rgba(16,17,22,.92);
          -webkit-backdrop-filter: blur(20px) saturate(1.15);
          backdrop-filter: blur(20px) saturate(1.15);
          border: 1px solid rgba(255,255,255,.12);
          box-shadow: 0 24px 48px -20px rgba(0,0,0,.7), 0 4px 14px rgba(0,0,0,.35);
          z-index: 50;
        }
        .tfd-biz-item {
          display: flex;
          align-items: center;
          gap: 10px;
          padding: 10px 12px;
          border-radius: 10px;
          color: rgba(255,255,255,.82);
          font-size: 14px;
          font-weight: 500;
          text-decoration: none;
          transition: background .16s ease, color .16s ease;
        }
        .tfd-biz-item:hover { background: rgba(255,255,255,.07); color: #fff; }
        /* icona dello stesso colore del testo (copre sia <i> FA sia <svg> in modalita' SVG, fill:currentColor) */
        .tfd-biz-item > i, .tfd-biz-item > svg { color: inherit; width: 18px; height: 18px; text-align: center; flex: 0 0 18px; }

        /* Azioni a destra: semplici, niente vetro */
        .tfd-lang-wrap { position: relative; }
        .tfd-lang {
          display: inline-flex;
          align-items: center;
          gap: 7px;
          height: 44px; /* stessa altezza della pill nav: allineamento ottico */
          color: rgba(255,255,255,.82);
          font-size: 13.5px;
          font-weight: 500;
          line-height: 1;
          background: none;
          border: 0;
          font-family: inherit;
          cursor: pointer;
          text-transform: uppercase;
          padding: 0 4px;
          transition: color .18s ease;
        }
        .tfd-lang:hover { color: #fff; }
        .tfd-signin {
          display: inline-flex;
          align-items: center;
          gap: 6px;
          height: 38px;
          padding: 0 15px;
          border-radius: 10px;
          background: #fff;
          color: #101014;
          font-size: 13.5px;
          font-weight: 600;
          line-height: 1;
          box-shadow: 0 6px 18px -10px rgba(0,0,0,.5);
          transition: background .18s ease;
        }
        .tfd-signin:hover { background: #f2f0ea; }
        .tfd-burger {
          display: none;
          width: 40px;
          height: 40px;
          border-radius: 10px;
          color: #fff;
          background: none;
          border: 1px solid rgba(255,255,255,.18);
          align-items: center;
          justify-content: center;
        }

        /* ===== Hero dentro la card (markup in home_v2.php) — testi centrati ===== */
        .tfd-hero {
          position: relative;
          z-index: 3;
          /* la zona testi assorbe lo spazio sopra e appoggia i testi sul picker:
             il gruppo testi+picker resta centrato verticalmente nella card */
          flex: 1 1 0;
          display: flex;
          flex-direction: column;
          justify-content: flex-end;
          padding: 24px 48px 32px;
          width: 100%;
          max-width: 900px;
          margin: 0 auto;
          text-align: center;
        }
        .tfd-h1 {
          color: #fff;
          font-size: clamp(34px, 3.8vw, 50px);
          font-weight: 700;
          line-height: 1.07;
          letter-spacing: -0.02em;
          text-shadow: 0 1px 18px rgba(0,0,0,.3);
          margin: 0 auto;
          max-width: 18ch;
        }
        .tfd-sub {
          margin: 18px auto 0;
          color: rgba(255,255,255,.74);
          font-size: 17px;
          line-height: 1.6;
          max-width: 540px;
          text-shadow: 0 1px 12px rgba(0,0,0,.25);
        }
        /* Fascia statistiche nell'hero (pagine corporate): numeri + label, separatori sottili */
        .tfd-stats { display: flex; justify-content: center; align-items: stretch; margin: 26px auto 0; }
        .tfd-stat { text-align: center; padding: 2px 36px; }
        .tfd-stat + .tfd-stat { border-left: 1px solid rgba(255,255,255,.22); }
        .tfd-stat-v { font-size: 30px; font-weight: 700; color: #fff; line-height: 1.1; }
        .tfd-stat-l { margin-top: 6px; font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.6); letter-spacing: .01em; }
        .tfd-facts {
          /* sotto il picker, centrata */
          margin: 20px 0 0;
          color: rgba(255,255,255,.56);
          font-size: 13.5px;
          font-weight: 500;
          letter-spacing: .01em;
          line-height: 1.5;
          text-align: center;
        }

        /* ===== PLACEHOLDER picker orizzontale (statico, in attesa del widget reale) =====
           Lo spazio extra della card full-height è distribuito 1:3 attorno al picker:
           resta in zona centrale, con tanta aria sotto per i dropdown del widget vero. */
        .tfd-bar-wrap {
          position: relative;
          z-index: 4;
          padding: 0 28px;
          flex: 1 1 auto;
          display: flex;
          flex-direction: column;
        }
        .tfd-bar-wrap::after { content: ""; flex: 1 1 0; min-height: 36px; }
        .tfd-bar {
          width: 100%;
          max-width: 1300px;
          margin: 0 auto;
          background: #fff;
          border-radius: 18px;
          padding: 14px 16px 16px;
          text-align: left;
          box-shadow:
            0 24px 48px -26px rgba(5,6,9,.5),
            0 6px 16px -10px rgba(5,6,9,.3);
        }
        /* CTA bianca centrata per gli hero senza picker (pagine corporate) */
        .tfd-cta {
          display: inline-flex;
          align-items: center;
          gap: 9px;
          height: 48px;
          padding: 0 26px;
          border-radius: 12px;
          background: #fff;
          color: #101014;
          font-size: 15px;
          font-weight: 600;
          line-height: 1;
          margin: 10px auto 0;
          box-shadow: 0 10px 28px -14px rgba(0,0,0,.55);
          transition: background .18s ease, transform .18s ease;
        }
        .tfd-cta:hover { background: #f2f0ea; transform: translateY(-1px); }
        .tfd-cta svg { width: 16px; height: 16px; flex: none; }

        /* Contenitore del widget React orizzontale */
        .tfd-picker { width: 100%; max-width: 1300px; margin: 0 auto; }
        /* Variante "box": picker in colonna, il widget responsive si impila da solo */
        .tfd-picker--box { max-width: none; }
        .tfd-picker--box .tfd-skel-cells { flex-wrap: wrap; }
        .tfd-picker--box .tfd-skel-cell,
        .tfd-picker--box .tfd-skel-cell-sm { flex: 1 1 100%; height: 52px; }
        .tfd-picker--box .tfd-skel-go { flex: 1 1 100%; }

        /* ===== Deck "plain": fondo scuro pieno al posto della foto ===== */
        .tf-deck--plain {
          background:
            radial-gradient(900px 480px at 80% 18%, rgba(249,175,0,.05), transparent 65%),
            linear-gradient(180deg, #111116 0%, #0a0b0e 100%);
          background-color: #0a0b0e;
        }

        /* ===== Deck "bar": solo la header nel box nero arrotondato, niente hero ===== */
        /* Padding simmetrici: sopra il contenuto = sotto (canvas + header). */
        /* header-only: barra attaccata ai bordi, nessun margine bianco intorno */
        .tf-canvas--bar { background: #fff; padding: 0; }
        .tf-deck--bar { min-height: 0; }
        .tf-deck--bar .tfd-header { padding-bottom: 22px; }
        @media (min-width: 1700px) {
          .tf-deck--bar .tfd-header { padding-bottom: 26px; }
        }
        @media (max-width: 760px) {
          .tf-deck--bar { min-height: 0; }
          .tf-deck--bar .tfd-header { padding-bottom: 16px; }
        }

        /* ===== Hero airport nel deck: testo+picker a sinistra, foto quadrata a destra ===== */
        .tfd-air {
          position: relative;
          z-index: 3;
          flex: 1 1 auto;
          width: 100%;
          max-width: 1500px;
          margin: 0 auto;
          padding: 30px 24px 42px;
          display: flex;
          flex-direction: column;
          justify-content: center;
          gap: 28px;
        }
        @media (min-width: 1024px) {
          .tfd-air { flex-direction: row; align-items: center; gap: 48px; padding: 30px 32px 46px; }
          .tfd-air-copy { flex: 1 1 0; min-width: 0; }
          .tfd-air-photo { flex: 0 0 auto; }
        }
        .tfd-air-h1 {
          color: #fff;
          font-size: clamp(30px, 3vw, 44px);
          font-weight: 700;
          line-height: 1.1;
          letter-spacing: -0.02em;
          margin: 0;
        }
        .tfd-air-sub {
          margin: 14px 0 0;
          color: rgba(255,255,255,.74);
          font-size: 17px;
          line-height: 1.6;
          max-width: 560px;
        }
        .tfd-air .tfd-picker--box { margin: 26px 0 0; padding: 0; }
        .tfd-air-photo img { box-shadow: 0 24px 48px -26px rgba(0,0,0,.6); }
        /* Skeleton a barra (stesso ingombro del widget, dentro una .tfd-bar bianca) */
        .tfd-skel-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
        .tfd-skel-tab { height: 34px; width: 112px; border-radius: 9px; background: #eceae2; }
        .tfd-skel-tab-2 { background: #f3f1ea; }
        .tfd-skel-cells { display: flex; gap: 10px; }
        .tfd-skel-cell { height: 54px; flex: 1 1 0; border-radius: 12px; background: #f1efe8; }
        .tfd-skel-cell-sm { flex: 0 1 150px; }
        .tfd-skel-go { height: 54px; flex: 0 0 170px; border-radius: 12px; background: #101014; opacity: .9; }

        /* Riga Trustpilot sobria sotto la card, sul canvas chiaro */
        .tfd-below {
          width: 100%;
          display: flex;
          flex-wrap: wrap;
          align-items: center;
          justify-content: center;
          gap: 9px;
          padding: 18px 16px 22px;
        }
        .tfd-below .tfd-tp-excellent { font-size: 13.5px; font-weight: 600; color: #1d1b15; }
        .tfd-below .tfd-stars { display: inline-flex; align-items: center; gap: 2px; }
        .tfd-below .tfd-stars svg { width: 14px; height: 14px; display: block; }
        .tfd-below .tfd-tp-meta { font-size: 13px; color: #8a8476; }
        .tfd-below .tfd-tp-meta strong { font-weight: 600; color: #1d1b15; }

        /* ===== How it works (versione home, sobria — markup in home_v2.php) ===== */
        .tfd-hiw-wrap { background: #fff; }
        .tfd-hiw { background: #f2f0ea; border-radius: 24px; padding: 44px 48px 46px; margin: 44px 0; }
        .tfd-hiw-title { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; color: #14120d; margin: 0 0 34px; }
        .tfd-hiw-steps { display: grid; grid-template-columns: repeat(3, 1fr); }
        .tfd-hiw-step { padding: 0 32px; border-left: 1px solid rgba(24,20,10,.12); }
        .tfd-hiw-step:first-child { border-left: none; padding-left: 0; }
        .tfd-hiw-step:last-child { padding-right: 0; }
        .tfd-hiw-n { display: block; font-size: 13px; font-weight: 700; color: #c98d00; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
        .tfd-hiw-step h3 { font-size: 16.5px; font-weight: 700; color: #14120d; margin: 0 0 8px; }
        .tfd-hiw-step p { font-size: 14.5px; line-height: 1.6; color: #6f6a5c; margin: 0; }
        @media (max-width: 900px) {
          .tfd-hiw { padding: 30px 24px; margin: 26px 0; }
          .tfd-hiw-steps { grid-template-columns: 1fr; gap: 22px; }
          .tfd-hiw-step { border-left: none; border-top: 1px solid rgba(24,20,10,.12); padding: 22px 0 0; }
          .tfd-hiw-step:first-child { border-top: none; padding-top: 0; }
          .tfd-hiw-title { font-size: 22px; margin-bottom: 22px; }
        }

        /* ===== Mappa stilizzata nel banner app: decorativa, statica, quasi trasparente ===== */
        .tfd-app-map { position: absolute; inset: 0; width: 100%; height: 100%; }

        /* ===== Footer full-bleed come la hero: edge-to-edge, nessuna cornice, su desktop e mobile.
           ">" obbligatorio: dentro #page ci sono anche i footer delle card recensioni Trustpilot. ===== */
        #page > footer {
          margin: 0;
          border-radius: 0;
          box-shadow: none;
        }

        
        /* ===== Responsive ===== */
        @media (min-width: 1700px) {
          /* Su schermi molto larghi: solo un filo più di aria */
          .tfd-header { padding: 26px 40px 0; }
          .tfd-hero { padding: 24px 64px 38px; }
        }
        @media (max-width: 1280px) {
          .tfd-logo-img { width: 176px; }
          .tfd-navlist > li > a, .tfd-nav .tfd-nav-a { font-size: 13px; padding: 9px 12px; }
          .tfd-signin { padding: 0 13px; }
        }
        @media (max-width: 1100px) {
          .tfd-nav { display: none; }
          .tfd-burger { display: inline-flex; }
          .tfd-z-right { gap: 12px; }
          /* logo fluido in zona burger: grande sui mobile larghi, si riduce sugli stretti */
          .tfd-logo-img { width: clamp(150px, 12vw + 115px, 215px); }
        }
        @media (max-width: 880px) {
          .tfd-lang-wrap { display: none; }
        }
        @media (max-width: 760px) {
          /* mobile: hero full-bleed, niente cornice ne' angoli arrotondati */
          .tf-canvas { padding: 0 0 20px; }
          .tf-deck {
            border-radius: 0;
            /* mobile: hero ad altezza contenuto (non full screen) e layer piu scuro */
            min-height: 0;
            background:
              linear-gradient(to top, rgba(6,7,10,.8) 0%, rgba(8,9,13,.48) 48%, rgba(5,6,9,.62) 100%),
              var(--tf-showcase-hero,url('https://images.transfeero.com/www.transfeero.com/2026/03/woman_inside_transfeero_car.png/w=750,h=1150,fit=cover,dpr=1,format=auto')) 50% 20% / cover no-repeat;
            background-color: #0a0b0e;
          }
          .tfd-header { padding: 16px 16px 0; gap: 10px; }
          .tfd-signin { height: 36px; padding: 0 13px; }
          .tfd-z-right { gap: 10px; }
          .tfd-hero { padding: 52px 18px 20px; max-width: none; } /* piu aria tra logo e titolo */
          .tfd-h1 { font-size: 31px; max-width: none; }
          .tfd-sub { font-size: 15.5px; }
          .tfd-facts { font-size: 12.5px; }
          .tfd-stats { margin-top: 20px; }
          .tfd-stat { padding: 0 16px; }
          .tfd-stat-v { font-size: 22px; }
          .tfd-stat-l { font-size: 11px; }
          .tfd-bar-wrap { padding: 0 14px; }
          .tfd-bar { border-radius: 16px; padding: 12px; }
          .tfd-bar-wrap::after { min-height: 20px; }
          .tfd-skel-cells { flex-wrap: wrap; }
          .tfd-skel-cell, .tfd-skel-cell-sm { flex: 1 1 100%; height: 48px; }
          .tfd-skel-go { flex: 1 1 100%; }
          .tfd-below { padding: 14px 10px 18px; gap: 8px; }
        }