/* ============================================================
   Le Baite del Bric — style.css
   Theme: mountain / woodland hospitality
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --forest: #2c4a2e;
  --forest-dark: #1a3020;
  --forest-mid: #3d6340;
  --moss: #5c8a5f;
  --fern: #7faf82;
  --cream: #f7f3ec;
  --cream-dark: #ede8de;
  --bark: #5c3d1e;
  --gold: #b8870a;
  --text: #2a2724;
  --text-light: #5d5852;
  --white: #ffffff;

  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Lato", system-ui, sans-serif;

  --section-py: 6rem;
  --container-max: 1180px;
  --radius: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 6px 28px rgba(0, 0, 0, 0.11);
  --shadow-lg: 0 12px 56px rgba(0, 0, 0, 0.16);

  --ease: 0.3s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ease);
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Typography ─────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}
h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
}
h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}
h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.9rem 2.1rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    background var(--ease),
    border-color var(--ease),
    color var(--ease),
    transform var(--ease),
    box-shadow var(--ease);
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}
.btn-primary:hover {
  background: var(--forest-dark);
  border-color: var(--forest-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  padding: 0.6rem 1.6rem;
  font-size: 0.8rem;
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--forest);
}
.btn-full {
  width: 100%;
  text-align: center;
}

/* ── Section tags & headers ─────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.75rem;
}
.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 4rem;
}
.section-header h2 {
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.section-alt {
  background: var(--cream);
}

/* ── Scroll-reveal animation ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════════════ */
#header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition:
    background var(--ease),
    box-shadow var(--ease);
}
#header .nav-container {
  transition: padding var(--ease);
}
#header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.3rem 1.5rem;
}

/* Logo */
.nav-logo {
  position: absolute;
  left: 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--forest);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--ease), visibility var(--ease);
}
#header.scrolled .nav-logo {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  color: var(--forest);
}
#header.scrolled .nav-container {
  justify-content: flex-end;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links li {
  display: flex;
  align-items: center;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}
.nav-links a:hover {
  color: var(--white);
}
.nav-instagram {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
#header.scrolled .nav-links a {
  color: var(--text);
}
#header.scrolled .nav-links a:hover {
  color: var(--forest);
}

/* CTA link */
.nav-cta {
  background: var(--forest) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.3rem;
  border-radius: 50px;
}
.nav-cta:hover {
  background: var(--forest-dark) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  position: relative;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: all var(--ease);
}
#header.scrolled .nav-toggle span {
  background: var(--text);
}
.nav-toggle.open span {
  background: var(--text);
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(
      to bottom,
      rgba(20, 40, 22, 0.65) 0%,
      rgba(20, 40, 22, 0.58) 45%,
      rgba(20, 40, 22, 0.5) 60%,
      rgba(20, 40, 22, 0.78) 100%
    ),
    url("images/esterno/hero-baite-new.webp") center / cover no-repeat fixed;
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 2rem 1.5rem;
  animation: fadeUp 0.95s ease both;
}
.hero-pretitle {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  margin-bottom: 1.4rem;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.7),
    0 6px 40px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(20, 40, 22, 0.6);
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: fadeUp 0.9s 0.5s ease both;
}
.scroll-line {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.4);
  margin: 0.5rem auto 0;
  animation: scrollPulse 2.2s ease infinite;
  transform-origin: top;
}

/* ═══════════════════════════════════════════════
   CHI SIAMO
═══════════════════════════════════════════════ */
#benvenuti {
  padding: var(--section-py) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-image {
  position: relative;
}
.about-image img {
  width: 100%;
  height: 530px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute;
  bottom: -1.4rem;
  right: -1.4rem;
  background: var(--forest);
  color: var(--white);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.badge-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}
.badge-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 0.2rem;
}

.about-text .section-tag {
  display: block;
}
.about-text h2 {
  margin: 0.5rem 0 1.5rem;
}
.about-text .lead {
  font-size: 1.08rem;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 1rem;
}
.about-text p {
  color: var(--text-light);
  margin-bottom: 0.9rem;
}
.about-text .btn {
  margin-top: 1.2rem;
}

/* ═══════════════════════════════════════════════
   CAMERE
═══════════════════════════════════════════════ */
#camere {
  padding: var(--section-py) 0;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 920px;
  margin: 0 auto;
}

.room-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--ease),
    box-shadow var(--ease);
}
.room-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}
.room-card.featured {
  outline: 2.5px solid var(--forest);
  outline-offset: -2.5px;
}

.room-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.room-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.room-card:hover .room-image img {
  transform: scale(1.07);
}

