/* ================================
   Base layout and design tokens
================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f7f1e8;
  --bg-alt: #ffffff;
  --text: #262626;
  --muted: #777777;
  --primary: #b89564;
  --primary-soft: rgba(184, 149, 100, 0.12);
  --border: #e2d6c5;
  --max-width: 1120px;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.06);
  --transition-fast: 160ms ease-out;
  accent-color: var(--primary);
}

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

/* IMPORTANT: lock scroll when modal is open */
body.modal-open { overflow: hidden; }

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

/* LINK RESET (NO iOS BLUE) */
a {
  color: inherit;
  text-decoration: none;
  -webkit-text-fill-color: currentColor;
}
a:visited,
a:active {
  color: inherit;
  -webkit-text-fill-color: currentColor;
}
a:hover,
a:focus-visible { text-decoration: underline; }

/* iOS Safari: stop auto blue styling from data detectors */
a[x-apple-data-detectors],
a[x-apple-data-detectors]:visited,
a[x-apple-data-detectors]:hover,
a[x-apple-data-detectors]:active {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  text-decoration: none !important;
  font: inherit !important;
}

.skip-link {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -200%);
  padding: 0.75rem 1rem;
  background: #000;
  color: #fff;
  z-index: 1000;
}
.skip-link:focus { transform: translate(-50%, 0); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================================
   Header & navigation (CLEAN)
================================== */

.site-header {
  position: relative; /* desktop: NON sticky */
  top: auto;
  z-index: 60;
  background: rgba(247, 241, 232, 0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 214, 197, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
}

/* Logo */
.logo a {
  display: inline-flex;
  align-items: center;
}

/* LOGO +20% */
.logo-img {
  height: 86px;
  width: auto;
  max-width: 274px;
}

/* Desktop navigation */
.main-nav { display: block; }

.main-nav ul {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.main-nav a {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--primary-soft);
  text-decoration: none;
}

/* Nav CTA */
.btn-nav {
  border: 1px solid var(--primary);
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}

/* Toggle (hamburger) - default hidden on desktop */
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;

  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1b1b1b;
  border-radius: 999px;
  transition: transform 180ms ease-out, opacity 180ms ease-out;
}

/* Open state -> X standard */
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease-out;
  z-index: 900;
}
body.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* MOBILE */
@media (max-width: 880px) {
  .site-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1200;
  }

  .logo-img {
    height: 70px;
    max-width: 245px;
  }

  .nav-toggle { display: inline-flex; z-index: 1400; }

  body.nav-open .site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
  }

  body.nav-open .nav-toggle {
    position: fixed;
    top: calc(14px + env(safe-area-inset-top));
    right: calc(24px + env(safe-area-inset-right));
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;

    width: min(340px, 92vw);
    height: 100vh;
    padding: 5.2rem 1.4rem 1.8rem;

    background: #f7f1e8;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);

    transform: translate3d(110%, 0, 0);
    transition: transform 220ms ease-out;
    z-index: 1100;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.nav-open .main-nav { transform: translate3d(0, 0, 0); }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    width: 100%;
  }

  .main-nav li { width: 100%; }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 0.8rem 0.9rem;
  }

  .nav-overlay { z-index: 900; }
}

/* ================================
   Typography
================================== */

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1b1b1b;
}

h1 {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

/* ================================
   Hero section + VIDEO BG
================================== */

.hero { padding: 4.5rem 0 3.5rem; position: relative; }

.hero--video {
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 20% 20%, rgba(247,241,232,0.88), rgba(247,241,232,0.55) 55%, rgba(247,241,232,0.35) 100%),
    linear-gradient(to bottom, rgba(247,241,232,0.55), rgba(247,241,232,0.70));
  backdrop-filter: blur(2px);
}

.hero-bg-video--mobile { display: none; }
@media (max-width: 880px) {
  .hero-bg-video--desktop { display: none; }
  .hero-bg-video--mobile { display: block; }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 3rem;
  align-items: center;
}
.hero--video .hero-grid {
  grid-template-columns: 1fr;
}


