@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --gold: #C69756;
  --gold-text: #946B2D;
  --gold-light: #e8c990;
  --gold-pale: #f5ead6;
  --black: #0e0e0e;
  --dark: #1a1a1a;
  --mid: #4a4a4a;
  --muted: #767676;
  --bg: #fafaf8;
  --bg2: #f0f0f0;
  --white: #ffffff;
  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'Futura PT', 'Trebuchet MS', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; font-size: 16px; }


body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--dark);
  overflow-x: hidden;
}
@media (pointer: fine) {
  body { }
}



/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4vw;
  height: 72px;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(198,151,86,0.15);
}
nav.scrolled {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(198,151,86,0.15);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--dark);
  text-decoration: none;
  text-transform: uppercase;
}
nav.scrolled .nav-logo { color: var(--dark); }
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex; gap: 2.5rem; list-style: none;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}
nav.scrolled .nav-links a { color: var(--mid); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
  border: 1px solid var(--gold-text);
  padding: 0.55rem 1.4rem;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
nav.scrolled .nav-cta { color: var(--gold-text); border-color: var(--gold-text); }
.nav-cta:hover { background: var(--gold-text); color: var(--white); border-color: var(--gold-text); }

/* Lang switcher — colori fissi header bianco */
.lang-btn { color: var(--mid); }
.lang-btn:hover,
.lang-btn.lang-active { color: var(--gold); }
.lang-sep { color: var(--muted); }
nav.scrolled .lang-btn { color: var(--mid); }
nav.scrolled .lang-btn:hover,
nav.scrolled .lang-btn.lang-active { color: var(--gold); }
nav.scrolled .lang-sep { color: var(--muted); }

/* HERO */
.hero {
  height: 100vh; min-height: 640px;
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden;
}
.hero-left {
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 0 6vw 8vh 6vw;
  position: relative; z-index: 2;
}
.hero-tag {
  font-size: 0.65rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--gold-text);
  margin-bottom: 1.8rem;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.3s forwards;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--dark);
  opacity: 0; animation: fadeUp 1s var(--ease) 0.5s forwards;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-subtitle {
  margin-top: 2rem;
  font-size: 0.8rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted);
  max-width: 340px; line-height: 2;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.7s forwards;
}
.hero-actions {
  margin-top: 3rem; display: flex; gap: 1.5rem; align-items: center;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.9s forwards;
}
.btn-primary {
  display: inline-block;
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  background: var(--gold-text); color: var(--white);
  padding: 1rem 2.5rem; text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}
.btn-primary:hover { background: var(--dark); transform: translateY(-2px); }
.btn-ghost {
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--mid); text-decoration: none;
  display: flex; align-items: center; gap: 0.7rem;
  transition: color 0.3s;
}
.btn-ghost::after {
  content: '→';
  transition: transform 0.3s var(--ease);
}
.btn-ghost:hover { color: var(--gold); }
.btn-ghost:hover::after { transform: translateX(6px); }

.hero-right {
  position: relative; overflow: hidden;
}
.hero-image {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.05);
  animation: slowZoom 12s var(--ease) forwards;
}
.hero-image-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #e8ddd0 0%, #d4c4b0 40%, #c8b89a 100%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1rem;
  transform: scale(1.05);
  animation: slowZoom 12s var(--ease) forwards;
  position: relative; overflow: hidden;
}
.hero-image-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(45deg, transparent 45%, rgba(198,151,86,0.08) 50%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, rgba(198,151,86,0.08) 50%, transparent 55%);
  background-size: 60px 60px;
}
.placeholder-label {
  font-family: var(--serif);
  font-size: 0.8rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: rgba(198,151,86,0.6);
  z-index: 1;
}
.watermark-logo {
  font-family: var(--serif);
  font-size: 1.4rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(198,151,86,0.25);
  z-index: 1; text-align: center;
}
.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 6vw;
  display: flex; align-items: center; gap: 1rem;
  opacity: 0; animation: fadeUp 1s var(--ease) 1.2s forwards;
}
.scroll-line {
  width: 48px; height: 1px; background: var(--gold);
  transform-origin: left; animation: growLine 1s var(--ease) 1.5s both;
}
.scroll-text {
  font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted);
}

/* SEZIONE NUMERI */
.stats {
  background: #2D2D2D;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 4rem 6vw;
  gap: 2rem;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  color: var(--gold); font-weight: 400;
}
.stat-label {
  font-size: 0.6rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin-top: 0.5rem;
}

/* SEZIONI GENERALI */
.section { padding: 8rem 6vw; }
.section-alt { background: var(--bg2); }
.section-header { margin-bottom: 5rem; }
.section-tag {
  font-size: 0.6rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--gold-text);
  margin-bottom: 1.2rem; display: block;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400; line-height: 1.1;
  color: var(--dark);
}
.section-title em { font-style: italic; color: var(--gold); }

/* PROGETTI GRID */
.progetti-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.progetto-card { position: relative; overflow: hidden; }
.progetto-card:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.progetto-card:nth-child(2) { grid-column: span 5; }
.progetto-card:nth-child(3) { grid-column: span 5; }
.progetto-card:nth-child(4) { grid-column: span 4; }
.progetto-card:nth-child(5) { grid-column: span 4; }
.progetto-card:nth-child(6) { grid-column: span 4; }

.progetto-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}
.progetto-card:nth-child(1) .progetto-img { aspect-ratio: unset; height: 100%; }
.progetto-card:hover .progetto-img { transform: scale(1.06); }

.progetto-placeholder {
  width: 100%; aspect-ratio: 4/3;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  transition: transform 0.7s var(--ease);
}
.progetto-card:nth-child(1) .progetto-placeholder { aspect-ratio: unset; height: 100%; min-height: 480px; }
.progetto-card:hover .progetto-placeholder { transform: scale(1.06); }

