/* ==========================================================================
   Casa Camilla — Design: Caldo Familiare
   Palette warm (crema/terracotta), Lora + Nunito Sans, accoglienza domestica.
   ========================================================================== */

:root {
  /* Palette — caldo-familiare.md */
  --ss-bg:       #FBF7F1;
  --ss-surface:  #FFFFFF;
  --ss-text:     #2B2118;
  --ss-muted:    #6B5D4F;
  --ss-border:   #E8DFD2;
  --ss-accent:   #B85420;
  --ss-accent-h: #8E3F18;

  /* Tipografia */
  --ss-font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --ss-font-body: 'Nunito Sans', system-ui, -apple-system, sans-serif;

  --ss-display: clamp(2rem, 4.5vw, 3.4rem);
  --ss-h1:      clamp(1.8rem, 4vw, 2.8rem);
  --ss-h2:      clamp(1.4rem, 3vw, 2rem);
  --ss-h3:      clamp(1.15rem, 2vw, 1.4rem);
  --ss-body:    clamp(1rem, 1.3vw, 1.1rem);
  --ss-small:   0.875rem;

  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);

  --ss-container-max: 1180px;

  /* Tematizzazione widget framework (topbar) — coerente col warm palette */
  --ss-topbar-bg: #2B2118;
  --ss-topbar-fg: #FBF7F1;
  --ss-topbar-accent: #B85420;
  --ss-topbar-font: 'Nunito Sans', sans-serif;

  /* WhatsApp bubble resta verde brand */
  --ss-wa-size: 56px;
  --ss-wa-pos-bottom: 1.75rem;
  --ss-wa-pos-right: 1.75rem;
}

/* --------------------------------------------------------------------------
   Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ss-bg);
  color: var(--ss-text);
  font-family: var(--ss-font-body);
  font-size: var(--ss-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--ss-font-display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0;
  color: var(--ss-text);
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

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

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--ss-container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-surface {
  background: var(--ss-surface);
}

.section-tint {
  background: linear-gradient(180deg, var(--ss-bg) 0%, #F5EEE3 100%);
}

.eyebrow {
  display: inline-block;
  font-size: var(--ss-small);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ss-accent);
  margin-bottom: 0.75rem;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section-title {
  font-size: var(--ss-h2);
}

.section-intro {
  color: var(--ss-muted);
  margin-top: 1rem;
  font-size: 1.05rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--ss-muted);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ss-font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out-soft),
              color 0.25s var(--ease-out-soft),
              transform 0.15s var(--ease-out-soft),
              box-shadow 0.25s var(--ease-out-soft);
}

.btn-primary {
  background: var(--ss-text);
  color: #fff;
}
.btn-primary:hover { background: #000; }
.btn-primary:focus-visible { outline: 2px solid var(--ss-accent); outline-offset: 3px; }
.btn-primary:active { transform: scale(0.97); }

.btn-ghost {
  background: transparent;
  color: var(--ss-text);
  border: 1px solid var(--ss-border);
}
.btn-ghost:hover { background: var(--ss-bg); border-color: var(--ss-muted); }
.btn-ghost:focus-visible { outline: 2px solid var(--ss-accent); outline-offset: 3px; }
.btn-ghost:active { transform: scale(0.97); }

.btn-whatsapp {
  background: #25D366;
  color: #0a3d1c;
}
.btn-whatsapp:hover { background: #1da851; color: #06310f; }
.btn-whatsapp:focus-visible { outline: 2px solid var(--ss-text); outline-offset: 3px; }
.btn-whatsapp:active { transform: scale(0.97); }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: var(--ss-topbar-h, 0);
  z-index: 50;
  background: rgba(251, 247, 241, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--ss-border);
}

.nav-inner {
  max-width: var(--ss-container-max);
  margin: 0 auto;
  padding: 0.9rem clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.nav-brand-text {
  font-family: var(--ss-font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.nav-logo {
  max-height: 110px;
  width: auto;
  display: block;
}
/* Con logo caricato il brand testuale è ridondante: lo nascondiamo. */
.nav-brand.has-logo .nav-brand-text {
  display: none;
}
.nav-brand small {
  font-family: var(--ss-font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ss-muted);
  margin-top: 0.15rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  z-index: 60;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ss-text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out-soft), opacity 0.2s var(--ease-out-soft);
  margin: 0 auto;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  /* Override theme-mobile-nav.css che imposta visibility:hidden globalmente */
  visibility: visible;
  opacity: 1;
  position: static;
  background: transparent;
}
.nav-link {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ss-text);
  transition: color 0.2s var(--ease-out-soft);
}
.nav-link:hover { color: var(--ss-accent); }
.nav-link.is-active { color: var(--ss-accent); }
.nav-cta { list-style: none; }

