@font-face {
  font-family: "Inter";
  src: url("fonts/Inter/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Marcellus";
  src: url("fonts/Marcellus/Marcellus-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #F5EFE6;
  --cream-light: #FBF7F0;
  --sage: #8F997C;
  --terracotta: #965439;
  --rosewood: #63291D;
  --teal: #426A65;
  --dark: #2E2B28;
  --muted: #6F675F;
  --line: rgba(46, 43, 40, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.08;
  font-family: "Marcellus", Georgia, serif;
  font-weight: 400;
}

h1 {
  font-size: clamp(44px, 7vw, 88px);
}

h2 {
  font-size: clamp(34px, 5vw, 58px);
}

h3 {
  font-size: 24px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 18px;
}

/* HEADER */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 34px;
  background: rgba(245, 239, 230, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: "Marcellus", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--rosewood);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.main-nav a {
  color: var(--dark);
}

.main-nav a:hover {
  color: var(--terracotta);
}

.nav-cta {
  background: var(--teal);
  color: var(--cream-light) !important;
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-cta:hover {
  background: #365854;
  color: var(--cream-light) !important;
  transform: translateY(-1px);
}

/* HERO */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 130px 40px 80px;
  background:
    linear-gradient(rgba(46, 43, 40, 0.18), rgba(46, 43, 40, 0.30)),
    url("img/hero-firenze.jpg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 46px;
  background: rgba(251, 247, 240, 0.40);
  border: 1px solid rgba(251, 247, 240, 0.35);
  border-radius: 28px;
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

.hero-content .eyebrow {
  color: #63291D;
  text-shadow: 0 1px 8px rgba(251, 247, 240, 0.45);
}

.hero-content h1 {
  color: var(--rosewood);
  margin-bottom: 24px;
}

.hero-text {
  font-size: 20px;
  color: #2E2B28;
  max-width: 620px;
  margin-bottom: 32px;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(251, 247, 240, 0.45);
}

/* INTRO */

.two-columns {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.intro-section {
  background: var(--cream-light);
}

/* GALLERY */

.gallery-section {
  padding: 20px;
  background: var(--cream-light);
}

.gallery-viewer {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.gallery-featured {
  height: 600px;
}

.gallery-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  height: 600px;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 6px;
}

.gallery-thumbs::-webkit-scrollbar {
  width: 8px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: rgba(46, 43, 40, 0.18);
  border-radius: 999px;
}

.gallery-thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.thumb {
  width: 100%;
  height: 180px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 18px;
  overflow: hidden;
  display: block;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

.thumb:hover {
  transform: translateY(-2px);
}

.thumb.is-active {
  box-shadow: 0 0 0 3px var(--teal);
}

/* SERVICES */

.services-section {
  background: var(--cream);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-heading.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading p {
  color: var(--muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  background: var(--cream-light);
  padding: 34px;
  border-radius: 24px;
  border: 1px solid var(--line);
  min-height: 240px;

  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 16px;
  align-items: start;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(143, 153, 124, 0.18);
  color: var(--teal);
  margin-bottom: 0;
  grid-column: 1;
  grid-row: 1;
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  color: var(--teal);
  margin: 0;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.card p {
  color: var(--muted);
  grid-column: 1 / -1;
  margin-top: 20px;
  margin-bottom: 0;
}

.comfort-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: stretch;
}

.comfort-image {
  height: 100%;
}

.comfort-image img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  border-radius: 30px;
  display: block;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

/* SPLIT */

.split-section {
  background: var(--cream-light);
}

.split-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  background: var(--teal);
  border-radius: 34px;
  overflow: hidden;
}

.split-visual {
  padding: 28px 28px 28px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.relax-photo {
  width: 100%;
  max-width: 460px;
  height: 420px;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

.split-text {
  padding: 70px;
  color: var(--cream-light);
}

.split-text .eyebrow {
  color: #E3C3A8;
}

.split-text p {
  color: rgba(251, 247, 240, 0.82);
}

.split-text h2 {
  color: var(--cream-light);
}

/* NEIGHBORHOOD */

.neighborhood-section {
  position: relative;
  background:
    linear-gradient(rgba(46, 43, 40, 0.48), rgba(46, 43, 40, 0.48)),
    url("img/san-miniato-area.jpg");
  background-size: cover;
  background-position: 72% 24%;
  background-repeat: no-repeat;
}

.neighborhood-section .container {
  position: relative;
  z-index: 2;
}

.neighborhood-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: center;

  width: 100%;
  max-width: 920px;
  margin-right: auto;

  padding: 44px;
  border: 1px solid rgba(251, 247, 240, 0.20);
  border-radius: 36px;
  background: rgba(251, 247, 240, 0.45);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 70px rgba(46, 43, 40, 0.18);
}

.neighborhood-content h2 {
  max-width: 520px;
  margin-bottom: 24px;
  color: var(--rosewood);
}

.neighborhood-content p {
  max-width: 560px;
  margin-bottom: 18px;
  color: var(--dark);
  font-size: 18px;
  line-height: 1.75;
}

.neighborhood-cards {
  display: grid;
  gap: 18px;
}

.place-card {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(46, 43, 40, 0.10);
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.place-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(46, 43, 40, 0.12);
}

.place-card h3 {
  margin-bottom: 10px;
  color: var(--dark);
}

.place-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* REVIEWS */

.reviews-section {
  background: var(--cream-light);
}

.coming-soon-box {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 54px 42px;
  border-radius: 34px;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(46, 43, 40, 0.08);
}

.coming-soon-box h2 {
  color: var(--rosewood);
  margin-bottom: 18px;
}

.coming-soon-box p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

/* BOOKING */

.booking-section {
  background: var(--cream-light);
  padding-top: 70px;
  padding-bottom: 80px;
}

.booking-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 38px 44px;
  border-radius: 34px;
  background: rgba(251, 247, 240, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(46, 43, 40, 0.08);
}

.booking-text {
  max-width: 650px;
}

.booking-text .eyebrow {
  margin-bottom: 12px;
  color: var(--terracotta);
}

.booking-text p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn.primary {
  background: var(--terracotta);
  color: var(--cream-light);
  box-shadow: 0 12px 30px rgba(150, 84, 57, 0.22);
}

.btn.primary:hover {
  transform: translateY(-2px);
  background: var(--rosewood);
  box-shadow: 0 16px 38px rgba(99, 41, 29, 0.24);
}

.booking-card .btn.primary {
  background: var(--teal);
  color: var(--cream-light);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(66, 106, 101, 0.24);
}

.booking-card .btn.primary:hover {
  background: #365854;
  color: var(--cream-light);
  box-shadow: 0 16px 38px rgba(66, 106, 101, 0.30);
}

/* FOOTER */

.site-footer {
  background: var(--dark);
  color: var(--cream-light);
  padding: 58px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(251, 247, 240, 0.16);
}

.footer-brand h2 {
  margin-bottom: 12px;
  font-family: "Marcellus", Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  color: var(--cream-light);
}

.footer-brand p,
.footer-info p {
  margin: 0;
  color: rgba(251, 247, 240, 0.72);
  line-height: 1.7;
}

.footer-info h3 {
  margin-bottom: 14px;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.92);
}

.footer-info a {
  display: inline-block;
  margin-top: 14px;
  color: var(--cream-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(251, 247, 240, 0.45);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-info a:hover {
  color: var(--cream);
  border-color: var(--cream);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding-top: 22px;
}

.footer-bottom p {
  margin: 0;
  color: rgba(251, 247, 240, 0.58);
  font-size: 14px;
}

.footer-disclaimer {
  max-width: none;
  text-align: right;
  white-space: nowrap;
  font-size: 12px !important;
  color: rgba(251, 247, 240, 0.42) !important;
}

/* MOBILE */

@media (max-width: 900px) {
  .site-header {
    padding: 14px 20px;
  }

  .main-nav {
    display: none;
  }

  .logo {
    font-size: 26px;
  }

  .hero {
    padding: 110px 20px 50px;
    min-height: 90vh;
  }

  .hero-content {
    padding: 30px;
    border-radius: 22px;
  }

  .hero-text {
    font-size: 17px;
  }

  .section {
    padding: 70px 0;
  }

  .two-columns,
  .split-card,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  /* Gallery mobile: solo immagini grandi una sotto l'altra */
  .gallery-viewer {
    display: block;
  }

  .gallery-featured {
    display: none;
  }

  .gallery-thumbs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    height: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .gallery-thumbs .thumb {
    height: 260px;
    border-radius: 24px;
    cursor: default;
  }

  .gallery-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .gallery-thumbs .thumb.is-active {
    outline: none;
    border-color: var(--line);
  }

  .gallery-thumbs .thumb:nth-child(n + 6) {
    display: none;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .split-text {
    padding: 38px;
  }

  .comfort-image {
    position: static;
  }

  .comfort-image img {
    height: 360px;
    min-height: 360px;
  }

  .comfort-grid {
    grid-template-columns: 1fr;
  }

  .split-visual {
    padding: 0 24px 24px;
  }

  .relax-photo {
    max-width: 100%;
    height: 320px;
  }

  .neighborhood-section {
    background-position: 68% 20%;
  }

  .neighborhood-panel {
    grid-template-columns: 1fr;
    padding: 34px 24px;
  }

  .neighborhood-content p {
    font-size: 16px;
  }

  .booking-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 34px 26px;
  }

  .booking-card .btn.primary {
    width: 100%;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-disclaimer {
    text-align: left;
    white-space: normal;
  }
}