/* ═══════════════════════════════════════════
   CA NICO — Design System
   Palette: logo, terracotta roofs,
   olive groves, Ligurian sea, brick vaults
   ═══════════════════════════════════════════ */

:root {
  --olive-dark: #3B5A1E;
  --olive: #5A7A2E;
  --olive-light: #8BA550;
  --terracotta: #A85030;
  --terracotta-light: #D4815E;
  --sun-gold: #E8A838;
  --sun-light: #F5C96A;
  --sea: #4A90A4;
  --sea-light: #7BBDD4;
  --sand: #F7F3ED;
  --sand-warm: #EDE5D8;
  --stone: #A09480;
  --stone-light: #C4B8A8;
  --brick-light: #E8D8C0;
  --ink: #2C2416;
  --ink-soft: #4A3F30;
  --text: #3D3426;
  --text-light: #6B6052;
  --white: #FEFCF9;

  --shadow-sm: 0 1px 3px rgba(44,36,22,0.06);
  --shadow: 0 4px 12px rgba(44,36,22,0.08);
  --shadow-lg: 0 12px 40px rgba(44,36,22,0.12);
  --shadow-xl: 0 20px 60px rgba(44,36,22,0.16);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container-max: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive-dark); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--terracotta); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.7;
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
}
.btn-primary {
  background: var(--olive-dark);
  color: #FFFFFF !important;
  border-color: var(--olive-dark);
}
.btn-primary:hover {
  background: var(--olive);
  border-color: var(--olive);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--olive-dark);
  border-color: var(--olive-dark);
}
.btn-outline:hover {
  background: var(--olive-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* ═══ NAVIGATION ═══ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.5rem 0;
  transition: all 0.3s var(--ease);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.site-nav.scrolled {
  box-shadow: var(--shadow);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-logo {
  height: 65px;
  width: auto;
  transition: all 0.3s var(--ease);
}
.site-nav.scrolled .nav-logo {
  height: 50px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  position: relative;
}
.nav-links a:hover { color: var(--terracotta); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.lang-dropdown {
  position: relative;
}
.lang-switch {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  border: 1.5px solid var(--stone-light);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-switch:hover { background: var(--sand); color: var(--olive-dark); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--sand-warm);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s var(--ease);
  z-index: 100;
  overflow: hidden;
}
.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--text);
  transition: background 0.15s;
}
.lang-menu a:hover { background: var(--sand); }
.lang-menu a.active {
  background: var(--sand);
  color: var(--olive-dark);
  font-weight: 600;
}
.lang-menu a strong { min-width: 22px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s var(--ease);
    box-shadow: var(--shadow-xl);
  }
  .nav-links.open { right: 0; }
  .nav-links a { color: var(--text) !important; font-size: 1.1rem; }
  .lang-switch { color: var(--text) !important; border-color: var(--stone-light) !important; }
}

/* ═══ HERO ═══ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
  transform: scale(1.05);
  transition: transform 8s ease-out;
  overflow: hidden;
}
.hero-bg > img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero.loaded .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(44,36,22,0.3) 0%, rgba(44,36,22,0.1) 40%, rgba(44,36,22,0.5) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem;
  max-width: 800px;
}
.hero-content h1 { color: var(--white); margin-bottom: 1rem; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  opacity: 0.7;
  animation: bounce 2s infinite;
  font-size: 1.5rem;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ═══ FEATURES STRIP ═══ */
.features-strip {
  background: var(--olive-dark);
  color: var(--white);
  padding: 1.5rem 0;
}
.features-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.feature-icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  font-size: 1.1rem;
}

