:root {
  --bg: #f6f1e7;
  --bg-soft: #fbf8f2;
  --sand: #d8c2a4;
  --earth: #8d5f3a;
  --forest: #2f5a4c;
  --forest-deep: #1f3d33;
  --text: #1f241f;
  --muted: #5f675e;
  --card: rgba(255, 250, 242, 0.82);
  --shadow: 0 18px 40px rgba(43, 37, 27, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(216, 194, 164, 0.4), transparent 28%),
    linear-gradient(180deg, #f8f3ea 0%, #f4ede2 46%, #fbf8f2 100%);
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.editor-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: var(--forest-deep);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.editor-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  width: min(420px, 100%);
  transform: translateX(100%);
  transition: transform 180ms ease;
  background: rgba(20, 27, 24, 0.45);
}

.editor-panel.is-open {
  transform: translateX(0);
}

.editor-panel-inner {
  margin-left: auto;
  height: 100%;
  overflow: auto;
  padding: 24px;
  background: #fffaf3;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.editor-header h2 {
  margin: 0;
  font-size: 2rem;
}

.editor-close {
  border: 0;
  background: transparent;
  color: var(--forest);
  font-weight: 700;
  cursor: pointer;
}

.editor-form {
  display: grid;
  gap: 14px;
}

.editor-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.editor-form input,
.editor-form textarea {
  width: 100%;
  border: 1px solid rgba(47, 90, 76, 0.2);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero {
  min-height: 100vh;
  padding: 28px clamp(20px, 4vw, 54px) 48px;
  background:
    linear-gradient(115deg, rgba(18, 40, 33, 0.72), rgba(18, 40, 33, 0.18)),
    url("images/panorama-inverno.png")
      center/cover;
  color: #fffaf3;
}

.topbar,
.hero-content,
.section,
.footer {
  max-width: 1180px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 250, 243, 0.45);
  background: rgba(255, 250, 243, 0.12);
}

.brand-mark,
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
}

.brand-mark {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 0.9;
}

.brand-subtitle {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.5fr minmax(280px, 360px);
  gap: 36px;
  align-items: end;
  padding-top: 12vh;
}

.hero-copy h1 {
  max-width: 12ch;
  margin: 0 0 18px;
  font-size: clamp(3.4rem, 8vw, 6.6rem);
  line-height: 0.95;
}

.lead {
  max-width: 62ch;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 250, 243, 0.88);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-actions,
.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--forest-deep);
}

.button-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 250, 243, 0.6);
  box-shadow: none;
}

.button-light {
  background: rgba(255, 250, 242, 0.16);
  border-color: rgba(255, 250, 243, 0.2);
  backdrop-filter: blur(8px);
}

.button-dark {
  background: var(--earth);
}

.hero-card,
.service-card,
.booking-panel {
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 26px;
  background: rgba(255, 248, 237, 0.18);
  border: 1px solid rgba(255, 250, 243, 0.18);
}

.card-label {
  margin-top: 0;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.9;
  color: rgba(255, 250, 243, 0.92);
}

.section {
  padding: 88px clamp(20px, 4vw, 54px);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 30px;
}

.album-trigger {
  margin-top: 20px;
}

.section h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  padding: 26px;
  background: var(--card);
  border: 1px solid rgba(141, 95, 58, 0.08);
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 2rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 18px;
  grid-auto-rows: 240px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.gallery-item a {
  display: block;
  height: 100%;
}

.gallery-item.large {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.booking-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 24px;
  padding: 36px;
  background:
    linear-gradient(135deg, rgba(47, 90, 76, 0.96), rgba(31, 61, 51, 0.92)),
    radial-gradient(circle at top right, rgba(216, 194, 164, 0.32), transparent 32%);
  color: #fffaf3;
}

.booking-panel p {
  line-height: 1.8;
}

.quick-contacts {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 250, 243, 0.12);
  border: 1px solid rgba(255, 250, 243, 0.18);
}

.quick-contacts p {
  margin: 0;
}

.quick-contacts p + p {
  margin-top: 8px;
}

.album-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.album-modal.is-open {
  display: block;
}

.album-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 13, 0.72);
  backdrop-filter: blur(6px);
}

.album-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 24px));
  margin: 24px auto;
  padding: 20px;
  border-radius: 28px;
  background: #fffaf3;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.album-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.album-topbar h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.album-close {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--forest-deep);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.album-stage {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 14px;
  align-items: center;
}

.album-figure {
  margin: 0;
}

.album-figure img {
  width: 100%;
  max-height: 68vh;
  border-radius: 22px;
  background: #e9e1d5;
}

.album-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.album-nav {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.album-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.album-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.album-thumb.is-active {
  border-color: var(--forest);
}

.album-thumb img {
  height: 110px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.contact-list {
  display: grid;
  gap: 10px;
  justify-items: start;
  color: var(--forest);
  font-weight: 600;
}

@media (max-width: 960px) {
  .hero-content,
  .intro-grid,
  .service-grid,
  .booking-panel,
  .footer {
    grid-template-columns: 1fr;
  }

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

  .gallery-grid {
    grid-auto-rows: 260px;
  }

  .album-dialog {
    width: calc(100% - 16px);
    margin: 8px auto;
    padding: 16px;
  }

  .album-stage {
    grid-template-columns: 1fr;
  }

  .album-nav {
    width: 100%;
    height: 48px;
    border-radius: 16px;
  }

  .album-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item.large,
  .gallery-item.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .hero {
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero-content {
    padding-top: 70px;
  }
}

@media (max-width: 640px) {
  .topbar,
  .hero-actions,
  .booking-actions,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    align-items: flex-start;
  }

  .hero-copy h1 {
    max-width: 9ch;
  }

  .section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .editor-panel {
    width: 100%;
  }

  .album-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