.ph-1 { background: linear-gradient(135deg, #e0d5c8, #c9b99f); }
.ph-2 { background: linear-gradient(135deg, #d8cfc5, #bfb09a); }
.ph-3 { background: linear-gradient(160deg, #e5ddd3, #cfc0aa); }
.ph-4 { background: linear-gradient(135deg, #dbd0c4, #c4b09c); }
.ph-5 { background: linear-gradient(160deg, #e8e0d8, #d2c3ad); }
.ph-6 { background: linear-gradient(135deg, #d4c9bc, #bfad99); }

.progetto-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(198,151,86,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,151,86,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}
.ph-watermark {
  font-family: var(--serif); font-style: italic;
  font-size: 0.75rem; letter-spacing: 0.25em;
  color: rgba(198,151,86,0.45);
  z-index: 1; text-align: center;
  text-transform: uppercase;
}
.ph-icon {
  width: 32px; height: 32px; margin-bottom: 0.8rem;
  opacity: 0.3;
}

.progetto-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,14,14,0.85) 0%, rgba(14,14,14,0.1) 60%, transparent 100%);
  opacity: 0; transition: opacity 0.5s var(--ease);
  display: flex; align-items: flex-end;
  padding: 2rem;
}
.progetto-card:hover .progetto-overlay { opacity: 1; }
.progetto-info { transform: translateY(12px); transition: transform 0.5s var(--ease); }
.progetto-card:hover .progetto-info { transform: translateY(0); }
.progetto-nome {
  font-family: var(--serif); font-style: italic;
  font-size: 1.4rem; color: var(--white);
}
.progetto-meta {
  font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-light);
  margin-top: 0.4rem;
}

/* INFO BOX PROGETTO */
.info-box {
  background: var(--white);
  border: 1px solid rgba(198,151,86,0.2);
  padding: 1.5rem 1.8rem;
  display: inline-block;
  min-width: 200px;
}
.info-box-row {
  display: flex; gap: 0.5rem;
  font-size: 0.7rem; margin-bottom: 0.5rem;
  color: var(--mid);
}
.info-box-row:last-child { margin-bottom: 0; }
.info-box-row strong {
  color: var(--gold); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  min-width: 80px;
}

/* SERVIZI */
.servizi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.servizio-card {
  background: var(--white);
  padding: 3.5rem 3rem;
  position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease);
}
.servizio-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.servizio-card:hover::before { transform: scaleX(1); }
.servizio-card:hover { transform: translateY(-4px); }
.servizio-num {
  font-family: var(--serif); font-size: 3rem;
  color: var(--gold-pale); font-weight: 400;
  line-height: 1; margin-bottom: 1.5rem;
}
.servizio-title {
  font-family: var(--serif); font-size: 1.5rem;
  color: var(--dark); font-weight: 400;
  margin-bottom: 1rem; line-height: 1.2;
}
.servizio-desc {
  font-size: 0.78rem; line-height: 1.9;
  color: var(--muted); letter-spacing: 0.02em;
}
.servizio-price {
  margin-top: 2rem;
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
}
.servizio-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--dark);
  text-decoration: none;
  transition: color 0.3s, gap 0.3s;
}
.servizio-link:hover { color: var(--gold); gap: 1rem; }

/* PUBBLICAZIONI */
.pub-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.pub-card {
  border-top: 1px solid rgba(198,151,86,0.3);
  padding-top: 2rem;
}
.pub-source {
  font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.8rem;
}
.pub-quote {
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; line-height: 1.65;
  color: var(--dark);
}

/* CTA BANNER */
.cta-banner {
  background: #2D2D2D;
  padding: 6rem 6vw;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.cta-text {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 3rem);
  color: var(--white); font-weight: 400;
  line-height: 1.2; max-width: 640px;
}
.cta-text em { font-style: italic; color: var(--gold); }

/* FOOTER */
footer {
  background: #2D2D2D;
  padding: 4rem 6vw 2.5rem;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(198,151,86,0.2);
}
.footer-logo {
  font-family: var(--serif); font-size: 1.2rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); text-decoration: none;
  display: block; margin-bottom: 1.2rem;
}
.footer-logo span { color: var(--gold); }
.footer-tagline {
  font-size: 0.72rem; color: rgba(255,255,255,0.5);
  line-height: 1.9; letter-spacing: 0.05em;
}
.footer-col h4 {
  font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.5rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul a {
  font-size: 0.75rem; color: rgba(255,255,255,0.55);
  text-decoration: none; letter-spacing: 0.05em;
  transition: color 0.3s;
}
.footer-col ul a:hover { color: var(--gold); }
.social-links {
  display: flex; gap: 1rem; margin-top: 1rem;
}
.social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(198,151,86,0.3);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none; font-size: 0.7rem;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.social-link:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; padding-top: 2rem;
}
.footer-copy {
  font-size: 0.65rem; color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
}

/* ANIMAZIONI */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slowZoom {
  to { transform: scale(1); }
}
@keyframes growLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* MOBILE */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { height: 100vw; min-height: 380px; max-height: 520px; }
  .hero-image { object-position: center top; }
  .hero-left { padding: 6rem 6vw 4rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .servizi-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
  .pub-grid { grid-template-columns: 1fr; }
  .progetti-grid { grid-template-columns: 1fr 1fr; }
  .progetto-card:nth-child(1),
  .progetto-card:nth-child(2),
  .progetto-card:nth-child(3),
  .progetto-card:nth-child(4),
  .progetto-card:nth-child(5),
  .progetto-card:nth-child(6) { grid-column: span 1; grid-row: span 1; }
  .progetto-card:nth-child(1) .progetto-placeholder { min-height: 240px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .cta-banner { flex-direction: column; text-align: center; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex !important; }
}


/* ═══════════════════════════════════════════════════
   PAGINE INTERNE — stili comuni
   ═══════════════════════════════════════════════════ */

/* Page hero (tutte le pagine interne) */
.page-hero {
  padding: 14rem 6vw 7rem;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  position: absolute; right: 3vw; bottom: -1rem;
  font-family: var(--serif);
  font-size: clamp(6rem, 14vw, 13rem);
  color: rgba(255,255,255,0.025);
  line-height: 1; pointer-events: none;
  letter-spacing: -0.02em;
}
.page-hero-tag {
  font-size: 0.6rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.5rem; display: block;
}
.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 400; color: var(--white);
  line-height: 1.08;
}
.page-hero-title em { font-style: italic; color: var(--gold); }
.page-hero-sub {
  font-size: 0.78rem; color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em; margin-top: 1.5rem;
  max-width: 500px; line-height: 1.9;
}

/* Watermark ghost text per ogni pagina */
.page-hero--servizi::before  { content: 'SERVIZI'; }
.page-hero--chi-siamo::before { content: 'CHI SIAMO'; font-size: clamp(4rem, 10vw, 9rem); }
.page-hero--progetti::before  { content: 'PROGETTI'; }
.page-hero--blog::before      { content: 'BLOG'; font-size: clamp(8rem, 18vw, 16rem); }
.page-hero--contatti::before  { content: ''; }

/* ── SERVIZI ─────────────────────────────────────── */
.servizio-full {
  padding: 8rem 6vw;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8vw; align-items: start;
}
.servizio-full:nth-child(even) { background: var(--bg2); direction: rtl; }
.servizio-full:nth-child(even) > * { direction: ltr; }
.servizio-full-label {
  font-size: 0.6rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem; display: block;
}
.servizio-full-num {
  font-family: var(--serif); font-size: 4.2rem;
  color: var(--gold-pale); font-weight: 400;
  line-height: 1; margin-bottom: 1.2rem;
}
.servizio-full-title {
  font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 400; color: var(--dark); line-height: 1.2;
  margin-bottom: 1.8rem;
}
.servizio-full-title em { font-style: italic; color: var(--gold); }
.servizio-full-body {
  font-size: 0.82rem; line-height: 2; color: var(--mid);
  letter-spacing: 0.03em; margin-bottom: 2rem;
}
.servizio-full-list { list-style: none; margin: 1.5rem 0 2.5rem; }
.servizio-full-list li {
  font-size: 0.75rem; letter-spacing: 0.05em; color: var(--mid);
  padding: 0.7rem 0; border-bottom: 1px solid rgba(198,151,86,0.12);
  display: flex; align-items: center; gap: 0.8rem;
}
.servizio-full-list li::before {
  content: ''; width: 18px; height: 1px;
  background: var(--gold); flex-shrink: 0;
}
.price-tag {
  display: inline-block; border: 1px solid var(--gold);
  padding: 0.8rem 2rem; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 2rem;
}
.deliverable-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(198,151,86,0.15);
  margin: 2rem 0;
}
.deliverable-item { background: var(--white); padding: 1.5rem; }
.servizio-full:nth-child(even) .deliverable-item { background: var(--bg); }
.deliverable-icon { font-size: 1.2rem; margin-bottom: 0.6rem; }
.deliverable-text { font-size: 0.72rem; line-height: 1.7; color: var(--mid); }

.servizio-visual { position: relative; }
.servizio-img-wrap {
  aspect-ratio: 3/4; width: 100%;
  background: linear-gradient(160deg, #e8ddd0, #c9b49a);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.servizio-img-wrap::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(198,151,86,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,151,86,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.sv-wm {
  font-family: var(--serif); font-style: italic;
  font-size: 0.8rem; letter-spacing: 0.2em;
  color: rgba(198,151,86,0.4); z-index: 1;
  text-align: center; text-transform: uppercase;
}
.servizio-accent-box {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--gold); padding: 1.8rem 2rem; min-width: 160px;
}
.accent-num {
  font-family: var(--serif); font-size: 2.5rem;
  color: var(--white); font-weight: 400; line-height: 1;
}
.accent-label {
  font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
  margin-top: 0.3rem;
}
.booking-cta { background: #2D2D2D; padding: 4rem 3rem; margin-top: 3rem; }
.booking-cta-label {
  font-size: 0.6rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem; display: block;
}
.booking-cta-title {
  font-family: var(--serif); font-size: 1.6rem;
  color: var(--white); font-weight: 400;
  margin-bottom: 2rem; line-height: 1.3;
}
.booking-form { display: flex; flex-direction: column; gap: 1rem; }
.booking-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(198,151,86,0.2);
  color: var(--white); padding: 0.9rem 1.2rem;
  font-family: var(--sans); font-size: 0.75rem;
  letter-spacing: 0.05em; transition: border-color 0.3s;
}
.booking-input::placeholder { color: rgba(255,255,255,0.45); }
.booking-input:focus { border-color: var(--gold); }
.booking-submit {
  background: var(--gold); color: var(--white); border: none;
  padding: 1rem 2rem; font-family: var(--sans);
  font-size: 0.65rem; letter-spacing: 0.25em;
  text-transform: uppercase; cursor: pointer;
  transition: background 0.3s;
}
.booking-submit:hover { background: var(--white); color: var(--dark); }

/* ── CHI SIAMO ───────────────────────────────────── */
.chi-intro {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8vw; padding: 8rem 6vw; align-items: center;
}
.chi-portrait {
  width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(160deg, #e0d4c6, #c4ae96);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.chi-portrait::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(198,151,86,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,151,86,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.chi-portrait-wm {
  font-family: var(--serif); font-style: italic;
  font-size: 0.75rem; letter-spacing: 0.2em;
  color: rgba(198,151,86,0.4); z-index: 1;
  text-align: center; text-transform: uppercase;
}
.gold-accent-line {
  position: absolute; top: 2rem; left: -1.5rem;
  width: 3px; height: 60%; background: var(--gold);
}
.chi-name {
  font-family: var(--serif); font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 400; color: var(--dark); line-height: 1.1;
  margin-bottom: 0.5rem;
}
.chi-name em { font-style: italic; color: var(--gold); }
.chi-role {
  font-size: 0.65rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 2.5rem;
}
.chi-bio {
  font-size: 0.85rem; line-height: 2; color: var(--mid); margin-bottom: 1.5rem;
}
.chi-bio strong { color: var(--dark); font-weight: 500; }
.valori-section { background: #2D2D2D; padding: 8rem 6vw; }
.valori-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3rem; margin-top: 4rem;
}
.valore-num {
  font-family: var(--serif); font-size: 3rem;
  color: rgba(198,151,86,0.2); font-weight: 400;
  line-height: 1; margin-bottom: 1rem;
}
.valore-title {
  font-family: var(--serif); font-size: 1.3rem;
  color: var(--white); font-weight: 400; margin-bottom: 0.8rem;
}
.valore-title em { font-style: italic; color: var(--gold); }
.valore-desc { font-size: 0.75rem; line-height: 1.9; color: rgba(255,255,255,0.4); }
.formazione-section { padding: 8rem 6vw; background: var(--bg2); }
.timeline { margin-top: 4rem; position: relative; padding-left: 3rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 1px; background: rgba(198,151,86,0.25);
}
.timeline-item { position: relative; margin-bottom: 3rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -3rem; top: 0.3rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); transform: translateX(calc(-50% + 0.5px));
}
.timeline-year {
  font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem;
}
.timeline-title {
  font-family: var(--serif); font-size: 1.1rem;
  color: var(--dark); margin-bottom: 0.3rem;
}
.timeline-sub { font-size: 0.72rem; color: var(--muted); }

/* ── PROGETTI ────────────────────────────────────── */
.filtri-bar {
  padding: 2.5rem 6vw;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  border-bottom: 1px solid rgba(198,151,86,0.12);
}
.filtri-label {
  font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted); margin-right: 0.5rem;
}
.filtro-btn {
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.5rem 1.2rem; border: 1px solid rgba(198,151,86,0.25);
  background: transparent; color: var(--mid); cursor: pointer; transition: all 0.3s;
}
.filtro-btn.active, .filtro-btn:hover {
  background: var(--gold); color: var(--white); border-color: var(--gold);
}
/* ── GRIGLIA PORTFOLIO ─────────────────────────────── */
.progetti-masonry {
  padding: 5rem 6vw 8rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

/* Card link — reset colori default */
.progetto-item {
  position: relative; overflow: hidden;
  display: block; text-decoration: none; color: inherit;
  border-radius: 4px;
}
.progetto-item:visited,
.progetto-item:link { color: inherit; text-decoration: none; }

/* Wrapper immagine — aspect ratio fisso */
.proj-img-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 3/4;
}

/* Immagini reali */
.proj-real-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.progetto-item:hover .proj-real-img { transform: scale(1.05); }

/* Placeholder elegante scuro per progetti senza foto */
.proj-placeholder-dark {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #2D2D2D 0%, #1a1a1a 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.8rem;
  position: relative;
}
.proj-placeholder-dark::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(198,151,86,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,151,86,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.proj-ph-name {
  font-family: var(--serif); font-style: italic;
  font-size: 1.5rem; color: var(--gold);
  z-index: 1; text-align: center; letter-spacing: 0.05em;
}
.proj-ph-sub {
  font-family: var(--sans);
  font-size: 0.55rem; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(198,151,86,0.4); z-index: 1;
}

/* ── Hover 2-step: overlay + testo ──────────────── */
.proj-hover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(20,18,14,0.6) 0%,
    rgba(198,151,86,0.15) 100%
  );
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none; z-index: 2;
}
.progetto-item:hover .proj-hover-overlay { opacity: 1; }

.proj-hover-text {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2rem 1.8rem;
  z-index: 3; pointer-events: none;
}
.proj-hover-title {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400; font-style: italic;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 0.4rem 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s cubic-bezier(0.25,0.46,0.45,0.94) 0.15s,
              transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94) 0.15s;
}
.proj-hover-meta {
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s cubic-bezier(0.25,0.46,0.45,0.94) 0.25s,
              transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94) 0.25s;
}
.progetto-item:hover .proj-hover-title,
.progetto-item:hover .proj-hover-meta {
  opacity: 1; transform: translateY(0);
}
/* Keyboard */
.progetto-item:focus-within .proj-hover-overlay { opacity: 1; }
.progetto-item:focus-within .proj-hover-title,
.progetto-item:focus-within .proj-hover-meta {
  opacity: 1; transform: translateY(0);
}
}

