/* =========================================================
   Dormio — Public site
   ========================================================= */

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(5,6,12,.72);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.22rem; letter-spacing: -.02em; }
.brand__orb {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad); background-size: 180% 180%;
  animation: gradShift 6s var(--ease) infinite;
  box-shadow: var(--glow);
  position: relative;
}
.brand__orb::after { content: ""; position: absolute; inset: 6px; border-radius: 4px; background: var(--bg); }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a { font-size: .92rem; color: var(--muted); position: relative; transition: color .25s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--grad); transition: width .3s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); display: none; place-items: center; }
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text); transition: transform .3s, opacity .3s;
}
.nav__burger span::before { transform: translateY(-6px); }
.nav__burger span::after  { transform: translateY(4px); }

@media (max-width: 940px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: rgba(5,6,12,.96); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 10px 22px 22px;
    transform: translateY(-120%); transition: transform .45s var(--ease);
  }
  .nav__links.open { transform: none; }
  .nav__links a { width: 100%; padding: 15px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav__burger { display: grid; }
  .nav__cta .btn:not(.nav__burger) { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(40px, 9vw, 96px)); padding-bottom: clamp(60px, 10vw, 120px); }
.hero__spot { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(340px circle at var(--px, 50%) var(--py, 30%), rgba(91,140,255,.14), transparent 70%);
  transition: background .2s; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.1rem); margin: 18px 0 22px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; animation: rise .9s var(--ease-out) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .2s; }

