/* =========================================================
   STAYS — vetrina brand
   Colori, font e spaziature in un unico punto: modifica qui.
   ========================================================= */
:root {
  --blue: #0a3cc4;          /* blu header / footer / bottoni */
  --blue-dark: #082f9c;
  --ink: #2b2f36;           /* titoli */
  --text: #5b6170;          /* testo */
  --muted: #8a8f9c;
  --bg: #ffffff;
  --card: #ffffff;
  --line: #eceef2;
  --shadow: 0 6px 24px rgba(20, 30, 60, .08);
  --shadow-sm: 0 2px 10px rgba(20, 30, 60, .06);
  --radius: 10px;
  --header-h: 76px;
  --container: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.2; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 14px/1 var(--font);
  padding: 12px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn--sm { padding: 9px 22px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { background: #e8eeff; }
.btn--outline { border-color: #fff; color: #fff; background: rgba(255,255,255,.04); backdrop-filter: blur(2px); }
.btn--outline:hover { background: #fff; color: var(--ink); }
.btn--blue { background: var(--blue); color: #fff; border-radius: 4px; }
.btn--blue:hover { background: var(--blue-dark); }
.btn--block { width: 100%; padding: 15px 20px; font-size: 15px; }
.btn-link { background: none; border: 0; font: 500 13px var(--font); color: var(--ink); cursor: pointer; padding: 8px 12px; }
.btn-link:hover { color: var(--blue); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: var(--blue);
  box-shadow: 0 2px 14px rgba(0,0,0,.12);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.header__logo img { height: 34px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 30px; }
.nav-link { color: #fff; font-size: 14px; font-weight: 500; position: relative; padding: 4px 0; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: #fff; transform: scaleX(0); transition: transform .2s; }
.nav-link.is-active::after, .nav-link:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative; margin-top: var(--header-h);
  height: clamp(420px, 68vh, 720px);
  display: flex; align-items: center; overflow: hidden;
  background: #1b2433 url("../assets/img/hero-poster.jpg") center/cover no-repeat;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,.12) 55%, rgba(0,0,0,0) 100%); }
.hero__content { position: relative; z-index: 1; }
.hero__title {
  color: #fff; font-weight: 700; font-size: clamp(30px, 4.2vw, 52px);
  letter-spacing: -.01em; margin-bottom: 26px; text-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.hero__title em { font-style: italic; font-weight: 800; }

/* ---------- Prenotazione ---------- */
.booking { padding: 90px 0 30px; }
.booking__form { display: flex; flex-direction: column; gap: 22px; }
.booking__fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.field {
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--line); padding: 10px 4px;
  color: var(--muted); cursor: pointer;
}
.field:focus-within { border-color: var(--blue); }
.field svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.field input, .field select {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: 400 14px var(--font); color: var(--text); cursor: pointer;
  -webkit-appearance: none; appearance: none;
}

/* ---------- Sezioni ---------- */
.section { padding: 70px 0; }
.section--tight { padding: 50px 0; }
.section__title { font-size: 26px; font-weight: 600; margin-bottom: 34px; }

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Card appartamenti */
.apt-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.apt-card:hover { transform: translateY(-4px); box-shadow: 0 12px 34px rgba(20,30,60,.12); }
.apt-card__img { aspect-ratio: 4 / 5; overflow: hidden; background: #ece8e0; }
.apt-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.apt-card:hover .apt-card__img img { transform: scale(1.04); }
.apt-card__body { padding: 18px 20px 22px; }
.apt-card__body h3 { font-size: 17px; font-weight: 600; }
.apt-card__body p { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Card servizi */
.service-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 44px 40px 46px; text-align: center;
}
.service-card__icon { width: 58px; height: 58px; margin: 0 auto 16px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.service-card p { font-size: 13px; max-width: 440px; margin: 0 auto; }

/* Partner (scorrimento continuo) */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 22s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.partner { flex: none; width: 300px; text-align: center; font-size: 32px; font-weight: 700; padding: 18px 0; color: #9aa1ad; letter-spacing: -.01em; }
.partner--vrbo { font-style: italic; font-family: Georgia, "Times New Roman", serif; }
.partner--airbnb { font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Perché STAYS */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.why__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; }
.why__img img { width: 100%; height: 100%; object-fit: cover; }
.why__logo { width: 190px; height: auto; margin-bottom: 26px; }
.why__text p { font-size: 13.5px; }
.why__sign { margin-top: 18px; color: var(--ink); font-size: 13px; }
.why__sign em { color: var(--text); }

/* Recensioni */
.review {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 8px;
}
.review.is-hidden { display: none; }
.review__head { display: flex; align-items: center; gap: 10px; }
.review__head strong { display: block; color: var(--ink); font-size: 13px; font-weight: 600; }
.review__head small { display: block; color: var(--muted); font-size: 11px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--c, #999); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.stars { color: #f5b301; letter-spacing: 2px; font-size: 15px; line-height: 1; }
.review__text { font-size: 13px; color: var(--ink); }
.review__src { margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: 600; color: #e0565b; }
.reviews__more { text-align: center; margin-top: 26px; }
.reviews__more.is-hidden { display: none; }

/* CTA Domande */
.cta {
  position: relative; min-height: 340px; display: grid; place-items: center; text-align: center;
  background: #3a3530 url("../assets/img/domande-bg.jpg") center/cover no-repeat;
  margin-top: 40px;
}
.cta__overlay { position: absolute; inset: 0; background: rgba(20, 16, 10, .42); }
.cta__content { position: relative; z-index: 1; padding: 40px 24px; }
.cta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; margin-bottom: 20px; }

/* Footer */
.footer { background: var(--blue); color: #fff; padding: 70px 0 64px; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 40px; align-items: start; }
.footer__brand img { width: 190px; height: auto; margin-bottom: 26px; }
.footer__brand p { font-size: 13px; opacity: .9; }
.footer h4 { color: #fff; font-size: 18px; font-weight: 600; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 13px; }
.footer a { opacity: .92; transition: opacity .2s; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer__col--links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }
.footer__col--links h4 { grid-column: 1 / -1; }
.contacts a { display: inline-flex; align-items: center; gap: 10px; }
.contacts svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; }

/* ---------- Animazione in entrata ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .header__logo img { height: 28px; }
  .header__nav { gap: 18px; }
  .booking { padding-top: 50px; }
  .booking__fields { grid-template-columns: 1fr; gap: 8px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 50px 0; }
  .service-card { padding: 34px 24px; }
  .partner { width: 210px; font-size: 26px; }
}
@media (max-width: 520px) {
  .grid--4 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__col--links { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
