/* ============================================================
   CHIARA ROCCA FOTOGRAFA — style.css v3
   Palette: rosa antico, terracotta, pesca — dal logo
   ============================================================ */

/* ===== FONT LOCALI (self-hosted, no Google Fonts) ===== */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-latin-300-normal.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-latin-300-italic.woff2') format('woff2');
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-latin-300-normal.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --cream:        #fdf6f0;
  --parchment:    #f7ede3;
  --blush:        #efd5c5;
  --rose:         #c9957a;
  --rose-dark:    #a8624a;
  --terracotta:   #b87055;
  --mauve:        #d4a898;
  --sage:         #cdd5c8;
  --warm-white:   #fefaf7;
  --text:         #2e1f18;
  --text-light:   #8c6e60;
  --gold:         #c49a6c;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;

  --radius:     4px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow:     0 8px 40px rgba(46,31,24,0.10);
  --shadow-lg:  0 20px 70px rgba(46,31,24,0.15);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--font-body); background: var(--warm-white); color: var(--text); overflow-x: hidden; cursor: none; }
img   { display: block; width: 100%; height: 100%; object-fit: cover; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button { cursor: none; border: none; background: none; font-family: inherit; }

/* ---------- CURSORE ---------- */
.cursor {
  width: 10px; height: 10px;
  background: var(--rose-dark);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform 0.1s, background 0.3s;
}
.cursor-follower {
  width: 36px; height: 36px;
  border: 1.5px solid var(--rose);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform 0.18s ease, width 0.3s, height 0.3s, opacity 0.3s;
  opacity: 0.7;
}

/* ---------- LOADER ---------- */
.loader {
  position: fixed; inset: 0;
  background: var(--cream);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner  { text-align: center; }
.loader-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300; letter-spacing: 0.18em;
  color: var(--rose-dark); display: block; margin-bottom: 0.4rem;
}
.loader-tagline {
  font-size: 0.72rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--text-light);
  margin-bottom: 2rem;
}
.loader-logo-img {
  width: 180px; height: auto;
  margin: 0 auto 1rem;
  object-fit: contain;
}
.loader-bar {
  width: 200px; height: 1px;
  background: var(--blush); margin: 0 auto; overflow: hidden;
}
.loader-progress { height: 100%; width: 0; background: var(--rose-dark); transition: width 0.05s linear; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 4%;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(253,246,240,0.93);
  backdrop-filter: blur(14px);
  padding: 1rem 4%;
  box-shadow: 0 2px 30px rgba(46,31,24,0.07);
}

/* Logo nav */
.nav-logo { display: flex; align-items: center; }
.nav-logo-text {
  font-family: var(--font-display); font-size: 1.6rem;
  font-weight: 400; letter-spacing: 0.1em; color: var(--rose-dark);
  transition: color var(--transition);
}
.nav-logo-img { height: 44px; width: auto; object-fit: contain; display: block; }
.nav-logo:hover .nav-logo-text { color: var(--terracotta); }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 1.4rem; }

/* Lang switch */
.lang-switch { display: flex; align-items: center; gap: 0.3rem; }
.lang-btn {
  font-size: 0.72rem; letter-spacing: 0.14em;
  font-weight: 500; color: var(--text-light);
  padding: 0.25rem 0.4rem;
  border-radius: 2px;
  transition: color var(--transition), background var(--transition);
  cursor: none;
}
.lang-btn.active { color: var(--rose-dark); font-weight: 600; }
.lang-btn:hover  { color: var(--rose-dark); }
.lang-sep        { color: var(--blush); font-size: 0.8rem; }

/* Nav links */
.nav-links { display: flex; gap: 2.5rem; }
.nav-link {
  font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-light); position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--rose-dark);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--rose-dark); }
.nav-link:hover::after { width: 100%; }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 6px; width: 28px; }
.nav-toggle span { display: block; height: 1.5px; background: var(--text); transition: var(--transition); }

/* ---------- LAYOUT ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section    { padding: clamp(5rem, 10vw, 9rem) 0; }

/* ---------- REVEAL ---------- */
.reveal-up, .reveal-left, .reveal-right, .reveal-fade {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal-left  { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-fade  { transform: scale(0.97); }
.reveal-up.in, .reveal-left.in, .reveal-right.in, .reveal-fade.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.30s; }
.delay-3 { transition-delay: 0.45s; }

/* ---------- TIPOGRAFIA HELPER ---------- */
.section-label {
  display: inline-block; font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rose-dark); margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 300; line-height: 1.2;
  color: var(--text); margin-bottom: 1.5rem;
}
.section-title em { font-style: italic; color: var(--rose-dark); }
.section-header   { text-align: center; margin-bottom: 3.5rem; }

