/* ============================================
   Riva del Lago — Italian Coastal Luxury
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap");

:root {
  --ivory: #fffaf3;
  --beige: #f5efe6;
  --sand: #e6d8c9;
  --olive: #6b7d5c;
  --terracotta: #c97b5b;
  --gold: #c9a96a;
  --ink: #3a2e25;
  --muted: #7a6b5e;
  --border: #e3d8c9;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;

  --shadow-soft: 0 30px 60px -30px rgba(58, 46, 37, 0.25);
  --shadow-warm: 0 20px 50px -20px rgba(201, 123, 91, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: rgba(201, 123, 91, 0.3); color: var(--ink); }

/* ===== Utility ===== */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.display { font-family: var(--font-serif); font-weight: 300; line-height: 1.02; }
.italic { font-style: italic; }
.text-terracotta { color: var(--terracotta); }
.text-gold { color: var(--gold); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) { .container { padding: 0 2.5rem; } }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.7s ease, border-color 0.7s ease, backdrop-filter 0.7s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 250, 243, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(227, 216, 201, 0.6);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .nav-inner { padding: 1.25rem 2.5rem; } }

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--ivory);
  transition: color 0.5s ease;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.875rem;
  color: rgba(255, 250, 243, 0.8);
  transition: color 0.5s ease;
}
.nav.scrolled .brand { color: var(--ink); }
.nav.scrolled .brand-sub { color: var(--terracotta); }

.nav-links {
  display: none;
  gap: 2.25rem;
  list-style: none;
}
@media (min-width: 900px) { .nav-links { display: flex; align-items: center; } }

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255, 250, 243, 0.9);
  position: relative;
  transition: color 0.4s;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { color: var(--terracotta); }
.nav.scrolled .nav-links a { color: rgba(58, 46, 37, 0.8); }
.nav.scrolled .nav-links a:hover { color: var(--ink); }
.nav.scrolled .nav-links a.active { color: var(--terracotta); }

.nav-cta {
  display: none;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border: 1px solid rgba(255, 250, 243, 0.6);
  border-radius: 999px;
  color: var(--ivory);
  transition: all 0.5s;
}
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }
.nav-cta:hover { background: var(--ivory); color: var(--ink); }
.nav.scrolled .nav-cta { border-color: rgba(58, 46, 37, 0.3); color: var(--ink); }
.nav.scrolled .nav-cta:hover { background: var(--ink); color: var(--ivory); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ivory);
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block;
  width: 26px; height: 1px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}
.nav.scrolled .nav-toggle { color: var(--ink); }
.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); }

.mobile-drawer {
  background: var(--ivory);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}
.mobile-drawer.open {
  max-height: 600px;
  opacity: 1;
  border-top: 1px solid var(--border);
}
.mobile-drawer ul {
  list-style: none;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.mobile-drawer a {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--ink);
}
.mobile-drawer a.active { color: var(--terracotta); font-style: italic; }

