/* Teranga Day by Day */
.tg-story-route.tgx-on{display:grid!important;grid-template-columns:minmax(0,7fr) minmax(0,5fr)!important;gap:36px!important;align-items:start}
.tgx-on .tg-story-route__map{order:2;width:auto!important}
.tgx-on .tgx-hint{font-size:13px;color:#6F655B;margin:12px 2px 0}
.tgx-acc{display:flex;flex-direction:column;gap:10px;position:relative;min-width:0}
.tgx-acc:before{content:"";position:absolute;left:39px;top:30px;bottom:30px;border-left:2px dotted #E2B8A4}
.tgx-day{background:#FFFDF9;border-radius:16px;box-shadow:0 1px 0 #E9DFD3,0 14px 30px -26px rgba(70,40,20,.5);position:relative;scroll-margin-top:150px;transition:box-shadow .3s}
.tgx-day[open]{box-shadow:0 0 0 1.5px #D9542B,0 24px 44px -30px rgba(170,60,20,.45)}
.tgx-day>summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:44px minmax(0,1fr) auto 28px;gap:14px;align-items:center;padding:14px 18px;border-radius:16px}
.tgx-day>summary::-webkit-details-marker{display:none}
.tgx-day>summary:hover{background:#FFF9F3}
.tgx-dn{width:44px;height:44px;border-radius:50%;border:1.6px solid #D9542B;color:#D9542B;display:grid;place-items:center;font-weight:800;font-size:15px;background:#FFFDF9;transition:.3s}
.tgx-day[open] .tgx-dn{background:#D9542B;color:#fff}
.tgx-st small{display:block;font-size:11px;font-weight:800;letter-spacing:.14em;color:#D9542B;text-transform:uppercase}
.tgx-st b{display:block;font-family:"Bricolage Grotesque","Helvetica Neue",Arial,sans-serif;font-size:18px;line-height:1.25;margin-top:2px;color:#1C1A17}
.tgx-st span{display:flex;gap:5px;align-items:center;font-size:13px;color:#6F655B;margin-top:2px}
.tgx-meta{display:flex;gap:6px}
.tgx-meta span{display:inline-flex;gap:5px;align-items:center;font-size:12px;color:#6F655B;background:#F5EFE8;border-radius:999px;padding:4px 10px;white-space:nowrap}
.tgx-meta .fr{background:#E7EFF4;color:#2F5D7C}.tgx-meta .fl{background:#FBF1DC;color:#A86E14}
.tgx-chev{width:28px;height:28px;display:grid;place-items:center;color:#6F655B;transition:transform .3s}
.tgx-day[open] .tgx-chev{transform:rotate(180deg);color:#D9542B}
.tgx-ico{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tgx-body{padding:2px 22px 0 76px}
.tgx-day[open] .tgx-body{animation:tgxOpen .35s ease}
@keyframes tgxOpen{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.tgx-photo{border-radius:12px;overflow:hidden;aspect-ratio:16/9;background:#EFE6DA}
.tgx-photo img{width:100%;height:100%;object-fit:cover;display:block}
.tgx-text{padding:16px 0 4px;color:#3E3833}
.tgx-text p{margin:0 0 12px}
.tgx-facts{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.tgx-facts span{display:inline-flex;gap:6px;align-items:center;font-size:13px;font-weight:600;background:#F5EFE8;border-radius:8px;padding:6px 10px;color:#1C1A17}
.tgx-facts .tgx-ico{color:#D9542B}
.tgx-facts .fr{background:#E7EFF4;color:#2F5D7C}.tgx-facts .fr .tgx-ico{color:#2F5D7C}
.tgx-rows{margin:2px 0 18px;font-size:14px;line-height:1.5;color:#3E3833}
.tgx-r{margin:0 0 6px;padding-left:22px;position:relative}
.tgx-r:last-child{margin-bottom:0}
.tgx-r:before{position:absolute;left:0;top:0;font-weight:800}
.tgx-r b{color:#1C1A17;font-weight:700;margin-right:3px}
.tgx-inc:before{content:"\2713";color:#D9542B}
.tgx-no:before{content:"\2715";color:#B3A797;font-size:12px;top:1px!important}
.tgx-cash:before{content:"\20AC";color:#6F655B}
.tgx-opt:before{content:"+";color:#D9542B}
.tgx-r .note{color:#6F655B}
.tgx-nav{display:flex;justify-content:space-between;border-top:1px solid #E9DFD3;margin:0 -22px 0 -76px;padding:10px 22px 12px 76px}
.tgx-nav button{background:none;border:0;font:600 14px Inter,-apple-system,"Segoe UI",Roboto,sans-serif;color:#D9542B;cursor:pointer;padding:4px 0}
.tgx-nav button:disabled{color:#C9BEB2;cursor:default}
@media (max-width:980px){
 .tg-story-route.tgx-on{grid-template-columns:1fr!important}
 .tgx-on .tg-story-route__map{display:none!important}
 .tgx-meta{display:none}
}
@media (max-width:640px){
 .tgx-day>summary{grid-template-columns:40px minmax(0,1fr) 24px;padding:12px 14px;gap:12px}
 .tgx-dn{width:40px;height:40px;font-size:14px}
 .tgx-acc:before{left:33px}
 .tgx-body{padding:0 14px}
 .tgx-nav{margin:0 -14px;padding:10px 14px 12px}
}
.tgx-st{display:inline-block;border-radius:999px;padding:5px 12px;font-size:12.5px;font-weight:600;white-space:nowrap}
.tgx-st--prog{background:#EEE8DF;color:#6B645C}.tgx-st--quasi{background:#FBF1DC;color:#8A5A12}.tgx-st--conf{background:#DDEFE6;color:#1F4D45}.tgx-st--few{background:#FBE3D6;color:#B9451F}.tgx-st--sold{background:#1C1A17;color:#FFFDF9}
.tgx-legend{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;margin:14px 0 0;font-size:13px;color:#6B645C}
.tgx-legend .tgx-st{font-size:11.5px;padding:3px 10px}
.tgx-legend a{color:#D9542B;font-weight:600;text-decoration:none;margin-left:4px}
.tgx-flight{display:flex;gap:8px;align-items:flex-start;margin:10px 0 0;font-size:13px;color:#6B645C}
.tgx-flight svg{flex:none;margin-top:1px}

/* 1.6.4 · mappa cliccabile, fondo comune, spazio prima del footer */
.tg-dm-stop{cursor:pointer}.tg-dm-stop:hover .tg-dm-dot{filter:brightness(1.12)}
.tgx-r b{margin-right:8px}
article.tg-trip{padding-bottom:clamp(72px,9vw,128px)}

.tg-incl .tgx-cassa{grid-column:1/-1;border-top:1px solid rgba(255,253,249,.22);padding:36px 0 4px;margin-top:20px;color:#FFFDF9}
.tg-incl .tgx-cassa h3.tgx-cassa__t{margin:0 0 14px;color:#FFFDF9;font-size:clamp(26px,2.6vw,34px)!important;line-height:1.15}
.tg-incl .tgx-cassa .tgx-cassa__lead{margin:0 0 20px;max-width:860px;color:rgba(255,253,249,.85);line-height:1.65;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tg-incl .tgx-cassa.is-open .tgx-cassa__lead{display:block;-webkit-line-clamp:unset}
.tgx-cassa__lead b{color:#F2B33D;font-weight:600}
.tgx-cassa__sub{margin:0 0 10px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#F2B33D}
.tgx-cassa ul{list-style:none;padding:0;margin:0 0 18px;display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:10px 32px;max-width:900px}
.tgx-cassa li{position:relative;padding-left:22px;line-height:1.5;color:rgba(255,253,249,.9)}
.tgx-cassa li:before{content:"";position:absolute;left:2px;top:.55em;width:8px;height:8px;border-radius:50%;background:#F2B33D}
.tgx-cassa__link{margin:0 0 20px}.tgx-cassa__link a{color:#FFFDF9;text-decoration:underline;text-underline-offset:3px}
.tgx-cassa__btn{font:inherit;font-size:15px;font-weight:500;color:#FFFDF9;background:transparent;border:1px solid rgba(255,253,249,.55);border-radius:10px;padding:12px 18px;cursor:pointer;transition:background .2s,border-color .2s}
.tgx-cassa__btn:hover{background:rgba(255,253,249,.1);border-color:#FFFDF9}

/* Day by day su telefono: più largo, titoli che vanno a capo */
@media (max-width: 700px) {
  .tgx-acc { padding-left: 0 !important; padding-right: 0 !important; }
  .tgx-acc::before, .tgx-acc::after { display: none !important; }
  .tgx-day::before, .tgx-day::after { display: none !important; }
  .tgx-day { width: 100% !important; margin-left: 0 !important; }
  .tgx-day summary { gap: 12px; }
  .tgx-st { min-width: 0; flex: 1 1 auto; }
  .tgx-st, .tgx-st * { white-space: normal !important; }
  .tgx-st b { display: block; line-height: 1.25; }
  .tg-story-route { padding-left: 0 !important; padding-right: 0 !important; }
}

/* Mappa: niente "mappa a puntini" del tema mentre si carica la nostra (nemmeno per un attimo) */
@keyframes tgxShowLate { to { visibility: visible; } }
.tg-dotmap:not(.tgx-vmap-on) > * { visibility: hidden; animation: tgxShowLate 0s 4s forwards; }
.tg-story-route:not(.tgx-on) .tg-days { visibility: hidden; animation: tgxShowLate 0s 4s forwards; }
.tg-dotmap:not(.tgx-vmap-on) { background: #F1EBE1; border-radius: 22px; }

/* Day by Day: riquadri centrati e sfondo beige */
.tgx-acc { background: #F1EBE1 !important; border: 1px solid #E6DDCF; border-radius: 24px; padding: 20px !important; }
.tgx-acc:before { left: 54px !important; top: 40px !important; bottom: 40px !important; z-index: 0; border-left-color: #D8C9B6 !important; }
.tgx-acc > * { position: relative; z-index: 1; }
@media (max-width: 700px) {
  .tgx-acc { padding: 10px !important; border-radius: 18px; }
}