/* ═══ SECTIONS ═══ */
.section { padding: 5rem 0; }
.section-alt { background: var(--sand); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .section-subtitle { margin: 0 auto; }

/* ═══ GALLERY ═══ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 0.8rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.gallery-label {
  position: absolute;
  bottom: 1rem; left: 1rem;
  z-index: 2;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s var(--ease);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.gallery-item:hover .gallery-label { opacity: 1; transform: translateY(0); }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 180px 180px;
  }
  .gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
}

/* ═══ ABOUT ═══ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { margin-bottom: 1.2rem; }
.about-text p { margin-bottom: 1rem; color: var(--text-light); }
.highlights-list {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.highlights-list li { display: flex; align-items: center; gap: 0.8rem; font-weight: 500; }
.highlights-list .check {
  width: 28px; height: 28px; min-width: 28px;
  background: linear-gradient(135deg, var(--olive-light), var(--olive));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.75rem;
}
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ═══ CTA BANNER ═══ */
.cta-banner {
  background: linear-gradient(135deg, var(--terracotta) 0%, #A0522D 50%, var(--olive-dark) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.8rem; }
.cta-banner p { opacity: 0.9; margin-bottom: 2rem; font-size: 1.1rem; }

/* ═══ PROMO BAR (last-minute, site-wide) ═══ */
.promo-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  background: linear-gradient(90deg, var(--terracotta) 0%, var(--sun-gold) 100%);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.promo-bar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  font-size: 0.9rem;
  line-height: 1.3;
}
.promo-bar-badge {
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.22);
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.promo-bar-text { font-weight: 500; }
.promo-bar-cta,
.promo-bar-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.promo-bar-cta {
  background: rgba(255, 255, 255, 0.18);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}
.promo-bar-cta:hover,
.promo-bar-wa:hover { color: var(--white); opacity: 0.9; }
.promo-bar-wa svg { fill: currentColor; flex: 0 0 auto; }
.promo-bar-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  padding: 0 0.15rem;
}
.promo-bar-close:hover { opacity: 1; }

/* When the promo bar is visible, push the fixed nav and the page content down by
   its measured height (--promo-h, published by the bar's inline script). */
body.cn-has-promo .site-nav { top: var(--promo-h, 44px); }
body.cn-has-promo main { padding-top: var(--promo-h, 44px); }

@media (max-width: 600px) {
  .promo-bar-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
  }
  /* On phones keep it to badge + WhatsApp + close; hide the descriptive sentence
     and the redundant CTA so it never wraps to multiple lines. */
  .promo-bar-text,
  .promo-bar-cta { display: none; }
}

/* Last-minute discount in the availability summary */
.avail-total-old {
  text-decoration: line-through;
  opacity: 0.55;
  font-weight: 400;
  margin-right: 0.4rem;
}
.avail-summary-discount span:last-child {
  color: var(--terracotta);
  font-weight: 600;
}

/* ═══ CAMPAIGN LANDING (offerta) ═══ */
/* Compound selectors (.page-hero.landing-hero) raise specificity above the base
   .page-hero rule, which is defined LATER in this file — otherwise source order
   would keep the fixed 40vh height and clip the hero (badge + h1 + sub + CTAs). */
.page-hero.landing-hero {
  height: auto;
  min-height: 82vh;
  padding: 5rem 0;
}
.landing-hero-content { max-width: 780px; }
.landing-badge {
  display: inline-block;
  background: var(--sun-gold);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.landing-hero-content h1 { margin-bottom: 0.7rem; }
.page-hero-content .landing-sub { font-size: 1.15rem; opacity: 1; margin: 0 auto 1.6rem; max-width: 620px; }
.landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  border: none;
}
.btn-whatsapp svg { fill: currentColor; }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; }
.page-hero-content .landing-trust { font-size: 0.85rem; opacity: 0.85; margin: 0; }
.landing-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.landing-gallery picture {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.landing-gallery img { width: 100%; height: 100%; object-fit: cover; }
.landing-why {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
}
.landing-why li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 1.05rem;
}
.landing-why-tick { color: var(--olive); font-weight: 800; flex: 0 0 auto; }
.landing-footer {
  background: var(--ink);
  color: var(--sand);
  padding: 1.5rem 0;
  font-size: 0.85rem;
}
.landing-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.landing-footer a { color: var(--sand-warm); text-decoration: underline; }
@media (max-width: 768px) {
  .landing-gallery { grid-template-columns: 1fr; }
  .page-hero-content .landing-sub { font-size: 1.05rem; }
}

