*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sand: #F5F0E8;
  --sage: #7A8C6E;
  --deep: #2C3E2D;
  --sea: #4A7C8C;
  --warm: #C4956A;
  --light: #FDFAF5;
  --text: #2C2C2A;
  --muted: #6B6B65;
  --border: rgba(44,62,45,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--light);
  line-height: 1.7;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(253,250,245,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--deep);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--deep); }

/* HERO */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 8vh;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(44,62,45,0.15) 0%, rgba(44,62,45,0.5) 100%),
    url('https://images.unsplash.com/photo-1505118380757-91f5f5632de0?w=1800&q=80') center/cover no-repeat;
  transform: scale(1.05);
  animation: slowzoom 20s ease-out forwards;
}
@keyframes slowzoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.0); }
}
.hero-content {
  position: relative;
  padding: 0 3rem;
  max-width: 800px;
  animation: fadein 1.8s ease forwards;
  opacity: 0;
  animation-delay: 0.3s;
}
@keyframes fadein {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-tag {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.hero h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.85);
}
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin-bottom: 2.5rem;
}
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s;
}
.btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
.btn-dark {
  border-color: var(--deep);
  color: var(--deep);
}
.btn-dark:hover {
  background: var(--deep);
  color: #fff;
}
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrolldown 2s ease-in-out infinite;
}
@keyframes scrolldown {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(0.6); opacity: 1; }
}

/* SECTION BASE */
section { padding: 7rem 3rem; }
.section-tag {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--deep);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.section-title em { font-style: italic; }
.section-text {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.8;
}
.divider {
  width: 40px;
  height: 1px;
  background: var(--warm);
  margin: 1.5rem 0;
}

/* INTRO */
.intro {
  background: var(--sand);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.intro-img {
  height: 520px;
  object-fit: cover;
  width: 100%;
}
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.feature {
  padding: 1.2rem;
  border: 1px solid var(--border);
  background: var(--light);
}
.feature-icon {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.feature h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 0.25rem;
}
.feature p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* GALLERY */
.gallery {
  background: var(--light);
  padding-bottom: 0;
}
.gallery-header {
  margin-bottom: 3rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 280px 280px;
  gap: 6px;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  overflow: hidden;
}
.gallery-grid img:hover { transform: scale(1.04); }
.g1 { grid-column: span 5; grid-row: span 2; overflow: hidden; }
.g2 { grid-column: span 4; overflow: hidden; }
.g3 { grid-column: span 3; overflow: hidden; }
.g4 { grid-column: span 3; overflow: hidden; }
.g5 { grid-column: span 4; overflow: hidden; }

/* GUIDA OSPITI */
.guida {
  background: var(--deep);
  color: #fff;
}
.guida .section-tag  { color: var(--warm); }
.guida .section-title { color: #fff; }
.guida .section-text  { color: rgba(255,255,255,0.6); }
.guida .divider       { background: var(--warm); }
.guida-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5px;
  margin-top: 3.5rem;
  background: rgba(255,255,255,0.08);
}
.guida-card {
  background: var(--deep);
  padding: 2rem 1.8rem;
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
  display: block;
}
.guida-card:hover { background: rgba(255,255,255,0.05); }
.guida-card-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.guida-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}
.guida-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}
.qr-section {
  margin-top: 4rem;
  padding: 2.5rem;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 640px;
}
.qr-text h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.4rem;
}
.qr-text p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* REGOLE */
.regole {
  background: var(--sand);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.regola-list {
  list-style: none;
  margin-top: 2rem;
}
.regola-list li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}
.regola-list li:first-child { padding-top: 0; }
.regola-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--warm);
  flex-shrink: 0;
  width: 1.5rem;
}

/* DINTORNI */
.dintorni { background: var(--light); }
.dintorni-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}
.dintorni-card {
  position: relative;
  overflow: hidden;
  height: 320px;
  cursor: pointer;
}
.dintorni-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.dintorni-card:hover img { transform: scale(1.08); }
.dintorni-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,62,45,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.dintorni-overlay h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.25rem;
}
.dintorni-overlay p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
}

