/* 4390 Taxi Firenze - Taxi Move, sezione richiamo per la home (v2)
   Ogni colore e misura passa da una variabile: il pannello di Elementor le sovrascrive una per una. */

.tmf{
  --tmf-navy:var(--e-global-color-primary,#243267);
  --tmf-orange:var(--e-global-color-secondary,#F79021);
  /* colori: tema blu (predefinito) */
  --tmf-bg:var(--tmf-navy);
  --tmf-eyebrow:var(--tmf-orange);
  --tmf-title:#fff;
  --tmf-hl:var(--tmf-orange);
  --tmf-text:rgba(255,255,255,.86);
  --tmf-b1-bg:var(--tmf-orange); --tmf-b1-fg:#fff;
  --tmf-b1h-bg:#fff;             --tmf-b1h-fg:var(--tmf-navy);
  --tmf-b2-fg:#fff;
  --tmf-b2h-bg:#fff;             --tmf-b2h-fg:var(--tmf-navy);
  --tmf-tk-bg:var(--tmf-orange); --tmf-tk-fg:#fff; --tmf-tk-dot:var(--tmf-navy);
  --tmf-ic-bg:var(--tmf-orange); --tmf-ic-fg:#fff;
  --tmf-ic2-bg:#fff;             --tmf-ic2-fg:var(--tmf-navy);
  --tmf-trail:var(--tmf-orange);
  --tmf-move:#fff; --tmf-move-op:.1;
  --tmf-city-op:.16; --tmf-city-rot:6deg;
  --tmf-shadow:rgba(0,0,0,.42);
  /* misure */
  --tmf-maxw:1140px;
  --tmf-pad-t:100px;
  --tmf-gap-b:70px;
  --tmf-vis-h:560px;
  --tmf-phone-h:500px; --tmf-phone-k:1; --tmf-phone-rot:-7deg;
  --tmf-car-w:92%;     --tmf-car-k:1;
  --tmf-store-h:46px;
  --tmf-radius:0px;

  position:relative;overflow:hidden;overflow:clip;background:var(--tmf-bg);color:var(--tmf-text);
  font-family:"Open Sans",sans-serif;padding:var(--tmf-pad-t) 20px 0}
.tmf *{box-sizing:border-box}

/* tema arancione (come il modello di Siena), accenti blu */
.tmf--orange{
  --tmf-bg:#FB9109;
  --tmf-eyebrow:var(--tmf-navy);
  --tmf-title:var(--tmf-navy);
  --tmf-hl:#fff;
  --tmf-text:var(--tmf-navy);
  --tmf-b1-bg:var(--tmf-navy); --tmf-b1-fg:#fff;
  --tmf-b1h-bg:#fff;           --tmf-b1h-fg:var(--tmf-navy);
  --tmf-b2-fg:var(--tmf-navy);
  --tmf-b2h-bg:var(--tmf-navy);--tmf-b2h-fg:#fff;
  --tmf-tk-bg:var(--tmf-navy); --tmf-tk-fg:#fff; --tmf-tk-dot:#FB9109;
  --tmf-ic-bg:var(--tmf-navy); --tmf-ic-fg:#fff;
  --tmf-ic2-bg:#fff;           --tmf-ic2-fg:var(--tmf-navy);
  --tmf-trail:#fff;
  --tmf-move-op:.22;
  --tmf-city-op:.26;
  --tmf-shadow:rgba(36,50,103,.34)}

/* "move" sullo sfondo, entra da sinistra */
.tmf__move{position:absolute;left:-3%;top:34px;width:50%;color:var(--tmf-move);opacity:0;line-height:0;pointer-events:none;
  transform:translateX(-60%);transition:transform 1.4s cubic-bezier(.16,.8,.24,1),opacity 1s ease}
.tmf.is-in .tmf__move{opacity:var(--tmf-move-op);transform:none}

.tmf__inner{position:relative;z-index:1;max-width:var(--tmf-maxw);margin:0 auto;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:40px;align-items:center}

/* ---------- testi ---------- */
.tmf .tmf__eyebrow{margin:0 0 18px;font-family:"Montserrat",sans-serif;font-weight:700;font-size:15px;line-height:1.2;letter-spacing:.12em;text-transform:uppercase;color:var(--tmf-eyebrow)}
.tmf .tmf__title{font-family:"Montserrat",sans-serif;font-weight:700;text-transform:uppercase;font-size:clamp(40px,4.6vw,66px);line-height:1.02;letter-spacing:-.01em;margin:0 0 22px;color:var(--tmf-title)}
.tmf__line{display:block;overflow:hidden;padding-bottom:.04em}
.tmf__line > span{display:inline-block;transform:translateY(105%);transition:transform .9s cubic-bezier(.16,.8,.24,1)}
.tmf .tmf__line--hl{color:var(--tmf-hl)}
.tmf__line--hl > span{transition-delay:.12s}
.tmf.is-in .tmf__line > span{transform:none}
.tmf .tmf__text{font-size:18px;line-height:1.65;font-weight:500;margin:0 0 28px;max-width:520px;color:var(--tmf-text)}
.tmf__eyebrow,.tmf__text,.tmf__btns,.tmf__store{opacity:0;transform:translateY(16px);transition:opacity .7s ease,transform .7s ease}
.tmf__text{transition-delay:.25s}
.tmf__btns{transition-delay:.35s}
.tmf__store{transition-delay:.45s}
.tmf.is-in .tmf__eyebrow,.tmf.is-in .tmf__text,.tmf.is-in .tmf__btns,.tmf.is-in .tmf__store{opacity:1;transform:none}

/* ---------- bottoni ---------- */
.tmf__btns{display:flex;flex-wrap:wrap;gap:12px}
.tmf .tmf__btn{font-family:"Open Sans",sans-serif;font-weight:600;font-size:15px;line-height:20px;padding:14px 32px;text-decoration:none;display:inline-flex;align-items:center;gap:10px;
  border:2px solid transparent;border-radius:var(--tmf-radius);white-space:nowrap;transition:background .2s,color .2s,border-color .2s}
.tmf .tmf__btn--fill{background:var(--tmf-b1-bg);border-color:var(--tmf-b1-bg);color:var(--tmf-b1-fg)}
.tmf .tmf__btn--ghost{background:transparent;border-color:var(--tmf-b2-fg);color:var(--tmf-b2-fg)}
.tmf__arrow{display:inline-block;transition:transform .2s ease}
@media (hover:hover){
  .tmf .tmf__btn--fill:hover{background:var(--tmf-b1h-bg);border-color:var(--tmf-b1h-bg);color:var(--tmf-b1h-fg)}
  .tmf .tmf__btn--fill:hover .tmf__arrow{transform:translateX(5px)}
  .tmf .tmf__btn--ghost:hover{background:var(--tmf-b2h-bg);border-color:var(--tmf-b2h-bg);color:var(--tmf-b2h-fg)}
}

/* ---------- icona app, "scarica gratis", badge ---------- */
.tmf__store{display:flex;align-items:center;gap:20px;margin-top:26px;line-height:0}
.tmf__store-col{display:flex;flex-direction:column;align-items:flex-start;gap:10px;text-decoration:none}
.tmf__logo{display:block;width:calc(var(--tmf-store-h)*2 + 8px);height:calc(var(--tmf-store-h)*2 + 8px);flex:0 0 auto;line-height:0}
.tmf__logo img{filter:drop-shadow(0 10px 18px var(--tmf-shadow))}

/* ---------- scena: città, telefono, auto, icone ---------- */
.tmf__visual{position:relative;height:calc(var(--tmf-vis-h) + var(--tmf-phone-h)*(var(--tmf-phone-k) - 1))}
/* Firenze che scorre dietro il telefono: leggera, inclinata, sfumata ai lati */
.tmf__city{position:absolute;left:-6%;right:-14%;bottom:34px;height:74%;z-index:0;overflow:hidden;pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 16%,#000 84%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 16%,#000 84%,transparent 100%);
  transform-origin:50% 100%;opacity:0;transform:translateY(18%) rotate(var(--tmf-city-rot));transition:transform 1.3s cubic-bezier(.16,.8,.24,1),opacity 1s ease}
.tmf.is-vis .tmf__city{opacity:var(--tmf-city-op);transform:rotate(var(--tmf-city-rot))}
.tmf__city-track{position:absolute;left:0;bottom:0;height:100%;display:flex;width:max-content;animation:tmf-city 38s linear infinite}
.tmf--city-still .tmf__city-track{animation:none}
@keyframes tmf-city{from{transform:translateX(0)}to{transform:translateX(-50%)}}

.tmf__phone{position:absolute;left:50%;top:0;margin-left:calc(var(--tmf-phone-h)*var(--tmf-phone-k)*-.25);filter:drop-shadow(0 30px 40px var(--tmf-shadow));
  opacity:0;transform:translateY(80px) rotate(-2deg);transition:transform 1.1s cubic-bezier(.16,.8,.24,1) .1s,opacity .8s ease .1s}
.tmf.is-vis .tmf__phone{opacity:1;transform:rotate(var(--tmf-phone-rot))}

/* auto: posizione e avanzamento con lo scorrimento (wrap), entrata (in), ondeggiamento (img) */
.tmf__car-wrap{position:absolute;left:-2%;bottom:-18px;width:calc(var(--tmf-car-w)*var(--tmf-car-k));z-index:2;transform:translateX(var(--tmf-drive,0px));will-change:transform}
.tmf__car-in{opacity:0;transform:translateX(-85%);transition:transform 1.4s cubic-bezier(.2,.9,.25,1.04) .45s,opacity .5s ease .45s}
.tmf.is-vis .tmf__car-in{opacity:1;transform:none}
.tmf__car{display:block;filter:drop-shadow(0 22px 22px var(--tmf-shadow));transform-origin:30% 90%}
.tmf--drive.is-vis .tmf__car{animation:tmf-idle 1.6s ease-in-out 1.9s infinite}
@keyframes tmf-idle{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-2px) rotate(-.35deg)}}