/* ---------- BOTTONI ---------- */
.btn {
  display: inline-block; padding: 0.9rem 2.4rem;
  font-family: var(--font-body); font-size: 0.78rem;
  font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--rose-dark); color: #fff;
  border-radius: var(--radius); position: relative; overflow: hidden;
  transition: var(--transition);
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--text);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s ease; z-index: 0;
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn, .btn * { position: relative; z-index: 1; }

.btn--outline {
  background: transparent; color: var(--rose-dark);
  border: 1.5px solid var(--rose-dark);
}
.btn--outline::before { background: var(--rose-dark); }
.btn--outline:hover { color: #fff; }
.btn--full { width: 100%; text-align: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; background: var(--cream);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(150deg, #fdf0e6 0%, #f5e2d0 45%, #e8d3c0 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(253,246,240,0.88) 40%, rgba(253,246,240,0.05));
  z-index: 1;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 560px;
  padding: 0 5%;
  margin-left: max(5%, calc((100vw - 1200px)/2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

/* LOGO HERO */
.hero-logo-wrap { margin-bottom: -1rem; }
.hero-logo-img {
  width: clamp(300px, 45vw, 480px);
  height: auto; object-fit: contain;
  animation: logoFadeIn 1.2s ease forwards;
  opacity: 0;
  margin-bottom: -160px;
  display: block;
}
@keyframes logoFadeIn {
  0%   { opacity: 0; transform: scale(0.92) translateY(12px); }
  100% { opacity: 1; transform: scale(1)    translateY(0); }
}

.hero-sub {
  font-size: 0.95rem; line-height: 1.8;
  color: var(--text-light); margin-bottom: 2.5rem;
  margin-top: 0.5rem;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 5%;
  z-index: 2; display: flex; align-items: center; gap: 1rem;
}
.hero-scroll span {
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-light);
}
.hero-scroll-line {
  width: 60px; height: 1px; background: var(--blush);
  position: relative; overflow: hidden;
}
.hero-scroll-line::after {
  content: ''; position: absolute; inset: 0;
  background: var(--rose-dark);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* SLIDESHOW HERO */
.hero-slideshow {
  position: absolute;
  right: 2%; top: 10%;
  z-index: 2;
  width: clamp(300px, 38vw, 550px);
}
.slideshow-track {
  position: relative; width: 100%;
  aspect-ratio: 3/4; border-radius: 3px;
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.slide-item {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.9s ease;
}
.slide-item.active { opacity: 1; }
.slide-img { width: 100%; height: 100%; object-fit: cover; }
.hero-slideshow::before {
  content: ''; position: absolute;
  top: 16px; left: -16px;
  width: 100%; height: 100%;
  border: 1.5px solid var(--blush); border-radius: 3px;
  z-index: -1; pointer-events: none;
}
.slideshow-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.slideshow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blush); border: none;
  transition: background 0.3s, transform 0.3s; cursor: none;
}
.slideshow-dot.active { background: var(--rose-dark); transform: scale(1.3); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--warm-white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem); align-items: center;
}
.about-img-wrap { position: relative; aspect-ratio: 3/4; max-height: 620px; }
.about-img      { width: 100%; height: 100%; border-radius: 2px; position: relative; z-index: 1; object-fit: cover; }
.about-img-accent {
  position: absolute; bottom: -20px; right: -20px;
  width: 65%; height: 65%;
  border: 2px solid var(--blush); border-radius: 2px; z-index: 0;
}
.about-badge {
  position: absolute; bottom: 20px; left: -24px;
  background: var(--rose-dark); color: #fff;
  padding: 1.4rem 1.6rem; border-radius: 2px;
  z-index: 2; text-align: center; box-shadow: var(--shadow);
}
.about-badge-quote {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem; font-style: italic; font-weight: 300;
  line-height: 1.55; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.92);
}
.about-text p     { color: var(--text-light); line-height: 1.85; margin-bottom: 1rem; }
.about-text .btn  { margin-top: 1rem; }

/* ============================================================
   PORTFOLIO — SLIDER PER CATEGORIA
   ============================================================ */
.portfolio { background: var(--cream); }

.portfolio-filters {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  justify-content: center; margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.5rem 1.3rem; font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1.5px solid var(--blush); border-radius: 20px;
  color: var(--text-light); transition: var(--transition); cursor: none;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--rose-dark); border-color: var(--rose-dark); color: #fff;
}

/* ============================================================
   PORTFOLIO — MODALITÀ DOPPIA
   "Tutti"    → griglia di anteprime (una card per categoria)
   Categoria  → slideshow a schermo pieno, una foto alla volta
   ============================================================ */

/* Contenitore principale */
.portfolio-sliders { position: relative; }

/* ---------- MODALITÀ "TUTTI": griglia anteprime ---------- */
.portfolio-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  /* centra automaticamente l'ultima riga quando le card non sono multiplo di 4 */
  justify-content: center;
}
/* 4 card per riga: larghezza calcolata sottraendo i 3 gap interni */
.overview-card {
  width: calc((100% - 3 * 1.2rem) / 4);
}
.portfolio-overview.hidden { display: none; }