/* theme-mobile-nav.css (framework) nasconde `.site-nav` ≤991px perché quella classe
   identifica il nav desktop generico. Il nostro nav custom usa la stessa classe: lo
   ripristiniamo, altrimenti su mobile/tablet sparirebbe tutto (logo + hamburger). */
@media (max-width: 991px) {
  nav.site-nav { display: block !important; }
}

@media (max-width: 860px) {
  /* backdrop-filter su .site-nav crea un containing-block per i figli fixed:
     intrappolerebbe l'overlay dentro la barra nav (alto ~90px). Su mobile lo togliamo
     così l'overlay `inset:0` si ancora alla viewport e copre tutto lo schermo. */
  .site-nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 1300; /* sopra l'overlay: la X resta cliccabile per chiudere */
  }
  .nav-overlay {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.75rem;
    background: var(--ss-bg);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out-soft);
    z-index: 1200; /* sopra la topbar (z-index 1100): il menu copre tutto */
  }
  .nav-overlay.is-open { transform: translateX(0); }
  .nav-link { font-size: 1.6rem; font-family: var(--ss-font-display); }
  /* Su telefono un logo da 110px sarebbe sproporzionato: lo limitiamo. */
  .nav-logo { max-height: 64px; }
}

/* --------------------------------------------------------------------------
   Image placeholder
   -------------------------------------------------------------------------- */
.ss-img-placeholder {
  background: var(--ss-border);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--ss-muted);
  font-size: var(--ss-small);
  font-family: var(--ss-font-body);
  text-align: center;
  padding: 1rem;
  border-radius: inherit;
}

/* --------------------------------------------------------------------------
   Hero — split: testo sinistra 40%, foto destra 60%
   -------------------------------------------------------------------------- */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.hero-title {
  font-size: var(--ss-display);
  font-weight: 600;
}
.hero-sub {
  color: var(--ss-muted);
  font-size: 1.1rem;
  max-width: 38ch;
}
.hero-media {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--ss-border);
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 16/10; }
}

/* --------------------------------------------------------------------------
   Trustbar
   -------------------------------------------------------------------------- */
