/* ==========================================================================
   Casetta di Campagna - Celle Ligure
   Stile: minimal beige/bianco con accenti blu mare (Liguria)
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--c-text); background: var(--c-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- Tokens ---------- */
:root {
  /* Palette - sand / ivory + sea / liguria */
  --c-bg: #fbf8f3;          /* sabbia chiarissima */
  --c-bg-alt: #f3ede2;      /* sabbia */
  --c-text: #2a2a26;        /* off-black */
  --c-muted: #6e6a62;       /* taupe */
  --c-line: #e3dccd;        /* divider */
  --c-accent: #1f6b7a;      /* blu mare profondo */
  --c-accent-2: #cfa46a;    /* oro/sabbia caldo */
  --c-white: #ffffff;
  --c-overlay: rgba(20, 18, 14, 0.45);

  /* Typography */
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 140px);

  /* Misc */
  --radius: 4px;
  --shadow: 0 14px 40px -20px rgba(20, 18, 14, .35);
  --t: .35s cubic-bezier(.2,.7,.2,1);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; color: var(--c-text); letter-spacing: .005em; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
p  { font-size: clamp(1rem, 1.05vw, 1.075rem); color: var(--c-text); }
.eyebrow { font-family: var(--font-body); font-size: .82rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 1rem; }

/* ---------- Layout primitives ---------- */
.container { width: min(100% - var(--gutter)*2, var(--container)); margin-inline: auto; }
.section   { padding-block: var(--section-y); }
.section--alt { background: var(--c-bg-alt); }
.section__head { max-width: 700px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .9rem 1.6rem; border-radius: 999px; font-size: .95rem; font-weight: 500; letter-spacing: .04em; transition: transform var(--t), background var(--t), color var(--t), border-color var(--t); white-space: nowrap; border: 1px solid transparent; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--c-accent); color: var(--c-white); }
.btn--primary:hover { background: #18545f; }
.btn--ghost { color: var(--c-white); border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { color: var(--c-text); border-color: var(--c-text); }
.btn--outline:hover { background: var(--c-text); color: var(--c-white); }
.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1ebe5b; }
.btn .icon { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center;
  padding: 1.1rem var(--gutter);
  transition: background var(--t), box-shadow var(--t), padding var(--t);
}
.site-header.is-scrolled { background: rgba(251, 248, 243, .94); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--c-line); padding-block: .7rem; }
.site-header__inner { width: 100%; max-width: var(--container); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; flex-direction: column; line-height: 1; color: var(--c-white); transition: color var(--t); }
.site-header.is-scrolled .brand { color: var(--c-text); }
.brand__name { font-family: var(--font-head); font-size: 1.55rem; letter-spacing: .04em; }
.brand__sub  { font-size: .68rem; letter-spacing: .35em; text-transform: uppercase; opacity: .8; margin-top: .35rem; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { color: var(--c-white); font-size: .92rem; letter-spacing: .04em; transition: color var(--t), opacity var(--t); position: relative; }
.site-header.is-scrolled .nav a { color: var(--c-text); }
.nav a::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 0; height: 1px; background: currentColor; transition: width var(--t), left var(--t); }
.nav a:hover::after { width: 100%; left: 0; }
.lang { display: flex; gap: .35rem; align-items: center; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.lang a { opacity: .6; }
.lang a.is-active { opacity: 1; }
.lang span { opacity: .35; }

/* mobile menu */
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--c-white); }
.site-header.is-scrolled .menu-toggle { color: var(--c-text); }
.menu-toggle svg { width: 26px; height: 26px; }
@media (max-width: 880px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.5rem; background: var(--c-bg); transform: translateX(100%); transition: transform var(--t); padding: var(--gutter); }
  .nav.is-open { transform: translateX(0); }
  .nav a { color: var(--c-text) !important; font-size: 1.4rem; font-family: var(--font-head); }
  .nav .lang { font-family: var(--font-body); margin-top: 1rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: var(--c-white); overflow: hidden; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.05); transition: opacity 1.4s ease, transform 8s ease; }
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero::after { content: ''; position: absolute; inset: 0; background:
  radial-gradient(ellipse at center, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 60%, transparent 80%),
  linear-gradient(180deg, rgba(20,18,14,.55) 0%, rgba(20,18,14,.45) 50%, rgba(20,18,14,.7) 100%);
  pointer-events: none; }
.hero__content { position: relative; z-index: 1; padding: 0 var(--gutter); max-width: 900px; margin: 0 auto; text-align: center; padding-top: 6rem; text-shadow: 0 2px 14px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.45); }
.hero__eyebrow { color: var(--c-white); font-size: .85rem; letter-spacing: .35em; text-transform: uppercase; opacity: .95; margin-bottom: 1.4rem; }
.hero h1 { color: var(--c-white); margin-bottom: 1.2rem; }
.hero__sub { color: var(--c-white); font-size: clamp(1.05rem, 1.5vw, 1.25rem); opacity: 1; margin-bottom: 2.5rem; max-width: 560px; margin-inline: auto; text-shadow: 0 2px 12px rgba(0,0,0,.7), 0 1px 3px rgba(0,0,0,.6); font-weight: 400; }
.hero__ctas { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.hero__dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; gap: .55rem; z-index: 2; }
.hero__dots button { width: 28px; height: 3px; background: rgba(255,255,255,.35); border-radius: 2px; transition: background var(--t), width var(--t); }
.hero__dots button.is-active { background: var(--c-white); width: 44px; }
.hero__scroll { position: absolute; bottom: 2.4rem; left: 2rem; z-index: 2; font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); opacity: .8; }
@media (max-width: 600px) { .hero__scroll { display: none; } }