.room-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 48, 32, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
}
.room-overlay .btn {
  pointer-events: auto;
}
.room-card:hover .room-overlay {
  opacity: 1;
}

.room-image img[data-gallery],
.experience-image img[data-gallery],
.place-image img[data-gallery],
.about-image img[data-gallery] {
  cursor: pointer;
}

.room-info {
  padding: 1.75rem;
}

.room-badge {
  display: inline-block;
  background: var(--forest);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.room-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.room-header h3 {
  font-size: 1.15rem;
}
.room-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--forest);
  white-space: nowrap;
  line-height: 1.2;
}
.room-price small {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-light);
}
.room-info > p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.1rem;
}

.room-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.6rem;
}
.room-features li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-light);
}
.room-features li svg {
  width: 14px;
  height: 14px;
  stroke: var(--moss);
  flex-shrink: 0;
}

/* ── Gallery strip (room / experience cards) ───────────────── */
.gallery-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--cream-dark);
}
.gallery-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  border: none;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.85;
  transition:
    opacity var(--ease),
    transform var(--ease);
}
.gallery-thumb:hover {
  opacity: 1;
  transform: scale(1.06);
}

/* ═══════════════════════════════════════════════
   ESPERIENZE
═══════════════════════════════════════════════ */
#esperienze {
  padding: var(--section-py) 0;
}

.experiences-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.experience-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--ease),
    box-shadow var(--ease);
}
.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.experience-image {
  height: 230px;
  overflow: hidden;
}
.experience-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.experience-card:hover .experience-image img {
  transform: scale(1.06);
}

.experience-info {
  padding: 1.85rem;
}
.experience-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.experience-info p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.chroma-intro {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.75rem !important;
}
.chroma-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.1rem;
  margin-bottom: 1rem;
}
.chroma-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.chroma-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.3rem;
}
.chroma-item strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.chroma-item p {
  font-size: 0.78rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

.experience-note {
  font-size: 0.78rem;
  color: var(--text-light);
  border-top: 1px solid var(--cream-dark);
  padding-top: 0.75rem;
  font-style: italic;
}

/* ═══════════════════════════════════════════════
   SERVIZI
═══════════════════════════════════════════════ */
#servizi {
  padding: var(--section-py) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
}

.service-item {
  text-align: center;
  padding: 0.5rem;
}
.service-icon {
  width: 68px;
  height: 68px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition:
    background var(--ease),
    transform var(--ease);
}
.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--forest);
  transition: stroke var(--ease);
}
.service-item:hover .service-icon {
  background: var(--forest);
  transform: translateY(-3px);
}
.service-item:hover .service-icon svg {
  stroke: var(--white);
}

.service-item h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}
.service-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════
   DINTORNI
═══════════════════════════════════════════════ */
#intorno {
  padding: var(--section-py) 0;
}

.places-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.place-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--ease),
    box-shadow var(--ease);
}
.place-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.place-image {
  height: 210px;
  overflow: hidden;
}
.place-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.place-card:hover .place-image img {
  transform: scale(1.08);
}

.place-info {
  padding: 1.5rem;
}
.place-distance {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.5rem;
}
.place-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.place-info p {
  color: var(--text-light);
  font-size: 0.88rem;
}

/* ═══════════════════════════════════════════════
   CONTATTI
═══════════════════════════════════════════════ */
#contatti {
  padding: var(--section-py) 0;
}

.contact-grid {
  display: flex;
  justify-content: center;
}

/* Info 2×2 grid */
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}
.contact-item {
  display: flex;
  gap: 1.2rem;
}
.contact-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--forest);
}
.contact-item h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.contact-item p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}
.contact-item a {
  color: var(--forest);
  font-weight: 700;
}
.contact-item a:hover {
  text-decoration: underline;
}

/* Form */
.contact-form h3 {
  font-size: 1.55rem;
  margin-bottom: 1.75rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.45rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  outline: none;
  appearance: none;
  transition:
    border-color var(--ease),
    box-shadow var(--ease),
    background var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(44, 74, 46, 0.12);
  background: var(--white);
}
.form-group textarea {
  resize: vertical;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
#footer {
  background: var(--forest-dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 4.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color var(--ease),
    background var(--ease);
}
.footer-socials a:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}
.footer-socials svg {
  width: 16px;
  height: 16px;
  stroke: rgba(255, 255, 255, 0.7);
}
.footer-socials a:hover svg {
  stroke: var(--white);
}