/* Card di anteprima per ogni categoria */
.overview-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 3px;
  overflow: hidden;
  cursor: none;
  background: var(--parchment);
  box-shadow: var(--shadow);
}
.overview-card:nth-child(4n+2),
.overview-card:nth-child(4n+3) { margin-top: 2rem; }

.overview-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* object-position si può sovrascrivere con style="object-position:..." sull'img */
  filter: brightness(0.88);
  transition: transform 0.7s ease, filter 0.5s ease;
}
.overview-card:hover .overview-card-img {
  transform: scale(1.06);
  filter: brightness(0.75);
}
.overview-card-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3rem 1.4rem 1.4rem;
  background: linear-gradient(to top, rgba(46,31,24,0.72) 0%, transparent 100%);
  display: flex; align-items: flex-end; justify-content: space-between;
}
.overview-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem; font-style: italic; font-weight: 400;
  color: #fff; letter-spacing: 0.03em;
}
.overview-card-hint {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  opacity: 0; transform: translateX(6px);
  transition: opacity 0.4s, transform 0.4s;
}
.overview-card:hover .overview-card-hint { opacity: 1; transform: none; }

/* ---------- MODALITÀ CATEGORIA SINGOLA: slideshow ---------- */
.portfolio-single { display: none; }
.portfolio-single.active { display: block; }

/* Barra in cima: titolo categoria + bottone "← Tutti" */
.single-topbar {
  display: flex; align-items: center; gap: 1.5rem;
  margin-bottom: 2rem;
}
.single-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-light); border: 1.5px solid var(--blush);
  border-radius: 20px; padding: 0.45rem 1.1rem;
  transition: var(--transition); cursor: none;
  background: transparent;
}
.single-back:hover { background: var(--rose-dark); border-color: var(--rose-dark); color: #fff; }

.single-cat-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300; font-style: italic;
  color: var(--rose-dark);
}
.single-counter {
  margin-left: auto;
  font-size: 0.8rem; letter-spacing: 0.1em;
  color: var(--text-light);
}

/* Stage: area della foto grande */
.single-stage {
  position: relative;
  width: 100%;
  /* altezza proporzionale: portrait su desktop, adatta su mobile */
  height: clamp(420px, 72vh, 820px);
  background: var(--parchment);
  border-radius: 3px;
  overflow: hidden;
}

/* Ogni slide */
.single-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.single-slide.active { opacity: 1; }

.single-slide-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Frecce navigazione sullo stage */
.single-prev,
.single-next {
  position: absolute; top: 50%; z-index: 10;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(253,246,240,0.75);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--text);
  transition: background var(--transition), color var(--transition);
  cursor: none;
}
.single-prev { left: 1.2rem; }
.single-next { right: 1.2rem; }
.single-prev:hover,
.single-next:hover { background: var(--rose-dark); color: #fff; }

/* Barra progresso sotto la foto */
.single-progress-bar {
  height: 2px; background: var(--blush);
  margin-top: 0.8rem; border-radius: 1px; overflow: hidden;
}
.single-progress-fill {
  height: 100%; width: 0%;
  background: var(--rose-dark); border-radius: 1px;
  transition: width 0.05s linear;
}

/* Dots */
.single-dots {
  display: flex; flex-wrap: wrap; gap: 7px;
  justify-content: center; margin-top: 1rem;
}
.single-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blush); border: none; cursor: none;
  transition: background 0.3s, transform 0.3s;
}
.single-dot.active { background: var(--rose-dark); transform: scale(1.4); }

