/*
  Cascina Castellera — splash page
  Stile derivato dal frame Figma "splash-page"
  (file: Cascina Castellera, node 2193:432)
*/

:root {
  /* Colori — presi dal frame Figma */
  --color-cream: #fdf3e8;       /* sfondo sezione contatti */
  --color-cream-light: #fff9ed; /* testo hero */
  --color-taupe: #a79482;       /* testo contatti / "Black2" */
  --color-white2: #e8dbce;      /* accenti chiari */
  --divider-color: rgba(167, 148, 130, 0.35);

  /* Font — Adobe Caslon Pro e PP Pangaia sono font a pagamento usate in
     Figma e non incluse qui. Il logo usa l'SVG. Se disponibili i file licenziati, aggiungerli
     con @font-face: verranno usate automaticamente al primo posto dello
     stack. Nel frattempo usiamo Playfair Display / Jost (Google Fonts,
     caricate in index.html) come sostituti visivamente vicini. */
  --font-serif: "Adobe Caslon Pro", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "PP Pangaia", "Jost", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--color-cream);
  color: var(--color-taupe);
}

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

.splash {
  position: relative;
  width: 100%;
}

/* ============ HERO ============ */

.hero {
  /* Ancorata in alto: resta ferma mentre la sezione successiva
     scorre sopra e la copre (pattern "sticky reveal" presente
     anche nel frame Figma originale). */
  position: sticky;
  top: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  height: 90vh;
  height: 90svh;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(78, 61, 51, 0.1);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 24px;
}

.hero__logo {
  width: min(54.8vw, 1053px);
  max-width: 100%;
  margin: 0 auto;
}

.hero__logo img {
  width: 100%;
  height: auto;
}

.hero__tagline {
  /* Gap logo→tagline: 37px su 1920px = 1.93vw */
  margin: clamp(10px, 1.93vw, 37px) 0 0;
  font-family: var(--font-serif);
  font-weight: 400;
  /* 21.44px su 1920px = 1.12vw */
  font-size: clamp(13px, 1.12vw, 21.5px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--color-cream-light);
}

/* ============ CAMERE ============ */

.feature {
  position: sticky;
  top: 10vh;
  top: 10svh;
  z-index: 1;
  height: 90vh;
  height: 90svh;
  padding: clamp(54px, 6.7vw, 128px) clamp(20px, 3.33vw, 64px);
  overflow: hidden;
  background: var(--color-cream);
}

.feature__inner {
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  height: 100%;
  max-width: 1794px;
  margin: 0 auto;
  color: #7c6b5c;
}

.feature__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(24px, 1.9vw, 36px);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.feature__body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(40px, 6vw, 116px);
  min-height: 0;
}

.feature__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.05vw, 20px);
  width: min(31vw, 596px);
  flex: 0 0 auto;
}

.feature__gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.feature__text {
  width: min(30vw, 580px);
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(16px, 1vw, 19px);
  font-weight: 400;
  line-height: 1.22;
}

.feature--restaurant {
  z-index: 2;
  background: #9f9574;
}

.feature--restaurant .feature__inner {
  color: #fff9ed;
}

/* ============ CONTATTI ============ */

.info {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
  min-height: 90vh;
  min-height: 90svh;
  background: var(--color-cream);
  /* Margine laterale: 64px su 1920px = 3.33vw (come le linee divisorie) */
  padding: 56px clamp(20px, 3.33vw, 64px);
}

.info__grain {
  position: absolute;
  inset: 0;
  background-image: url("img/grain.png");
  background-size: 205px 127px;
  mix-blend-mode: multiply;
  opacity: 0.66;
  pointer-events: none;
}

.info__inner {
  position: relative;
  z-index: 1;
  /* Larghezza linee divisorie nel frame Figma: 1794px */
  max-width: 1794px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.info__logo {
  margin: 0 0 clamp(48px, 7.76vw, 149px);
  display: flex;
  justify-content: center;
}

.info__logo img {
  width: clamp(105px, 12.5vw, 240px);
  height: auto;
}

.info__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.info__item {
  /* Padding verticale per riga: ~46px su 1920px = 2.4vw
     (distanza fra i centri dei testi ≈127px = 2 × 46 + testo) */
  padding: clamp(20px, 2.4vw, 46px) 0;
  font-family: var(--font-sans);
  font-weight: 300;
  /* 30px su 1920px = 1.56vw */
  font-size: clamp(16px, 1.56vw, 30px);
  line-height: 1.12;
  letter-spacing: 0.03em;
  color: var(--color-taupe);
}

.info__item:not(:first-child) {
  border-top: 1px solid var(--divider-color);
}

.info__item a {
  color: inherit;
  text-decoration: none;
}

.info__item a:hover {
  color: #9f9574;
}

.info__item a:focus-visible {
  outline: 2px solid #9f9574;
  outline-offset: 4px;
}

.info__piva {
  margin: clamp(60px, 5vw, 95px) 0 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 19px;
  letter-spacing: 0.03em;
  color: var(--color-taupe);
}

/* ============ RESPONSIVE ============ */

@media (min-width: 621px) {
  .feature__body {
    padding-bottom: clamp(24px, 3vw, 58px);
  }

  .feature__gallery {
    order: 2;
  }

  .feature__text {
    order: 1;
  }

  .info__inner {
    transform: translateY(clamp(24px, 3vw, 58px));
  }
}

@media (max-width: 620px) {
  .hero__logo {
    width: 88vw;
  }

  .feature {
    padding: max(64px, 11svh) 20px 28px;
  }

  .feature__title {
    font-size: 22px;
  }

  .feature__body {
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 24px;
  }

  .feature__gallery {
    width: min(78vw, 360px);
    gap: 10px;
  }

  .feature__text {
    width: 100%;
    max-width: 36ch;
    font-size: 16px;
  }

  .info {
    justify-content: flex-start;
    padding-top: max(70px, 12svh);
    padding-bottom: 32px;
  }

  .info__logo {
    margin-bottom: 80px;
  }

  .info__logo img {
    width: 175px;
  }

  .info__item {
    padding: 40px 0;
    font-size: 21px;
    line-height: 1.25;
  }

  .info__item a {
    overflow-wrap: anywhere;
  }

  .info__address-line {
    display: block;
  }

  .info__piva {
    margin-top: clamp(120px, 16svh, 160px);
    font-size: 15px;
  }
}

@media (max-height: 680px) {
  .hero__logo {
    width: min(74vw, 380px);
  }
}