/* ==========================================================================
   La Casa di Marta — foglio di stile
   Sistema colori ispirato ai portici di Bologna: ombra dei portici (ink),
   mattone/terracotta (brick), pietra calda (stone), verde emiliano (sage).
   Modifica solo le variabili qui sotto per cambiare tono a tutto il sito.
   ========================================================================== */

:root {
  --ink: #221712;          /* ombra dei portici — colore del testo principale */
  --ink-soft: #3a2b23;
  --surface-dark: #1c2530;      /* blu ardesia — sfondo di hero, galleria, recensioni, footer */
  --surface-dark-hover: #12181f;
  --brick: #9c3f2b;        /* mattone bolognese — colore guida, CTA */
  --brick-dark: #7c3120;
  --stone: #efe5ce;        /* pietra calda — sfondo sezioni chiare */
  --stone-deep: #e2d5b3;
  --sage: #5b6b4f;         /* verde emiliano — accenti secondari, badge */
  --paper: #faf7f0;        /* bianco caldo — sfondo pagina */
  --muted: #6b5d4f;        /* testo secondario su sfondo chiaro */
  --muted-on-ink: #cdbfae; /* testo secondario su sfondo scuro */

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 62ch;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* -------------------- Tipografia -------------------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 2.6vw + 1rem, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.2vw + 1rem, 1.5rem); }

p { max-width: var(--measure); margin: 0 0 1.1em; }
p.lede { font-size: 1.2rem; color: var(--muted); }

.section-kicker {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--brick);
  font-size: 0.95rem;
  margin: 0 0 0.6em;
}

/* -------------------- Layout -------------------- */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5.5rem 0; }

@media (max-width: 640px) {
  section { padding: 3.5rem 0; }
}

/* -------------------- Header / nav -------------------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--stone-deep);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

nav.primary {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

nav.primary a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

nav.primary a:hover { color: var(--brick); }

.lang-switch {
  display: flex;
  gap: 0.4rem;
  font-size: 0.85rem;
  border-left: 1px solid var(--stone-deep);
  padding-left: 1rem;
  margin-left: 0.4rem;
}

.lang-switch a { text-decoration: none; color: var(--muted); }
.lang-switch a[aria-current="true"] { color: var(--brick); font-weight: 600; }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  nav.primary .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex;
    background: none; border: 1px solid var(--ink); border-radius: var(--radius);
    padding: 0.4rem 0.7rem; font-family: var(--font-body); font-size: 0.85rem;
  }
  nav.primary.open .nav-links {
    display: flex; flex-direction: column; gap: 1rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--stone-deep);
  }
}

/* -------------------- Hero -------------------- */

.hero {
  background: var(--surface-dark);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
}

.hero::before {
  /* arcata dei portici, motivo ricorrente */
  content: "";
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 340px;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 68px,
    rgba(239, 229, 206, 0.08) 68px 70px
  );
  border-top: 2px solid rgba(239, 229, 206, 0.15);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

.hero .eyebrow {
  color: var(--brick);
  background: rgba(239, 229, 206, 0.08);
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(239, 229, 206, 0.25);
}

.hero p.lede { color: var(--muted-on-ink); }

.hero-figure {
  position: relative;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}

.hero-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted-on-ink);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brick);
  color: var(--paper);
}
.btn-primary:hover { background: var(--brick-dark); }

.btn-ghost {
  border-color: rgba(239, 229, 206, 0.4);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--paper); }

.portrait-figure {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

/* -------------------- Fascia dati rapidi -------------------- */

.facts {
  background: var(--stone);
  border-bottom: 1px solid var(--stone-deep);
}

.facts .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.2rem 1.5rem;
}

@media (max-width: 700px) {
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
}

.fact { text-align: left; }
.fact .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brick);
  display: block;
}
.fact .label { color: var(--muted); font-size: 0.92rem; }

/* -------------------- Descrizione + gallery -------------------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

.amenity-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.2rem;
}

.amenity-list li {
  padding-left: 1.3rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.amenity-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 7px; height: 7px;
  background: var(--sage);
  border-radius: 50%;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.gallery figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.35rem; }

/* -------------------- Zona / mappa testuale -------------------- */

.area-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--stone-deep);
}

.area-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--stone-deep);
}

.area-list .place { font-weight: 600; }
.area-list .time { color: var(--brick); white-space: nowrap; font-variant-numeric: tabular-nums; }

section.area { background: var(--stone); }

/* -------------------- Host -------------------- */

.host-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--stone-deep);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.host-card .avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--brick); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.4rem; flex-shrink: 0;
}

/* -------------------- Recensioni -------------------- */

section.reviews { background: var(--surface-dark); color: var(--paper); }
section.reviews p { color: var(--muted-on-ink); }
section.reviews .section-kicker { color: #d98a6f; }

.rating-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  background: rgba(239, 229, 206, 0.08);
  border: 1px solid rgba(239, 229, 206, 0.25);
  border-radius: var(--radius);
  padding: 1.2rem 1.6rem;
  margin-bottom: 1.6rem;
}

.rating-badge .score {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--paper);
}
.rating-badge .of10 { color: var(--muted-on-ink); font-size: 1rem; }
.rating-badge .count { display: block; font-size: 0.9rem; color: var(--muted-on-ink); }

.theme-tags {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0;
}
.theme-tags span {
  border: 1px solid rgba(239, 229, 206, 0.3);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.88rem;
  color: var(--muted-on-ink);
}

/* -------------------- FAQ -------------------- */

.faq-list { border-top: 1px solid var(--stone-deep); }