/* ── BLOG ────────────────────────────────────────── */
.blog-featured {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border-bottom: 1px solid rgba(198,151,86,0.12);
}
.featured-img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg,#e0d5c8,#c9b49a);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.featured-img::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(198,151,86,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,151,86,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.featured-wm {
  font-family: var(--serif); font-style: italic;
  font-size: 0.75rem; letter-spacing: 0.2em;
  color: rgba(198,151,86,0.4); z-index: 1;
  text-align: center; text-transform: uppercase;
}
.featured-content {
  padding: 5rem 5vw; display: flex;
  flex-direction: column; justify-content: center;
}
.featured-badge {
  font-size: 0.55rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--white); background: var(--gold);
  padding: 0.3rem 0.8rem; display: inline-block; margin-bottom: 1.5rem;
}
.featured-cat {
  font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.featured-title {
  font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400; color: var(--dark); line-height: 1.2; margin-bottom: 1.5rem;
}
.featured-title em { font-style: italic; }
.featured-excerpt { font-size: 0.8rem; line-height: 2; color: var(--mid); margin-bottom: 2rem; }
.featured-meta {
  font-size: 0.6rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted);
}
.blog-grid {
  padding: 6rem 6vw;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 4rem 3rem;
}

.article-img-wrap { overflow: hidden; margin-bottom: 1.5rem; }
.article-ph {
  aspect-ratio: 3/2; width: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.article-card:hover .article-ph { transform: scale(1.04); }
.article-ph::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(198,151,86,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,151,86,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}
.art-wm {
  font-family: var(--serif); font-style: italic;
  font-size: 0.65rem; letter-spacing: 0.15em;
  color: rgba(198,151,86,0.35); z-index: 1;
  text-align: center; text-transform: uppercase;
}
.art-ph1 { background: linear-gradient(135deg,#ddd3c6,#c4ad96); }
.art-ph2 { background: linear-gradient(160deg,#e5dbd0,#cbb89e); }
.art-ph3 { background: linear-gradient(135deg,#e2d8cc,#ccbb9e); }
.art-ph4 { background: linear-gradient(160deg,#ddd4ca,#c5b4a0); }
.art-ph5 { background: linear-gradient(135deg,#e0d7ce,#c9b8a4); }
.article-cat {
  font-size: 0.55rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem;
}
.article-title {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 400;
  color: var(--dark); line-height: 1.35; margin-bottom: 0.8rem;
  transition: color 0.3s;
}
.article-card:hover .article-title { color: var(--gold); }
.article-excerpt { font-size: 0.72rem; line-height: 1.8; color: var(--muted); margin-bottom: 1rem; }
.article-footer { display: flex; justify-content: space-between; align-items: center; }
.article-date {
  font-size: 0.58rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted);
}
.article-read {
  font-size: 0.58rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); text-decoration: none;
}

/* ── CONTATTI ────────────────────────────────────── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 72px);
}
.contact-left {
  background: #2D2D2D; padding: 8rem 6vw;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.contact-left::before {
  content: '✉'; position: absolute; right: -1rem; bottom: -2rem;
  font-size: 20rem; color: rgba(255,255,255,0.02); line-height: 1;
  pointer-events: none;
}
.contact-tag {
  font-size: 0.6rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 2rem; display: block;
}
.contact-title {
  font-family: var(--serif); font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 400; color: var(--white); line-height: 1.1; margin-bottom: 2rem;
}
.contact-title em { font-style: italic; color: var(--gold); }
.contact-subtitle {
  font-size: 0.78rem; line-height: 2; color: rgba(255,255,255,0.4);
  max-width: 400px; margin-bottom: 4rem;
}
.contact-info-item { margin-bottom: 2rem; }
.contact-info-label {
  font-size: 0.55rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem;
}
.contact-info-value { font-size: 0.82rem; color: rgba(255,255,255,0.7); letter-spacing: 0.05em; }
.contact-info-value a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s; }
.contact-info-value a:hover { color: var(--gold); }
.contact-social { display: flex; gap: 0.8rem; margin-top: 3rem; }
.csocial-link {
  width: 40px; height: 40px; border: 1px solid rgba(198,151,86,0.25);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3); font-size: 0.65rem;
  text-decoration: none; transition: all 0.3s;
}
.csocial-link:hover { border-color: var(--gold); color: var(--gold); }
.contact-right {
  background: var(--bg); padding: 8rem 6vw;
  display: flex; flex-direction: column; justify-content: center;
}
.form-title {
  font-family: var(--serif); font-size: 1.8rem; font-weight: 400;
  color: var(--dark); margin-bottom: 0.5rem;
}
.form-title em { font-style: italic; color: var(--gold); }
.form-sub { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.05em; margin-bottom: 3rem; }
.contact-form { display: flex; flex-direction: column; gap: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 1px; }
.form-group { position: relative; }
.form-input, .form-textarea, .form-select {
  width: 100%; background: var(--white);
  border: none; border-bottom: 1px solid rgba(198,151,86,0.2);
  color: var(--dark); padding: 1.4rem 0;
  font-family: var(--sans); font-size: 0.78rem;
  letter-spacing: 0.05em; transition: border-color 0.3s; display: block;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-bottom-color: var(--gold); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-label {
  display: block; font-size: 0.55rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.5rem; margin-top: 2rem;
}
.form-textarea { resize: none; height: 120px; line-height: 1.7; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C69756' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0 center; cursor: pointer;
}
.form-radio-group { display: flex; gap: 2rem; margin-top: 0.5rem; }
.form-radio-label {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; color: var(--mid); cursor: pointer;
}
.form-radio-label input { accent-color: var(--gold); width: 14px; height: 14px; }
.form-submit {
  background: var(--gold); color: var(--white); border: none;
  padding: 1.2rem 3rem; font-family: var(--sans);
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  cursor: pointer; margin-top: 2.5rem; align-self: flex-start;
  transition: background 0.3s, transform 0.3s;
}
.form-submit:hover { background: var(--dark); transform: translateY(-2px); }
.form-note {
  font-size: 0.6rem; color: var(--muted);
  letter-spacing: 0.05em; margin-top: 1rem; line-height: 1.7;
}
.success-msg {
  display: none; background: var(--dark); color: var(--white);
  padding: 2rem; margin-top: 2rem;
  font-family: var(--serif); font-style: italic;
  font-size: 1.1rem; text-align: center; border-left: 3px solid var(--gold);
}

/* ── RESPONSIVE pagine interne ───────────────────── */
@media (max-width: 900px) {
  .servizio-full { grid-template-columns: 1fr; direction: ltr; }
  .servizio-full:nth-child(even) { direction: ltr; }
  .deliverable-grid { grid-template-columns: 1fr; }
  .chi-intro { grid-template-columns: 1fr; }
  .valori-grid { grid-template-columns: 1fr; gap: 2rem; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-layout { grid-template-columns: 1fr; min-height: auto; }
  .form-row { grid-template-columns: 1fr; }
  .progetti-masonry { grid-template-columns: 1fr 1fr; }
  /* Mobile: overlay + testo sempre visibili */
  .proj-hover-overlay { opacity: 1; }
  .proj-hover-title, .proj-hover-meta {
    opacity: 1; transform: translateY(0); transition: none;
  }
  .proj-hover-text { padding: 1.2rem 1rem; }
  .proj-hover-title { font-size: 1rem; }
}
@media (max-width: 560px) {
  .progetti-masonry { grid-template-columns: 1fr; }
  .page-hero { padding: 10rem 6vw 5rem; }
}


/* ═══════════════════════════════════════════════════
   MENU MOBILE — hamburger + overlay
   ═══════════════════════════════════════════════════ */

/* Hamburger button — visibile solo su mobile */
.nav-hamburger {
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  width: 44px; height: 44px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  z-index: 10000;
  position: relative;
  display: none; /* nascosto su desktop, flex su mobile via media query */
}
.nav-hamburger span {
  display: block;
  height: 1px;
  background: var(--dark);
  transition: width 0.3s var(--ease), transform 0.4s var(--ease), opacity 0.3s;
}
.nav-hamburger span:nth-child(1) { width: 28px; }
.nav-hamburger span:nth-child(2) { width: 20px; }
.nav-hamburger span:nth-child(3) { width: 24px; }

/* Stato aperto */
.nav-hamburger.open span:nth-child(1) { width: 24px; transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { width: 24px; transform: translateY(-6px) rotate(-45deg); }

/* Nav — linee scure su sfondo bianco (sempre) */
.nav-hamburger span { background: var(--dark); }
nav.scrolled .nav-hamburger span { background: var(--dark); }

/* Overlay mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1050;
  background: #2D2D2D;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 6rem 8vw 4rem;
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}

/* Linea decorativa oro */
.mobile-menu::before {
  content: '';
  position: absolute; left: 8vw; top: 6rem;
  width: 32px; height: 1px;
  background: var(--gold);
}

/* Logo dentro il menu */
.mobile-menu-logo {
  position: absolute; top: 0; left: 0; right: 0;
  height: 72px;
  display: flex; align-items: center;
  padding: 0 8vw;
  border-bottom: 1px solid rgba(198,151,86,0.12);
}
.mobile-menu-logo a {
  font-family: var(--serif);
  font-size: 1.1rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--white);
  text-decoration: none;
}
.mobile-menu-logo a span { color: var(--gold); }

/* Link di navigazione */
.mobile-nav-links {
  list-style: none; width: 100%;
}
.mobile-nav-links li {
  overflow: hidden;
  border-bottom: 1px solid rgba(198,151,86,0.08);
}
.mobile-nav-links li:first-child {
  border-top: 1px solid rgba(198,151,86,0.08);
}
.mobile-nav-links a {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 400; font-style: italic;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  padding: 1rem 0;
  letter-spacing: 0.02em;
  transition: color 0.3s, padding-left 0.3s var(--ease);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease), color 0.3s, padding-left 0.3s;
}
.mobile-menu.open .mobile-nav-links a {
  transform: translateY(0);
}
/* Stagger animazione link */
.mobile-nav-links li:nth-child(1) a { transition-delay: 0.1s; }
.mobile-nav-links li:nth-child(2) a { transition-delay: 0.15s; }
.mobile-nav-links li:nth-child(3) a { transition-delay: 0.2s; }
.mobile-nav-links li:nth-child(4) a { transition-delay: 0.25s; }
.mobile-nav-links li:nth-child(5) a { transition-delay: 0.3s; }

.mobile-nav-links a:hover,
.mobile-nav-links a.active { color: var(--white); padding-left: 0.5rem; }

/* CTA mobile */
.mobile-menu-cta {
  margin-top: 3rem;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s var(--ease) 0.35s, opacity 0.5s 0.35s;
}
.mobile-menu.open .mobile-menu-cta {
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu-cta a {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.65rem; letter-spacing: 0.25em;
  text-transform: uppercase;
  background: var(--gold-text); color: var(--white);
  padding: 1rem 2.5rem; text-decoration: none;
  transition: background 0.3s;
}
.mobile-menu-cta a:hover { background: var(--white); color: var(--dark); }

/* Social links in fondo */
.mobile-menu-social {
  position: absolute; bottom: 3rem; left: 8vw;
  display: flex; gap: 1rem;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.5s var(--ease) 0.4s, opacity 0.5s 0.4s;
}
.mobile-menu.open .mobile-menu-social { transform: translateY(0); opacity: 1; }
.mobile-menu-social a {
  font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  text-decoration: none; transition: color 0.3s;
}
.mobile-menu-social a:hover { color: var(--gold); }

/* Body lock quando menu aperto */
body.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  nav {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 1px 0 rgba(198,151,86,0.12);
  }
}

/* ── Cursor (solo mouse preciso, solo desktop) ── */
@media (pointer: fine) and (min-width: 901px) {
  body { cursor: none; }
  #cursor-dot {
    position: fixed; top: 0; left: 0;
    width: 6px; height: 6px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
  }
  #cursor-ring {
    position: fixed; top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.6;
    transform: translate(-50%, -50%);
  }
  body.cursor-hover #cursor-ring {
    width: 56px; height: 56px;
    opacity: 1;
  }
}

/* Su mobile e touch: cursor nascosto */
@media (max-width: 900px) {
  #cursor-dot, #cursor-ring { display: none !important; }
  body { cursor: auto !important; }
}

/* ═══════════════════════════════════════════════
   CARD PROGETTI — effetti pre-hover
   ═══════════════════════════════════════════════ */

/* Vignette elegante sempre visibile */
.progetto-card {
  position: relative; overflow: hidden; cursor: none;
}
.progetto-card::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(14,14,14,0.55) 100%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s var(--ease);
}
.progetto-card:hover::after {
  opacity: 0;
}

/* Linea oro in basso — sempre visibile, si espande all'hover */
.progetto-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 60px; height: 3px;
  background: var(--gold);
  z-index: 3;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.progetto-card:hover::before {
  width: 100%;
}

/* Foto — partenza leggermente scalata + desaturata */
.progetto-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(0.75) brightness(0.94);
  transition:
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.6s var(--ease);
  display: block;
}
.progetto-card:hover .progetto-img {
  transform: scale(1.08);
  filter: saturate(1.05) brightness(1.02);
}

/* Numero progetto in filigrana — oro, sempre visibile */
.progetto-num-filigrana {
  position: absolute;
  top: 1.2rem; right: 1.4rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 400;
  color: rgba(198, 151, 86, 0.45);
  line-height: 1;
  z-index: 2;
  pointer-events: none;
  letter-spacing: -0.02em;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.progetto-card:hover .progetto-num-filigrana {
  opacity: 0;
  transform: translateY(-8px);
}


/* ── ACCESSIBILITA ────────────────────────────────── */

/* Skip to content */
.skip-link {
  position: absolute; top: -100%; left: 50%;
  transform: translateX(-50%);
  background: var(--gold-text); color: var(--white);
  padding: 0.8rem 2rem; font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: none; z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0.5rem;
}

/* Focus visible */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.form-input:focus-visible,
.form-textarea:focus-visible,
.form-select:focus-visible,
.booking-input:focus-visible {
  outline: none;
  border-bottom-color: var(--gold);
  box-shadow: 0 2px 0 0 var(--gold);
}
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}
.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.filtro-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Progetti overlay keyboard accessible (homepage cards) */
.progetto-card:focus-within .progetto-overlay { opacity: 1; }
.progetto-card:focus-within .progetto-info { transform: translateY(0); }

/* Mobile CTA fixed button */
.mobile-cta-fixed {
  display: none;
}
@media (max-width: 900px) {
  .mobile-cta-fixed {
    display: block;
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 999;
    background: var(--gold-text);
    text-align: center;
    padding: 1rem;
  }
  .mobile-cta-fixed a {
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-decoration: none;
  }
  footer { padding-bottom: 5rem; }
}

/* Gold on dark backgrounds stays bright */
.cta-banner .section-tag,
.stats .section-tag { color: var(--gold); }


/* ═══════════════════════════════════════════════════
   PAGINA SINGOLO PROGETTO
   ═══════════════════════════════════════════════════ */

/* ── HERO ─────────────────────────────────────────── */
.prj-hero {
  min-height: 100vh;
  background: #2D2D2D;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 0 6vw 6rem;
  position: relative; overflow: hidden;
}
.prj-hero::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 800px; height: 800px;
  border: 1px solid rgba(198,151,86,0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.prj-hero::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 600px; height: 600px;
  border: 1px solid rgba(198,151,86,0.05);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.prj-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Gradient overlay dal basso — testo leggibile su foto */
.prj-hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(14,14,14,0.85) 0%,
    rgba(14,14,14,0.5) 35%,
    rgba(14,14,14,0.15) 65%,
    rgba(14,14,14,0.3) 100%
  );
  z-index: 0;
}
.prj-hero-content { position: relative; z-index: 1; }
.prj-hero-tag {
  font-family: var(--sans);
  font-size: 0.6rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 2rem; display: block;
}
.prj-hero-title {
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 400; color: var(--white);
  line-height: 0.95; letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.prj-hero-sub {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--gold); letter-spacing: -0.01em;
}
.prj-hero-scroll {
  position: absolute; bottom: 2.5rem; right: 6vw;
  display: flex; align-items: center; gap: 1rem;
}

/* ── OVERVIEW: Slider + Specs + Cerchi sfondo ─────── */
.prj-overview {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  background: var(--bg);
}

/* Cerchi concentrici decorativi — asimmetrici, debordanti */
.prj-circles-bg {
  position: absolute;
  top: 50%; left: 22%;
  transform: translateY(-50%);
  width: 0; height: 0;
  pointer-events: none;
  z-index: 0;
}
.circle-bg {
  position: absolute;
  border: 1px solid #C69756;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: circleReveal 1.2s var(--ease) forwards;
}
.circle-bg-1 { width: 1040px; height: 1040px; animation-delay: 0.1s; }
.circle-bg-2 { width: 900px;  height: 900px;  animation-delay: 0.18s; border-color: rgba(198,151,86,0.8); }
.circle-bg-3 { width: 780px;  height: 780px;  animation-delay: 0.26s; border-color: rgba(198,151,86,0.6); }
.circle-bg-4 { width: 660px;  height: 660px;  animation-delay: 0.34s; border-color: rgba(198,151,86,0.45); }
.circle-bg-5 { width: 540px;  height: 540px;  animation-delay: 0.42s; border-color: rgba(198,151,86,0.35); }
.circle-bg-6 { width: 420px;  height: 420px;  animation-delay: 0.5s;  border-color: rgba(198,151,86,0.25); }
.circle-bg-7 { width: 310px;  height: 310px;  animation-delay: 0.58s; border-color: rgba(198,151,86,0.18); }
.circle-bg-8 { width: 200px;  height: 200px;  animation-delay: 0.66s; border-color: rgba(198,151,86,0.12); }
.circle-bg-9 { width: 100px;  height: 100px;  animation-delay: 0.74s; border-color: rgba(198,151,86,0.08); }
.circle-dot {
  position: absolute;
  width: 36px; height: 36px;
  background: #C69756;
  border-radius: 50%;
  top: -280px; left: 400px;
  opacity: 0;
  animation: circleReveal 0.8s var(--ease) 0.9s forwards;
}

@keyframes circleReveal {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Grid 2 colonne */
.prj-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
  z-index: 1;
}

/* Sinistra: Slider */
.prj-overview-left {
  padding: 6rem 3rem 6rem 6vw;
}

/* Destra: Specs + Descrizione */
.prj-overview-right {
  padding: 7rem 6vw 7rem 3rem;
  display: flex; flex-direction: column;
  justify-content: center;
}
.prj-specs-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 400; color: var(--dark);
  line-height: 1.08; margin-bottom: 3rem;
  letter-spacing: -0.02em;
}
.prj-specs-title em { font-style: italic; color: var(--gold); }

/* Box compatto specifiche (stile card come vecchio sito) */
.prj-specs-grid {
  background: rgba(245,234,214,0.3);
  border: 1px solid rgba(198,151,86,0.15);
  border-radius: 6px;
  padding: 1.6rem 2rem;
  display: flex; flex-direction: column; gap: 0;
}
.prj-spec {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 0.5rem 0;
}
.prj-spec-label {
  font-family: var(--sans);
  font-size: 0.7rem; letter-spacing: 0.15em;
  color: #26262b;
  min-width: 110px; flex-shrink: 0;
}
.prj-spec-value {
  font-family: var(--sans);
  font-size: 0.82rem; letter-spacing: 0.05em;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
}

/* Pallino separatore oro — grande e impattante */
.prj-gold-dot {
  width: 22px; height: 22px;
  background: #C69756;
  border-radius: 50%;
  margin: 3rem 0;
  flex-shrink: 0;
}

/* Descrizione block */
.prj-desc-block p {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.75; color: var(--mid);
  letter-spacing: 0;
  margin-bottom: 1rem;
  font-weight: 400;
}
.prj-desc-block p:last-child { margin-bottom: 0; }
.prj-desc-block em { font-style: italic; color: var(--gold); }

/* Instagram link */
.prj-ig-link {
  margin-top: 2.5rem;
  display: flex; align-items: flex-start; gap: 0.8rem;
}
.prj-ig-plus {
  font-family: var(--serif);
  font-size: 1.5rem; line-height: 1;
  color: var(--gold);
  flex-shrink: 0;
}
.prj-ig-link a {
  font-size: 0.72rem; letter-spacing: 0.05em;
  color: var(--mid); text-decoration: none;
  line-height: 1.7;
  transition: color 0.3s;
}
.prj-ig-link a:hover { color: var(--gold); }

/* ── SLIDER ───────────────────────────────────────── */
.prj-slider {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}
/* Fade slider — niente scroll orizzontale */
.prj-slider-track {
  position: relative;
  aspect-ratio: 4/5;
}
.prj-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  overflow: hidden;
}
.prj-slide.active {
  opacity: 1; z-index: 1;
}
.prj-slide-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative;
}
.prj-slide-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(198,151,86,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,151,86,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.prj-slide-wm {
  font-family: var(--serif); font-style: italic;
  font-size: 0.85rem; letter-spacing: 0.2em;
  color: rgba(198,151,86,0.4);
  z-index: 1; text-transform: uppercase; text-align: center;
}
.sl-ph1 { background: linear-gradient(135deg, #e0d5c8, #c9b99f); }
.sl-ph2 { background: linear-gradient(160deg, #d8cfc5, #bfb09a); }
.sl-ph3 { background: linear-gradient(135deg, #e5ddd3, #cfc0aa); }
.sl-ph4 { background: linear-gradient(160deg, #dbd0c4, #c4b09c); }

.prj-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.prj-slider-arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(198,151,86,0.2);
  color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  transition: background 0.3s, border-color 0.3s;
}
.prj-slider-arrow:hover {
  background: var(--gold-text); border-color: var(--gold-text);
  color: var(--white);
}
.prj-slider-prev { left: 0.8rem; }
.prj-slider-next { right: 0.8rem; }
.prj-slider-dots {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0.5rem; padding: 1.2rem 0 0;
  max-width: 100%; overflow: hidden;
}
.prj-slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(198,151,86,0.25);
  border: none; cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.prj-slider-dot.active {
  background: var(--gold); transform: scale(1.3);
}

/* ── FEATURES ─────────────────────────────────────── */
.prj-features {
  padding: 8rem 6vw;
  background: var(--bg2);
}
.prj-features-header { margin-bottom: 4rem; }
.prj-features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(198,151,86,0.12);
}
.prj-feature {
  background: var(--white);
  padding: 2.5rem 2rem; text-align: center;
}
.prj-feature-icon {
  font-size: 1.5rem; margin-bottom: 1rem;
  color: var(--gold);
}
.prj-feature-text {
  font-size: 0.82rem; line-height: 1.7; color: var(--mid);
}

/* ── NAV PROGETTI ─────────────────────────────────── */
.prj-nav {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 3rem 6vw;
  border-top: 1px solid rgba(198,151,86,0.12);
  background: var(--bg);
}
.prj-nav a {
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid); text-decoration: none;
  transition: color 0.3s;
}
.prj-nav a:hover { color: var(--gold); }
.prj-nav-all {
  font-size: 0.6rem !important;
  color: var(--gold-text) !important;
  border: 1px solid rgba(198,151,86,0.3);
  padding: 0.5rem 1.5rem;
}
.prj-nav-all:hover {
  background: var(--gold-text); color: var(--white) !important;
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .prj-hero { min-height: 70vh; padding: 0 6vw 4rem; }
  .prj-hero::before { width: 400px; height: 400px; }
  .prj-hero::after { width: 300px; height: 300px; }
  .prj-hero-scroll { display: none; }

  .prj-overview-grid { grid-template-columns: 1fr; }
  .prj-overview-left { padding: 4rem 6vw 2rem; }
  .prj-overview-right { padding: 2rem 6vw 5rem; }
  .prj-specs-grid { padding: 1.2rem 1.5rem; }

  .prj-circles-bg { left: 50%; top: 15%; }
  .circle-bg-1 { width: 600px; height: 600px; }
  .circle-bg-2 { width: 520px; height: 520px; }
  .circle-bg-3 { width: 440px; height: 440px; }
  .circle-bg-4 { width: 360px; height: 360px; }
  .circle-bg-5 { width: 280px; height: 280px; }
  .circle-bg-6 { width: 200px; height: 200px; }
  .circle-bg-7 { width: 140px; height: 140px; }
  .circle-bg-8 { width: 80px;  height: 80px; }
  .circle-bg-9 { width: 40px;  height: 40px; }
  .circle-dot { top: -160px; left: 220px; }

  .prj-slider-arrow { width: 36px; height: 36px; }
  .prj-slider-prev { left: 0.5rem; }
  .prj-slider-next { right: 0.5rem; }
  .prj-slider-track { aspect-ratio: 3/4; }

  .prj-features-grid { grid-template-columns: 1fr 1fr; }
  .prj-nav { flex-direction: column; gap: 1.5rem; text-align: center; }
}
@media (max-width: 560px) {
  .prj-features-grid { grid-template-columns: 1fr; }
  .prj-spec { flex-direction: column; gap: 0.3rem; }
  .prj-slider-track { aspect-ratio: 1/1; }
}

/* ═══════════════════════════════════════════════════
   PAGINA SINGOLO ARTICOLO
   ═══════════════════════════════════════════════════ */

.art-page { background: var(--bg); }

/* Header articolo */
.art-header {
  background: #2D2D2D;
  padding: 14rem 6vw 5rem;
  position: relative; overflow: hidden;
}
.art-header::before {
  content: 'BLOG';
  position: absolute; right: 4vw; bottom: -1rem;
  font-family: var(--serif);
  font-size: clamp(8rem, 18vw, 16rem);
  color: rgba(255,255,255,0.02);
  line-height: 1; pointer-events: none;
}
.art-header-inner { max-width: 800px; }
.art-back {
  font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  display: inline-block; margin-bottom: 2rem;
  transition: color 0.3s;
}
.art-back:hover { color: var(--gold); }
.art-cat-tag {
  font-size: 0.6rem; letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  display: block; margin-bottom: 1.5rem;
}
.art-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400; color: var(--white);
  line-height: 1.12; margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.art-meta-line {
  display: flex; gap: 0.6rem;
  font-size: 0.65rem; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
}

/* Hero image placeholder */
.art-hero-img {
  max-width: 900px; margin: -3rem auto 0;
  padding: 0 6vw;
  position: relative; z-index: 1;
}
.art-hero-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e0d5c8, #c9b49a);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.art-hero-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(198,151,86,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,151,86,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.art-hero-wm {
  font-family: var(--serif); font-style: italic;
  font-size: 0.8rem; letter-spacing: 0.2em;
  color: rgba(198,151,86,0.4);
  text-transform: uppercase; z-index: 1;
}

/* Body articolo */
.art-body {
  max-width: 700px; margin: 0 auto;
  padding: 4rem 6vw 3rem;
}
.art-body p {
  font-family: var(--serif);
  font-size: 1.1rem; line-height: 1.9;
  color: var(--dark); margin-bottom: 1.5rem;
}
.art-body p:last-child { margin-bottom: 0; }
.art-body h2 {
  font-family: var(--serif);
  font-size: 1.6rem; font-weight: 400;
  color: var(--dark); margin: 3rem 0 1rem;
  line-height: 1.3;
}
.art-body h2 em { font-style: italic; color: var(--gold); }
.art-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--mid);
}
.art-body strong { color: var(--dark); font-weight: 600; }
.art-body em { color: var(--gold); }
.art-body ul, .art-body ol {
  margin: 1.5rem 0; padding-left: 1.5rem;
}
.art-body li {
  font-family: var(--serif);
  font-size: 1.05rem; line-height: 1.9;
  color: var(--dark); margin-bottom: 0.5rem;
}
/* Cover images nel blog */
.article-cover-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.article-card:hover .article-cover-img {
  transform: scale(1.04);
}
.art-hero-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Immagini inline nel contenuto articolo */
.art-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.5rem 0;
  display: block;
}


/* Autore */
.art-author {
  max-width: 700px; margin: 0 auto;
  padding: 2rem 6vw 3rem;
  text-align: center;
}
.art-author-dot {
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  margin: 0 auto 2rem;
}
.art-author-name {
  font-family: var(--serif);
  font-size: 1.1rem; color: var(--dark);
  margin-bottom: 0.3rem;
}
.art-author-role {
  font-size: 0.65rem; letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Condividi */
.art-share {
  max-width: 700px; margin: 0 auto;
  padding: 0 6vw 4rem;
  display: flex; align-items: center; gap: 1rem;
}
.art-share-label {
  font-size: 0.6rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--muted);
}
.art-share-links { display: flex; gap: 0.5rem; }
.art-share-links a {
  width: 32px; height: 32px;
  border: 1px solid rgba(198,151,86,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: var(--mid);
  text-decoration: none;
  transition: all 0.3s;
}
.art-share-links a:hover {
  border-color: var(--gold); color: var(--gold);
}

/* Nav articoli */
.art-nav {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 3rem 6vw;
  border-top: 1px solid rgba(198,151,86,0.12);
  background: var(--bg);
}
.art-nav a {
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid); text-decoration: none;
  transition: color 0.3s;
}
.art-nav a:hover { color: var(--gold); }

/* Responsive */
@media (max-width: 900px) {
  .art-header { padding: 10rem 6vw 4rem; }
  .art-hero-img { margin-top: -2rem; }
  .art-nav { flex-direction: column; gap: 1.5rem; text-align: center; }
}

/* ── Blog card links ──────────────────────────────── */
.article-card-link {
  text-decoration: none; color: inherit; display: block;
}
.article-card-link:visited,
.article-card-link:link { color: inherit; text-decoration: none; }
.blog-featured-link {
  text-decoration: none; color: inherit; display: block;
}
.blog-featured-link:visited,
.blog-featured-link:link { color: inherit; text-decoration: none; }


/* ═══════════════════════════════════════════════════
   FIX MOBILE COMPLETO — 07/04/2026
   ═══════════════════════════════════════════════════ */

/* ── LANGUAGE SWITCHER: compatto accanto all'hamburger su mobile ── */
@media (max-width: 900px) {
  nav .lang-switcher {
    display: flex !important;
    margin-left: auto;
    margin-right: 0.3rem;
    gap: 0.2rem;
  }
  nav .lang-switcher .lang-btn {
    font-size: 0.5rem;
    padding: 0.15rem 0.2rem;
  }
  nav .lang-switcher .lang-sep {
    font-size: 0.5rem;
  }
}

/* ── Language switcher dentro il mobile menu ── */
.mobile-menu-lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s var(--ease) 0.3s, opacity 0.5s 0.3s;
}
.mobile-menu.open .mobile-menu-lang {
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu-lang .lang-btn {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  transition: color 0.3s;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-lang .lang-btn:hover,
.mobile-menu-lang .lang-btn.lang-active {
  color: var(--gold);
}
.mobile-menu-lang .lang-active {
  cursor: default;
  pointer-events: none;
}
.mobile-menu-lang .lang-sep {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.2);
}

/* ── NAV MOBILE: hamburger sempre z-index alto, visibile su sfondo chiaro e scuro ── */
@media (max-width: 900px) {
  /* Quando open, hamburger X diventa dorata */
  nav .nav-hamburger.open span,
  nav:not(.scrolled) .nav-hamburger.open span {
    background: var(--gold) !important;
  }
}

/* ── HERO MOBILE ── */
@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: auto;
  }
  .hero-left {
    padding: 7rem 6vw 3rem;
    order: 2;
  }
  .hero-right {
    order: 1;
  }
  .hero-title {
    font-size: clamp(2.4rem, 8vw, 3.5rem);
  }
  .hero-subtitle {
    font-size: 0.75rem;
    max-width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .hero-scroll-hint {
    display: none;
  }
}

/* ── CARD E GRID A 375px ── */
@media (max-width: 600px) {
  .servizi-grid {
    grid-template-columns: 1fr !important;
  }
  .progetti-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
    padding: 0 4vw;
  }
  .progetto-card {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
  .servizi-grid {
    grid-template-columns: 1fr !important;
  }
  .pub-grid {
    grid-template-columns: 1fr !important;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 3rem 6vw;
  }
  .stat-num {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }
  .blog-grid {
    grid-template-columns: 1fr !important;
    padding: 3rem 4vw;
    gap: 2.5rem;
  }
  .blog-featured {
    grid-template-columns: 1fr !important;
  }
  .valori-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── FOOTER MOBILE ── */
@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    padding: 3rem 6vw;
  }
  .footer-col h4 {
    font-size: 0.75rem;
  }
  .footer-col ul li a {
    font-size: 0.8rem;
    padding: 0.3rem 0;
    display: inline-block;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1.5rem 6vw 2rem;
  }
}

