/* ============================================================
   La Mariposa Beach Club — style.css
   Responsive, modern, Mediterranean aesthetic
   ============================================================ */

/* ---------- CSS Reset & Variables ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:     #1a6b8a;   /* deep sea blue */
  --primary-dark:#124e66;
  --accent:      #e8a045;   /* warm sand/gold */
  --accent-dark: #c8832a;
  --sand:        #f5f0e8;
  --sand-dark:   #ede5d5;
  --white:       #ffffff;
  --text:        #2c2c2c;
  --text-light:  #5a5a5a;
  --border:      #ddd6c8;

  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'Lato', 'Segoe UI', Arial, sans-serif;

  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.16);

  --max-width:   1200px;
  --section-gap: 80px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--accent-dark); }

ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); margin-bottom: .75rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout Helpers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-gap) 0;
}

.section--sand {
  background: var(--sand);
}

.section--dark {
  background: var(--primary-dark);
  color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark p { color: var(--white); }

.text-center { text-align: center; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.section-intro {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ---------- Sale Banner ---------- */
.sale-banner {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  text-align: center;
  padding: 10px 24px;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.sale-banner span {
  font-family: var(--font-body);
  letter-spacing: .03em;
}

.sale-banner strong { color: var(--accent); }

.sale-banner form { display: inline-flex; align-items: center; }

.sale-banner button,
.btn-offer {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 7px 20px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .04em;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}

.sale-banner button:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ---------- Navigation ---------- */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 41px; /* height of sale banner */
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
}

.nav-logo-text {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--primary-dark);
  line-height: 1.1;
}

.nav-logo-text span {
  display: block;
  font-size: .7rem;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(18,78,102,.72) 0%,
    rgba(18,78,102,.35) 60%,
    rgba(0,0,0,.1) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px 80px;
  color: var(--white);
}

.hero-content .section-label { color: var(--accent); }

.hero-content h1 {
  color: var(--white);
  max-width: 700px;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.hero-content p {
  max-width: 520px;
  font-size: 1.1rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.badge {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.4);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  backdrop-filter: blur(4px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,160,69,.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary-dark);
  border-color: var(--white);
}

.btn-primary-dark {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary-dark:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Cards Grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-body h3 { color: var(--primary-dark); }

.card-body p {
  color: var(--text-light);
  font-size: .95rem;
  margin-bottom: 1.25rem;
}

/* ---------- Feature Strip ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  background: var(--primary-dark);
}

.feature-item {
  padding: 36px 28px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
  color: var(--white);
}

.feature-item:last-child { border-right: none; }

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-item h4 {
  color: var(--white);
  font-family: var(--font-head);
  margin-bottom: 6px;
}

.feature-item p {
  font-size: .85rem;
  color: rgba(255,255,255,.72);
  margin-bottom: 0;
}

/* ---------- Image + Text Split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.split-text .section-label { display: block; }
.split-text p { color: var(--text-light); }

/* ---------- Menu Grid (Ristorante) ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.menu-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.menu-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.menu-card-body {
  padding: 20px;
}

.menu-card-body h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: .4rem;
}

.menu-card-body p {
  font-size: .9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-meta {
  font-size: .8rem;
  color: var(--text-light);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.blog-card-body h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: .6rem;
}

.blog-card-body p {
  font-size: .9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.read-more {
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.read-more:hover { color: var(--primary); border-color: var(--primary); }

/* ---------- Article Page ---------- */
.article-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,78,102,.7) 0%, transparent 60%);
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-header {
  padding: 48px 0 32px;
}

.article-header .blog-meta { margin-bottom: 1rem; }

.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.article-body {
  padding-bottom: 64px;
}

.article-body h2 {
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-body h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: .75rem;
}

.article-body p {
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.article-body img {
  width: 100%;
  border-radius: var(--radius);
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li { margin-bottom: .4rem; line-height: 1.7; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 14px 0;
  font-size: .85rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: '›';
  margin-right: 6px;
  color: var(--border);
}

.breadcrumbs a { color: var(--primary); }
.breadcrumbs a:hover { color: var(--accent-dark); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 64px 24px;
}

.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 540px; margin: 0 auto 2rem; }

/* ---------- Contatti ---------- */
.contact-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-email {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1rem 0;
  word-break: break-all;
}

/* ---------- Boutique ---------- */
.boutique-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.boutique-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .25s;
}

.boutique-card:hover { transform: translateY(-5px); }

.boutique-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.boutique-card-body {
  padding: 20px;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.8);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand h3 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin-bottom: .5rem;
}

.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(255,255,255,.65);
}

.footer-nav h4 {
  color: var(--accent);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.footer-nav ul li {
  margin-bottom: .5rem;
}

.footer-nav ul li a {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  transition: color .2s;
}

.footer-nav ul li a:hover { color: var(--accent); }

.footer-bottom {
  padding: 20px 0;
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  text-align: center;
  line-height: 1.6;
}

.disclaimer {
  background: rgba(0,0,0,.15);
  padding: 20px 24px;
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  text-align: center;
  line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ---------- Utility ---------- */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.fw-bold { font-weight: 700; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-light); }

.divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 16px auto 28px;
}

.divider--left { margin-left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --section-gap: 56px; }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split.reverse { direction: ltr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 2px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 999;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    border-left: none;
    border-right: none;
    font-size: 1rem;
  }

  .nav-links a:last-child { border-bottom: none; }

  .nav-toggle { display: flex; }

  .hero { min-height: 70vh; }
  .hero-content { padding: 80px 24px 60px; }

  .features { grid-template-columns: 1fr 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }

  .contact-box { padding: 32px 20px; }
}

@media (max-width: 480px) {
  :root { --section-gap: 40px; }

  .hero { min-height: 60vh; }
  .hero-badges { gap: 8px; }
  .badge { font-size: .78rem; padding: 5px 12px; }

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

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

  .sale-banner { flex-direction: column; gap: 8px; padding: 12px 16px; }
}

/* ---------- Google Fonts import (self-host fallback) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');