.faq-list details {
  border-bottom: 1px solid var(--stone-deep);
  padding: 1.2rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  color: var(--brick);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.faq-list details[open] summary::after { content: "–"; }

.faq-list .answer { margin-top: 0.8rem; color: var(--muted); }

/* -------------------- CTA prenotazione finale -------------------- */

section.book {
  background: var(--brick);
  color: var(--paper);
  text-align: left;
}

section.book h2 { color: var(--paper); }
section.book p { color: rgba(250, 247, 240, 0.85); }

.book-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.book-options .btn-primary {
  background: var(--surface-dark);
}
.book-options .btn-primary:hover { background: var(--surface-dark-hover); }

.book-options .btn-ghost {
  border-color: rgba(250, 247, 240, 0.5);
}

/* -------------------- Footer -------------------- */

footer.site {
  background: var(--surface-dark);
  color: var(--muted-on-ink);
  padding: 3rem 0 2.2rem;
  font-size: 0.88rem;
}

footer.site a { color: var(--muted-on-ink); }
footer.site .legal { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(239,229,206,0.15); }

/* -------------------- CTA persistente in header -------------------- */

.brand { display: flex; align-items: center; gap: 0.5rem; }
.brand-mark { width: 24px; height: 24px; flex-shrink: 0; }

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.header-cta { margin-left: 0.6rem; }

@media (max-width: 760px) {
  .header-cta { display: none; }
}

/* -------------------- Icone -------------------- */

.icon {
  width: 22px; height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-badge {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--stone);
  color: var(--brick);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

/* -------------------- Badge fluttuante sull'immagine hero -------------------- */

.floating-badge {
  position: absolute;
  bottom: -1.4rem;
  left: -1.4rem;
  background: var(--surface-dark);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.5);
  border: 1px solid rgba(239, 229, 206, 0.15);
  max-width: 220px;
}
.floating-badge .big {
  font-family: var(--font-display);
  font-size: 1.8rem;
  display: block;
}
.floating-badge .small { font-size: 0.8rem; color: var(--muted-on-ink); }

@media (max-width: 640px) {
  .floating-badge { display: none; }
}

/* -------------------- Servizi (griglia a icone) -------------------- */

section.amenities { background: var(--stone); }

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 2.5rem;
}
@media (max-width: 860px) { .amenity-grid { grid-template-columns: repeat(2, 1fr); } }

.amenity-card {
  background: var(--paper);
  border: 1px solid var(--stone-deep);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.amenity-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.3rem;
}
.amenity-card p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* -------------------- Temi ricorrenti nelle recensioni -------------------- */

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin: 2rem 0;
}
@media (max-width: 860px) { .theme-grid { grid-template-columns: 1fr; } }

.theme-card {
  background: rgba(239, 229, 206, 0.06);
  border: 1px solid rgba(239, 229, 206, 0.18);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.theme-card h3 { font-size: 1.05rem; margin: 0 0 0.6rem; color: var(--paper); }
.theme-card p { font-size: 0.92rem; color: var(--muted-on-ink); margin: 0; }
.theme-card .tag { display: block; margin-top: 1rem; font-size: 0.78rem; color: #d98a6f; }

.review-banner {
  margin-top: 1rem;
  background: rgba(239, 229, 206, 0.08);
  border: 1px solid rgba(239, 229, 206, 0.2);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  align-items: center; justify-content: space-between;
}
.review-banner p { margin: 0; color: var(--muted-on-ink); }
.review-banner h4 {
  margin: 0 0 0.3rem; color: var(--paper);
  font-family: var(--font-display); font-size: 1.15rem;
}

/* -------------------- Galleria a sezione piena -------------------- */

section.gallery-dark { background: var(--surface-dark); color: var(--paper); }
section.gallery-dark .section-kicker { color: #d98a6f; }
section.gallery-dark h2 { color: var(--paper); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .cap {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  padding: 1.6rem 1rem 0.9rem;
  font-size: 0.85rem;
  opacity: 0; transition: opacity .3s ease;
}
.gallery-item:hover .cap { opacity: 1; }

.gallery-item.cta-tile {
  background: var(--brick);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem; gap: 0.7rem;
}
.gallery-item.cta-tile h3 { margin: 0; color: var(--paper); font-size: 1.15rem; }
.gallery-item.cta-tile p { margin: 0; font-size: 0.85rem; color: rgba(250,247,240,0.85); }

/* -------------------- Punti di interesse + mappa stilizzata -------------------- */

.poi-grid { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1.5rem; }
.poi-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--stone-deep);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
}
.poi-card .icon-badge { margin: 0; width: 40px; height: 40px; }
.poi-card .icon-badge .icon { width: 20px; height: 20px; }
.poi-card h4 { margin: 0; font-size: 0.96rem; }
.poi-card .time { margin: 0; font-size: 0.8rem; color: var(--brick); }

.map-mock {
  position: relative;
  background: var(--stone);
  border: 1px solid var(--stone-deep);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.map-mock .grid-lines {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, var(--stone-deep) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, var(--stone-deep) 0 1px, transparent 1px 60px);
  opacity: 0.6;
}
.map-mock .pin-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--stone-deep);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  text-align: center;
  box-shadow: 0 20px 40px -20px rgba(34,23,18,0.3);
}
.map-mock .pin-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--brick); margin: 0 auto 0.8rem;
  box-shadow: 0 0 0 6px rgba(156,63,43,0.15);
}
.map-mock .pin-card h4 { margin: 0 0 0.2rem; font-family: var(--font-display); }
.map-mock .pin-card p { margin: 0; font-size: 0.85rem; color: var(--muted); }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stone-deep);
  min-height: 320px;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
}

/* -------------------- Citazione host -------------------- */

.host-quote {
  margin: 1.6rem 0 0;
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--brick);
  background: var(--stone);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink-soft);
}
.host-quote footer {
  margin-top: 0.8rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}

/* -------------------- Riduzione animazioni -------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