/* ═══ LOCATION ═══ */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/10;
}
.location-map iframe { width: 100%; height: 100%; border: 0; }
.location-items {
  list-style: none;
  display: grid;
  gap: 1rem;
}
.location-items li { display: flex; align-items: flex-start; gap: 1rem; }
.location-items .loc-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--sand);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.location-items .loc-text strong { display: block; font-size: 0.9rem; }
.location-items .loc-text span { font-size: 0.82rem; color: var(--text-light); }
@media (max-width: 768px) { .location-grid { grid-template-columns: 1fr; } }

/* ═══ FOOTER ═══ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}
.footer-brand img {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: var(--white);
  padding: 5px 10px;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.6; max-width: 300px; }
.footer-links h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-family: var(--font-body);
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer-links a:hover { color: var(--sun-gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* ═══ PAGE HERO (sub-pages) ═══ */
.page-hero {
  position: relative;
  height: 40vh;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  display: block;
}
.page-hero-bg > img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.page-hero-sm { height: 25vh; min-height: 180px; }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: rgba(44,36,22,0.55);
}
.page-hero-content {
  position: relative; z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem;
}
.page-hero-content h1 { color: var(--white); text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.page-hero-content p { opacity: 0.9; font-size: 1.1rem; margin-top: 0.5rem; }

/* ═══ FORMS ═══ */
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--sand-warm);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--olive);
}
.form-group textarea { resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400 !important;
  font-size: 0.82rem !important;
  color: var(--text-light) !important;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
}