/* Indicazione swipe su mobile */
.single-swipe-hint {
  text-align: center; margin-top: 0.8rem;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-light); opacity: 0.6;
  display: none;
}

/* Pulsante "Carica altre" — sotto i dots, solo se ci sono extra */
.cat-load-more {
  display: none;
  margin: 1.6rem auto 0;
  padding: 0.65rem 2rem;
  font-size: 0.76rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1.5px solid var(--blush); border-radius: 20px;
  color: var(--text-light);
  transition: var(--transition); cursor: none;
  background: transparent;
}
.cat-load-more:hover {
  background: var(--rose-dark); border-color: var(--rose-dark); color: #fff;
}

/* ---------- Responsive overview ---------- */
@media (max-width: 900px) {
  .overview-card { width: calc((100% - 1.2rem) / 2); }
  .overview-card:nth-child(4n+2),
  .overview-card:nth-child(4n+3) { margin-top: 0; }
  .overview-card:nth-child(2n) { margin-top: 2rem; }
}
@media (max-width: 540px) {
  .portfolio-overview { gap: 0.8rem; }
  .overview-card { width: calc((100% - 0.8rem) / 2); }
  .overview-card:nth-child(2n) { margin-top: 1.2rem; }
  .single-stage { height: clamp(320px, 65vw, 480px); }
  .single-swipe-hint { display: block; }
  .single-prev, .single-next { width: 36px; height: 36px; font-size: 1rem; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20,10,8,0.93);
  z-index: 5000; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
}
.lightbox.open        { opacity: 1; visibility: visible; }
.lightbox-img-wrap    { max-width: 90vw; max-height: 90vh; }
.lightbox-img         { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 2px; }
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute; background: none; border: none;
  color: rgba(255,255,255,0.7); font-size: 1.4rem;
  cursor: pointer; transition: color 0.3s; padding: 1rem;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: #fff; }
.lightbox-close { top: 1.5rem; right: 2rem; font-size: 1.2rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 2rem; }

/* ============================================================
   SERVICES — immagine BN → colore + testo in overlay
   ============================================================ */
.services { background: var(--warm-white); }
/* 7 card: prima riga 4, seconda riga 3 centrate */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
/* Le ultime 3 card (5ª 6ª 7ª) si centrano nella seconda riga */
.service-card:nth-child(5) { grid-column: 1; }
@media (min-width: 769px) {
  .service-card:nth-child(5) { grid-column: 1; }
  .services-grid {
    /* Trucco: seconda riga con 3 su 4 colonne, centrata */
    grid-template-columns: repeat(12, 1fr);
  }
  .service-card { grid-column: span 3; }
  /* Ultima riga: 3 card centrate → inizia dalla col 3 per centrare su 12 */
  .service-card:nth-child(5) { grid-column: 3 / span 3; }
  .service-card:nth-child(6) { grid-column: span 3; }
  .service-card:nth-child(7) { grid-column: span 3; }
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/5;
  background: var(--parchment);
  cursor: none;
  /* fallback bordo se non c'è foto */
  border: 1.5px solid var(--blush);
}

/* Immagine di sfondo — parte in bianco e nero */
.service-img-wrap {
  position: absolute; inset: 0;
  z-index: 0;
}
.service-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.9);
  transition: filter 0.6s ease, transform 0.6s ease;
}
.service-card:hover .service-bg-img {
  filter: grayscale(0%) brightness(0.85);
  transform: scale(1.05);
}

/* Quando non c'è immagine: fallback decorativo */
.service-img-wrap.no-img {
  background: linear-gradient(135deg, var(--blush) 0%, var(--parchment) 60%, var(--sage) 100%);
}

/* Overlay con testo */
.service-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.6rem;
  background: linear-gradient(to top, rgba(46,31,24,0.72) 40%, rgba(46,31,24,0.08) 100%);
  transition: background var(--transition);
}
.service-card:hover .service-overlay {
  background: linear-gradient(to top, rgba(46,31,24,0.82) 50%, rgba(46,31,24,0.15) 100%);
}

/* Testo sempre visibile (nome servizio) */
.service-overlay .service-icon {
  font-size: 1rem; color: var(--mauve); margin-bottom: 0.5rem; display: block;
  transition: color var(--transition);
}
.service-card:hover .service-overlay .service-icon { color: var(--blush); }

.service-overlay h3 {
  font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 400; color: #fff; margin-bottom: 0;
  letter-spacing: 0.02em;
  transition: margin-bottom var(--transition);
}