/* scia dietro l'auto */
.tmf__speed{position:absolute;left:-20%;top:40%;width:24%;height:30%;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none;opacity:0;transition:opacity .4s ease 1.5s}
.tmf.is-vis .tmf__speed{opacity:1}
.tmf__speed i{display:block;height:6px;border-radius:6px;background:var(--tmf-trail);transform-origin:right center;animation:tmf-speed 1.1s linear infinite}
.tmf__speed i:nth-child(1){width:70%;margin-left:30%;animation-delay:-.3s}
.tmf__speed i:nth-child(2){width:100%;animation-delay:-.7s}
.tmf__speed i:nth-child(3){width:55%;margin-left:45%;animation-delay:-.1s}
@keyframes tmf-speed{0%{transform:translateX(30%) scaleX(.2);opacity:0}30%{opacity:1}100%{transform:translateX(-40%) scaleX(1);opacity:0}}

.tmf__ico{position:absolute;width:62px;height:62px;margin:-31px 0 0 -31px;z-index:3}
.tmf__ico > span{width:100%;height:100%;border-radius:50%;background:var(--tmf-ic-bg);color:var(--tmf-ic-fg);display:flex;align-items:center;justify-content:center;
  box-shadow:0 12px 26px var(--tmf-shadow);transform:scale(0);transition:transform .55s cubic-bezier(.3,1.6,.5,1)}
