/* ----------------------------------------------------------------
   FONT LOCALI (ex Google Fonts, serviti da fonts/ per GDPR e performance)
   ---------------------------------------------------------------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-500-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/mulish-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/mulish-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/mulish-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/mulish-600.woff2') format('woff2');
}

/* =================================================================
   LA MAISON DI EVA · Foglio di stile condiviso
   Stile: luminoso, arioso, mediterraneo. Tanto bianco, molto respiro.
   Palette chiara, serif elegante per i titoli, sans leggero per il corpo.
   ================================================================= */

/* ----------------------------------------------------------------
   1. VARIABILI & RESET
   ---------------------------------------------------------------- */
:root {
  /* Colori: fondo bianco/panna, testi antracite, nero grafico parsimonioso */
  --white:  #ffffff;
  --cream:  #faf8f5;   /* fondo panna caldo */
  --cream-deep: #f3efe8;
  --ink:    #2e2c2a;   /* antracite caldo per i testi */
  --muted:  #7a7570;   /* grigio tenue */
  --line:   #e7e0d6;   /* hairline calda */
  --black:  #1a1a1a;   /* nero grafico (ferro battuto, quadri b/n) */
  --accent: #b0805c;   /* terracotta tenue, richiamo ai cuscini ocra */
  --accent-soft: #eadfd4;

  /* Tipografia */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Misure */
  --maxw: 1200px;
  --gap: clamp(1.2rem, 3vw, 2.4rem);
  --radius: 4px;
  --radius-soft: 8px; /* angoli morbidi: pulsanti e card recensioni */
  --radius-card: 20px; /* card delle case, allineato con Zenith */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* Rispetta chi preferisce meno movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ----------------------------------------------------------------
   2. TIPOGRAFIA & UTILITY
   ---------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.01em;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 3rem); }
.container.narrow { max-width: 760px; }
.center { text-align: center; }

.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section-cream { background: var(--cream); }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-left: auto; margin-right: auto; max-width: 720px; }

.section-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
}
.section-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--muted);
  margin: 0.6rem 0 0;
}

/* Occhiello: piccolo, maiuscoletto, distanziato */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 1rem;
}
.eyebrow-light { color: rgba(255,255,255,0.9); }

/* ----------------------------------------------------------------
   3. PULSANTI
   ---------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: var(--radius-soft);
  cursor: pointer;
  transition: all 0.4s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-sm { padding: 0.7rem 1.4rem; font-size: 0.74rem; }

.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.btn-primary:hover { background: var(--black); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.22); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: box-shadow .3s ease, background .3s ease, color .3s ease;
}
.btn-outline:hover { background: var(--ink); color: var(--white); box-shadow: 0 4px 12px rgba(0,0,0,.09); }

.btn.is-disabled {
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

/* ----------------------------------------------------------------
   4. HEADER
   ---------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.5s var(--ease);
  padding: 0.5rem 0;
  /* Header sempre chiaro: fa da fondo pulito al logo immagine (grigio su bianco) */
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 5vw, 3rem);
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: height 0.5s var(--ease);
}

/* Stato "scrolled": sfondo chiaro, header più compatto */
.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.scrolled .header-inner { height: 66px; }

/* Logo testuale */
.logo { display: flex; flex-direction: column; line-height: 1; }

/* Logo immagine nell'header: ritaglio CSS sulla firma centrale del file
   (che ha molto margine bianco); multiply fonde il fondo bianco del JPEG
   con l'header chiaro, senza riquadro visibile */
.logo-img {
  display: block;
  height: 50px;
  width: 205px;
  object-fit: cover;
  object-position: 50% 57%;
  mix-blend-mode: multiply;
}
@media (max-width: 520px) {
  .logo-img { height: 42px; width: 170px; }
}
.logo-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--white);
  transition: color 0.5s var(--ease);
}
.logo-payoff {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.52rem;
  font-weight: 400;
  margin-top: 0.35rem;
  color: rgba(255,255,255,0.85);
  transition: color 0.5s var(--ease);
}
/* Sulla hero (header trasparente) il logo è bianco; da scrolled diventa scuro */
.site-header.scrolled .logo-name { color: var(--ink); }
.site-header.scrolled .logo-payoff { color: var(--accent); }