/* Descrizione: appare solo su hover */
.service-overlay p {
  font-size: 0.85rem; line-height: 1.7;
  color: rgba(255,255,255,0.82);
  max-height: 0; overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease, margin 0.5s ease;
  margin-top: 0;
}
.service-card:hover .service-overlay p {
  max-height: 8rem;
  opacity: 1;
  margin-top: 0.6rem;
}
.service-card:hover .service-overlay h3 {
  margin-bottom: 0;
}

/* CTA link */
.service-cta {
  display: inline-block;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mauve); border-bottom: 1px solid var(--mauve);
  padding-bottom: 1px;
  margin-top: 0.8rem;
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity 0.4s ease 0.1s, max-height 0.4s ease, color var(--transition);
}
.service-card:hover .service-cta {
  opacity: 1; max-height: 2rem;
}
.service-cta:hover { color: #fff; border-color: #fff; }

/* ============================================================
   MARQUEE
   ============================================================ */
.quote-banner { background: var(--rose-dark); padding: 1.2rem 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; animation: marquee 30s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-size: 1.1rem;
  font-style: italic; color: rgba(255,255,255,0.88);
  letter-spacing: 0.04em; padding-right: 3rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact      { background: var(--cream); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem); align-items: start;
}

.contact-info p       { color: var(--text-light); line-height: 1.8; margin-bottom: 2rem; }
.contact-list         { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact-list li      { display: flex; align-items: center; gap: 1rem; }
.contact-icon         { font-size: 1rem; color: var(--rose-dark); width: 20px; text-align: center; flex-shrink: 0; }
.contact-list a,
.contact-list span    { font-size: 0.95rem; color: var(--text-light); transition: color var(--transition); word-break: break-word; }
.contact-list a:hover { color: var(--rose-dark); }

.contact-social { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.social-link {
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-light); position: relative; padding-bottom: 2px;
  transition: color var(--transition);
}
.social-link::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--rose-dark); transition: width var(--transition);
}
.social-link:hover { color: var(--rose-dark); }
.social-link:hover::after { width: 100%; }

/* WhatsApp box */
.whatsapp-box {
  display: flex; flex-direction: column; gap: 1.8rem;
}
.whatsapp-intro p {
  color: var(--text-light); line-height: 1.8; font-size: 0.95rem;
}
.wa-promo {
  background: var(--blush); border: 1.5px solid var(--rose-dark);
  border-radius: var(--radius); padding: 0.9rem 1.2rem;
  font-size: 0.88rem; line-height: 1.6; color: var(--text);
  text-align: center;
}
.wa-services {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  justify-content: center;
}
.wa-btn {
  display: block; padding: 0.9rem 1rem;
  width: calc((100% - 3 * 0.8rem) / 4);
  background: var(--warm-white);
  border: 1.5px solid var(--blush);
  border-radius: var(--radius);
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.06em; color: var(--text);
  text-align: center; transition: var(--transition);
}
.wa-btn:hover {
  background: var(--rose-dark); border-color: var(--rose-dark);
  color: #fff; transform: translateY(-2px); box-shadow: var(--shadow);
}
.wa-btn--full {
  width: 100%;
  background: var(--rose-dark); border-color: var(--rose-dark);
  color: var(--warm-white); font-size: 0.88rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.wa-btn--full:hover {
  background: var(--terracotta); border-color: var(--terracotta); color: var(--warm-white);
}
.contact-email-note {
  font-size: 0.78rem; color: var(--text-light); text-align: center;
}
.contact-email-note a {
  color: var(--rose-dark); text-decoration: underline; text-underline-offset: 3px;
  word-break: break-word;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--text); padding: 3rem 0 0; }