/* ═══ RATES TABLE ═══ */
.rates-table-wrap {
  max-width: 800px;
  margin: 0 auto;
}
.rates-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.rates-table thead {
  background: var(--olive-dark);
  color: var(--white);
}
.rates-table th {
  padding: 1rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  font-family: var(--font-body);
}
.rates-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--sand);
  font-size: 0.9rem;
}
.rates-table tbody tr:last-child td { border-bottom: none; }
.rates-table tbody tr:hover { background: var(--sand); }
.rate-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--olive-dark);
}
.season-badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
}
.season-low { background: #E3F2FD; color: #1565C0; }
.season-mid { background: #FFF3E0; color: #E65100; }
.season-high { background: #FFEBEE; color: #C62828; }
.rates-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.82rem;
  color: var(--text-light);
  font-style: italic;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 600px) {
  .rates-table th, .rates-table td { padding: 0.7rem; font-size: 0.8rem; }
}

/* ═══ SEASON CARDS ═══ */
.season-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}
.season-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.season-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.season-card-low  { border-top-color: #1565C0; }
.season-card-mid  { border-top-color: #E65100; }
.season-card-high { border-top-color: #C62828; }
.season-card-head { display: flex; align-items: center; }
.season-card-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-body);
}
.season-card-amount {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--olive-dark);
  line-height: 1;
}
.season-card-unit {
  font-size: 0.9rem;
  color: var(--text-light);
}
.season-card-period {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}
.season-card-meta {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid var(--sand);
  padding-top: 0.8rem;
}

/* ═══ SEASONAL CALENDAR ═══ */
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.calendar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
}
.calendar-legend-price {
  font-weight: 600;
  color: var(--olive-dark);
}
.calendar-years {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}
.calendar-year-title {
  font-size: 1.6rem;
  margin: 0 0 1rem;
  color: var(--olive-dark);
  border-bottom: 2px solid var(--olive-dark);
  padding-bottom: 0.4rem;
  display: inline-block;
}
.year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  border-bottom: 1px solid var(--sand-warm);
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
}
.year-tab {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  padding: 0.55rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-radius: 99px;
  letter-spacing: 0.04em;
  transition: background 150ms, color 150ms, border-color 150ms;
}
.year-tab:hover { color: var(--olive-dark); background: var(--sand); }
.year-tab.active {
  background: var(--olive-dark);
  color: var(--white);
  border-color: var(--olive-dark);
}
.year-tab:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}
.year-panel[hidden] { display: none; }
.calendar-table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.calendar-table {
  width: 100%;
  border-collapse: collapse;
}
.calendar-table thead {
  background: var(--olive-dark);
  color: var(--white);
}
.calendar-table th {
  padding: 0.9rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-family: var(--font-body);
}
.calendar-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--sand);
  font-size: 0.92rem;
  vertical-align: middle;
}
.calendar-table tbody tr:last-child td { border-bottom: none; }
.calendar-table tbody tr:hover { background: #FAF8F3; }

.calendar-table tbody td:first-child { border-left: 4px solid transparent; }
.calendar-row-low  td:first-child { border-left-color: #1565C0; }
.calendar-row-mid  td:first-child { border-left-color: #E65100; }
.calendar-row-high td:first-child { border-left-color: #C62828; }

.calendar-period {
  white-space: nowrap;
  font-weight: 500;
}
.calendar-period-arrow {
  color: var(--text-light);
  margin: 0 0.5rem;
}
.calendar-table th.calendar-col-nights,
.calendar-table th.calendar-col-price,
.calendar-table td.calendar-col-nights,
.calendar-table td.calendar-col-price { text-align: center; }
.calendar-table th.calendar-col-nights,
.calendar-table th.calendar-col-price { color: var(--white); }
.calendar-table td.calendar-col-nights { color: var(--text-light); }
.calendar-table td.calendar-col-price  { font-weight: 700; color: var(--olive-dark); }

@media (max-width: 600px) {
  .calendar-table th, .calendar-table td { padding: 0.65rem 0.7rem; font-size: 0.82rem; }
  .calendar-period-arrow { margin: 0 0.3rem; }
  .season-card-amount { font-size: 2rem; }
}

/* ═══ INCLUDED GRID ═══ */
.included-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}
.included-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
}
.included-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* ═══ TERMS GRID ═══ */
.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.terms-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--terracotta);
}
.terms-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: var(--text);
}
.terms-card p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ═══ PUBLIC AVAILABILITY CALENDAR ═══ */
.pub-cal-card {
  max-width: 960px;
  margin: 0 auto 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: var(--shadow-lg);
}
.pub-cal-head { text-align: center; margin-bottom: 1.25rem; }
.pub-cal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 0.35rem;
  color: var(--ink);
}
.pub-cal-hint {
  margin: 0 auto;
  max-width: 55ch;
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.5;
}
.pub-cal-host {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pub-cal-loading {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  padding: 2rem 0;
}
.pub-cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.pub-cal-navbtn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--sand-warm);
  background: var(--white);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--ink);
  transition: background 120ms, color 120ms, border-color 120ms;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pub-cal-navbtn:hover:not(:disabled) {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}
.pub-cal-navbtn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.pub-cal-label {
  font-weight: 600;
  color: var(--ink);
  text-transform: capitalize;
  letter-spacing: 0.02em;
  min-width: 18ch;
  text-align: center;
}
.pub-cal-months {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .pub-cal-months { grid-template-columns: 1fr 1fr; }
}
.pub-cal-month { background: transparent; }
.pub-cal-month-head {
  text-transform: capitalize;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--sand);
  margin-bottom: 0.35rem;
  text-align: center;
}
.pub-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 0.68rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding: 0.25rem 0;
}
.pub-cal-weekday { text-align: center; }
.pub-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.pub-cal-day {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0.25rem;
  border-radius: 6px;
  background: var(--sand);
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  min-height: 44px;
}
.pub-cal-day-blank {
  background: transparent;
}
.pub-cal-day-num {
  font-weight: 600;
  color: var(--ink);
}
.pub-cal-day-price {
  align-self: flex-end;
  font-size: 0.66rem;
  color: var(--text-light);
  font-weight: 500;
}
.pub-cal-day.is-past {
  opacity: 0.4;
  background: var(--sand);
}
.pub-cal-day.is-today {
  outline: 2px solid var(--terracotta);
  outline-offset: -2px;
}
.pub-cal-day.is-today .pub-cal-day-num { color: var(--terracotta); }

