/* Sapori d'Italia — Cala Millor · Tomato-red, basil-green, parchment */

:root {
  --bg:           #fbf6ec;
  --bg-deep:      #f1e8d4;
  --paper:        #ffffff;
  --ink:          #2b1a14;
  --ink-soft:     #4a3024;
  --muted:        #877766;
  --accent:       #b8362a;          /* tomato red */
  --accent-dark:  #8f261d;
  --olive:        #5e7a3a;          /* basil green */
  --gold:         #d5a14b;
  --line:         rgba(43,26,20,0.12);
  --shadow-sm:    0 4px 14px rgba(40,20,15,0.07);
  --shadow-md:    0 16px 44px rgba(40,20,15,0.14);
  --radius:       14px;
  --radius-sm:    8px;
  --container:    1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: 'Libre Caslon Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0 0 .55em;
  line-height: 1.12;
  color: var(--ink);
}
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
em { font-style: italic; color: var(--olive); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.kicker {
  font-family: 'Inter', sans-serif;
  font-size: .78rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent);
  margin: 0 0 .9em;
}

.section-head { margin-bottom: 2.6rem; }
.section-head h2 { margin-bottom: 0; }
.muted { color: var(--muted); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: all .25s ease;
  border: 2px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-reserve { padding: 10px 18px; font-size: .88rem; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,246,236,0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 16px; padding-bottom: 16px;
}
.brand { display: inline-flex; flex-direction: column; gap: 2px; }
.brand-name {
  font-family: 'Libre Caslon Display', serif;
  font-size: 1.65rem; font-weight: 400; letter-spacing: 0;
  color: var(--accent); line-height: 1;
}
.brand-name em { color: var(--olive); font-style: italic; font-weight: 400; }
.brand-sub {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}

.nav-main { display: flex; gap: 28px; }
.nav-main a { font-size: .92rem; font-weight: 500; color: var(--ink-soft); padding: 4px 0; }
.nav-main a:hover { color: var(--accent); }

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

.lang-switch {
  display: inline-flex; border: 1px solid var(--line);
  border-radius: 999px; padding: 3px; background: var(--paper);
}
.lang-btn {
  background: transparent; border: none; padding: 5px 11px;
  font-family: inherit; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; color: var(--muted);
  cursor: pointer; border-radius: 999px; transition: all .2s;
}
.lang-btn.is-active { background: var(--accent); color: #fff; }

.nav-toggle {
  display: none; width: 36px; height: 36px;
  border: none; background: transparent;
  flex-direction: column; justify-content: center; gap: 5px;
  cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.7px;
  background: var(--ink); transition: transform .3s, opacity .3s;
}

/* HERO */
.hero {
  position: relative; min-height: 80vh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1565958011703-44f9829ba187?auto=format&fit=crop&w=1920&q=85');
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(30,15,10,0.78) 0%, rgba(30,15,10,0.55) 55%, rgba(30,15,10,0.18) 100%);
}
.hero-inner { position: relative; padding: 110px 24px 90px; }
.hero .eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: .78rem; letter-spacing: .22em;
  text-transform: uppercase; color: #f7d6b8;
  margin: 0 0 16px; font-weight: 700;
}
.hero-title {
  font-family: 'Libre Caslon Display', serif;
  font-style: normal; font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem);
  color: #fff; max-width: 14ch; margin-bottom: 18px;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 42ch; color: rgba(255,255,255,.92);
  margin-bottom: 32px;
}
.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  align-items: center; margin-bottom: 50px;
}
.hero-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero-cta .btn-ghost:hover { background: #fff; color: var(--ink); }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 12px;
  font-size: .92rem; color: rgba(255,255,255,.88);
  font-variant-numeric: tabular-nums;
}
.hero-meta .dot { color: rgba(255,255,255,.4); }
.hero-meta .rating { color: #f7d6b8; font-weight: 600; }

/* STORY */
.story { padding: 90px 0; background: var(--bg); }
.story-grid {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 70px; align-items: center;
}
.story-text h2 { max-width: 16ch; }
.story-text p { font-size: 1.05rem; color: var(--ink-soft); max-width: 52ch; }
.story-stats {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
.story-stats li {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px;
  display: flex; align-items: baseline; gap: 16px;
}
.story-stats strong {
  font-family: 'Libre Caslon Display', serif;
  font-size: 1.8rem; font-weight: 400; color: var(--accent);
}
.story-stats span { color: var(--muted); font-size: .92rem; }

/* GALLERY */
.gallery { padding: 90px 0; background: var(--bg); }
.gallery-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr; gap: 12px;
  aspect-ratio: 12/7;
}
.gallery-item {
  margin: 0; overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-deep); box-shadow: var(--shadow-sm);
}
.gallery-item--big { grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* MENU */
.menu { padding: 90px 0; background: var(--paper); }
.rec-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.rec-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
  transition: transform .2s, box-shadow .2s;
}
.rec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rec-card h3 {
  font-family: 'Libre Caslon Display', serif;
  font-size: 1.45rem; font-weight: 400;
  margin: 0 0 8px; color: var(--accent);
}
.rec-card p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