.footer-inner {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 1rem; padding-bottom: 2rem;
}
.footer-logo {
  font-family: var(--font-display); font-size: 1.4rem;
  font-weight: 300; letter-spacing: 0.1em; color: var(--cream);
}
.footer-copy { font-size: 0.78rem; color: rgba(253,246,240,0.4); letter-spacing: 0.05em; }
.footer-nav  { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.footer-nav a {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(253,246,240,0.5); transition: color var(--transition);
}
.footer-nav a:hover { color: var(--cream); }

.footer-bottom {
  border-top: 1px solid rgba(253,246,240,0.08);
  padding: 1.2rem 5%;
  text-align: center;
}
.footer-dev {
  font-size: 0.72rem; letter-spacing: 0.1em;
  color: rgba(253,246,240,0.35);
}
.footer-dev a {
  color: var(--mauve); border-bottom: 1px solid rgba(212,168,152,0.3);
  transition: color var(--transition), border-color var(--transition);
}
.footer-dev a:hover { color: var(--cream); border-color: var(--cream); }

/* ============================================================
   RESPONSIVE — 1100px
   ============================================================ */
@media (max-width: 1100px) {
  .hero-slideshow { width: clamp(170px, 22vw, 280px); }
  .services-grid  { grid-template-columns: repeat(2,1fr); }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  /* Nav mobile */
  .nav-toggle  { display: flex; z-index: 1100; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100vh;
    background: var(--warm-white);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 2rem;
    transition: right 0.4s ease;
    overflow-y: auto; padding: 5rem 0;
    z-index: 1050;
  }
  .nav-links.open  { right: 0; }
  .nav-links.active { right: 0; }
  .nav-link        { font-size: 1.2rem; }

  /* Hero mobile — layout colonna, foto sotto il testo */
  .hero {
    min-height: 100svh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: 90px;
    padding-bottom: 2rem;
  }
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(253,246,240,0.92) 55%, rgba(253,246,240,0.6) 100%);
  }
  .hero-content {
    max-width: 100%;
    padding: 0 6% 2rem;
    margin-left: 0;
    position: relative; z-index: 2;
  }
  .hero-logo-img {
    width: clamp(220px, 75vw, 340px);
    margin-bottom: 0;
  }
  .hero-sub { font-size: 0.88rem; margin-top: 0; }
  .btn { font-size: 0.75rem; padding: 0.8rem 1.8rem; }
  .hero-scroll { display: none; }
  .btn { position: relative; z-index: 3; width: 100%; text-align: center; }

  /* Slideshow hero: rimane visibile, si posiziona sotto il testo */
  .hero-slideshow {
    display: block;
    position: relative;          /* torna nel flusso */
    top: auto; right: auto;
    width: 88%;
    margin: 0 auto;
    z-index: 2;
  }
  .hero-slideshow::before { display: none; }   /* nasconde il bordo decorativo */
  .slideshow-track { aspect-ratio: 4/3; }      /* formato più panoramico su mobile */

  /* About */
  .about-grid     { grid-template-columns: 1fr; }
  .about-img-wrap { max-height: 400px; }
  .about-badge    { left: 10px; }

  /* Services — 2 colonne su tablet */
  .services-grid { grid-template-columns: repeat(2,1fr) !important; }
  .service-card  { grid-column: span 1 !important; }

  /* Contact */
  .contact-grid  { grid-template-columns: 1fr; }

  /* Footer — responsivo */
  .footer-inner  {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
  }
  .footer-nav    { justify-content: center; gap: 1rem; }
  .footer-copy   { order: 3; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr !important; }
  .service-card  { grid-column: span 1 !important; }

  .portfolio-filters { gap: 0.4rem; }
  .filter-btn       { padding: 0.4rem 1rem; font-size: 0.7rem; }

  .wa-services { flex-direction: column; }
  .wa-btn, .wa-btn--full { width: 100%; }

  .cursor, .cursor-follower { display: none; }
  body   { cursor: auto; }
  button { cursor: pointer; }

  /* Footer ancora più stretto */
  .footer-nav { gap: 0.8rem; }
  .footer-nav a { font-size: 0.7rem; }
}
/* ============================================================
   POPUP RECENSIONE GOOGLE
   ============================================================ */
.review-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46, 31, 24, 0.45);
  backdrop-filter: blur(3px);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.review-popup-overlay.open {
  opacity: 1;
  visibility: visible;
}
.review-popup {
  position: relative;
  background: var(--warm-white);
  border: 1px solid var(--blush);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  width: 100%;
  padding: 2.6rem 2.2rem 2.2rem;
  text-align: center;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.review-popup-overlay.open .review-popup {
  transform: translateY(0) scale(1);
}
.review-popup-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s;
}
.review-popup-close:hover { color: var(--rose-dark); }
.review-popup-stars {
  color: var(--gold);
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
}
.review-popup h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.review-popup p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 1.8rem;
}
.review-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
}
.review-popup-cta {
  width: 100%;
}
.review-popup-later {
  font-size: 0.78rem;
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}
.review-popup-later:hover { color: var(--rose-dark); }

@media (max-width: 480px) {
  .review-popup { padding: 2.2rem 1.5rem 1.8rem; }
}