/* ── FORM MOBILE: touch targets e usabilita' ── */
@media (max-width: 900px) {
  .form-input,
  .form-textarea,
  .form-select,
  .preventivo-input,
  .preventivo-select {
    font-size: 16px !important; /* Previene zoom su iOS */
    padding: 1rem 0.5rem;
    min-height: 48px;
  }
  .form-submit,
  .preventivo-submit {
    width: 100%;
    min-height: 48px;
    font-size: 0.7rem;
    padding: 1rem;
  }
  .form-radio-group {
    flex-direction: column;
    gap: 1rem;
  }
  .form-radio-label {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .form-radio-label input {
    width: 20px;
    height: 20px;
  }
  .form-row {
    grid-template-columns: 1fr !important;
  }
  .contact-layout {
    grid-template-columns: 1fr !important;
  }
  .contact-left {
    padding: 6rem 6vw 4rem;
  }
  .contact-right {
    padding: 4rem 6vw;
  }
}

/* ── CALENDLY MOBILE: no overflow ── */
@media (max-width: 900px) {
  .calendly-inline-widget {
    min-width: 100% !important;
    width: 100% !important;
    overflow: hidden;
  }
  .prenota-col-calendly,
  .preventivo-col-calendly {
    padding: 1rem;
    overflow: hidden;
  }
  .prenota-grid,
  .preventivo-grid {
    grid-template-columns: 1fr !important;
  }
  .prenota-col-text {
    padding: 2.5rem;
  }
}

/* ── TIPOGRAFIA MOBILE: minimo 14px body ── */
@media (max-width: 600px) {
  body {
    font-size: 15px;
  }
  .chi-bio,
  .servizio-desc,
  .servizio-full-body,
  .prenota-body,
  .contact-subtitle,
  .preventivo-subtitle,
  .featured-excerpt,
  .article-excerpt,
  .privacy-content p,
  .valore-desc,
  .form-sub,
  .form-note {
    font-size: 0.88rem;
    line-height: 1.8;
  }
  .servizio-full-list li,
  .prenota-list li,
  .privacy-content ul li {
    font-size: 0.82rem;
  }
  .page-hero {
    padding: 10rem 6vw 4rem;
  }
  .page-hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .section {
    padding: 4rem 4vw;
  }
  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .cta-banner {
    padding: 4rem 6vw;
  }
  .cta-text {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }
}

/* ── IMMAGINI: no overflow orizzontale ── */
img {
  max-width: 100%;
  height: auto;
}
.hero-image {
  max-width: 100%;
}
.progetto-img,
.proj-real-img {
  max-width: 100%;
  height: auto;
}

/* ── OVERFLOW PREVENZIONE GLOBALE ── */
html, body {
  overflow-x: hidden;
}
main {
  overflow-x: hidden;
}

/* ── SERVIZI FULL: fix mobile ── */
@media (max-width: 900px) {
  .servizio-full {
    grid-template-columns: 1fr !important;
    direction: ltr !important;
    padding: 4rem 6vw;
    gap: 3rem;
  }
  .servizio-full:nth-child(even) {
    direction: ltr !important;
  }
  .servizio-full-num {
    font-size: 3rem;
  }
  .deliverable-grid {
    grid-template-columns: 1fr !important;
  }
  .servizio-accent-box {
    position: relative;
    bottom: auto;
    right: auto;
    display: inline-block;
    margin-top: 1.5rem;
  }
}

/* ── PRENOTA SECTION MOBILE ── */
@media (max-width: 600px) {
  .prenota-section {
    padding: 4rem 4vw;
  }
  .prenota-col-text {
    padding: 2rem;
  }
  .prenota-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }
}