/* Inner page nav variant (no hero behind) */
.nav.solid {
  background: rgba(255, 250, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(227, 216, 201, 0.6);
}
.nav.solid .brand { color: var(--ink); }
.nav.solid .brand-sub { color: var(--terracotta); }
.nav.solid .nav-links a { color: rgba(58, 46, 37, 0.8); }
.nav.solid .nav-cta { border-color: rgba(58, 46, 37, 0.3); color: var(--ink); }
.nav.solid .nav-cta:hover { background: var(--ink); color: var(--ivory); }
.nav.solid .nav-toggle { color: var(--ink); }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  animation: kenBurns 20s ease-out forwards;
}
@keyframes kenBurns {
  0%   { transform: scale(1.08) translate(-1%, 1%); }
  100% { transform: scale(1.2) translate(1%, -1%); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(58,46,37,0.25) 0%,
    rgba(58,46,37,0.1) 40%,
    rgba(58,46,37,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem 6rem;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  color: var(--ivory);
}
@media (min-width: 768px) {
  .hero-content { padding: 0 2.5rem 8rem; }
}
.hero-content .eyebrow { color: rgba(255,250,243,0.85); }
.hero h1 {
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 300;
  margin-top: 1.25rem;
  color: var(--ivory);
  max-width: 14ch;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p {
  margin-top: 2rem;
  max-width: 38ch;
  color: rgba(255, 250, 243, 0.85);
  line-height: 1.8;
}
.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Compact page hero */
.page-hero {
  padding: 9rem 1.5rem 5rem;
  background: var(--ivory);
}
@media (min-width: 768px) {
  .page-hero { padding: 11rem 2.5rem 8rem; }
}
.page-hero .container { max-width: 1100px; }
.page-hero h1 {
  font-size: clamp(2.75rem, 7vw, 6rem);
  margin-top: 1.5rem;
  max-width: 18ch;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary {
  background: var(--ink);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--terracotta); }
.btn-outline {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(255, 250, 243, 0.7);
}
.btn-outline:hover { background: var(--ivory); color: var(--ink); }
.btn-dark-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(58, 46, 37, 0.3);
}
.btn-dark-outline:hover { background: var(--ink); color: var(--ivory); }

/* ===== Sections ===== */
section { padding: 5rem 1.5rem; }
@media (min-width: 768px) { section { padding: 8rem 2.5rem; } }
.section-beige { background: var(--beige); }
.section-ivory { background: var(--ivory); }

.grid-2 {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.grid-2.reverse > :first-child { order: 2; }
@media (min-width: 900px) {
  .grid-2.reverse > :first-child { order: 1; }
  .grid-2.reverse > :last-child { order: 2; }
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-top: 1.25rem;
}
.section-text {
  margin-top: 1.75rem;
  color: var(--muted);
  line-height: 1.95;
}
.section-text + .section-text { margin-top: 1.25rem; }

.feature-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: var(--shadow-soft);
}
.feature-img.warm { box-shadow: var(--shadow-warm); }

/* ===== Cards (services / dishes) ===== */
.cards {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: var(--ivory);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.card:hover .card-img { transform: scale(1.05); }
.card-body { padding: 2rem; }
.card-body h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.card-body p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.card-body .price {
  display: block;
  margin-top: 1.25rem;
  color: var(--terracotta);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
}

/* ===== Quote / CTA banner ===== */
.banner {
  position: relative;
  padding: 8rem 1.5rem;
  overflow: hidden;
  text-align: center;
  color: var(--ivory);
}
.banner-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(58,46,37,0.2), rgba(58,46,37,0.7));
}
.banner-content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.banner h2 {
  color: var(--ivory);
  font-size: clamp(2.25rem, 5vw, 4rem);
  margin-top: 1.5rem;
}
.banner p {
  margin-top: 2rem;
  color: rgba(255, 250, 243, 0.85);
  line-height: 1.8;
}
.banner .btn { margin-top: 2.5rem; }

/* ===== Forms ===== */
.form {
  display: grid;
  gap: 1.5rem;
  max-width: 640px;
  margin: 3rem auto 0;
}
.form-row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.field label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.4s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--terracotta);
}
.field textarea { resize: vertical; min-height: 100px; }

.form-success {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--beige);
  border: 1px solid var(--border);
  margin-top: 3rem;
}
.form-success h3 {
  font-size: 2rem;
  font-style: italic;
  color: var(--terracotta);
}
.form-success p { margin-top: 1rem; color: var(--muted); }

/* ===== Info grid (contact) ===== */
.info-grid {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.info-grid > div {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.info-grid h4 {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-weight: 500;
}
.info-grid p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
}

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: rgba(255, 250, 243, 0.75);
  padding: 5rem 1.5rem 2rem;
}
@media (min-width: 768px) { .footer { padding: 6rem 2.5rem 2rem; } }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.footer h4 {
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.footer .brand-name { color: var(--ivory); }
.footer .brand-sub { color: var(--gold); }
.footer p, .footer a { font-size: 0.95rem; line-height: 1.8; }
.footer a:hover { color: var(--ivory); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; }
.footer-bottom {
  max-width: 1280px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 250, 243, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 250, 243, 0.5);
  letter-spacing: 0.1em;
}

/* ===== Floating reserve ===== */
.float-reserve {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--ink);
  color: var(--ivory);
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: background 0.5s;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.float-reserve:hover { background: var(--terracotta); }
.float-reserve .arrow {
  display: grid;
  place-items: center;
  height: 2.25rem; width: 2.25rem;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--ink);
  transition: all 0.5s;
  animation: floatSoft 6s ease-in-out infinite;
}
.float-reserve:hover .arrow { background: var(--ink); color: var(--ivory); }
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== List of facts ===== */
.fact-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.fact-list li {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  font-size: 0.9rem;
  color: rgba(58,46,37,0.8);
}