.tmf__ico svg{width:28px;height:28px}
.tmf__ico--1{left:16%;top:16%;animation:tmf-bob 6s ease-in-out infinite}
.tmf__ico--2{left:88%;top:26%;animation:tmf-bob 5.4s ease-in-out -1.5s infinite}
.tmf__ico--3{left:84%;top:58%;animation:tmf-bob 6.6s ease-in-out -3s infinite}
.tmf__ico--2 > span{background:var(--tmf-ic2-bg);color:var(--tmf-ic2-fg)}
.tmf--ico-still .tmf__ico{animation:none}
.tmf.is-vis .tmf__ico > span{transform:scale(1)}
.tmf.is-vis .tmf__ico--1 > span{transition-delay:.9s}
.tmf.is-vis .tmf__ico--2 > span{transition-delay:1.05s}
.tmf.is-vis .tmf__ico--3 > span{transition-delay:1.2s}
@keyframes tmf-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}

/* senza ombre */
.tmf--flat .tmf__phone,.tmf--flat .tmf__car,.tmf--flat .tmf__logo img{filter:none}
.tmf--flat .tmf__ico > span{box-shadow:none}

/* ---------- striscia che scorre ---------- */
.tmf__ticker{position:relative;z-index:2;margin:var(--tmf-gap-b) -20px 0;background:var(--tmf-tk-bg);color:var(--tmf-tk-fg);overflow:hidden;padding:18px 0;transform:rotate(-1.2deg) scale(1.02)}
.tmf--tk-flat .tmf__ticker{transform:none}
.tmf__track{display:flex;width:max-content;animation:tmf-marquee 36s linear infinite}
.tmf__group{display:flex;align-items:center}
.tmf .tmf__word{font-family:"Montserrat",sans-serif;font-weight:700;text-transform:uppercase;font-size:26px;letter-spacing:.04em;line-height:1;white-space:nowrap;padding:0 26px}
.tmf__dot{width:12px;height:12px;border-radius:50%;background:var(--tmf-tk-dot);flex:0 0 12px}
@keyframes tmf-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (hover:hover){.tmf__ticker:hover .tmf__track{animation-play-state:paused}}
/* senza striscia: la sezione si chiude con uno spazio sotto */
.tmf--noticker{padding-bottom:var(--tmf-gap-b)}

