/* =================================================================
   Robert Doza — Watamu, Kenya
   Palette: terra rossa dello Tsavo + laguna di Watamu
   Motivo ricorrente: l'arco (cancello del parco / finestra di corallo)
   ================================================================= */

:root {
  --ink:      #15211d;
  --ink-soft: #2f403a;
  --bone:     #f3eee4;
  --sand:     #e4d5be;
  --sand-dim: #d8c6a9;
  --rust:     #a8412a;
  --ochre:    #d98c2b;
  --lagoon:   #0f7e76;
  --lagoon-d: #0a5f59;
  --wa:       #25d366;

  --shadow: 0 18px 40px -22px rgba(21, 33, 29, .55);

  --f-display: "Anton", "Arial Narrow", sans-serif;
  --f-body: "Karla", system-ui, sans-serif;
}

/* --- base -------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--lagoon-d); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }

:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

.block { padding: 5.5rem 0; }
@media (max-width: 767px) { .block { padding: 3.5rem 0; } }

/* --- tipografia -------------------------------------------------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: .95;
  margin: 0;
}

h1.display { font-size: clamp(2.6rem, 6.4vw, 5.1rem); }
h2.display { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3.display { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: .03em; }

.eyebrow {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sand-dim);
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::before,
.eyebrow--center::after { content: ""; flex: 0 1 90px; height: 1px; background: var(--sand-dim); }

.lede { font-size: 1.15rem; color: var(--ink-soft); }

/* --- riquadro immagine ------------------------------------------- */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3 / 4;
  background: var(--sand);
  box-shadow: var(--shadow);
}
.frame > img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.frame--flat { aspect-ratio: 4 / 5; }