.rotator,
.hero h1 .line > span.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > span {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(60%) rotateX(-40deg);
  transform-origin: bottom;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.rotator > span.active { opacity: 1; transform: none; }
.rotator > span.out { opacity: 0; transform: translateY(-60%) rotateX(40deg); }

.hero p.sub { font-size: clamp(1rem, 2vw, 1.16rem); color: var(--muted); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__stats { display: flex; gap: 30px; margin-top: 46px; flex-wrap: wrap; }
.stat { display: grid; gap: 2px; }
.stat b { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 600; }
.stat span { font-size: .8rem; color: var(--muted); letter-spacing: .03em; }
.stat + .stat { padding-left: 30px; border-left: 1px solid var(--border); }

/* ---------- Patente rosa (hero card) ---------- */
.licenseWrap { perspective: 1200px; display: grid; place-items: center; }
.license {
  --ink: #46313c;
  --ink-soft: #946f7e;
  position: relative;
  width: min(430px, 94%); aspect-ratio: 1.585;
  padding: 15px 18px 15px 54px;
  border-radius: 16px;
  overflow: hidden;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  display: flex; flex-direction: column; gap: 9px;
  background:
    radial-gradient(130% 120% at 100% 0%, rgba(255,255,255,.55), transparent 42%),
    repeating-linear-gradient(118deg, rgba(255,255,255,.13) 0 1.5px, transparent 1.5px 8px),
    linear-gradient(140deg, #f8dde6 0%, #efc4d3 46%, #e3a7bf 100%);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.7);
  transform-style: preserve-3d;
  transition: transform .3s var(--ease);
  animation: float 7s ease-in-out infinite;
}
.license::before { /* holographic sweep */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 43%, rgba(255,255,255,.55) 50%, transparent 57%);
  background-size: 250% 100%;
  animation: shimmer 6s linear infinite;
  mix-blend-mode: screen;
}
.license__eu {
  position: absolute; left: 0; top: 0; bottom: 0; width: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 9px; padding-top: 16px;
  background: linear-gradient(180deg, #123fa6, #0b2c7d);
  transform: translateZ(12px);
}
.license__eu i { width: 22px; height: 22px; border-radius: 50%; border: 2px dotted #ffd21f; }
.license__eu b { color: #fff; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: .95rem; }

.license__head { display: flex; align-items: center; justify-content: space-between; transform: translateZ(28px); }
.license__head span { font-family: "Space Grotesk", sans-serif; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.license__flag { display: inline-block; width: 34px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  background: linear-gradient(90deg, #0a8f3c 0 33.33%, #fff 33.33% 66.66%, #d3202f 66.66%); }

.license__body { display: flex; gap: 14px; transform: translateZ(22px); }
.license__photo { flex-shrink: 0; width: 72px; height: 92px; border-radius: 6px;
  background: linear-gradient(180deg, #ddc8d1, #c6acb8);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.22);
  overflow: hidden; display: grid; place-items: center; }
.license__photo svg { width: 68%; height: 68%; }
.license__fields { display: grid; align-content: center; gap: 5px; font-size: .74rem; }
.license__fields div { display: flex; gap: 8px; align-items: baseline; }
.license__fields em { font-style: normal; color: var(--ink-soft); min-width: 20px; font-weight: 600; }
.license__fields b { font-weight: 600; }
.license__fields .big { font-family: "Space Grotesk", sans-serif; font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }

.license__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; transform: translateZ(28px); }
.license__cats { display: flex; align-items: center; gap: 6px; font-size: .7rem; color: var(--ink-soft); }
.license__cats em { font-style: normal; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: .9rem; color: var(--ink);
  border: 1px solid rgba(70,49,60,.35); border-radius: 5px; padding: 1px 7px; }
.license__sign { font-family: "Space Grotesk", sans-serif; font-size: .92rem; color: var(--ink);
  border-bottom: 1px solid rgba(70,49,60,.3); padding: 0 6px 2px; }

/* ---------- Section heading ---------- */
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 46px; flex-wrap: wrap; }
.shead h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); max-width: 18ch; }
.shead p { color: var(--muted); max-width: 42ch; }

/* ---------- Chi siamo ---------- */
.about__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } }
.about__photo { position: relative; width: min(340px, 100%); margin-inline: auto; }
.about__frame {
  aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border-2); box-shadow: var(--shadow);
  background: var(--grad-soft);
  transition: transform .4s var(--ease);
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 4.2rem;
  color: rgba(255,255,255,.45); letter-spacing: -.03em;
}
.about__badge {
  position: absolute; left: -16px; bottom: -18px; max-width: calc(100% - 20px);
  padding: 13px 20px; border-radius: var(--r-sm);
  background: rgba(10,12,22,.85); backdrop-filter: blur(10px);
  border: 1px solid var(--border-2); box-shadow: var(--shadow-sm);
  font-family: "Space Grotesk", sans-serif;
}
.about__badge b { font-size: 1.02rem; }
.about__badge span { display: block; font-size: .7rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }

/* ---------- Vehicles ---------- */
.fleet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .fleet { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .fleet { grid-template-columns: 1fr; } }
.vcard { padding: 0; display: flex; flex-direction: column; transform-style: preserve-3d; }
.vcard__media {
  aspect-ratio: 4 / 3; position: relative; overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--grad-soft);
  display: grid; place-items: center;
}
.vcard__media svg { width: 68%; transform: translateZ(30px); transition: transform .6s var(--ease); filter: drop-shadow(0 20px 30px rgba(0,0,0,.4)); }
.vcard:hover .vcard__media svg { transform: translateZ(30px) scale(1.06) rotate(-2deg); }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.vcard:hover .vcard__media img { transform: scale(1.06); }
.vcard__glow { position: absolute; inset: 0; background: radial-gradient(300px circle at 70% 20%, rgba(255,255,255,.16), transparent 60%); opacity: 0; transition: opacity .5s; }
.vcard:hover .vcard__glow { opacity: 1; }
.vcard__patente {
  position: absolute; bottom: 14px; right: 14px; z-index: 2;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(6,7,15,.78); backdrop-filter: blur(6px);
  border: 1px solid var(--border-2);
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: .76rem;
  letter-spacing: .03em; color: var(--text); white-space: nowrap;
  box-shadow: 0 4px 14px -4px rgba(0,0,0,.5);
}
.vcard__patente b { color: var(--brand-3); }
.vcard__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.vcard__body h3 { font-size: 1.28rem; }
.vcard__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tag { font-size: .72rem; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }

/* ---------- Promotions ---------- */
.promos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .promos { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.promo { display: flex; flex-direction: column; gap: 16px; }
.promo.is-hot {
  border-color: transparent;
  background:
    linear-gradient(180deg, var(--surface-2), var(--surface)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
}
.promo.is-hot::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: var(--grad); filter: blur(22px); opacity: .35;
}
.promo__price { display: flex; align-items: baseline; gap: 6px; }
.promo__price b { font-family: "Space Grotesk", sans-serif; font-size: 2.6rem; font-weight: 600; }
.promo__price s { color: var(--faint); font-size: 1rem; }
.promo__price span { color: var(--muted); font-size: .86rem; }
.promo ul { display: grid; gap: 10px; margin-top: 4px; }
.promo li { display: flex; gap: 10px; font-size: .92rem; color: var(--muted); }
.promo li::before { content: "✓"; color: var(--brand-3); font-weight: 700; }
.promo .btn { margin-top: auto; }

/* ---------- Booking ---------- */
.booking__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .booking__grid { grid-template-columns: 1fr; } }

.datestrip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.datestrip::-webkit-scrollbar { height: 6px; }
.datestrip::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; }
.datechip {
  flex-shrink: 0; width: 66px; padding: 12px 0; border-radius: var(--r-sm);
  border: 1px solid var(--border); text-align: center;
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.datechip small { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.datechip b { font-family: "Space Grotesk", sans-serif; font-size: 1.25rem; }
.datechip:hover:not([disabled]) { transform: translateY(-3px); border-color: var(--border-2); }
.datechip.active { background: var(--grad); color: #06070f; border-color: transparent; }
.datechip.active small { color: rgba(0,0,0,.6); }
.datechip[disabled] { opacity: .3; cursor: not-allowed; }

.fasce { display: flex; gap: 8px; margin: 22px 0 16px; flex-wrap: wrap; }
.fascia-tab {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border);
  font-size: .84rem; color: var(--muted); transition: .25s;
}
.fascia-tab.active { color: var(--text); border-color: var(--brand); background: rgba(91,140,255,.1); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.slot {
  padding: 13px 6px; border-radius: var(--r-sm); border: 1px solid var(--border);
  font-family: "Space Grotesk", sans-serif; font-size: .95rem; text-align: center;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.slot:hover:not([disabled]):not(.active) { transform: translateY(-2px); border-color: var(--border-2); }
.slot.active { background: var(--grad); color: #06070f; border-color: transparent; box-shadow: var(--glow); }
.slot[disabled] { opacity: .32; text-decoration: line-through; cursor: not-allowed; }

.booking__summary { display: grid; gap: 6px; padding: 16px; border-radius: var(--r-sm); background: rgba(255,255,255,.03); border: 1px dashed var(--border-2); margin: 18px 0; font-size: .9rem; }
.booking__summary span { color: var(--muted); }
.booking__summary b { font-family: "Space Grotesk", sans-serif; }

/* ---------- Signup ---------- */
.signup__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .signup__grid { grid-template-columns: 1fr; } }
.signup__points { display: grid; gap: 18px; margin-top: 26px; }
.signup__point { display: flex; gap: 14px; }
.signup__point i {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); font-style: normal; font-size: 1.1rem;
}
.signup__point b { font-family: "Space Grotesk", sans-serif; display: block; font-size: 1rem; }
.signup__point span { color: var(--muted); font-size: .88rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq__item { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface); transition: border-color .3s; }
.faq__item.open { border-color: var(--border-2); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; text-align: left; font-family: "Space Grotesk", sans-serif; font-size: 1.02rem; }
.faq__q i { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-2); display: grid; place-items: center; font-style: normal; transition: transform .3s; }
.faq__item.open .faq__q i { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq__a p { padding: 0 22px 22px; color: var(--muted); font-size: .94rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 70px 0 40px; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer a { display: block; padding: 6px 0; color: var(--muted); font-size: .92rem; transition: color .2s; }
.footer a:hover { color: var(--text); }
.footer__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--border); font-size: .82rem; color: var(--faint); }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; background: transparent; }
.progress__bar { height: 100%; width: 0; background: var(--grad); box-shadow: var(--glow); }