/* ---------- disposizione ---------- */
/* senza scena: una sola colonna */
.tmf--novisual .tmf__inner{grid-template-columns:minmax(0,1fr)}
.tmf--novisual .tmf__text{max-width:720px}
/* senza telefono la scena è più bassa */
.tmf--nophone{--tmf-vis-h:340px}
.tmf--nophone .tmf__visual{height:var(--tmf-vis-h)}
/* testi centrati */
.tmf--center .tmf__copy{text-align:center}
.tmf--center .tmf__text{margin-left:auto;margin-right:auto}
.tmf--center .tmf__btns,.tmf--center .tmf__store{justify-content:center}
/* scena a sinistra, testi a destra (solo su schermi larghi) */
@media (min-width:901px){
  .tmf--flip .tmf__copy{order:2}
  .tmf--flip .tmf__move{left:auto;right:-3%}
}

/* tablet */
@media (max-width:1024px){
  .tmf{--tmf-vis-h:500px;--tmf-phone-h:440px}
  .tmf--nophone{--tmf-vis-h:300px}
}
/* tablet verticale e cellulare */
@media (max-width:900px){
  .tmf{--tmf-pad-t:72px;--tmf-vis-h:470px;--tmf-phone-h:400px;--tmf-car-w:100%}
  .tmf--nophone{--tmf-vis-h:280px}
  .tmf__move{width:90%;top:20px}
  .tmf__inner{grid-template-columns:minmax(0,1fr);gap:20px}
  .tmf__visual{max-width:520px;width:100%;margin:0 auto}
  .tmf__car-wrap{left:-4%}
  .tmf--mvis-first .tmf__visual{order:-1;margin-bottom:28px}
  .tmf--mcenter .tmf__copy{text-align:center}
  .tmf--mcenter .tmf__text{margin-left:auto;margin-right:auto}
  .tmf--mcenter .tmf__btns,.tmf--mcenter .tmf__store{justify-content:center}
  .tmf--mleft .tmf__copy{text-align:left}
  .tmf--mleft .tmf__text{margin-left:0;margin-right:0}
  .tmf--mleft .tmf__btns,.tmf--mleft .tmf__store{justify-content:flex-start}
}
@media (max-width:600px){
  .tmf{--tmf-pad-t:56px;--tmf-gap-b:50px;--tmf-vis-h:380px;--tmf-phone-h:320px;--tmf-store-h:40px}
  .tmf--nophone{--tmf-vis-h:220px}
  .tmf .tmf__eyebrow{font-size:13px}
  .tmf .tmf__title{font-size:38px}
  .tmf .tmf__text{font-size:16px}
  .tmf__btns{flex-direction:column}
  .tmf .tmf__btn{width:100%;justify-content:center}
  .tmf__city{height:70%;bottom:44px}
  .tmf__ico{width:50px;height:50px;margin:-25px 0 0 -25px}
  .tmf__ico svg{width:22px;height:22px}
  .tmf__ticker{padding:14px 0}
  .tmf .tmf__word{font-size:20px;padding:0 18px}
}