/* --- bottoni ----------------------------------------------------- */
.btn-doza {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .95rem 1.7rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn-doza:hover { transform: translateY(-2px); }

.btn-wa    { background: var(--wa); color: #05270f; border-color: var(--wa); }
.btn-wa:hover { background: #1eb457; color: #05270f; }

.btn-ink   { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn-ink:hover { background: var(--lagoon-d); border-color: var(--lagoon-d); color: var(--bone); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bone); }

.btn-ghost-light { background: transparent; color: var(--bone); border-color: rgba(243,238,228,.5); }
.btn-ghost-light:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

/* --- header ------------------------------------------------------ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(243,238,228,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--sand-dim);
}
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: 1.35rem;
  letter-spacing: .06em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.brand small {
  display: block;
  font-family: var(--f-body);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--rust);
  margin-top: .3rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover,
.nav-list a.is-active { color: var(--rust); border-bottom-color: var(--rust); }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: .5rem .9rem;
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 991px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--bone);
    border-bottom: 1px solid var(--sand-dim);
    display: none;
    padding: 1rem 1.25rem 1.5rem;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .nav-list a { display: block; padding: .7rem 0; width: 100%; border-bottom: 1px solid var(--sand-dim); }
  .head-cta { display: none; }
}

/* --- hero: carosello --------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(600px, 82vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.hero__slides { position: absolute; inset: 0; z-index: -2; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.hero__slide.is-active img {
  animation: kenburns 9s ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.11); }
}

.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(21,33,29,.94) 0%, rgba(21,33,29,.72) 32%, rgba(21,33,29,.18) 68%, rgba(21,33,29,.35) 100%),
    linear-gradient(to right, rgba(21,33,29,.6) 0%, rgba(21,33,29,0) 62%);
}

.hero__inner { padding: 8rem 0 6.5rem; }
.hero__text { max-width: 42rem; color: var(--bone); }
.hero .eyebrow { color: var(--ochre); }
.hero .eyebrow::after { background: rgba(243,238,228,.3); }
.hero__title { margin-bottom: 1.4rem; color: var(--bone); }
.hero__title .rust { color: var(--ochre); display: block; }
.hero__lede { font-size: 1.12rem; color: rgba(243,238,228,.85); max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

/* puntini */
.hero__dots {
  position: absolute;
  right: max(1.25rem, calc((100vw - 1180px) / 2));
  bottom: 5.2rem;
  display: flex;
  gap: .6rem;
  z-index: 2;
}
.hero__dots button {
  width: 34px; height: 4px;
  border: 0; padding: 0;
  border-radius: 999px;
  background: rgba(243,238,228,.35);
  cursor: pointer;
  transition: background .3s, width .3s;
}
.hero__dots button[aria-current="true"] { background: var(--ochre); width: 52px; }

/* barra luoghi dentro l'hero */
.hero__places {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  background: rgba(21,33,29,.55);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(243,238,228,.15);
  padding: .9rem 0;
}
.hero__places ul {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .4rem 1.5rem;
  list-style: none; margin: 0; padding: 0;
  font-weight: 700; font-size: .68rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(243,238,228,.72);
}
.hero__places li { display: flex; align-items: center; gap: 1.5rem; }
.hero__places li:not(:last-child)::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--ochre);
}

@media (max-width: 767px) {
  .hero { min-height: 88vh; }
  .hero__inner { padding: 5rem 0 7rem; }
  .hero__dots { bottom: 6rem; left: 1.25rem; right: auto; }
  .hero__scrim { background: linear-gradient(to top, rgba(21,33,29,.95) 12%, rgba(21,33,29,.5) 60%, rgba(21,33,29,.45) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide.is-active img { animation: none; transform: none; }
  .hero__slide { transition: none; }
}

/* --- fascia dati -------------------------------------------------- */
.facts {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
}
.facts li {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--sand-dim);
  font-size: .82rem;
}
.facts li:last-child { border-right: 0; }
.facts b {
  display: block;
  font-family: var(--f-display);
  font-size: 1.7rem;
  letter-spacing: .02em;
  color: var(--lagoon-d);
  font-weight: 400;
  margin-bottom: .2rem;
}
.facts span { color: var(--ink-soft); }
@media (max-width: 767px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li { padding: 1.4rem 1rem; border-bottom: 1px solid var(--sand-dim); }
  .facts li:nth-child(2n) { border-right: 0; }
}

/* --- chi sono ---------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about__text h2 { margin-bottom: 1.3rem; }
.about__text p + p { margin-top: 1rem; }
.sign {
  font-family: var(--f-display);
  font-size: 1.5rem;
  letter-spacing: .05em;
  color: var(--rust);
  margin-top: 1.8rem;
}
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 340px; margin-inline: auto; }
}

/* --- escursioni -------------------------------------------------- */
.tours__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 3rem;
}
.tours__head p { margin: 0; max-width: 34rem; }

.tour-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.2rem 1.6rem;
}
@media (max-width: 991px) { .tour-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .tour-grid { grid-template-columns: 1fr; } }

.tour { text-decoration: none; color: inherit; display: block; }
.tour:hover .frame > img { transform: scale(1.06); }
.tour:hover .tour__name { color: var(--rust); }