/* ARRIVO */
.arrivo {
  background: var(--deep);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.arrivo .section-tag  { color: var(--warm); }
.arrivo .section-title { color: #fff; }
.arrivo .section-text  { color: rgba(255,255,255,0.6); }
.arrivo .divider       { background: var(--warm); }
.arrivo-details {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.arrivo-row {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.arrivo-row-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.arrivo-row-text h4 {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.arrivo-row-text p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
}
.map-embed {
  overflow: hidden;
  height: 420px;
}

/* CONTATTI */
.contatti {
  background: var(--sand);
  text-align: center;
}
.contatti .section-title { text-align: center; }
.contatti .divider       { margin: 1.5rem auto; }
.contatti .section-text  { margin: 0 auto; text-align: center; }
.contact-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}
.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: transform 0.3s;
}
.contact-item:hover { transform: translateY(-4px); }
.contact-icon-wrap {
  width: 60px;
  height: 60px;
  border: 1px solid var(--border);
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
}
.contact-value {
  font-size: 0.9rem;
  color: var(--deep);
}
.booking-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
}
.btn-booking {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid;
}
.btn-airbnb      { background: #FF5A5F; border-color: #FF5A5F; color: #fff; }
.btn-airbnb:hover { background: #e04f54; border-color: #e04f54; }
.btn-booking-com      { background: #003580; border-color: #003580; color: #fff; }
.btn-booking-com:hover { background: #002a65; border-color: #002a65; }

/* FOOTER */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.4);
  padding: 2.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

/* SLIDER DINTORNI */
.slider-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 300;
  flex-direction: column;
}
.slider-overlay.open { display: flex; }
.slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.slider-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.06em;
}
.slider-counter {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.2em;
}
.slider-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.slider-close:hover { color: #fff; }
.slider-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  min-height: 0;
}
.slider-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  max-height: 100%;
}
.slider-img-wrap img {
  max-width: 100%;
  max-height: calc(100vh - 200px);
  object-fit: contain;
  display: block;
}
.slider-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.55);
  width: 50px;
  height: 50px;
  font-size: 1.3rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.4); }
.slider-footer {
  padding: 1.2rem 2rem 2rem;
  text-align: center;
  flex-shrink: 0;
}
.slider-caption {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255,255,255,0.6);
}

/* HAMBURGER */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--deep);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* LANG SWITCHER */
.lang-switcher {
  display: flex;
  gap: 0.1rem;
  align-items: center;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.1rem 0.15rem;
  opacity: 0.45;
  transition: opacity 0.2s, transform 0.15s;
  border-radius: 3px;
  display: flex;
  align-items: center;
}
.lang-btn img {
  display: block;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.lang-btn:hover  { opacity: 0.8; transform: scale(1.1); }
.lang-btn.active { opacity: 1; transform: scale(1.08); }

/* MODAL GUIDA */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44,62,45,0.85);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--light);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
}
.modal h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--deep);
  margin-bottom: 0.5rem;
}
.modal-icon { font-size: 2rem; margin-bottom: 1rem; }
.modal-body {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.9;
}
.modal-body h4 {
  font-weight: 500;
  color: var(--deep);
  margin: 1.2rem 0 0.4rem;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.modal-body a {
  color: var(--sea);
  text-decoration: underline;
}
.modal-body a:hover { color: var(--deep); }

/* TABLET 900px */
@media (max-width: 900px) {
  .intro { gap: 3rem; }
  .regole { gap: 3rem; }
  .dintorni-grid { grid-template-columns: 1fr 1fr; }
  .arrivo { gap: 3rem; }
}

/* MOBILE 768px */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; flex-wrap: wrap; }
  .lang-switcher { order: 1; margin-left: auto; margin-right: 0.8rem; }
  .nav-toggle { display: flex; order: 1; }
  .nav-links {
    display: flex;
    order: 2;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    padding: 0;
  }
  .nav-links.mobile-open {
    max-height: 320px;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
  }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 0.9rem 0;
    text-align: center;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    color: var(--deep);
  }

  section { padding: 4rem 1.5rem; }
  .gallery { padding-bottom: 0; }

  .hero { align-items: center; padding-bottom: 0; padding-top: 80px; }
  .hero-content { padding: 0 1.5rem; }
  .scroll-hint { display: none; }

  .intro { grid-template-columns: 1fr; gap: 2rem; }
  .intro-img { height: 260px; order: -1; }
  .features { gap: 1rem; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 160px 160px;
    gap: 4px;
  }
  .g1 { grid-column: span 2; grid-row: span 1; }
  .g2, .g3, .g4, .g5 { grid-column: span 1; grid-row: span 1; }

  .qr-section { gap: 1.5rem; padding: 1.8rem; }

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

  .dintorni-grid { grid-template-columns: 1fr; }
  .dintorni-card { height: 240px; }

  .arrivo { grid-template-columns: 1fr; gap: 2.5rem; }
  .map-embed { height: 280px; }
  .map-embed iframe { height: 280px !important; }

  .booking-btns { flex-direction: column; align-items: center; }

  footer { flex-direction: column; gap: 0.6rem; text-align: center; padding: 2rem 1.5rem; }

  .modal { padding: 2rem 1.5rem; }
  .modal-overlay { padding: 1rem; }

  .slider-body { padding: 1rem 0.5rem; gap: 0.5rem; }
  .slider-btn { width: 36px; height: 36px; font-size: 1rem; }
  .slider-header { padding: 1rem 1.2rem; }
  .slider-caption { font-size: 0.92rem; }
}

/* SMALL MOBILE 480px */
@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
  .contact-grid { gap: 1.2rem; }
  .qr-section { flex-direction: column; }
  .booking-btns .btn-booking { width: 100%; max-width: 280px; text-align: center; }
}