.pub-cal-day.is-blocked {
  background: repeating-linear-gradient(
    -45deg,
    #B8AFA4,
    #B8AFA4 4px,
    #A89F93 4px,
    #A89F93 8px
  );
  color: var(--white);
}
.pub-cal-day.is-blocked .pub-cal-day-num { color: var(--white); }

.pub-cal-day.is-clickable {
  cursor: pointer;
  transition: transform 120ms, box-shadow 120ms;
}
.pub-cal-day.is-clickable:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}
.pub-cal-day.is-clickable:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}
.pub-cal-day.is-selected {
  background: var(--terracotta);
  color: var(--white);
}
.pub-cal-day.is-selected .pub-cal-day-num,
.pub-cal-day.is-selected .pub-cal-day-price { color: var(--white); }

/* Season backgrounds (free days only — tinted to hint the tier) */
.pub-cal-day.season-bg-low { background: #EDF2E5; }
.pub-cal-day.season-bg-mid { background: #FBEFD3; }
.pub-cal-day.season-bg-high { background: #F4DCD0; }

/* Candidate check-out days (when check-in is selected) */
.pub-cal-day.is-valid-checkout {
  border: 2px dashed var(--terracotta);
  padding: calc(0.25rem - 2px);
}
.pub-cal-day.is-valid-checkout .pub-cal-day-num { color: var(--terracotta); }
.pub-cal-day.is-valid-checkout::after {
  content: '←';
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 0.7rem;
  color: var(--terracotta);
  font-weight: 700;
  line-height: 1;
}
.pub-cal-day.is-nonsat {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Selected range */
.pub-cal-day.is-checkin,
.pub-cal-day.is-checkout {
  background: var(--terracotta) !important;
  color: var(--white);
  border: 2px solid var(--terracotta);
  padding: calc(0.25rem - 2px);
}
.pub-cal-day.is-checkin .pub-cal-day-num,
.pub-cal-day.is-checkout .pub-cal-day-num,
.pub-cal-day.is-checkin .pub-cal-day-price,
.pub-cal-day.is-checkout .pub-cal-day-price { color: var(--white); }
.pub-cal-day.is-checkin::after {
  content: '→';
  position: absolute;
  top: 2px; right: 4px;
  font-size: 0.7rem;
  color: var(--white);
  font-weight: 700; line-height: 1;
}
.pub-cal-day.is-checkout::after {
  content: '←';
  position: absolute;
  top: 2px; right: 4px;
  font-size: 0.7rem;
  color: var(--white);
  font-weight: 700; line-height: 1;
}
.pub-cal-day.is-in-range {
  background: rgba(168, 80, 48, 0.22) !important;
  color: var(--ink);
  border-radius: 0;
}
.pub-cal-day.is-in-range .pub-cal-day-num { color: var(--ink); }

/* Hover preview while choosing check-out */
.pub-cal-day.is-hover-range {
  background: rgba(168, 80, 48, 0.12) !important;
  border-radius: 0;
}
.pub-cal-day.is-hover-end {
  outline: 2px solid var(--terracotta);
  outline-offset: -2px;
}

/* Reset selection button in the nav bar */
.pub-cal-reset {
  appearance: none;
  border: 1px solid var(--sand-warm);
  background: var(--white);
  color: var(--text-light);
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  font-size: 0.82rem;
  cursor: pointer;
  margin-left: 0.75rem;
}
.pub-cal-reset:hover {
  background: var(--sand);
  color: var(--terracotta);
  border-color: var(--terracotta);
}

/* Fields driven only by the widget above (check-in) */
.input-pickonly {
  cursor: pointer;
  background-image: linear-gradient(180deg, var(--white), var(--sand));
}
.input-pickonly:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

.pub-cal-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--sand);
  font-size: 0.82rem;
  color: var(--text-light);
}
.pub-cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.pub-cal-legend-swatch {
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.06);
}
.pub-cal-legend-swatch.season-bg-low { background: #EDF2E5; }
.pub-cal-legend-swatch.season-bg-mid { background: #FBEFD3; }
.pub-cal-legend-swatch.season-bg-high { background: #F4DCD0; }
.pub-cal-legend-swatch.is-blocked {
  background: repeating-linear-gradient(
    -45deg,
    #B8AFA4,
    #B8AFA4 3px,
    #A89F93 3px,
    #A89F93 6px
  );
}

@media (max-width: 600px) {
  .pub-cal-card { padding: 1.25rem 1rem 1rem; }
  .pub-cal-day { font-size: 0.75rem; min-height: 38px; }
  .pub-cal-day-price { font-size: 0.6rem; }
  .pub-cal-title { font-size: 1.35rem; }
}

/* ═══ AVAILABILITY CARD ═══ */
.availability-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

/* ═══ CONTACT ═══ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}
.contact-form-card {
  background: var(--sand);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ═══ FORM ALERTS ═══ */
.form-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  border-left: 4px solid transparent;
}
.form-alert-success {
  background: #E8F5E9;
  color: #1B5E20;
  border-left-color: #2E7D32;
}
.form-alert-error {
  background: #FFEBEE;
  color: #B71C1C;
  border-left-color: #C62828;
}

/* ═══ AVAILABILITY SUMMARY ═══ */
.avail-summary {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}
.avail-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.35rem 0;
  font-size: 0.95rem;
}
.avail-summary-label {
  color: var(--text-light);
}
.avail-summary-total {
  border-top: 1px solid var(--stone-light);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.avail-summary-hint {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--text-light);
  font-style: italic;
}
.avail-summary-hint.avail-summary-hint-error {
  color: #C62828;
  font-weight: 600;
  font-style: normal;
}
.avail-status-ok { color: #1B5E20; font-weight: 600; }
.avail-status-ko { color: #B71C1C; font-weight: 600; }
.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ═══ ERROR PAGE ═══ */
.error-container {
  max-width: 600px;
  text-align: center;
  padding: 4rem 1.5rem;
}
.error-code {
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 1;
  color: var(--terracotta);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.error-container h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.error-message {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}
.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.error-request-id {
  margin-top: 2rem;
  color: var(--text-light);
}
.error-request-id code {
  background: var(--sand);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* ═══ EMPTY STATE ═══ */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}
.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}
.empty-state h3 { margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-light); max-width: 500px; margin: 0 auto; }

/* ═══ PRIVACY ═══ */
.mt-privacy { margin-top: 2rem; }
.section h2 + p, .section h3 + p { margin-top: 0.5rem; }

/* ═══ BLOG CARDS ═══ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.blog-grid-3 { grid-template-columns: repeat(3, 1fr); }

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-card-preview { opacity: 0.7; }
.blog-card-image {
  display: block;
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--sand);
}
.blog-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.blog-card:hover .blog-card-image img { transform: scale(1.06); }
.blog-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--sand-warm) 0%, var(--brick-light) 100%);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--stone);
}
.blog-card-category {
  position: absolute;
  top: 0.8rem; left: 0.8rem;
  background: var(--olive-dark);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
}
.blog-card-body {
  padding: 1.2rem 1.4rem 1.4rem;
}
.blog-card-body time {
  font-size: 0.78rem;
  color: var(--text-light);
  display: block;
  margin-bottom: 0.4rem;
}
.blog-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.blog-card-body h3 a { color: var(--ink); }
.blog-card-body h3 a:hover { color: var(--terracotta); }
.blog-card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}
.blog-read-more {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--olive-dark);
}
.blog-read-more:hover { color: var(--terracotta); }

@media (max-width: 900px) {
  .blog-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid, .blog-grid-3 { grid-template-columns: 1fr; }
}

/* ═══ BLOG FILTERS ═══ */
.blog-filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--sand-warm);
  padding: 1rem 0;
  position: sticky;
  top: 60px;
  z-index: 50;
}
.blog-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.blog-filter-tag {
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  border: 1.5px solid var(--sand-warm);
  transition: all 0.2s;
}
.blog-filter-tag:hover {
  border-color: var(--olive);
  color: var(--olive-dark);
}
.blog-filter-tag.active {
  background: var(--olive-dark);
  color: var(--white);
  border-color: var(--olive-dark);
}

/* ═══ ARTICLE LAYOUT ═══ */
.article-section { padding-top: 3rem; }
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: flex-start;
}
.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}
.article-content h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
}
.article-content h3 {
  font-size: 1.3rem;
  margin: 2rem 0 0.8rem;
}
.article-content p { margin-bottom: 1.2rem; }
.article-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}
.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.article-content li { margin-bottom: 0.5rem; }
.article-content blockquote {
  border-left: 4px solid var(--olive);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--sand);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--ink-soft);
}
.article-content blockquote.davide-tip {
  border-left-color: #b45427;
  background: #fef9ee;
  font-style: normal;
  color: var(--ink);
  position: relative;
  padding: 1.1rem 1.5rem 1.1rem 3.2rem;
}
.article-content blockquote.davide-tip::before {
  content: "💡";
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  font-size: 1.3rem;
}
.article-content blockquote.davide-tip strong {
  color: #b45427;
  display: inline;
  margin-right: 0.4rem;
}
.article-category-badge {
  display: inline-block;
  background: var(--olive);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 1rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
}

