/* TWIP — Sky design layer. Loaded after styles.css: it owns the landing's
   look (see twip/design.md). Header + hero + footer only. */
:root {
  --sky-0: #EAF7FE; --sky-1: #2FB8E8; --sky-2: #1187D6; --sky-3: #0A5C9E;
  --navy: #0B2C4A; --cream: #FFF3EC;
  --azzurro-twip: #16AFC6;
}
body { background: var(--sky-0); }
/* one single sky for the whole page: hero and the section under it are just
   windows onto it, so there is no seam where they meet */
/* the top of the sky used to be an icy near-white: the hero read cold and the
   white map had nothing to sit against. Now it opens on a warmer, deeper azure
   and reaches the saturated blue of the sections sooner, so hero and sections
   feel like the same sky at two moments of the same morning. */
#wrap { background: linear-gradient(180deg, #C7E7F2 0%, #A9DCEF 10%, #7FD0EE 26%, #5CC0E9 42%, #46B2E4 66%, #7FD2F0 86%, #D9F2FC 100%); }
#wrap { overflow: clip; }

/* ── HERO ─────────────────────────────────────────────────────────────── */
#destinations.sky-hero {
  position: relative; min-height: 0; display: flex; align-items: stretch;
  padding: 0; overflow: visible; background: transparent;
  /* nessun contesto di impilamento proprio: così le nuvole passano sopra la
     mappa (z 0) ma restano sotto i riquadri foto e al testo (z 2) */
  isolation: auto; z-index: auto;
}
/* full-bleed band of travel frames behind the map: one image at a time,
   each crossing the whole page from right to left */
.hero-strip { position: absolute; top: 0; left: 0; right: 0; height: clamp(252px, 26vw, 392px); overflow: hidden; z-index: 0; pointer-events: none; }
@media (max-width: 700px) { .hero-strip { top: 0; } }
.hs-track { position: relative; height: 100%; overflow: hidden; }
.hs-track > span { position: absolute; inset: 0; display: block; background: #BFE7F8 center/cover no-repeat;
  animation: hsSlide 24s cubic-bezier(.7,0,.2,1) infinite; }