.menu-note {
  margin-top: 40px; text-align: center;
  font-size: .9rem; color: var(--muted); font-style: italic;
}

/* VISIT */
.visit { padding: 90px 0; background: var(--bg-deep); }
.visit-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 60px; align-items: start;
}
.visit-info h2 { max-width: 17ch; }
.info-block { margin-bottom: 26px; }
.info-block p { margin: 0 0 4px; }
.info-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 8px !important;
}
.info-block a { border-bottom: 1px solid var(--line); }
.info-block a:hover { color: var(--accent); border-color: var(--accent); }
.visit-cta {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px;
}
.visit-map {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5; background: var(--paper);
}
.visit-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* FOOTER */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.78);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 50px; padding-bottom: 40px;
}
.footer-name {
  font-family: 'Libre Caslon Display', serif;
  font-style: normal; font-weight: 400;
  font-size: 1.9rem; color: #fff; margin: 0 0 8px;
}
.footer-name em { color: var(--olive); font-style: italic; font-weight: 400; }
.footer-tag { color: rgba(255,255,255,.55); margin: 0; font-style: italic; }
.footer-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.footer-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
  margin-bottom: 12px;
}
.footer-cols p { margin: 0 0 4px; font-size: .95rem; }
.footer-cols .muted { color: rgba(255,255,255,.4); }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 24px; text-align: center;
  font-size: .82rem; color: rgba(255,255,255,.4);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-main { display: none; }
  .btn-reserve { display: none; }
  .nav-toggle { display: flex; }

  .story-grid, .visit-grid, .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .visit-map { aspect-ratio: 4/3; }

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    aspect-ratio: auto;
  }
  .gallery-item--big { grid-column: span 2; grid-row: auto; aspect-ratio: 16/9; }
  .gallery-item:not(.gallery-item--big) { aspect-ratio: 4/3; }

  .hero { min-height: 72vh; }
  .hero-inner { padding: 80px 24px 60px; }

  .story, .gallery, .menu, .visit { padding: 70px 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 560px) {
  .lang-switch { padding: 2px; }
  .lang-btn { padding: 4px 8px; font-size: .72rem; }
  .brand-name { font-size: 1.4rem; }
  .brand-sub { display: none; }
  .header-inner { gap: 12px; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* MOBILE NAV */
.mobile-nav {
  position: fixed; inset: 0; background: var(--bg);
  z-index: 49; display: none;
  flex-direction: column; padding: 100px 32px 40px; gap: 8px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-family: 'Libre Caslon Display', serif;
  font-size: 1.8rem; padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 20px; align-self: flex-start; }

.nav-toggle.is-open span:nth-child(1){ transform: translateY(6.7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-6.7px) rotate(-45deg); }