.hero-text { max-width: 34rem; }

/* With video-only hero, give the text more room on large screens */
.hero--video .hero-text { max-width: 44rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.8rem;
}

.hero-subtitle { margin: 0 0 1.5rem; color: var(--muted); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-location {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0;
}

.hero-image {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero-media-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 214, 197, 0.9);
  background: rgba(255,255,255,0.65);
  overflow: hidden;
}

.hero-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.hero-media-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  border: 0;
}

.hero-note { font-size: 0.85rem; color: var(--muted); }

/* ================================
   Buttons
================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  text-decoration: none;
  overflow: hidden;

  /* FIX iOS BLUE */
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

.btn::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 0;
  width: 140%;
  height: 160%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.7) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  transform: translateX(-120%);
  transition: opacity 260ms ease-out, transform 420ms ease-out;
  pointer-events: none;
  mix-blend-mode: screen;
  border-radius: inherit;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  -webkit-text-fill-color: #fff;
  border-color: var(--primary);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.btn.ghost {
  background: transparent;
  border-color: var(--border);

  /* FIX: ghost text must be brand colour, never blue */
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
  transform: translateY(-1px) scale(1.01);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background: #a77f4f;
  border-color: #a77f4f;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.btn:hover::before,
.btn:focus-visible::before {
  opacity: 1;
  transform: translateX(120%);
}

.btn.full-width { width: 100%; }

/* FORCE: anchors that look like buttons must never turn blue on iOS */
a.btn,
a.btn:visited,
a.btn:hover,
a.btn:active,
a.btn:focus,
a.btn:focus-visible {
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
  text-decoration: none !important;
}

a.btn.primary,
a.btn.primary:visited,
a.btn.primary:hover,
a.btn.primary:active,
a.btn.primary:focus,
a.btn.primary:focus-visible {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-decoration: none !important;
}

a.btn.ghost,
a.btn.ghost:visited,
a.btn.ghost:hover,
a.btn.ghost:active,
a.btn.ghost:focus,
a.btn.ghost:focus-visible {
  color: var(--primary) !important;
  -webkit-text-fill-color: var(--primary) !important;
  text-decoration: none !important;
}

/* ================================
   Sections & layout
================================== */

.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.section-header p { margin: 0.4rem 0 0; color: var(--muted); }

.section-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1.4rem;
}
.section-note.tiny { font-size: 0.78rem; }

.grid { display: grid; gap: 1.6rem; }
.grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Contact grid 3 columns (booking + map + contact) */
.contact-grid--3{
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
.contact-grid--3 > *{
  align-self: start;
}

/* ================================
   Cards
================================== */

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 214, 197, 0.9);
  padding: 1.3rem 1.4rem 1.3rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease-out, box-shadow 220ms ease-out, border-color 180ms ease-out;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 55%);
  opacity: 0;
  transition: opacity 220ms ease-out;
  pointer-events: none;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.card:hover::before,
.card:focus-within::before { opacity: 1; }

.card-media {
  border-radius: 0.95rem;
  overflow: hidden;
  border: 1px solid rgba(226, 214, 197, 0.9);
  margin-bottom: 0.9rem;
  background: #f2eadf;
}

.card-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.card-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.card-price { font-weight: 600; margin: 0 0 0.75rem; }