/* ═══ SIDEBAR ═══ */
.sidebar-card {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}
.sidebar-cta {
  background: linear-gradient(135deg, var(--olive-dark), var(--olive));
  color: var(--white);
}
.sidebar-cta h4 { color: var(--white); margin-bottom: 0.5rem; }
.sidebar-cta p { opacity: 0.9; font-size: 0.85rem; margin-bottom: 1rem; }
.sidebar-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}
.sidebar-features {
  list-style: none;
}
.sidebar-features li {
  padding: 0.4rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--sand-warm);
}
.sidebar-features li:last-child { border-bottom: none; }

/* ═══ BREADCRUMBS ═══ */
.breadcrumbs {
  background: var(--sand);
  padding: 0.8rem 0;
  font-size: 0.82rem;
  color: var(--text-light);
}
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--olive-dark); }
.breadcrumb-sep {
  margin: 0 0.4rem;
  opacity: 0.5;
}

/* ═══ ROOM SECTIONS (Appartamento page) ═══ */
.room-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.room-section-reverse .room-info { order: -1; }
.room-gallery { display: grid; gap: 0.8rem; }
.room-photo-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.room-photo-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.room-photo-secondary {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.room-photo-secondary img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }
.room-info .section-label { margin-bottom: 0.3rem; }
.room-info h2 { margin-bottom: 1rem; }
.room-info p { color: var(--text-light); margin-bottom: 1rem; line-height: 1.8; }
.room-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.room-features li {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
}
.room-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--olive);
  font-weight: 700;
}
@media (max-width: 768px) {
  .room-section { grid-template-columns: 1fr; gap: 2rem; }
  .room-section-reverse .room-info { order: 0; }
  .room-features { grid-template-columns: 1fr; }
}