.tour__place {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lagoon-d);
  margin: 1.1rem 0 .35rem;
}
.tour__name { margin: 0 0 .5rem; transition: color .2s; }
.tour__text { font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* --- fascia safari ----------------------------------------------- */
.safari {
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
.safari__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.safari .eyebrow { color: var(--ochre); }
.safari .eyebrow::after { background: rgba(243,238,228,.25); }
.safari p { color: rgba(243,238,228,.78); }
.safari__photo {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.safari__photo img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.safari__list {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 2.2rem;
  display: grid;
  gap: .6rem;
}
.safari__list li {
  display: flex; gap: .8rem; align-items: baseline;
  font-size: .95rem;
  color: rgba(243,238,228,.85);
}
.safari__list li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ochre);
  transform: translateY(-2px);
}
@media (max-width: 900px) { .safari__grid { grid-template-columns: 1fr; } }

/* --- perché ------------------------------------------------------ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 2rem;
  margin-top: 3rem;
}
@media (max-width: 991px) { .why-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }
.why {
  border-top: 2px solid var(--rust);
  padding-top: 1.2rem;
}
.why h3 { margin: 0 0 .6rem; }
.why p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* --- galleria ---------------------------------------------------- */
.gallery {
  columns: 4 220px;
  column-gap: 12px;
}
.gallery button {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  break-inside: avoid;
  border-radius: 4px;
  overflow: hidden;
  line-height: 0;
}
.gallery img { width: 100%; transition: transform .6s, filter .3s; }
.gallery button:hover img { transform: scale(1.05); filter: saturate(1.12); }

/* lightbox */
.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(21,33,29,.94);
  display: none;
  align-items: center; justify-content: center;
  padding: 1.5rem;
}
.lb.is-open { display: flex; }
.lb img { max-width: 100%; max-height: 88vh; border-radius: 4px; }
.lb__btn {
  position: absolute;
  background: rgba(243,238,228,.12);
  color: var(--bone);
  border: 1px solid rgba(243,238,228,.3);
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid; place-items: center;
}
.lb__btn:hover { background: rgba(243,238,228,.25); }
.lb__close { top: 1.2rem; right: 1.2rem; }
.lb__prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb__next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* --- recensioni -------------------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.6rem;
  margin-top: 3rem;
}
@media (max-width: 860px) { .reviews-grid { grid-template-columns: 1fr; } }
.review {
  background: var(--sand);
  border-radius: 4px;
  padding: 2rem 1.8rem;
}
.review__stars { color: var(--ochre); letter-spacing: .2em; font-size: .9rem; }
.review p { font-size: .98rem; margin: 1rem 0 1.4rem; }
.review cite {
  font-style: normal;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.review cite span { display: block; font-weight: 400; color: var(--ink-soft); letter-spacing: .1em; margin-top: .2rem; }

/* --- contatti ---------------------------------------------------- */
.contact {
  background: var(--sand);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: .45rem;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: .98rem;
  padding: .8rem .9rem;
  background: var(--bone);
  border: 1.5px solid var(--sand-dim);
  border-radius: 4px;
  color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--lagoon); outline: none; }
.field .err { color: var(--rust); font-size: .8rem; margin-top: .35rem; display: block; }
.field--invalid input,
.field--invalid select,
.field--invalid textarea { border-color: var(--rust); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }

.alert {
  border-radius: 4px;
  padding: 1rem 1.1rem;
  font-size: .93rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}
.alert-ok  { background: rgba(15,126,118,.1);  border-color: var(--lagoon); }
.alert-bad { background: rgba(168,65,42,.1);   border-color: var(--rust); }

.contact-card {
  background: var(--ink);
  color: var(--bone);
  border-radius: 4px;
  padding: 2.4rem 2rem;
}
.contact-card h3 { color: var(--bone); }
.contact-card p { color: rgba(243,238,228,.75); font-size: .95rem; }
.contact-card .dl { margin: 1.8rem 0; display: grid; gap: 1.1rem; }
.contact-card .dl div { display: grid; gap: .15rem; }
.contact-card dt {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ochre); font-weight: 700;
}
.contact-card dd { margin: 0; font-size: 1.02rem; }
.contact-card a { color: var(--bone); }
.contact-card a:hover { color: var(--ochre); }

/* --- footer ------------------------------------------------------ */
.site-foot {
  background: var(--ink);
  color: rgba(243,238,228,.65);
  padding: 3rem 0 2rem;
  font-size: .85rem;
  border-top: 4px solid var(--rust);
}
.site-foot__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: start;
}
.site-foot .brand { color: var(--bone); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-foot a { color: rgba(243,238,228,.75); text-decoration: none; }
.site-foot a:hover { color: var(--ochre); }
.site-foot__bar {
  border-top: 1px solid rgba(243,238,228,.14);
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  font-size: .78rem;
}

/* --- whatsapp flottante ------------------------------------------ */
.wa-float {
  position: fixed;
  right: 1.1rem; bottom: 1.1rem;
  z-index: 70;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--wa);
  display: grid; place-items: center;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,.5);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: #05270f; }

/* --- 404 --------------------------------------------------------- */
.page-404 {
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 5rem 0;
}
.page-404 .code {
  font-family: var(--f-display);
  font-size: clamp(5rem, 18vw, 11rem);
  color: var(--sand-dim);
  line-height: .85;
  margin-bottom: 1rem;
}
.page-404 p { max-width: 34rem; margin-inline: auto; }
.page-404 .btns { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* --- motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .frame > img, .gallery img, .btn-doza, .wa-float { transition: none !important; }
}