.trustbar {
  background: var(--ss-surface);
  border-top: 1px solid var(--ss-border);
  border-bottom: 1px solid var(--ss-border);
  padding: clamp(2rem, 4vw, 2.75rem) 0;
}
.trustbar-grid {
  max-width: var(--ss-container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 2rem;
}
.trustbar-grid > * { min-width: 0; }
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.trust-item i {
  font-size: 1.4rem;
  color: var(--ss-accent);
}
.trust-label {
  font-family: var(--ss-font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.trust-detail {
  font-size: 0.9rem;
  color: var(--ss-muted);
  line-height: 1.5;
}
@media (max-width: 768px) {
  .trustbar-grid { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   Intro — split asimmetrico testo + foto
   -------------------------------------------------------------------------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.intro-grid > * { min-width: 0; }
.intro-body {
  font-size: 1.1rem;
  color: var(--ss-muted);
  margin-top: 1rem;
}
.intro-media {
  aspect-ratio: 3/4;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--ss-border);
}
@media (max-width: 768px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-media { aspect-ratio: 4/3; }
}

/* --------------------------------------------------------------------------
   USP — 3 colonne testo allineato, icona piccola sopra
   -------------------------------------------------------------------------- */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
}
.usp-grid > * { min-width: 0; }
.usp-item {
  border-top: 2px solid var(--ss-accent);
  padding-top: 1.25rem;
}
.usp-icon {
  font-size: 1.5rem;
  color: var(--ss-accent);
  margin-bottom: 0.6rem;
  display: block;
}
.usp-title {
  font-size: var(--ss-h3);
  margin-bottom: 0.6rem;
}
.usp-body {
  color: var(--ss-muted);
  font-size: 1rem;
}
@media (max-width: 768px) {
  .usp-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Dintorni — intro + 3 colonne con foto
   -------------------------------------------------------------------------- */
.dintorni-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.dintorni-grid > * { min-width: 0; }
.dintorni-card {
  background: var(--ss-surface);
  border: 1px solid var(--ss-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out-soft), box-shadow 0.25s var(--ease-out-soft);
}
.dintorni-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(43, 33, 24, 0.08);
}
.dintorni-media {
  aspect-ratio: 4/3;
}
.dintorni-content {
  padding: 1.25rem 1.4rem 1.6rem;
}
.dintorni-card-title {
  font-size: var(--ss-h3);
  margin-bottom: 0.5rem;
}
.dintorni-card-body {
  color: var(--ss-muted);
  font-size: 0.95rem;
}
@media (max-width: 768px) {
  .dintorni-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Proof / recensioni
   -------------------------------------------------------------------------- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
}
.proof-grid > * { min-width: 0; }
.proof-card {
  background: var(--ss-bg);
  border: 1px solid var(--ss-border);
  border-radius: 1rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.proof-stars {
  color: var(--ss-accent);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
}
.proof-quote {
  font-family: var(--ss-font-display);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ss-text);
}
.proof-author {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ss-muted);
  margin-top: auto;
}
@media (max-width: 900px) {
  .proof-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--ss-text);
  color: #fff;
}
.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-band-text { max-width: 46ch; }
.cta-band-title {
  color: #fff;
  font-size: var(--ss-h2);
}
.cta-band-body {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.75rem;
}
.cta-band .btn-primary {
  background: var(--ss-accent);
  color: #fff;
}
.cta-band .btn-primary:hover { background: var(--ss-accent-h); }

/* --------------------------------------------------------------------------
   Camere page
   -------------------------------------------------------------------------- */
.page-intro {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}
.page-intro-title {
  font-size: var(--ss-h1);
}
.page-intro-body {
  color: var(--ss-muted);
  font-size: 1.1rem;
  margin-top: 1rem;
  max-width: 60ch;
}

.camera-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}
.camera-grid > * { min-width: 0; }
.camera-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
}
.camera-gallery > * { min-width: 0; }
.camera-shot {
  aspect-ratio: 4/3;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--ss-border);
}
.camera-shot-wide {
  grid-column: span 2;
  aspect-ratio: 16/7;
}
.camera-title {
  font-size: var(--ss-h2);
  margin-bottom: 1rem;
}
.camera-body {
  color: var(--ss-muted);
}
@media (max-width: 768px) {
  .camera-grid { grid-template-columns: 1fr; }
}

/* Servizi list */
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 2.5rem;
  margin-top: 1.5rem;
}
.servizi-grid > * { min-width: 0; }
.servizio-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--ss-border);
}
.servizio-item i {
  color: var(--ss-accent);
  font-size: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.servizio-text {
  font-size: 1rem;
}
@media (max-width: 600px) {
  .servizi-grid { grid-template-columns: 1fr; }
}

/* Colazione nota */
.colazione-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}
.colazione-grid > * { min-width: 0; }
.colazione-media {
  aspect-ratio: 4/3;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--ss-border);
}
.colazione-title {
  font-size: var(--ss-h2);
  margin-bottom: 1rem;
}
.colazione-body {
  color: var(--ss-muted);
}
@media (max-width: 768px) {
  .colazione-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Contatti page
   -------------------------------------------------------------------------- */
.contact-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-grid > * { min-width: 0; }
.contact-title {
  font-size: var(--ss-h1);
}
.contact-intro {
  color: var(--ss-muted);
  font-size: 1.1rem;
  margin-top: 1rem;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 2rem;
  max-width: 340px;
}
.contact-actions .btn {
  justify-content: center;
  width: 100%;
}
.contact-card {
  background: var(--ss-surface);
  border: 1px solid var(--ss-border);
  border-radius: 1.25rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-row i {
  color: var(--ss-accent);
  font-size: 1.3rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.contact-row-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ss-muted);
  margin-bottom: 0.2rem;
}
.contact-row-value {
  font-size: 1.05rem;
  color: var(--ss-text);
  font-weight: 600;
}
.contact-row-value:hover { color: var(--ss-accent); }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Come arrivare */
.arrivare-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}
.arrivare-grid > * { min-width: 0; }
.arrivare-title {
  font-size: var(--ss-h2);
  margin-bottom: 1rem;
}
.arrivare-body {
  color: var(--ss-muted);
}
.arrivare-media {
  aspect-ratio: 4/3;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--ss-border);
}
@media (max-width: 768px) {
  .arrivare-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ss-text);
  color: #EFE7DB;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 2.5rem;
}
.footer-grid > * { min-width: 0; }
.footer-about,
.footer-nav,
.footer-info { min-width: 0; }