/* Room cards (bedrooms / bathrooms) */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.rooms-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin: 0 auto; }
.room-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease);
}
.room-card:hover { transform: translateY(-4px); }
.room-card-image { overflow: hidden; }
.room-card-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.room-card:hover .room-card-image img { transform: scale(1.05); }
.room-card-body { padding: 1.3rem 1.5rem; }
.room-card-body h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.room-card-body p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 0.8rem; line-height: 1.6; }
.room-card-specs {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--olive-dark);
  font-weight: 500;
}
@media (max-width: 900px) { .rooms-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .rooms-grid, .rooms-grid-2 { grid-template-columns: 1fr; } }

/* Amenities grid */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.amenity {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.amenity-icon { font-size: 1.3rem; min-width: 28px; text-align: center; }

/* ═══ FLOOR PLAN ═══ */
.floorplan-wrapper {
  max-width: 820px;
  margin: 2rem auto 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  overflow: hidden;
}
.floorplan-img {
  width: 100%;
  height: auto;
}
@media (max-width: 640px) {
  .floorplan-wrapper {
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
  }
  .floorplan-img {
    min-width: 500px;
  }
}

/* ═══ LEGAL CODES ═══ */
.hero-codes {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1.2rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  white-space: nowrap;
}
.hero-codes-sep { opacity: 0.5; }
@media (max-width: 600px) {
  .hero-codes { flex-direction: column; gap: 0.1rem; border-radius: var(--radius); text-align: center; }
  .hero-codes-sep { display: none; }
}
.footer-codes {
  margin-top: 1rem;
  font-size: 0.78rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
}
.footer-codes strong { color: rgba(255,255,255,0.7); }
.footer-phones { margin-top: 0.5rem; }
.footer-phones a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  display: inline-block;
  padding: 0.25rem 0;
  min-height: 24px;
  line-height: 1.5;
}
.footer-phones a:hover { color: var(--sun-gold); }
.contact-codes {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--sand);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ═══ SOCIAL ICONS ═══ */
.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}
.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: all 0.2s;
}
/* ═══ COOKIE CONSENT BANNER (marketing / Meta Pixel) ═══ */
.cn-consent {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 1000;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.1rem 1.4rem;
  background: var(--ink);
  color: #FFFFFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.cn-consent[hidden] { display: none; }
.cn-consent-text {
  flex: 1 1 280px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}
.cn-consent-text a { color: var(--gold, #C9A227); text-decoration: underline; }
.cn-consent-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.cn-consent .btn { padding: 0.6rem 1.3rem; font-size: 0.875rem; }
.cn-consent .btn-ghost {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.4);
}
.cn-consent .btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
}
@media (max-width: 600px) {
  .cn-consent { flex-direction: column; align-items: stretch; text-align: center; }
  .cn-consent-actions { justify-content: center; }
}

.social-link:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.social-link svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,0.7);
}
.social-link:hover svg { fill: var(--sun-gold); }

/* ═══ UTILITIES ═══ */
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ═══ BLOG IMAGE CREDIT ═══ */
.image-credit {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted, #888);
  font-style: italic;
}

/* ═══ BLOG PODCAST PLAYER ═══ */
.podcast-player {
  margin: 0 0 1.75rem;
  padding: 1rem 1.25rem;
  background: var(--olive-light, #f3f4ee);
  border-radius: 10px;
}
.podcast-player-label {
  margin: 0 0 .6rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.podcast-player iframe {
  width: 100%;
  height: 150px;
  border: 0;
  border-radius: 6px;
}

/* ═══ SITEMAP PAGE ═══ */
.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  columns: 2 280px;
  column-gap: 2rem;
}
.sitemap-list li {
  padding: 0.4rem 0;
  break-inside: avoid;
}
.sitemap-list a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.sitemap-list a:hover {
  border-bottom-color: currentColor;
}
.sitemap-date {
  color: var(--muted, #777);
  font-size: 0.875rem;
}