.card-list {
  padding-left: 1.1rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.card-list li + li { margin-top: 0.25rem; }

.bullet-list {
  padding-left: 1.1rem;
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.bullet-list li + li { margin-top: 0.25rem; }

.card-cta { margin-top: 1.1rem; }

/* Make experience cards keep CTA aligned at bottom */
.cards .card {
  display: flex;
  flex-direction: column;
}
.cards .card .card-cta { margin-top: auto; }

/* ================================
   Classes slider
================================== */

.cards-slider { position: relative; padding-inline: 0.5rem; }

.cards-track {
  display: flex;
  gap: 1.6rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0 0.5rem;
  margin-inline: -0.5rem;
  padding-inline: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.cards-track::-webkit-scrollbar { display: none; }
.cards-track { -ms-overflow-style: none; scrollbar-width: none; }

.cards-track .card {
  flex: 0 0 calc((100% - 2.4rem) / 3);
  min-width: 280px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
.cards-track .card .card-cta { margin-top: auto; }
.cards-track .card .card-list { margin-bottom: 1rem; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(247, 241, 232, 0.96);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #5c4a2b;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
  transition: transform 140ms ease-out, box-shadow 140ms ease-out, background-color 140ms ease-out;
}

.slider-arrow-left { left: -0.2rem; }
.slider-arrow-right { right: -0.2rem; }

.slider-arrow:hover,
.slider-arrow:focus-visible {
  transform: translateY(-50%) translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background: #f0e4d0;
}

/* Slider dots (mobile) */
.slider-dots {
  display: none;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(226, 214, 197, 0.95);
  background: rgba(184, 149, 100, 0.18);
  padding: 0;
  cursor: pointer;
  transition: transform 140ms ease-out, background-color 140ms ease-out, border-color 140ms ease-out;
}

.slider-dot:hover,
.slider-dot:focus-visible {
  transform: scale(1.15);
  border-color: var(--primary);
  outline: none;
}

.slider-dot.is-active {
  background: var(--primary);
  border-color: var(--primary);
}

/* ================================
   About
================================== */

.about-highlights {
  padding: 1.4rem 1.4rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 214, 197, 0.9);
  background: #fdf9f4;
}

/* ================================
   Forms
================================== */

label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.required { color: #b74c4c; margin-left: 0.15rem; }

input, select, textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  font: inherit;
  background: #fff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(184, 149, 100, 0.2);
}

textarea { resize: vertical; min-height: 120px; }

.contact-info address { font-style: normal; margin-bottom: 0.6rem; }
.contact-info p { margin: 0 0 0.7rem; }

.form-message {
  padding: 0.8rem 1rem;
  border-radius: 0.7rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.form-message.success {
  background: #e6f6ea;
  border: 1px solid #9ad4a6;
  color: #276738;
}

.form-message.error {
  background: #fdeaea;
  border: 1px solid #f1a2a2;
  color: #8b2c2c;
}

.form-disclaimer {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ================================
   Map (OpenStreetMap / Leaflet) — FIX
================================== */

.map-card{
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 214, 197, 0.9);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.map-frame{
  position: relative;
}

.map-embed{
  width: 100%;
  height: 260px;
  background: #efe6da;
}

/* Get directions: spostato in basso a destra */
.map-directions-inline{
  position: absolute;
  top: auto;
  bottom: 10px;
  right: 10px;
  z-index: 500;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(226, 214, 197, 0.85);
  background: rgba(247, 241, 232, 0.88);

  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(38,38,38,0.9);
  -webkit-text-fill-color: rgba(38,38,38,0.9);
  text-decoration: none;
}

.map-directions-inline:hover,
.map-directions-inline:focus-visible{
  background: rgba(240, 228, 208, 0.95);
  border-color: var(--primary);
  outline: none;
  text-decoration: none;
}

/* Leaflet base */
.map-card .leaflet-container { font-family: inherit; }

/* Tile: RESTA A COLORI, ma “warm / soft” per matchare il sito */
.map-card .leaflet-pane img,
.map-card .leaflet-tile{
  filter: saturate(0.92) contrast(1.06) brightness(1.05) sepia(0.16) hue-rotate(8deg) !important;
}

/* Sposta attribution in basso a sinistra (evita overlap col bottone in basso a destra) */
.map-card .leaflet-bottom.leaflet-right{
  right: auto !important;
  left: 0 !important;
}

/* Attribution: una sola riga, piccola e discreta */
.map-card .leaflet-control-attribution{
  font-size: 9px !important;
  opacity: 0.62 !important;
  color: rgba(38, 38, 38, 0.65) !important;
  background: rgba(247, 241, 232, 0.45) !important;
  border-radius: 999px !important;
  padding: 2px 7px !important;
  box-shadow: none !important;
  border: 1px solid rgba(226, 214, 197, 0.55) !important;
  margin: 0 0 10px 10px !important;
}

/* Zoom buttons minimal */
.map-card .leaflet-bar a{
  background: rgba(247, 241, 232, 0.92) !important;
  border: 1px solid rgba(226, 214, 197, 0.85) !important;
  color: #5c4a2b !important;
}
.map-card .leaflet-bar a:hover{
  background: rgba(240, 228, 208, 0.95) !important;
}

/* ================================
   Footer
================================== */

.site-footer {
  border-top: 1px solid rgba(226, 214, 197, 0.9);
  padding: 1.4rem 0 1.6rem;
  background: #f5ecdf;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-meta { text-align: left; }
.footer-links { text-align: right; }
.footer-links p { margin: 0; }

/* ================================
   Privacy / FAQ
================================== */

.privacy-main { padding: 3.5rem 0; }
.privacy-main h1 { margin-bottom: 0.7rem; }
.privacy-main p { color: var(--muted); }
.privacy-main h2 { font-size: 1.1rem; margin-top: 2rem; }

.faq-intro {
  color: var(--muted);
  max-width: 52rem;
  margin: 0.6rem 0 1.6rem;
}

.faq-grid { display: grid; gap: 0.85rem; }

.faq-item {
  border: 1px solid rgba(226, 214, 197, 0.9);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "＋";
  float: right;
  color: #5c4a2b;
  font-weight: 600;
}
.faq-item[open] summary::after { content: "–"; }

.faq-item .faq-content,
.faq-item p {
  padding: 0 1.15rem 1.05rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}
.faq-item p + p { margin-top: 0.6rem; }

/* ================================
   Booking modal
================================== */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 5000;
}
.modal.is-open { display: flex; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.modal-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  background: var(--bg-alt);
  border: 1px solid rgba(226, 214, 197, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.3rem 0.9rem;
  border-bottom: 1px solid rgba(226, 214, 197, 0.7);
  background: #fbf6ef;
}

.step-progress {
  height: 6px;
  background: rgba(184, 149, 100, 0.18);
  border-top: 1px solid rgba(226, 214, 197, 0.7);
  border-bottom: 1px solid rgba(226, 214, 197, 0.7);
}

.step-progress-bar {
  display: block;
  height: 6px;
  width: 0;
  background: var(--primary);
  transition: width 220ms ease-out;
}

.modal-title { margin: 0; font-size: 1.15rem; }

.modal-close {
  border: 1px solid rgba(226, 214, 197, 0.9);
  background: #fff;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}

.modal-body { padding: 1.1rem 1.3rem 1.3rem; }

.step-panel { display: none; }
.step-panel.is-active { display: block; }

.step-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.2rem;
}
.step-actions .btn { min-width: 140px; }

.step-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ================================
   Back to top
================================== */

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(226, 214, 197, 0.95);
  background: rgba(247, 241, 232, 0.96);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
  color: #5c4a2b;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 110;
}
.back-to-top.is-visible { display: inline-flex; }
.back-to-top:hover,
.back-to-top:focus-visible { background: #f0e4d0; outline: none; }

/* ================================
   Responsive (layout)
================================== */

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .grid-two { grid-template-columns: 1fr; }
  .contact-grid--3 { grid-template-columns: 1fr; }
  .header-inner { padding-inline: 1.2rem; }

  .cards-slider { padding-inline: 0; }
  .cards-track { margin-inline: 0; padding-inline: 0.2rem; }
  .cards-track .card { flex: 0 0 88%; min-width: 240px; scroll-snap-align: center; }
  .slider-arrow { display: none; }

  .slider-dots { display: flex; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { text-align: left; }

  .hero-media-grid img { height: 120px; }
  .map-embed { height: 240px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .map-embed { height: 220px; }
}

/* ================================
   iOS Safari / WebKit: stop “blu”
================================== */

a, button, input, select, textarea, summary, [role="button"]{
  -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
  -webkit-touch-callout: none;
}

/* iOS: evita lo stile “native” che può introdurre blu */
button,
input[type="button"],
input[type="submit"],
input[type="reset"]{
  -webkit-appearance: none;
  appearance: none;
}

/* elimina ring blu default */
a:focus,
button:focus{
  outline: none !important;
}

/* ring coerente con il brand (per accessibilità) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
.slider-arrow:focus-visible,
.slider-dot:focus-visible,
.modal-close:focus-visible,
.map-directions-inline:focus-visible{
  outline: 2px solid rgba(184, 149, 100, 0.55) !important;
  outline-offset: 3px !important;
  border-radius: 12px;
}

/* ================================
   Blog + Articles
================================== */

.blog-main .blog-header {
  max-width: 46rem;
  margin-bottom: 1.2rem;
}

.blog-intro {
  color: var(--muted);
  margin: 0.4rem 0 0;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.blog-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}

.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.blog-filter-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.chip {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.chip:hover,
.chip:focus-visible {
  background: var(--primary-soft);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.chip.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.blog-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-card .post-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.3rem;
}

.post-dot { opacity: 0.7; }

.post-title {
  font-size: 1.05rem;
  margin: 0 0 0.55rem;
}

.post-excerpt {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.78rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid rgba(226, 214, 197, 0.9);
  border-radius: 999px;
  background: #fff;
  color: #5a4a31;
}

.post-cta { margin: 0; }

.blog-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 1rem;
}

.sidebar-card {
  background: var(--bg-alt);
  border: 1px solid rgba(226, 214, 197, 0.9);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.1rem 1.2rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.03);
}

.sidebar-title {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.sidebar-nav {
  display: grid;
  gap: 0.45rem;
}

.sidebar-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.6rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  color: #2c2c2c;
}

.sidebar-link:hover,
.sidebar-link:focus-visible {
  background: var(--primary-soft);
  border-color: rgba(184, 149, 100, 0.35);
  text-decoration: none;
}

.sidebar-link.is-active {
  background: var(--primary-soft);
  border-color: rgba(184, 149, 100, 0.5);
}

.sidebar-count {
  font-size: 0.78rem;
  color: var(--muted);
}

.blog-bottom-cta {
  margin-top: 1.2rem;
}

.blog-cta-card p { color: var(--muted); }

/* Article pages */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.article {
  max-width: 760px;
}

.breadcrumb {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.breadcrumb a { color: inherit; }

.article-header {
  margin-bottom: 1.2rem;
}

.article-meta {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.article-intro {
  margin: 0.6rem 0 0;
  color: var(--muted);
  max-width: 44rem;
}

.prose h2 {
  margin-top: 1.6rem;
}

.prose p {
  color: #3a3a3a;
}

.article-divider {
  border: none;
  height: 1px;
  background: rgba(226, 214, 197, 0.9);
  margin: 1.6rem 0;
}

.callout {
  margin-top: 1.4rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  background: #fdf9f4;
  border: 1px solid rgba(226, 214, 197, 0.9);
}

.callout h3 { margin-top: 0; }

.article-links {
  padding-left: 1.1rem;
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.article-links li + li { margin-top: 0.25rem; }

.article-cta {
  margin-top: 1.5rem;
}

.article-side {
  position: sticky;
  top: 92px;
}

/* Responsive */

@media (max-width: 980px) {
  .blog-cards { grid-template-columns: 1fr; }
  .blog-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar,
  .article-side {
    position: static;
  }
}