/* ---------- Intro ---------- */
.intro__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .intro__grid { grid-template-columns: 1fr 1fr; } }
.intro__text p + p { margin-top: 1.1rem; }
.intro__media { aspect-ratio: 4/5; background-size: cover; background-position: center; box-shadow: var(--shadow); border-radius: 2px; }
.amenities { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--c-line); display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.2rem 2rem; font-size: .92rem; color: var(--c-muted); }
.amenities li::before { content: '— '; color: var(--c-accent-2); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: .85rem; } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery__item { position: relative; aspect-ratio: 4/3; overflow: hidden; cursor: zoom-in; background: var(--c-bg-alt); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease, filter .6s ease; }
.gallery__item:hover img { transform: scale(1.06); filter: brightness(1.05); }
.gallery__item.is-tall { grid-row: span 2; aspect-ratio: 4/6; }
.gallery__item.is-wide { grid-column: span 2; aspect-ratio: 8/3; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(8,7,5,.94); display: none; align-items: center; justify-content: center; z-index: 100; opacity: 0; transition: opacity .3s; }
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.lightbox__btn { position: absolute; background: rgba(255,255,255,.08); color: #fff; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background var(--t), transform var(--t); }
.lightbox__btn:hover { background: rgba(255,255,255,.18); transform: scale(1.05); }
.lightbox__btn--close { top: 1.2rem; right: 1.2rem; }
.lightbox__btn--prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__btn--prev:hover, .lightbox__btn--next:hover { transform: translateY(-50%) scale(1.05); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__counter { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .85rem; letter-spacing: .15em; }

/* ---------- Zone (Celle Ligure) ---------- */
.zone__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
@media (min-width: 900px) { .zone__grid { grid-template-columns: 1.1fr .9fr; } }
.zone__media { background-size: cover; background-position: center; min-height: 380px; box-shadow: var(--shadow); }
.zone__list { margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.4rem 2rem; }
.zone__list dt { font-family: var(--font-head); font-size: 1.15rem; color: var(--c-text); margin-bottom: .25rem; }
.zone__list dd { color: var(--c-muted); font-size: .92rem; }

/* ---------- Reviews ---------- */
.reviews__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 800px) { .reviews__grid { grid-template-columns: repeat(2, 1fr); } }
.review { background: var(--c-white); padding: clamp(1.6rem, 2.5vw, 2.2rem); border: 1px solid var(--c-line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 1.1rem; }
.review__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--c-line); }
.review__author { display: flex; flex-direction: column; }
.review__name { font-family: var(--font-head); font-size: 1.25rem; }
.review__meta { color: var(--c-muted); font-size: .82rem; letter-spacing: .03em; }
.review__score { font-family: var(--font-head); font-size: 1.6rem; color: var(--c-accent); font-weight: 500; }
.review__title { font-family: var(--font-head); font-size: 1.35rem; color: var(--c-text); }
.review__text { color: var(--c-muted); font-style: italic; font-size: .98rem; }
.review__source { font-size: .78rem; color: var(--c-muted); letter-spacing: .12em; text-transform: uppercase; margin-top: auto; opacity: .7; }
.reviews__aggregate { display: flex; gap: 1rem; align-items: center; margin-top: 2rem; color: var(--c-muted); font-size: .92rem; }
.reviews__aggregate strong { font-family: var(--font-head); font-size: 2rem; color: var(--c-accent); font-weight: 500; }

/* ---------- Map + Contact ---------- */
.map { aspect-ratio: 16/8; min-height: 320px; border: 1px solid var(--c-line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85) contrast(.95); }
.contact { background: var(--c-text); color: var(--c-white); }
.contact h2 { color: var(--c-white); }
.contact .eyebrow { color: var(--c-accent-2); }
.contact__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1fr; } }
.contact__methods { display: flex; flex-direction: column; gap: 1.4rem; margin-top: 1.5rem; }
.contact__method { display: flex; align-items: center; gap: 1.1rem; padding: 1.2rem 1.4rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); transition: background var(--t), transform var(--t); }
.contact__method:hover { background: rgba(255,255,255,.1); transform: translateX(6px); }
.contact__method .icon { width: 28px; height: 28px; color: var(--c-accent-2); flex-shrink: 0; }
.contact__method .label { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; opacity: .65; display: block; margin-bottom: .15rem; }
.contact__method .value { font-family: var(--font-head); font-size: 1.35rem; }
.contact__address { color: rgba(255,255,255,.75); margin-top: 2rem; font-size: .95rem; line-height: 1.8; }
.contact__address strong { color: var(--c-white); display: block; font-size: 1.1rem; margin-bottom: .25rem; font-family: var(--font-head); font-weight: 500; }
.contact p { color: rgba(255,255,255,.85); }

/* ---------- Footer ---------- */
.site-footer { padding: 2.5rem var(--gutter); background: var(--c-text); color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.08); }
.site-footer__inner { max-width: var(--container); margin-inline: auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; letter-spacing: .04em; }
.site-footer a:hover { color: #fff; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utils ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