#footer h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer-nav li {
  margin-bottom: 0.55rem;
}
.footer-nav a,
.footer-contact a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--white);
}

.footer-contact p {
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  text-align: center;
  font-size: 0.8rem;
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a:hover {
  color: var(--white);
}
.footer-credits {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ═══════════════════════════════════════════════
   GALLERIA
═══════════════════════════════════════════════ */
#galleria {
  padding: var(--section-py) 0;
}

.property-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 0.85rem;
}
.property-gallery-grid .gallery-tile:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.property-gallery-grid .gallery-tile:nth-child(6) {
  grid-column: span 2;
}

.gallery-tile {
  position: relative;
  border: none;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
}
.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 48, 32, 0);
  transition: background var(--ease);
}
.gallery-tile:hover::after {
  background: rgba(26, 48, 32, 0.18);
}
.gallery-tile svg {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  width: 22px;
  height: 22px;
  stroke: var(--white);
  opacity: 0;
  transition: opacity var(--ease);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}
.gallery-tile:hover svg {
  opacity: 1;
}

/* ═══════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 16, 11, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease);
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: min(90vw, 1100px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  transition:
    background var(--ease),
    border-color var(--ease);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
}
.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}
.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════
   COOKIE BANNER
═══════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  background: var(--forest-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(110%);
  transition: transform 0.4s ease;
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner p {
  font-size: 0.85rem;
  max-width: 720px;
  margin: 0;
  line-height: 1.6;
}
.cookie-banner a {
  color: var(--fern);
  text-decoration: underline;
  font-weight: 700;
}
.cookie-banner a:hover {
  color: var(--white);
}
.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.btn-cookie {
  flex-shrink: 0;
}
.btn-cookie-reject {
  flex-shrink: 0;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.btn-cookie-reject:hover {
  border-color: var(--white);
  color: var(--white);
}

body.cookie-visible .fab {
  bottom: 6.5rem;
}
@media (max-width: 480px) {
  body.cookie-visible .fab {
    bottom: 8.5rem;
  }
}

/* ═══════════════════════════════════════════════
   FAB BUTTONS (WhatsApp + To Top)
═══════════════════════════════════════════════ */
.fab {
  position: fixed;
  bottom: 1.75rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  transition:
    transform var(--ease),
    box-shadow var(--ease),
    opacity var(--ease),
    bottom var(--ease);
  text-decoration: none;
  z-index: 900;
}
.fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.fab svg {
  width: 24px;
  height: 24px;
}

.fab-whatsapp {
  left: 1.75rem;
  background: #25d366;
  color: var(--white);
}
.fab-totop {
  right: 1.75rem;
  background: var(--forest);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
}
.fab-totop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ═══════════════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes scrollPulse {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1.3);
    opacity: 0.85;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 4rem;
  }

  /* Gallery strip scorrevole col dito su mobile, con snap sui thumbnail */
  .gallery-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .gallery-thumb {
    scroll-snap-align: start;
  }
  .gallery-strip::-webkit-scrollbar {
    height: 4px;
  }
  .gallery-strip::-webkit-scrollbar-thumb {
    background: var(--cream-dark);
    border-radius: 2px;
  }

  /* Header rimpicciolito su mobile: blur su ::before per non rompere il pannello fixed */
  #header.scrolled {
    background: transparent;
    box-shadow: none;
  }
  #header.scrolled::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: -1;
  }
  .nav-container { justify-content: flex-end; }
  #header.scrolled .nav-container {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  #header.scrolled .nav-logo {
    font-size: 1.1rem;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: min(80%, 320px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 5.5rem 2rem 2rem;
    gap: 1.4rem;
    box-shadow: var(--shadow-lg);
    transition: right var(--ease);
  }
  .nav-links.open {
    right: 0;
  }
  .nav-links a {
    color: var(--text) !important;
    font-size: 0.95rem;
  }
  .nav-links .nav-cta {
    color: var(--white) !important;
  }
  .nav-cta {
    margin-top: 0.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-image img {
    height: 340px;
  }
  .about-badge {
    right: 1rem;
    bottom: -1.2rem;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }

  .places-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .experiences-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .property-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .property-gallery-grid .gallery-tile:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .property-gallery-grid .gallery-tile:nth-child(6) {
    grid-column: span 1;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  .lightbox-prev {
    left: 0.5rem;
  }
  .lightbox-next {
    right: 0.5rem;
  }
  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 38px;
    height: 38px;
  }

  #hero {
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  .chroma-grid {
    grid-template-columns: 1fr;
  }
  .places-grid {
    grid-template-columns: 1fr;
  }
}