.footer-brand {
  font-family: var(--ss-font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}
.footer-tagline {
  color: rgba(239, 231, 219, 0.7);
  font-size: 0.95rem;
  margin-top: 0.75rem;
  max-width: 34ch;
}
.footer-col-title {
  font-family: var(--ss-font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ss-accent);
  margin-bottom: 1rem;
}
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-link {
  color: rgba(239, 231, 219, 0.85);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease-out-soft);
}
.footer-link:hover { color: #fff; }
.footer-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: rgba(239, 231, 219, 0.85);
  line-height: 1.5;
}
.footer-contact-item i {
  color: var(--ss-accent);
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.footer-contact-item a { transition: color 0.2s var(--ease-out-soft); }
.footer-contact-item a:hover { color: #fff; }
.footer-bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(239, 231, 219, 0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(239, 231, 219, 0.6);
}
.footer-copyright { color: rgba(239, 231, 219, 0.6); }
.footer-powered a { color: rgba(239, 231, 219, 0.85); }
.footer-powered a:hover { color: var(--ss-accent); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* --------------------------------------------------------------------------
   Reveal motion (framework sketch-core.js toggles .is-visible)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out-soft), transform 0.6s var(--ease-out-soft);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto; }
}

/* ============================================================
   FRAMEWORK NAV OVERRIDES — adatta .site-header al design
   Palette: bg=#FBF7F1, dark=#2B2118, text=#2B2118, muted=#6B5D4F,
            border=#E8DFD2, accent=#B85420, accent-h=#8E3F18,
            font-display=Lora, font-body=Nunito Sans
   ============================================================ */
.site-header,
.site-mainbar {
  background: rgba(251, 247, 241, 0.92) !important;
  color: #2B2118 !important;
  box-shadow: none !important;
}
.site-topbar {
  background: #2B2118 !important;
  color: rgba(255,255,255,0.85) !important;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.site-topbar .container a { color: rgba(255,255,255,0.85) !important; }
.site-topbar .container a:hover { color: #fff !important; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-condensed,
.site-header.is-condensed .site-mainbar {
  border-bottom-color: #E8DFD2 !important;
}
.site-mainbar {
  padding: 1.1rem 0 !important;
  border-top: none !important;
}
.site-logo-fallback {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #2B2118 !important;
  letter-spacing: -0.01em;
}
.site-logo-img { max-height: 36px; width: auto; }
.site-mainbar .nav-link {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6B5D4F !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s;
  padding: 0;
}
.site-mainbar .nav-link:hover { color: #2B2118 !important; }
.nav-cta-btn,
.site-mainbar .btn-primary {
  background: #B85420 !important;
  border-color: #B85420 !important;
  color: #fff !important;
  border-radius: 2rem;
  padding: 0.45rem 1.2rem;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s ease;
}
.nav-cta-btn:hover,
.site-mainbar .btn-primary:hover {
  background: #8E3F18 !important;
  border-color: #8E3F18 !important;
  transform: translateY(-1px);
}
.nav-toggler {
  background: transparent !important;
  border-color: #E8DFD2 !important;
  color: #2B2118 !important;
}
/* Padding hero per nav sticky framework */
.ss-hero.ss-section { padding-top: calc(clamp(4rem, 10vw, 8rem) + 80px); }