.hs-track > span:nth-child(1) { animation-delay: 0s; }
.hs-track > span:nth-child(2) { animation-delay: -20s; }
.hs-track > span:nth-child(3) { animation-delay: -16s; }
.hs-track > span:nth-child(4) { animation-delay: -12s; }
.hs-track > span:nth-child(5) { animation-delay: -8s; }
.hs-track > span:nth-child(6) { animation-delay: -4s; }
/* each frame holds still for 4s, then slides out left while the next slides in */
@keyframes hsSlide {
  0%     { transform: translateX(100%); }
  4.17%  { transform: translateX(0); }
  16.66% { transform: translateX(0); }
  20.83% { transform: translateX(-100%); }
  100%   { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) { .hs-track > span { animation: none; transform: translateX(100%); } .hs-track > span:nth-child(1) { transform: none; } }

.sky-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cloud { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.9), rgba(255,255,255,0)); filter: blur(2px); }
.cloud.c1 { width: 46vw; height: 26vw; left: -8vw; top: 4vh; opacity: .5; animation: drift 54s ease-in-out infinite; }
.cloud.c2 { width: 34vw; height: 20vw; right: -6vw; top: 26vh; opacity: .38; animation: drift 68s ease-in-out infinite reverse; }
.cloud.c3 { width: 52vw; height: 22vw; left: 22vw; bottom: -6vh; opacity: .3; animation: drift 76s ease-in-out infinite; }
@keyframes drift { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(4vw,-2vh,0); } }
.sky-path { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-path path { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 16; opacity: .35; }
@media (prefers-reduced-motion: reduce) { .cloud { animation: none !important; } }

.sky-inner {
  /* z-index auto di proposito: se .sky-inner apre un contesto di impilamento,
     la mappa (dentro di lei) finisce sopra le nuvole. Così invece la mappa resta
     a z 0 (sotto le nuvole) e il testo a z 2 (sopra). */
  position: relative; z-index: auto; width: 100%; max-width: 1320px; margin: 0 auto; /* sky */
  padding: clamp(150px, 17vh, 210px) clamp(20px, 4vw, 56px) 100px;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: start; gap: clamp(24px, 4vw, 64px);
}
/* headline block — no frame */
.head-x { position: relative; display: inline-grid; place-items: start; }
.head-x .dest-head { position: relative; z-index: 1; }
/* the copy column owns the top of the stack: the enlarged map overflows its
   own box and would otherwise swallow the search bar's clicks */
.act.blank-act { min-height: 100vh; background: transparent; position: relative; z-index: 1; }
.head-x { margin-top: 250px; }
.sky-copy { position: relative; z-index: 2; display: grid; gap: 20px; justify-items: start; }
#destinations.sky-hero .searchbar { margin-top: 0; transform: translate(100px, 50px); }
.icon-row { display: flex; gap: 10px; }
.icon-btn {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.9); color: var(--sky-3);
  -webkit-backdrop-filter: none; backdrop-filter: none; transition: background .2s, transform .2s;
}
.icon-btn:hover { background: #fff; transform: translateY(-2px); }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

#destinations.sky-hero .dest-head {
  font-family: var(--font-display); font-weight: 700; color: var(--navy); white-space: normal;
  font-size: clamp(34px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -.03em; margin: 0;
}
#destinations.sky-hero .dest-head .line { display: block; }
#destinations.sky-hero .scout-underline { position: relative; }
#destinations.sky-hero .scout-underline::after { display: none; }
.sky-sub { color: #12456E; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; max-width: 44ch; margin: 0; text-wrap: pretty; }

/* preferences card under the headline */
.pref-card { display: grid; gap: 12px; justify-items: start; max-width: 520px; padding: 0; border-radius: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.pref-lab { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .01em; color: var(--navy); }
.pref-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pref-chip { position: relative; display: inline-flex; }
.pref-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pref-chip span { display: inline-flex; align-items: center; padding: 9px 15px; border-radius: 999px; font-family: system-ui, "Helvetica Neue", Arial, sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0; color: #12456E; background: #fff; border: 1px solid rgba(18,69,110,.16); transition: background .18s, color .18s, border-color .18s, transform .18s; }
.pref-chip:hover span { transform: translateY(-1px); border-color: rgba(18,69,110,.32); }
.pref-chip input:checked + span { background: var(--navy, #0E3A5C); color: #fff; border-color: transparent; }
.pref-chip input:focus-visible + span { outline: 2px solid var(--gold, #E8B23A); outline-offset: 2px; }
.pref-step[hidden], .pref-go[hidden] { display: none !important; }
.pref-step { display: grid; gap: 10px; justify-items: start; animation: prefIn .35s cubic-bezier(.22,1,.32,1) both; }
@keyframes prefIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.pref-chip.who input:checked + span { background: #0E7C86; color: #fff; border-color: transparent; }
.pref-go { animation: prefIn .35s cubic-bezier(.22,1,.32,1) both; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15px; color: #12456E; background: var(--gold, #F4C445); box-shadow: 0 16px 34px -18px rgba(6,40,70,.7); transition: transform .18s, box-shadow .25s; }
.pref-go { color: #fff; background: #0E7C86; }
.pref-go:hover { background: #0B656D; }
.pref-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* search — one white pill */
#destinations.sky-hero .searchbar {
  display: flex; align-items: center; gap: 4px; width: min(560px, 100%);
  background: #fff; border: 0; border-radius: 999px; padding: 8px 8px 8px 10px;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 26px 50px -26px rgba(6,40,70,.6);
}
#destinations.sky-hero .searchbar .sf { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; cursor: pointer; flex: 1 1 0; min-width: 0; }
#destinations.sky-hero .searchbar .sf:hover { background: #F2F7FB; }
#destinations.sky-hero .searchbar .ic { display: grid; place-items: center; width: 22px; height: 22px; color: var(--sky-2); flex: none; }
#destinations.sky-hero .searchbar .ic svg { width: 20px; height: 20px; }
#destinations.sky-hero .searchbar .lab { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--sky-3); }
#destinations.sky-hero .searchbar .val { font-size: 14.5px; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#destinations.sky-hero .searchbar .val.ph { color: #8B9AAB; font-weight: 500; }
#destinations.sky-hero .searchbar .sf-div { width: 1px; height: 30px; background: rgba(11,44,74,.12); flex: none; }
#destinations.sky-hero .searchbar .sf-go {
  flex: none; width: 50px; height: 50px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: #fff; background: linear-gradient(180deg, var(--sky-2), var(--sky-3)); box-shadow: 0 12px 22px -10px rgba(10,92,158,.9);
  transition: transform .18s;
}
#destinations.sky-hero .searchbar .sf-go:hover { transform: scale(1.06); }
#destinations.sky-hero .searchbar .sf-go svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* the promise card */
.sky-card {
  background: var(--cream); border-radius: 46px; padding: 26px 30px 28px; max-width: 430px;
  box-shadow: 0 30px 60px -30px rgba(8,42,72,.45);
}
.sky-card h2 { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.1; letter-spacing: -.02em; color: var(--navy); margin: 0 0 8px; }
.sky-card p { font-size: 15.5px; line-height: 1.5; color: #4A5C6E; margin: 0; text-wrap: pretty; }
.sky-card .gold { color: var(--sky-3); font-weight: 700; }

/* visual column — Italy cut-out + mascot. Absolute so the hero can end just
   below the search bar while the boot's bottom spills into the next section. */
.sky-visual { position: absolute; z-index: 0; top: 0; right: 0; width: 48%; height: 100%; display: grid; place-items: start center; pointer-events: none; }
/* tall, narrow box: the Mercator fit is height-driven, so a wide box would
   leave Italy stranded in empty blue */
/* width-driven with a tall aspect so the short viewport band no longer caps
   the shape; max-height only trims extreme cases */
/* height-driven: the map takes all the height the hero can give and derives its
   width from it, so the whole boot always lands inside the fold */
/* the boot at roughly double its old size: sized straight off the viewport
   height, the hero grew to hold it */
.sky-map { --mp: 0; --mx: -410px; --my: -120px; position: relative; height: 156vh; width: auto; aspect-ratio: 5 / 7; margin: 0 auto; --mdx: 0px; --mdy: 0px; transform-origin: 50% 30%; transform: translate(calc(var(--mx) + var(--mdx)), calc(var(--my) + var(--mdy))) rotate(calc(-5deg + var(--mp) * 70deg)) scale(calc(1 + var(--mp) * .32)); filter: blur(var(--mblur, 0px)); will-change: transform, filter; }
.sky-map svg { overflow: visible; }
/* mascot + bubble travel together, anchored to the visual's right edge and
   clear of the map's drawn area (the bubble used to sit on the east-coast pills) */
.sky-buddy {
  position: absolute; right: 150px; bottom: 300px; z-index: 2;
  width: clamp(150px, 16vw, 220px); display: grid; justify-items: center; gap: 10px;
}
.sky-twip { width: 100%; display: block; filter: drop-shadow(0 22px 30px rgba(6,40,70,.35)); }

/* experience-of-the-day card — the yellow field is the image placeholder */
.sky-buddy { width: clamp(300px, 30vw, 400px) !important; top: 108px; bottom: auto; }
.expday { position: relative; display: grid; align-content: space-between; gap: 8px; padding: 14px 16px; width: 100%; min-height: 190px; border-radius: 24px; text-decoration: none; color: #fff;
  background-image: var(--expday-img, none); background-color: #FFC01F; background-size: cover; background-position: center; box-shadow: 0 26px 60px -30px rgba(6,40,70,.75); overflow: hidden; transition: transform .3s cubic-bezier(.22,1,.32,1), box-shadow .3s; }
.expday::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,40,70,.28), rgba(6,40,70,0) 42%, rgba(6,40,70,.55)); pointer-events: none; }
.expday > * { position: relative; z-index: 1; }
.expday:hover { transform: translateY(-4px); box-shadow: 0 34px 70px -30px rgba(6,40,70,.8); }
.expday-tag { justify-self: start; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; background: var(--navy); color: #fff; }
.expday-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 12px; font-weight: 600; color: rgba(14,58,92,.6); letter-spacing: .02em; }
.expday-chips { display: grid; gap: 3px; }
.expday .chip { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.35; text-shadow: 0 2px 10px rgba(6,40,70,.85), 0 1px 2px rgba(6,40,70,.6); animation: chipIn .5s cubic-bezier(.22,1,.32,1) both; }
.expday .chip-hot { color: #FFD3A1; animation: chipIn .5s cubic-bezier(.22,1,.32,1) both, chipPulse 2.6s ease-in-out 1.1s infinite; transform-origin: left center; }
.expday .chip-love { color: #FFC0D6; animation-delay: .12s; }
.expday .chip-few { color: #B9F1F6; animation-delay: .24s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes chipPulse { 0%, 100% { transform: none; } 50% { transform: scale(1.045); } }
@media (prefers-reduced-motion: reduce) { .expday .chip { animation: none !important; } }
@media (prefers-reduced-motion: no-preference) { .sky-twip { animation: none; } }
.sky-say { display: none; }
.sky-say-hidden {
  position: relative; max-width: 100%;
  background: #fff; color: var(--navy); border-radius: 18px 18px 18px 4px; padding: 11px 14px; text-align: center;
  font-size: 13.5px; font-weight: 500; line-height: 1.4; box-shadow: 0 18px 34px -20px rgba(6,40,70,.7);
}
.sky-say::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; width: 10px; height: 10px; background: #fff; transform: rotate(45deg); border-radius: 2px; }

/* labels on the map, on sky */
.istyle-lab { color: var(--navy); border-color: rgba(255,255,255,.6); box-shadow: 0 12px 24px -16px rgba(6,40,70,.9); }

@media (max-width: 1000px) {
  .sky-inner { grid-template-columns: 1fr; padding-top: clamp(170px, 22vh, 220px); gap: 26px; }
  /* stacked layout would push the map below the fold: float it over the hero,
     right-aligned so the copy column keeps its own space */
  .sky-visual { position: absolute; inset: 0 0 auto auto; order: 1; width: 62%; height: 100%; min-height: 0; place-items: start end; padding: 0; }
  .sky-map { --mx: -420px; --my: -120px; height: 147vh; width: auto; aspect-ratio: 5 / 7; margin-right: clamp(16px, 3vw, 70px); }
  .sky-buddy { right: 8px; }
  .sky-buddy { width: clamp(130px, 26vw, 180px); }
  .sky-say { font-size: 12.5px; }
  .sky-card { max-width: none; }
}
@media (max-width: 600px) {
  .sky-inner { padding-top: 186px; }
  .sky-card { border-radius: 34px; padding: 22px 24px; }
  #destinations.sky-hero .searchbar { flex-wrap: wrap; border-radius: 30px; padding: 10px; }
  #destinations.sky-hero .searchbar .sf { flex: 1 1 100%; }
  #destinations.sky-hero .searchbar .sf-div { display: none; }
  #destinations.sky-hero .searchbar .sf-go { width: 100%; border-radius: 999px; height: 46px; }
}

/* ── promo bar (only at the very top of the page) ─────────────────────── */
.promo-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 38px; display: flex; align-items: center; justify-content: flex-end; padding: 0 92px 0 clamp(430px, 50vw, 620px);
  background: transparent; color: #fff; border-bottom: 0; box-shadow: none; }
/* the azzurro Twip background is a sheet that slides DOWN into the bar as soon
   as the page leaves the very top; at the top the bar is fully transparent */
.promo-bar::before { content: ""; position: absolute; inset: 0; background: var(--azzurro-twip); transform: translateY(-100%);
  transition: transform .42s cubic-bezier(.4,0,.2,1); will-change: transform; }
.promo-bar > * { position: relative; z-index: 1; }
body.promo-solid .promo-bar::before, body.nav-menu-open .promo-bar::before { transform: none; }
body:not(.promo-solid):not(.nav-menu-open) .topnav a { text-shadow: 0 1px 10px rgba(6,40,70,.35); }
/* the search pill must not float over the open mega-menu card */
body.nav-menu-open .shead { z-index: 48; }
@media (prefers-reduced-motion: reduce) { .promo-bar::before { transition: opacity .2s ease; } }
.topbar-brand { display: none; }
.topnav { display: flex; align-items: center; gap: 16px; flex: 0 1 auto; min-width: 0; flex-wrap: nowrap; overflow: hidden; }
.topnav a { font-size: 14px; }
@media (max-width: 1180px) { .topnav a.opt { display: none; } }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; text-decoration: none; white-space: nowrap; opacity: .88; transition: opacity .18s; }
.topnav a:hover { opacity: 1; }
.topnav-sep { width: 1px; height: 20px; background: rgba(255,255,255,.28); flex: none; }
.topnav-cta { padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); opacity: 1 !important; }
.topnav-cta:hover { background: rgba(255,255,255,.14); }
.shead.home-head { top: 0; }
@media (max-width: 700px) { .promo-bar { height: 34px; padding: 0 12px 0 200px; } .topnav a { font-size: 13px; } .shead.home-head { top: 0; } }

/* ── HEADER on sky ────────────────────────────────────────────────────── */
.shead.home-head { background: transparent; box-shadow: none; border-bottom: 0; }
.shead.home-head.compact { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border-bottom: 0; }
.shead.home-head .cat, .shead.home-head .host-link { color: var(--navy); }
.shead.home-head .cat:hover, .shead.home-head .host-link:hover { background: rgba(255,255,255,.55); }
.shead.home-head .globe-btn { color: var(--navy); background: rgba(255,255,255,.6); border-color: rgba(255,255,255,.8); }
.shead.home-head .avatar { background: #fff; color: var(--sky-3); border-color: rgba(255,255,255,.6); }
.shead.home-head .brand-logo { filter: none; }
.shead.home-head .morph-search { background: #fff; box-shadow: 0 22px 44px -26px rgba(6,40,70,.7); }

/* ── FOOTER ───────────────────────────────────────────────────────────── */
.site-foot {
  background: linear-gradient(180deg, #33373C 0%, #23262A 100%); color: #fff; border-radius: 0; margin: 0;
  padding: clamp(44px, 7vh, 78px) clamp(20px, 4vw, 56px) clamp(34px, 5vh, 54px);
  display: grid; justify-items: center; gap: 20px; text-align: center;
}
.site-foot .foot-mark em { color: rgba(255,255,255,.92); }
.site-foot .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.site-foot .links a { color: rgba(255,255,255,.9); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.site-foot .links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-foot .meta { color: rgba(255,255,255,.66); font-size: 13px; }
a { color: var(--sky-2); }
a:hover { color: var(--sky-3); }


/* ── region spotlight ─────────────────────────────────────────────────── */
.iregion { pointer-events: none; transform-box: fill-box; transform-origin: 50% 50%; vector-effect: non-scaling-stroke; transition: transform .7s cubic-bezier(.22,1,.32,1), filter .5s, stroke-opacity .3s ease; }
body.map-flat .iregion { stroke-opacity: 0; }
body.map-flat .rspot { opacity: 0 !important; transition: opacity .3s ease; }
.iregion.on { filter: drop-shadow(0 2px 4px rgba(6,40,70,.22)); }
/* the diorama itself, no frame: the source white was cut to transparency
   (twip/regions/*.png) so the model sits directly on its region */
.rspot {
  position: absolute; z-index: 3; width: clamp(92px, 11vw, 160px); display: grid; justify-items: center; gap: 0;
  transform: translate(-50%, -78%) scale(.36); transform-origin: 50% 88%;
  opacity: .72; filter: saturate(.85); transition: opacity .45s, transform .55s cubic-bezier(.22,1,.32,1), filter .45s;
  pointer-events: none;
}
/* every region keeps its model on the map; the lifted one grows and comes forward */
.rspot.on { opacity: 1; filter: none; z-index: 5; transform: translate(-50%, -78%) scale(.82); }
.rspot-pic {
  display: block; width: 100%; aspect-ratio: 1; object-fit: contain;
  transform: rotate(calc(5deg - var(--mp, 0) * 70deg)); transform-origin: 50% 88%;
}
.rspot.on .rspot-pic { filter: drop-shadow(0 10px 12px rgba(6,40,70,.28)); }
.rspot.no-pic .rspot-pic { display: none; }
.rspot-name { margin-top: -6px; opacity: 0; transition: opacity .35s; }
.rspot.on .rspot-name { opacity: 1; }
.rspot-name { margin-top: -6px; font-size: 11px; font-weight: 800; color: var(--navy); letter-spacing: .02em; text-align: center; text-shadow: 0 2px 8px rgba(255,255,255,.85); transform: rotate(calc(5deg - var(--mp, 0) * 70deg)); }
@media (max-width: 1000px) { .rspot { width: clamp(84px, 15vw, 130px); } .rspot-name { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .iregion, .rspot { transition: none; } }

/* city names — hidden until their region lifts. The dot stays on the real
   point, the pill is dodged clear of the diorama and of its neighbours, a thin
   leader line ties the two together. */
.rcity, .rcity-dot { position: absolute; z-index: 2; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, transform .3s ease, visibility 0s .3s; }
.rcity { transform: translate(0, -50%) scale(.94); transform-origin: 0 50%; }
.rcity.flip { transform: translate(-100%, -50%) scale(.94); transform-origin: 100% 50%; }
.rcity .rc-t { display: block; font-size: 12.5px; font-weight: 800; color: var(--navy); letter-spacing: .01em; white-space: nowrap; background: rgba(255,255,255,.88); border-radius: 999px; padding: 2px 9px; box-shadow: 0 8px 18px -12px rgba(6,40,70,.8); }
.rcity-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(11,44,74,.3); }
.rcity-dot::after { content: ""; position: absolute; left: 3.5px; top: 3.5px; width: var(--len, 0px); height: 1.5px; background: rgba(11,44,74,.32); transform: rotate(var(--ang, 0rad)); transform-origin: 0 50%; }
.rcity.on, .rcity-dot.on { opacity: 1; visibility: visible; transition-delay: .12s, .12s, 0s; }
.rcity.on { transform: translate(0, -50%) scale(1); }
.rcity.flip.on { transform: translate(-100%, -50%) scale(1); }
@media (max-width: 1000px) { .rcity .rc-t { font-size: 11.5px; } }
@media (prefers-reduced-motion: reduce) { .rcity, .rcity-dot { transition: none; } }

/* header: no category tabs on the landing page — the search pill sits in the top bar */
.shead.home-head .cats { display: none; }
/* header: no host CTA and no account icon on the landing page; the TWIP
   wordmark lives inside the search pill */
.shead.home-head .host-link, .shead.home-head .acct { display: none; }
.ms-brand { flex: 0 0 auto; display: flex; align-items: center; padding-left: 6px; padding-right: 2px; }
.ms-brand .brand-logo { height: 22px; width: auto; display: block; }
.ms-swap { position: relative; display: block; height: 46px; width: 70px; overflow: hidden; }
.ms-swap .brand-logo { position: absolute; left: 0; top: 50%; transition: transform .42s cubic-bezier(.4,0,.2,1), opacity .28s ease; }
.ms-swap .bl-full { transform: translateY(-50%); }
.ms-swap .bl-mark { height: 44px; top: 50%; margin-top: -22px; transform: translateY(-260%); opacity: 0; transform-origin: 50% 88%; }
.shead.home-head.compact .ms-swap .bl-full { transform: translateY(-260%); opacity: 0; }
.shead.home-head.compact .ms-swap .bl-mark { transform: none; opacity: 1; }
.twip-lock { display: flex; align-items: flex-end; height: 22px; overflow: hidden; }
.twip-lock img { height: 22px; width: auto; display: block; }
.twip-lock .tw-l { transition: transform .42s cubic-bezier(.4,0,.2,1), opacity .3s ease, margin-right .42s cubic-bezier(.4,0,.2,1); }
.twip-lock .tw-i { transition-delay: .03s; }
.twip-lock .tw-p { transition-delay: .06s; }
.shead.home-head .morph-search, .shead.home-head.compact .morph-search { top: 11px; width: min(330px, 34vw); height: 54px; transform: scale(1.2); transform-origin: left center; }
.shead.home-head.compact .ms-full { padding: 0 6px; gap: 2px; }
.shead.home-head .ms-mark { display: none !important; }
.shead.home-head.compact .ms-swap .bl-mark { animation: twipJump 3s cubic-bezier(.3,.8,.4,1) .5s infinite none; }
@media (prefers-reduced-motion: reduce) { .shead.home-head.compact .ms-swap .bl-mark { animation: none; } }
@media (min-width: 861px) {
  /* past the hero the bar stays open on its own, exactly like the hover state */
  .shead.home-head .morph-search:hover,
  .shead.home-head.compact .morph-search { width: min(760px, 82vw) !important; }
  .morph-search:hover .twip-lock .tw-l,
  .shead.home-head.compact .twip-lock .tw-l { transform: translateY(-140%); opacity: 0; }
  .morph-search:hover .twip-lock .tw-t,
  .shead.home-head.compact .twip-lock .tw-t { margin-right: -14.8px; }
  .morph-search:hover .twip-lock .tw-i,
  .shead.home-head.compact .twip-lock .tw-i { margin-right: -6.6px; }
  .morph-search:hover .twip-lock .tw-p,
  .shead.home-head.compact .twip-lock .tw-p { margin-right: -15.5px; }
  /* collapsed pill: only the three 3D icons show; the labels are tucked behind
     them and slide out when the bar expands on hover */
  .shead.home-head .ms-full { padding: 0 6px; gap: 2px; box-sizing: border-box; }
  .shead.home-head .ms-full .sf { flex: 0 1 auto; min-width: 0; padding: 6px 6px; overflow: hidden; display: flex; align-items: center; gap: 8px; position: relative; }
  .sf-ic { flex: 0 0 auto; width: 38px; height: 38px; object-fit: contain; display: block; position: relative; z-index: 2; transition: transform .35s cubic-bezier(.22,1,.32,1); }
  .shead.home-head .ms-full .sf:hover .sf-ic { transform: none; }
  .sf-txt { max-width: 0; opacity: 0; transform: translateX(-16px); overflow: hidden;
    transition: max-width .5s cubic-bezier(.22,1,.32,1), opacity .3s ease, transform .5s cubic-bezier(.22,1,.32,1); }
  .shead.home-head .morph-search:hover .sf-txt,
  .shead.home-head.compact .sf-txt { max-width: 210px; opacity: 1; transform: none; }
  .shead.home-head .ms-full .sf-lab, .shead.home-head .ms-full .sf-val {
    max-width: none; white-space: nowrap; overflow: visible; text-overflow: clip; }
  .shead.home-head .ms-full .sf-div { opacity: 0; transition: opacity .3s ease; }
  .shead.home-head .morph-search:hover .ms-full .sf-div,
  .shead.home-head.compact .ms-full .sf-div { opacity: 1; }
  .shead.home-head .ms-full .sf-go, .shead.home-head .ms-full .ms-go { flex: 0 0 auto; }
}
.shead.home-head .shead-space { height: 0; }
@media (max-width: 860px) {
  .shead.home-head:not(.pagehdr) .shead-top { height: 68px; padding-top: 0; }
  .shead.home-head:not(.pagehdr) .brand { display: flex; }
  .shead.home-head:not(.pagehdr) .morph-search { top: 70px; height: 48px; }
  .shead.home-head .shead-space { height: 56px; }
}

/* ── AI bar inside the collapsing home pill: the prompt field is tucked away
   while the pill is small and slides open with it (same rhythm as .sf-txt) ── */
@media (min-width: 861px) {
  .shead.home-head .ms-full .ai-cell { flex: 0 1 auto; }
  .shead.home-head .ai-input { max-width: 0; opacity: 0; transform: translateX(-12px); padding: 0;
    transition: max-width .5s cubic-bezier(.22,1,.32,1), opacity .3s ease, transform .5s cubic-bezier(.22,1,.32,1); }
  .shead.home-head .morph-search:hover .ms-full .ai-cell,
  .shead.home-head.compact .ms-full .ai-cell { flex: 1 1 auto; }
  .shead.home-head .morph-search:hover .ai-input,
  .shead.home-head.compact .ai-input { max-width: 520px; opacity: 1; transform: none; }
  /* the ":" only makes sense once the prompt example is out */
  .shead.home-head .ai-lab::after { content: ""; }
  .shead.home-head .morph-search:hover .ai-lab::after,
  .shead.home-head.compact .ai-lab::after { content: ":"; }
}

/* ── EXPERIMENT (temporaneo) — hero: bordi regionali quasi invisibili e nessun
   modellino per regione. Rimuovere questo blocco per tornare indietro. ── */
.iregion { stroke: rgba(104,120,62,.20) !important; stroke-width: .3 !important; }
.rspot { display: none !important; }

/* ── Etna, appena prima del footer ─────────────────────────────────────
   Il cielo della foto (#A7CEE3) diventa il colore in cui la sezione "Iniziamo?"
   sfuma: dall'azzurro Twip si scivola dentro la foto senza una linea di stacco. */
#inizia { background: linear-gradient(180deg, rgba(167,206,227,0) 0%, #A7CEE3 calc(100% - 60px), #A7CEE3 100%); }
#inizia.tcta { padding-bottom: 64px; }
.tetna { position: relative; background: #A7CEE3; line-height: 0; margin-top: -60px; }
.tetna img { width: 100%; height: auto; display: block; }
/* il cielo della foto non è perfettamente uniforme in orizzontale: invece di
   coprirlo con una tinta piatta (che lasciava una linea), la foto stessa entra
   in dissolvenza lunga sul colore della sezione — nessun bordo, solo cielo */
.tetna img { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.18) 10%, rgba(0,0,0,.62) 26%, #000 46%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.18) 10%, rgba(0,0,0,.62) 26%, #000 46%); }

/* ── nuvole sopra la mappa ──────────────────────────────────────────────
   L'Italia è vista dall'alto: le nuvole passano SOPRA la mappa e SOTTO i
   contenuti. Livello fisso, quindi accompagnano tutta la landing; ogni nuvola
   è composta da gonfiori di gradiente (niente blur costoso) e scorre lenta. */
.skyclouds { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; contain: strict; }
/* nuvole vere, non palloncini: masse morbide deformate da rumore frattale
   (feTurbulence + feDisplacementMap) rasterizzate una volta sola come immagine,
   così i bordi sono sfrangiati e irregolari come dall'aereo. */
.skyclouds i { position: absolute; display: block; will-change: transform;
  background-repeat: no-repeat; background-size: 100% 100%;
  filter: drop-shadow(0 42px 30px rgba(16,86,130,.26)) drop-shadow(0 10px 14px rgba(16,86,130,.10)); }
.skyclouds i.k1, .skyclouds i.k4 { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 170'><defs><filter id='f' x='-30%' y='-60%' width='160%' height='220%' color-interpolation-filters='sRGB'><feTurbulence type='fractalNoise' baseFrequency='0.011 0.028' numOctaves='5' seed='11' result='t'/><feDisplacementMap in='SourceGraphic' in2='t' scale='110' xChannelSelector='R' yChannelSelector='G'/><feGaussianBlur stdDeviation='2.6'/></filter><radialGradient id='g' cx='50%' cy='56%' r='54%'><stop offset='0%' stop-color='%23fff' stop-opacity='1'/><stop offset='58%' stop-color='%23fff' stop-opacity='.94'/><stop offset='100%' stop-color='%23fff' stop-opacity='0'/></radialGradient></defs><g filter='url(%23f)'><ellipse cx='205' cy='96' rx='148' ry='38' fill='url(%23g)'/><ellipse cx='148' cy='78' rx='74' ry='38' fill='url(%23g)'/><ellipse cx='252' cy='70' rx='90' ry='44' fill='url(%23g)'/></g></svg>"); }
.skyclouds i.k2, .skyclouds i.k5 { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 170'><defs><filter id='f' x='-30%' y='-60%' width='160%' height='220%' color-interpolation-filters='sRGB'><feTurbulence type='fractalNoise' baseFrequency='0.014 0.033' numOctaves='5' seed='29' result='t'/><feDisplacementMap in='SourceGraphic' in2='t' scale='128' xChannelSelector='R' yChannelSelector='G'/><feGaussianBlur stdDeviation='2.6'/></filter><radialGradient id='g' cx='50%' cy='56%' r='54%'><stop offset='0%' stop-color='%23fff' stop-opacity='1'/><stop offset='58%' stop-color='%23fff' stop-opacity='.94'/><stop offset='100%' stop-color='%23fff' stop-opacity='0'/></radialGradient></defs><g filter='url(%23f)'><ellipse cx='200' cy='100' rx='154' ry='32' fill='url(%23g)'/><ellipse cx='168' cy='80' rx='94' ry='42' fill='url(%23g)'/><ellipse cx='268' cy='86' rx='68' ry='32' fill='url(%23g)'/></g></svg>"); }
.skyclouds i.k3, .skyclouds i.k6 { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 170'><defs><filter id='f' x='-30%' y='-60%' width='160%' height='220%' color-interpolation-filters='sRGB'><feTurbulence type='fractalNoise' baseFrequency='0.009 0.022' numOctaves='5' seed='47' result='t'/><feDisplacementMap in='SourceGraphic' in2='t' scale='96' xChannelSelector='R' yChannelSelector='G'/><feGaussianBlur stdDeviation='2.6'/></filter><radialGradient id='g' cx='50%' cy='56%' r='54%'><stop offset='0%' stop-color='%23fff' stop-opacity='1'/><stop offset='58%' stop-color='%23fff' stop-opacity='.94'/><stop offset='100%' stop-color='%23fff' stop-opacity='0'/></radialGradient></defs><g filter='url(%23f)'><ellipse cx='198' cy='94' rx='138' ry='42' fill='url(%23g)'/><ellipse cx='236' cy='74' rx='102' ry='38' fill='url(%23g)'/></g></svg>"); }
.skyclouds i.k4, .skyclouds i.k6 { transform-origin: 50% 50%; }
.skyclouds i.k1 { width: 40vw; height: 14vw; top: 5vh;  opacity: .95; animation: cloudDrift 96s linear infinite; animation-delay: -43s; }
.skyclouds i.k2 { width: 28vw; height: 10vw; top: 23vh; opacity: .8;  animation: cloudDrift 148s linear infinite; animation-delay: -44s; }
.skyclouds i.k3 { width: 54vw; height: 18vw; top: 43vh; opacity: .9;  animation: cloudDrift 78s linear infinite;  animation-delay: -47s; }
.skyclouds i.k4 { width: 22vw; height: 8vw;  top: 62vh; opacity: .7;  animation: cloudDrift 172s linear infinite; animation-delay: -65s; }
.skyclouds i.k5 { width: 46vw; height: 16vw; top: 77vh; opacity: .92; animation: cloudDrift 112s linear infinite; animation-delay: -58s; }
.skyclouds i.k6 { width: 32vw; height: 11vw; top: 33vh; opacity: .78; animation: cloudDrift 134s linear infinite; animation-delay: -91s; }
@keyframes cloudDrift { from { transform: translate3d(-60vw, 0, 0); } to { transform: translate3d(160vw, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .skyclouds i { animation-duration: 0s !important; transform: translate3d(30vw,0,0); } }
@media (max-width: 700px) { .skyclouds i.k2, .skyclouds i.k4, .skyclouds i.k6 { display: none; } }
/* foto finale e footer restano sopra le nuvole */
.tetna, .site-foot { position: relative; z-index: 3; }

/* ── riquadri foto sull'hero ────────────────────────────────────────────
   Niente più striscia di immagini a scorrimento: il cielo torna pulito e tre
   riquadri stondati compaiono in alto a sinistra, in alto a destra e in basso
   al centro, sopra la mappa e sotto il testo. */
.herocards { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hc { position: absolute; margin: 0; overflow: hidden; border-radius: 26px; background: #DCEFFB;
  box-shadow: 0 34px 70px -30px rgba(6,40,70,.55), 0 2px 0 rgba(255,255,255,.5) inset; opacity: 0; }
.hc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-tl { top: 104px; left: clamp(16px, 3vw, 46px); width: clamp(190px, 19vw, 290px); aspect-ratio: 4 / 3;
  animation: hcIn .9s cubic-bezier(.22,1,.32,1) .35s forwards; }
.hc-tr { top: 86px; right: clamp(16px, 3vw, 46px); width: clamp(200px, 20vw, 310px); aspect-ratio: 5 / 6;
  animation: hcIn .9s cubic-bezier(.22,1,.32,1) .5s forwards; }
.hc-bc { bottom: clamp(36px, 7vh, 92px); left: 50%; width: clamp(240px, 26vw, 400px); aspect-ratio: 16 / 10;
  animation: hcInC .9s cubic-bezier(.22,1,.32,1) .65s forwards; }
@keyframes hcIn  { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes hcInC { from { opacity: 0; transform: translate(-50%, 22px) scale(.97); } to { opacity: 1; transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hc { animation-duration: .01s !important; } }
@media (max-width: 900px) { .hc-tr, .hc-bc { display: none; } .hc-tl { top: 88px; width: 42vw; } }

.foot-logo { width: clamp(150px, 15vw, 210px); height: auto; display: block; margin: 0 0 4px -80px; }


/* ── hero: un solo campo "Hai idee?" al posto delle preferenze ───────── */
.ideaform { display: flex; align-items: center; gap: 8px; width: min(460px, 100%);
  background: #fff; border-radius: 999px; padding: 6px 6px 6px 22px; box-shadow: 0 24px 46px -28px rgba(6,40,70,.7); }
.idea-input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent; padding: 12px 0;
  font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--navy); }
.idea-input::placeholder { color: #7C93A6; font-weight: 500; }
.idea-go { flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  color: #fff; background: var(--azzurro-twip); box-shadow: 0 12px 22px -12px rgba(10,92,158,.9); transition: transform .18s, background .2s; }
.idea-go:hover { transform: scale(1.06); background: #12A0B6; }
.idea-go svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.idea-hint { justify-self: start; border: 0; background: transparent; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 15px;
  color: var(--navy); padding: 10px 18px; border-radius: 14px; margin-top: -2px; transition: background .2s ease, transform .2s ease; }
.idea-hint:hover, .idea-hint:focus-visible { background: rgba(6,60,100,.12); outline: none; }
@media (max-width: 700px) { .ideaform { width: 100%; padding-left: 16px; } .idea-input { font-size: 15px; } }