/* Navigazione desktop */
.nav { display: flex; gap: 2.2rem; }
.nav a {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.5s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease);
}
.nav a:hover::after { width: 100%; }
.site-header.scrolled .nav a { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 1rem; }

/* Hamburger (solo mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), background 0.5s var(--ease);
}
.site-header.scrolled .menu-toggle span { background: var(--ink); }
/* animazione in "X" quando aperto */
.menu-toggle.open span { background: var(--ink); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile a scomparsa */
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(80vw, 320px);
  background: var(--cream);
  box-shadow: -20px 0 60px -20px rgba(0,0,0,0.25);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.8rem;
  padding: 2rem 2.4rem;
  z-index: 99;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--ink);
}
.mobile-nav .btn { font-family: var(--sans); font-size: 0.78rem; text-align: center; margin-top: 0.5rem; }

/* ----------------------------------------------------------------
   5. HERO
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Overlay chiaro e leggero, solo per leggibilità del testo */
.hero-overlay {
  position: absolute; inset: 0;
  /* Velo delicato: più presente nella fascia centrale (dove sta il titolo),
     quasi trasparente ai bordi, per non spegnere la luminosità della foto */
  background:
    radial-gradient(ellipse 75% 55% at 50% 50%, rgba(30,26,22,0.32), rgba(30,26,22,0.10) 68%, rgba(30,26,22,0) 100%),
    linear-gradient(to bottom, rgba(30,26,22,0.16), rgba(30,26,22,0.08) 40%, rgba(30,26,22,0.28));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 1.5rem;
  max-width: 820px;
  animation: heroRise 1.2s var(--ease) both;
}
.hero-title {
  font-size: clamp(2.8rem, 10vw, 6.2rem);
  font-weight: 500;
  /* Ombra morbida a più livelli: stacca le lettere anche sulle zone chiare
     della foto senza appesantire */
  text-shadow:
    0 1px 2px rgba(20,17,14,0.35),
    0 4px 18px rgba(20,17,14,0.45),
    0 12px 48px rgba(20,17,14,0.35);
}
.hero-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 3.5vw, 1.9rem);
  font-weight: 400;
  margin: 1rem 0 2.4rem;
  color: rgba(255,255,255,0.95);
  text-shadow:
    0 1px 2px rgba(20,17,14,0.30),
    0 3px 14px rgba(20,17,14,0.40);
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Indicatore di scroll */
.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.9);
}
.scroll-dot {
  width: 24px; height: 40px;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 14px;
  position: relative;
}
.scroll-dot::after {
  content: "";
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 4px;
  background: var(--white);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollDot 1.8s var(--ease) infinite;
}
.scroll-label {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.6rem;
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  40%  { opacity: 1; }
  80%  { opacity: 0; transform: translate(-50%, 16px); }
  100% { opacity: 0; }
}

/* ----------------------------------------------------------------
   6. INTRO
   ---------------------------------------------------------------- */
.intro-text {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.4vw, 2.05rem);
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}

/* ----------------------------------------------------------------
   7. LE NOSTRE CASE
   ---------------------------------------------------------------- */
.houses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
}
.house-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.07);
  transition: transform .4s ease, box-shadow .4s ease;
}
.house-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.10); }

.house-media { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-card) var(--radius-card) 0 0; }
.house-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.house-card:hover .house-media img { transform: scale(1.05); }

.house-body { padding: 1.8rem clamp(1.4rem, 3vw, 2.2rem) 2.2rem; text-align: center; }
.house-name { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.4rem; }
.house-line { color: var(--muted); margin: 0 0 1.6rem; font-size: 0.98rem; }

/* Etichetta "Prossimamente" */
.tag {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 40px;
}
.house-card.is-soon .house-media img { filter: saturate(0.92) brightness(1.02); }

/* ----------------------------------------------------------------
   8. SERVIZI
   ---------------------------------------------------------------- */
.services-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service {
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: clamp(1.8rem, 4vw, 2.8rem) 1rem;
  transition: background 0.4s var(--ease);
}
.service:hover { background: var(--cream); }
.service-icon {
  width: 44px; height: 44px;
  color: var(--accent);
}
.service-icon svg {
  width: 100%; height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-label {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* ----------------------------------------------------------------
   9. ESPERIENZA
   ---------------------------------------------------------------- */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
}
.experience-item { }
.experience-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.8rem;
}
.experience-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.experience-item p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* ----------------------------------------------------------------
   10. GALLERIA
   ---------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: clamp(0.8rem, 1.6vw, 1.2rem);
}
.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}
/* alcune celle più alte per un ritmo tipo masonry */
.gallery-item.tall { grid-row: span 2; aspect-ratio: 3 / 4; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }

/* ----------------------------------------------------------------
   11. MARIE
   ---------------------------------------------------------------- */
.marie-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.marie-text .section-title { margin-bottom: 1.2rem; }
.marie-body { color: var(--muted); font-size: 1.02rem; margin: 0 0 2rem; }

.marie-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 0.9rem;
}
.marie-photo {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
}
/* la prima foto (cortile) occupa l'intera colonna sinistra */
.marie-photo:first-child { grid-row: span 2; aspect-ratio: auto; }
.marie-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.marie-photo:hover img { transform: scale(1.05); }

/* ----------------------------------------------------------------
   12. RECENSIONI
   ---------------------------------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.review {
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  padding: clamp(1.8rem, 3.5vw, 2.6rem);
  position: relative;
}
.review::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent-soft);
  position: absolute;
  top: 0.6rem; left: 1.2rem;
}
.review-text {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  margin: 1rem 0 1.4rem;
  position: relative;
}
.review-author {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--ink);
}
.review-author span { color: var(--muted); font-weight: 400; }
/* Nome + provenienza a sinistra, valutazione a destra */
.review-author {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.review-author .review-name { color: var(--ink); font-weight: 600; }
.review-author .review-score {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ----------------------------------------------------------------
   13. CONTATTI
   ---------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
.contact-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.contact-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.contact-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.66rem;
  color: var(--accent);
  font-weight: 600;
}
.contact-value { font-size: 1.15rem; color: var(--ink); }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

.contact-map { min-height: 320px; }
.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
}
.map-placeholder {
  height: 100%;
  min-height: 320px;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--muted);
}
.map-placeholder svg {
  width: 40px; height: 40px;
  fill: none; stroke: var(--accent); stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
}
.map-placeholder span { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem; }

/* ----------------------------------------------------------------
   14. FOOTER
   ---------------------------------------------------------------- */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--line);
}
.footer-brand { display: flex; flex-direction: column; line-height: 1; }
/* Logo immagine nel footer: stesso ritaglio dell'header, un po' più grande;
   il multiply fonde il fondo bianco del JPEG con il crema del footer */
.footer-brand .logo-img { height: 62px; width: 254px; }

.footer-nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer-nav a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.footer-nav a:hover { color: var(--ink); }

.footer-social { display: flex; gap: 0.8rem; }
.social-link {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.4s var(--ease);
}
.social-link svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.social-link:hover { background: var(--ink); }
.social-link:hover svg { stroke: var(--white); }

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.footer-bottom a { transition: color 0.3s var(--ease); }
.footer-bottom a:hover { color: var(--ink); }
.footer-legal { letter-spacing: 0.06em; margin: 0; }
.footer-links { margin: 0; }
.footer-copy { margin: 0; }

/* ----------------------------------------------------------------
   15. ANIMAZIONI DI ENTRATA (Intersection Observer, vedi script.js)
   ---------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ----------------------------------------------------------------
   16. PAGINA INTERNA (maison.html) — elementi specifici
   ---------------------------------------------------------------- */
/* Hero di pagina interna: più basso della home */
.page-hero { min-height: 78vh; }
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.back-home:hover { color: var(--ink); gap: 0.8rem; }

/* Descrizione ampia della casa */
.house-desc { max-width: 780px; }
.house-desc .intro-text { text-align: center; }

/* CTA finale della pagina */
.cta-band { text-align: center; }
.cta-band .btn { margin-top: 1.5rem; }

/* ----------------------------------------------------------------
   17. RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .marie-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  /* Header mobile: nav a scomparsa, hamburger visibile */
  .nav { display: none; }
  .header-actions .btn-sm { display: none; }
  .menu-toggle { display: flex; }

  .houses-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.tall { grid-row: span 1; aspect-ratio: 4 / 3; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .experience-grid { grid-template-columns: 1fr; text-align: center; }
  .gallery { grid-template-columns: 1fr; }
  .marie-photos { grid-template-columns: 1fr 1fr; }
  .marie-photo:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
  .contact-buttons .btn { width: 100%; text-align: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