/* ---------- entrata in scena spenta: tutto subito al suo posto ---------- */
.tmf--static .tmf__move{opacity:var(--tmf-move-op);transform:none;transition:none}
.tmf--static .tmf__line > span,.tmf--static .tmf__eyebrow,.tmf--static .tmf__text,.tmf--static .tmf__btns,.tmf--static .tmf__store,.tmf--static .tmf__car-in{opacity:1;transform:none;transition:none}
.tmf--static .tmf__city{opacity:var(--tmf-city-op);transform:rotate(var(--tmf-city-rot));transition:none}
.tmf--static .tmf__phone{opacity:1;transform:rotate(var(--tmf-phone-rot));transition:none}
.tmf--static .tmf__ico > span{transform:scale(1);transition:none}
.tmf--static .tmf__speed{opacity:1;transition:none}

/* ---------- "riduci movimento" del dispositivo: niente animazioni ---------- */
@media (prefers-reduced-motion:reduce){
  .tmf *,.tmf *:before,.tmf *:after{transition:none !important}
  .tmf:not(.tmf--rm-soft) *,.tmf:not(.tmf--rm-soft) *:before,.tmf:not(.tmf--rm-soft) *:after{animation:none !important}
  /* con l'interruttore "movimenti lenti": restano solo striscia e città che scorrono */
  .tmf--rm-soft .tmf__car,.tmf--rm-soft .tmf__ico,.tmf--rm-soft .tmf__speed i{animation:none !important}
  .tmf__move{opacity:var(--tmf-move-op);transform:none}
  .tmf__line > span,.tmf__eyebrow,.tmf__text,.tmf__btns,.tmf__store,.tmf__car-in{opacity:1;transform:none}
  .tmf__city{opacity:var(--tmf-city-op);transform:rotate(var(--tmf-city-rot))}
  .tmf__car-wrap{transform:none}
  .tmf__speed{display:none}
  .tmf__phone{opacity:1;transform:rotate(var(--tmf-phone-rot))}
  .tmf__ico > span{transform:scale(1)}
}

/* ---------- Protezione dagli stili del tema e di Elementor ----------
   Elementor (.elementor img) e il tema impongono height:auto e max-width:100% a tutte le immagini:
   qui le dimensioni del widget vengono fissate con regole più forti. */
.tmf .tmf__visual img.tmf__phone{height:calc(var(--tmf-phone-h)*var(--tmf-phone-k)) !important;width:auto !important;max-width:none !important;max-height:none !important}
.tmf .tmf__visual img.tmf__car{width:100% !important;height:auto !important;max-width:none !important}
.tmf .tmf__city .tmf__city-track img{height:100% !important;width:auto !important;max-width:none !important;max-height:none !important;display:block;flex:0 0 auto}
.tmf .tmf__store img.tmf__gratis,.tmf .tmf__store img.tmf__badges{height:var(--tmf-store-h) !important;width:auto !important;max-width:none !important;display:block}
.tmf .tmf__logo img{width:100% !important;height:100% !important;max-width:none !important;display:block}
.tmf .tmf__move svg{width:100% !important;height:auto !important;display:block}