/* ── FILTRI BAR MOBILE (progetti) ── */
@media (max-width: 600px) {
  .filtri-bar {
    padding: 1.5rem 4vw;
    gap: 0.5rem;
  }
  .filtro-btn {
    font-size: 0.55rem;
    padding: 0.5rem 0.8rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ── MOBILE CTA FIXED: non sovrapporre al contenuto ── */
@media (max-width: 900px) {
  main {
    padding-bottom: 52px;
  }
  .mobile-cta-fixed {
    min-height: 52px;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* ── CONTACT SOCIAL MOBILE ── */
@media (max-width: 600px) {
  .contact-social {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .csocial-link {
    width: 44px;
    height: 44px;
  }
}

/* ── TIMELINE MOBILE ── */
@media (max-width: 600px) {
  .timeline {
    padding-left: 2rem;
  }
  .timeline-item::before {
    left: -2rem;
  }
}

/* ── NEWSLETTER MOBILE ── */
@media (max-width: 600px) {
  .newsletter-section {
    padding: 4rem 4vw;
  }
  .newsletter-field {
    flex-direction: column;
  }
  .newsletter-form input[type="email"] {
    border-right: 1px solid rgba(198,151,86,0.3);
    border-bottom: none;
    min-height: 48px;
    font-size: 16px;
  }
  .newsletter-form button {
    width: 100%;
    min-height: 48px;
  }
}

/* ── PROGETTI MASONRY MOBILE ── */
@media (max-width: 600px) {
  .progetti-masonry {
    columns: 1 !important;
    padding: 2rem 4vw;
  }
  .progetto-item {
    margin-bottom: 1.5rem;
    break-inside: avoid;
  }
}

/* ── ARTICOLO SINGOLO MOBILE ── */
@media (max-width: 600px) {
  .art-header {
    padding: 8rem 4vw 3rem;
  }
  .art-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .art-body {
    padding: 3rem 4vw 2rem;
  }
  .art-body p {
    font-size: 1rem;
  }
  .art-body h2 {
    font-size: 1.3rem;
  }
}

/* ═══════════════════════════════════════════════════
   FIX HEADER MOBILE — 07/04/2026
   Su mobile: sempre sfondo bianco solido, testi scuri
   ═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Nav sempre bianca su mobile — no glassmorphism */
  nav,
  nav:not(.scrolled) {
    background: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 1px 0 rgba(198,151,86,0.15);
    transition: none !important;
  }

  /* Logo sempre scuro su mobile */
  .nav-logo,
  nav:not(.scrolled) .nav-logo {
    color: var(--dark) !important;
    transition: none !important;
  }

  /* Hamburger linee sempre scure su mobile */
  .nav-hamburger span,
  nav:not(.scrolled) .nav-hamburger span {
    background: var(--dark) !important;
    transition: width 0.3s var(--ease), transform 0.4s var(--ease), opacity 0.3s !important;
  }

  /* Hamburger aperto: X dorata — specificità alta per vincere su nav:not(.scrolled) */
  nav .nav-hamburger.open span,
  nav:not(.scrolled) .nav-hamburger.open span {
    background: var(--gold) !important;
  }
}

/* ═══════════════════════════════════════════════════
   PORTFOLIO ALTERNATO — layout Tilda-style
   ═══════════════════════════════════════════════════ */

/* Contenitore lista */
.portfolio-list {
  padding: 5rem 6vw;
  max-width: 1280px;
  margin: 0 auto;
}

/* Singola riga progetto */
.portfolio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.portfolio-row.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Righe pari: foto a sinistra, testo a destra */
.portfolio-row:nth-child(even) .portfolio-img-col { order: -1; }

/* Colonna immagine */
.portfolio-img-col {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Cornice/ombra ruotata dietro la foto */
.portfolio-frame {
  position: relative;
  display: inline-block;
}
.portfolio-frame::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: #e8e8e8;
  border-radius: 2px;
  transform: rotate(2.5deg);
  z-index: 0;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.portfolio-row:nth-child(even) .portfolio-frame::before {
  transform: rotate(-2deg);
}
.portfolio-frame:hover::before {
  transform: rotate(0.5deg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.portfolio-row:nth-child(even) .portfolio-frame:hover::before {
  transform: rotate(-0.5deg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* Immagine */
.portfolio-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.portfolio-frame:hover img {
  transform: scale(1.02);
}

/* Placeholder per progetti senza foto */
.portfolio-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.portfolio-placeholder .proj-ph-name {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold);
  font-style: italic;
}
.portfolio-placeholder .proj-ph-sub {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* Colonna testo */
.portfolio-text-col {
  padding: 1rem 0;
}
.portfolio-tag {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.portfolio-name {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}
.portfolio-subtitle {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 1.2rem;
}
.portfolio-desc {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--mid);
  margin-bottom: 1.8rem;
  max-width: 440px;
}
.portfolio-link {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(198,151,86,0.3);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.portfolio-link:hover {
  color: var(--dark);
  border-color: var(--dark);
}
.portfolio-meta {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.5rem;
}

/* Separatore tra righe */
.portfolio-row + .portfolio-row {
  padding-top: 2rem;
  border-top: 1px solid rgba(198,151,86,0.08);
}

/* ── PORTFOLIO MOBILE ── */
@media (max-width: 900px) {
  .portfolio-list {
    padding: 3rem 5vw;
  }
  .portfolio-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
  }
  /* Su mobile: sempre foto sopra, testo sotto */
  .portfolio-img-col { order: -1 !important; }
  .portfolio-frame::before {
    inset: -5px;
    transform: rotate(1.5deg);
  }
  .portfolio-row:nth-child(even) .portfolio-frame::before {
    transform: rotate(-1.5deg);
  }
  .portfolio-frame img,
  .portfolio-placeholder {
    max-width: 100%;
  }
  .portfolio-desc {
    max-width: 100%;
  }
}

/* Portfolio rows: supporto per reveal.visible (main.js) oltre che revealed */
.portfolio-row.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   COOKIE CONSENT BANNER
   ═══════════════════════════════════════════════════ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.5rem 4vw;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#cookie-banner.cb-visible {
  transform: translateY(0);
}
.cb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cb-title {
  font-family: var(--serif);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.4rem;
}
.cb-desc {
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}
.cb-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(198,151,86,0.3);
}
.cb-link:hover {
  border-color: var(--gold);
}
.cb-actions {
  display: flex;
  gap: 0.8rem;
  flex-shrink: 0;
}
.cb-btn {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  white-space: nowrap;
}
.cb-btn-necessary {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.cb-btn-necessary:hover {
  background: rgba(198,151,86,0.1);
}
.cb-btn-accept {
  background: var(--gold-text);
  color: #fff;
  border: 1px solid var(--gold-text);
}
.cb-btn-accept:hover {
  background: var(--gold);
  border-color: var(--gold);
}

/* Mobile cookie banner */
@media (max-width: 700px) {
  .cb-inner {
    flex-direction: column;
    text-align: center;
  }
  .cb-actions {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════
   HOMEPAGE PORTFOLIO GRID
   ═══════════════════════════════════════════════════ */

/* Section */
.hp-section {
  background: #faf8f5;
  padding: 7rem 6vw 5rem;
}
.hp-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.hp-section-tag {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-text);
  display: block;
  margin-bottom: 1rem;
}
.hp-section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.1;
}
.hp-section-title em {
  font-style: italic;
  color: var(--gold);
}
.hp-section-line {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto 0;
}

/* Grid */
.hp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1300px;
  margin: 0 auto;
}

/* Card */
.hp-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  display: block;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 3/4;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  /* Stagger animation */
  opacity: 0;
  transform: translateY(24px);
}
.hp-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.hp-card:nth-child(1) { transition-delay: 0s; }
.hp-card:nth-child(2) { transition-delay: 0.1s; }
.hp-card:nth-child(3) { transition-delay: 0.2s; }
.hp-card:nth-child(4) { transition-delay: 0.3s; }
.hp-card:nth-child(5) { transition-delay: 0.4s; }
.hp-card:nth-child(6) { transition-delay: 0.5s; }
.hp-card:nth-child(7) { transition-delay: 0.6s; }
.hp-card:nth-child(8) { transition-delay: 0.7s; }
.hp-card:nth-child(9) { transition-delay: 0.8s; }

/* Hover */
.hp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Real image */
.hp-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.hp-card:hover .hp-card-img {
  transform: scale(1.02);
}

/* Placeholder — light elegant tones */
.hp-card-ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.hp-ph-1 { background: linear-gradient(145deg, #e8e0d4, #d4c9ba); }
.hp-ph-2 { background: linear-gradient(145deg, #ddd6cc, #c8bfb0); }
.hp-ph-3 { background: linear-gradient(145deg, #e2dbd0, #cfc5b5); }
.hp-ph-4 { background: linear-gradient(145deg, #d9d2c7, #c4baa9); }
.hp-ph-5 { background: linear-gradient(145deg, #e5ddd2, #d2c8b8); }
.hp-ph-6 { background: linear-gradient(145deg, #dbd4c9, #c9bfae); }
.hp-ph-7 { background: linear-gradient(145deg, #e0d8cd, #cdc3b3); }

.hp-card-ph .hp-ph-name {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--mid);
  font-style: italic;
  letter-spacing: 0.03em;
}
.hp-card-ph .hp-ph-sub {
  font-family: var(--sans);
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Overlay — only bottom gradient for photo cards */
.hp-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.08) 40%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}
/* No overlay on placeholder cards */
.hp-card--ph .hp-card-overlay {
  display: none;
}

/* Text content */
.hp-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.3rem;
  z-index: 2;
}
.hp-card-tipo {
  font-family: var(--sans);
  font-size: 0.45rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.hp-card-nome {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.25;
}
.hp-card-nome strong {
  font-weight: 600;
}
/* Placeholder cards: text in dark */
.hp-card--ph .hp-card-content {
  position: static;
  display: none;
}

/* CTA link below grid */
.hp-grid-cta {
  text-align: center;
  margin-top: 3rem;
}
.hp-grid-cta a {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(198,151,86,0.3);
  padding-bottom: 3px;
  transition: color 0.3s, border-color 0.3s;
}
.hp-grid-cta a:hover {
  color: var(--dark);
  border-color: var(--dark);
}

/* Tablet */
@media (max-width: 900px) {
  .hp-section { padding: 5rem 4vw 4rem; }
  .hp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .hp-section { padding: 4rem 4vw 3rem; }
  .hp-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hp-card { aspect-ratio: 4/3; }
}


/* ═══════════════════════════════════════════════════
   FIX MOBILE MENU + TESTI PROGETTI — 08/04/2026
   ═══════════════════════════════════════════════════ */

/* ── Mobile menu: fix overlapping on iPhone 16 Pro (390x844) ── */
@media (max-width: 430px) {
  .mobile-menu {
    padding: 5.5rem 8vw 5rem;
    justify-content: flex-start;
  }

  /* Push nav links below the logo bar with margin */
  .mobile-nav-links {
    margin-top: 2rem;
  }

  /* Smaller font for menu items */
  .mobile-nav-links a {
    font-size: 1.6rem;
    padding: 0.65rem 0;
  }

  /* CTA button: less margin, compact */
  .mobile-menu-cta {
    margin-top: 1.5rem;
  }
  .mobile-menu-cta a {
    padding: 0.8rem 2rem;
    font-size: 0.6rem;
  }

  /* Social links: smaller, below CTA, not absolute positioned */
  .mobile-menu-social {
    position: static;
    margin-top: 1.2rem;
    font-size: 0.65rem;
    gap: 0.8rem;
  }
  .mobile-menu-social a {
    font-size: 0.55rem;
  }

  /* Lang switcher: compact */
  .mobile-menu-lang {
    margin-top: 1rem;
  }
}

/* Also fix for slightly larger phones (up to 430px) */
@media (max-width: 900px) {
  .mobile-nav-links a {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    padding: 0.7rem 0;
  }
}

/* ── Project pages: comprehensive mobile text overflow fix ── */

/* Global: prevent ANY horizontal overflow on project pages */
main {
  max-width: 100%;
  overflow-x: hidden;
}
.prj-overview {
  overflow-x: hidden !important;
  max-width: 100vw;
}
.prj-overview-grid {
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.prj-features {
  overflow-x: hidden;
  max-width: 100vw;
}
.prj-nav {
  overflow-x: hidden;
  max-width: 100vw;
}

/* All text elements: prevent overflow globally */
.prj-desc-block p,
.prj-specs-title,
.prj-feature-text,
.prj-ig-link a,
.prj-hero-title,
.prj-hero-sub,
.prj-spec-value {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

@media (max-width: 600px) {
  /* Overview section padding */
  .prj-overview-left,
  .prj-overview-right {
    padding: 2rem 20px !important;
    box-sizing: border-box;
    max-width: 100%;
  }

  /* Specs grid */
  .prj-specs-grid {
    padding: 1rem 0.8rem;
    box-sizing: border-box;
    max-width: 100%;
  }
  .prj-spec {
    flex-direction: column;
    gap: 0.2rem;
  }
  .prj-spec-label {
    min-width: unset;
    font-size: 0.6rem;
  }
  .prj-spec-value {
    font-size: 0.72rem;
  }

  /* Title */
  .prj-specs-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  /* Description paragraphs */
  .prj-desc-block p {
    font-size: 0.92rem;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  /* Instagram link — this is the most common overflow culprit */
  .prj-ig-link {
    flex-direction: column;
    gap: 0.4rem;
    max-width: 100%;
  }
  .prj-ig-link a {
    font-size: 0.68rem;
    word-break: break-all;
    max-width: 100%;
    display: inline-block;
  }

  /* Features section */
  .prj-features {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .prj-feature-text {
    font-size: 0.78rem;
  }

  /* Navigation between projects */
  .prj-nav {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Hero */
  .prj-hero {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Decorative circles — hide or constrain on small screens */
  .prj-circles-bg {
    display: none;
  }
}

/* ── NUCLEAR overflow fix — html/body level ── */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ── Fix: slider dots overflow su mobile ── */
.prj-slider-dots {
  flex-wrap: wrap;
  max-width: 100%;
  overflow: hidden;
}
@media (max-width: 600px) {
  .prj-slider-dots {
    gap: 0.3rem;
    padding: 0.8rem 0.5rem 0;
  }
  .prj-slider-dot {
    width: 6px;
    height: 6px;
  }
  /* Oltre 20 dots: nascondi i dots e mostra solo contatore */
  .prj-slider-dots.many-dots .prj-slider-dot {
    display: none;
  }
  .prj-slider-dots.many-dots::after {
    content: attr(data-counter);
    font-family: var(--sans);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--gold);
  }
}

/* Slider track: constrain images */
.prj-slider-track img {
  max-width: 100%;
  height: auto;
}


/* ── Fix: slider dots + slider on small screens ── */
@media (max-width: 600px) {
  .prj-slider-dots {
    gap: 0.25rem;
    padding: 0.8rem 4px 0;
  }
  .prj-slider-dot {
    width: 5px;
    height: 5px;
  }
  .prj-slider-dot.active {
    transform: scale(1.4);
  }
  /* Constrain dots area height — max 2 rows */
  .prj-slider-dots {
    max-height: 28px;
  }
  .prj-slider-track img {
    max-width: 100%;
    height: auto;
  }
}

/* ── GO-LIVE: fix overflow mobile 390px ── */
@media (max-width: 600px) {
  /* Calendly: rimuovi min-width fisso */
  .calendly-inline-widget {
    min-width: 0 !important;
    width: 100% !important;
  }
  /* Accent box servizi: non fuoriuscire */
  .servizio-accent-box {
    right: 0 !important;
    bottom: -1rem;
    min-width: auto;
    padding: 1.2rem 1.5rem;
  }
  /* Preventivo grid: overflow contenuto */
  .preventivo-grid,
  .prenota-grid {
    overflow: hidden;
  }
  .preventivo-col-form,
  .preventivo-col-calendly,
  .prenota-col-text,
  .prenota-col-calendly {
    padding: 2rem 1.2rem;
    box-sizing: border-box;
  }
}
