/* ============================================================
   LARTEDELPARQUET — Premium CSS
   Design tokens · Layout · Components · Dark mode
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Palette — Light */
  --color-bg:           #faf8f4;
  --color-bg-alt:       #f3ede3;
  --color-surface:      #ffffff;
  --color-surface-2:    #f0ebe0;
  --color-border:       #e0d5c5;
  --color-text:         #2a2218;
  --color-text-muted:   #7a6e5f;
  --color-text-light:   #a89880;
  --color-accent:       #8b6840;   /* muted bronze / dark wood */
  --color-accent-dark:  #6b4f2e;
  --color-accent-light: #c4a882;
  --color-hero-overlay: rgba(20, 14, 8, 0.52);

  /* Typography */
  --font-serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  9rem;

  /* Sizing */
  --container:  1200px;
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  /* Transitions */
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.14);
}

[data-theme="dark"] {
  --color-bg:           #1a1510;
  --color-bg-alt:       #221c14;
  --color-surface:      #2a2218;
  --color-surface-2:    #332a1e;
  --color-border:       #3d3025;
  --color-text:         #f0e8d8;
  --color-text-muted:   #a89880;
  --color-text-light:   #7a6e5f;
  --color-accent:       #c4a882;
  --color-accent-dark:  #e0c9a6;
  --color-accent-light: #8b6840;
  --color-hero-overlay: rgba(10, 7, 4, 0.65);
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.5);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  transition: background-color var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover { color: var(--color-accent-dark); }

ul { list-style: none; }

address { font-style: normal; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.1em; }

p { color: var(--color-text-muted); line-height: 1.8; }

strong { color: var(--color-text); font-weight: 600; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section { padding: var(--space-3xl) 0; }
.section-alt { background-color: var(--color-bg-alt); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-2xl);
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-intro {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-top: var(--space-md);
}

/* ── Buttons ────────────────────────────────────────────────── */
@keyframes pulseIntensity {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  animation: pulseIntensity 2s ease-in-out infinite;
}
.btn-primary:active {
  animation: none;
  opacity: 0.85;
}

.btn-secondary {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-secondary:hover {
  background-color: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.9);
  color: #fff;
  animation: pulseIntensity 2s ease-in-out infinite;
}
.btn-secondary:active {
  animation: none;
  opacity: 0.85;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-outline:hover {
  background-color: var(--color-accent);
  color: #fff;
  animation: pulseIntensity 2s ease-in-out infinite;
}
.btn-outline:active {
  animation: none;
  opacity: 0.85;
}

.btn-full { width: 100%; justify-content: center; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background-color: transparent;
  transition: background-color var(--transition-slow), box-shadow var(--transition-slow), backdrop-filter var(--transition-slow);
}

.site-header.scrolled {
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .site-header.scrolled {
  background-color: rgba(26, 21, 16, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
  gap: var(--space-md);
  transition: height var(--transition-slow);
}

.site-header.scrolled .header-inner {
  height: 90px;
}

/* Logo */
.logo { display: flex; align-items: center; color: #fff; flex-shrink: 0; }
.logo-svg { height: 32px; width: auto; }
.logo-img { 
  width: auto; 
  max-width: 350px; 
  height: auto; 
  max-height: 110px; 
  padding: 5px 0;
  object-fit: contain; 
  transition: all var(--transition-slow); 
  image-rendering: -webkit-optimize-contrast;
}
.site-header.scrolled .logo { color: var(--color-text); }
.footer-logo { color: #ffffff; }
/* .footer-logo .logo-img { filter: brightness(0) invert(1); } - Logo rimosso come richiesto dall'utente */
.footer-logo .logo-img { 
  width: auto; 
  max-width: 400px; 
  height: auto; 
  max-height: 130px; 
}
.site-header.scrolled .logo-img { 
  max-height: 110px; 
}

/* Logo responsive */
@media (max-width: 768px) {
  .logo-img { max-height: 100px; max-width: 280px; }
  .footer-logo .logo-img { max-height: 130px; max-width: 320px; }
  .header-inner { height: 120px; }
  .site-header.scrolled .header-inner { height: 110px; }
  .site-header.scrolled .logo-img { max-height: 100px; }
}

@media (max-width: 480px) {
  .logo-img { max-height: 90px; max-width: 250px; }
  .footer-logo .logo-img { max-height: 110px; max-width: 280px; }
}

/* Nav */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 2px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a:hover { color: #fff; }

.site-header.scrolled .main-nav a { color: var(--color-text-muted); }
.site-header.scrolled .main-nav a:hover { color: var(--color-accent); }

.nav-cta {
  background-color: var(--color-accent) !important;
  color: #fff !important;
  padding: 0;
  width: 140px;
  height: 45px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 45px;
  text-align: center;
  vertical-align: middle;
}
.nav-cta:hover { background-color: var(--color-accent-dark) !important; }
.nav-cta::after { display: none !important; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: var(--space-sm); }

.theme-toggle {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: border-color var(--transition), color var(--transition), background-color var(--transition);
  flex-shrink: 0;
}

.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle:hover { background-color: rgba(255,255,255,0.1); }

.site-header.scrolled .theme-toggle {
  border-color: var(--color-border);
  color: var(--color-text-muted);
}

.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 36px; height: 36px;
}

.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background-color: #fff;
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}

.site-header.scrolled .hamburger span { background-color: var(--color-text); }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 1; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-md) var(--space-lg);
}

.mobile-menu ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-xs) 0;
  display: block;
  border-bottom: 1px solid var(--color-border);
}
.mobile-menu a:hover { color: var(--color-accent); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center bottom; /* Ottimizzato per mostrare meglio il pavimento */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: var(--space-2xl);
  max-width: 760px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent-light);
  margin-bottom: var(--space-md);
}

.hero-heading {
  color: #fff;
  font-size: clamp(3rem, 6.5vw, 5rem);
  line-height: 1.08;
  margin-bottom: var(--space-md);
  font-weight: 300;
}

.hero-sub {
  color: rgba(255,255,255,0.78);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: var(--space-xl);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  margin: 0 auto;
  animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
  50%       { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

/* ── Chi Siamo ──────────────────────────────────────────────── */
.chi-siamo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.chi-siamo-image {
  position: relative;
}

.chi-siamo-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.image-caption {
  position: absolute;
  bottom: var(--space-md);
  right: calc(-1 * var(--space-lg));
  background-color: var(--color-surface);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-md);
  max-width: 220px;
  border-left: 3px solid var(--color-accent);
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

.chi-siamo-text { padding-left: var(--space-md); }

.chi-siamo-text h2 { margin-bottom: var(--space-lg); }

.chi-siamo-text blockquote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-accent);
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  line-height: 1.6;
}

.chi-siamo-text p { margin-bottom: var(--space-md); }
.chi-siamo-text .btn { margin-top: var(--space-md); }

/* ── Servizi ────────────────────────────────────────────────── */
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.servizio-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.servizio-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-accent-light);
}

.servizio-icon {
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border);
}

.servizio-icon svg { width: 42px; height: 42px; }

.servizio-img-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.servizio-card:hover .servizio-img-thumb {
  transform: scale(1.1);
}

.servizio-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.servizio-card p { font-size: 0.95rem; }

/* ── Perché Noi ─────────────────────────────────────────────── */
.perche-noi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.perche-noi-text h2 { margin-bottom: var(--space-md); }
.perche-noi-text > p { margin-bottom: var(--space-xl); }

.valori-list { display: flex; flex-direction: column; gap: var(--space-lg); }

.valori-list li {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.valore-mark {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-accent);
  line-height: 1.4;
  flex-shrink: 0;
  margin-top: -2px;
}

.valori-list strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.valori-list p { font-size: 0.9rem; margin: 0; }

/* Visual stack */
.visual-stack {
  position: relative;
  padding-bottom: var(--space-xl);
  padding-right: var(--space-xl);
}

.visual-main {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.visual-secondary {
  position: absolute;
  bottom: 0; right: 0;
  width: 55%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--color-bg);
}

/* ── Galleria ───────────────────────────────────────────────── */
.galleria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
}

.galleria-item {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background-color: var(--color-surface-2);
  margin: 0;
  padding: 0;
  display: block;
  aspect-ratio: 1 / 1;
}

.galleria-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  margin: 0;
  padding: 0;
}

.galleria-item:hover img { transform: scale(1.04); }

.galleria-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(20,14,8,0.85) 0%, transparent 100%);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

.galleria-item:hover figcaption { transform: translateY(0); }

.gallery-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-light);
  margin-bottom: 0.25rem;
}

.gallery-desc {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  font-style: italic;
}

.galleria-cta {
  text-align: center;
  padding-top: var(--space-lg);
}

.galleria-cta p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

/* ── Contatti ───────────────────────────────────────────────── */
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contatti-info h2 { margin-bottom: var(--space-md); }
.contatti-info > p { margin-bottom: var(--space-xl); }

.contact-list { display: flex; flex-direction: column; gap: var(--space-lg); }

.contact-list li {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.contact-icon {
  width: 40px; height: 40px;
  background-color: var(--color-bg-alt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
  border: 1px solid var(--color-border);
}

.contact-icon svg { width: 18px; height: 18px; }

.contact-list strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin-bottom: 0.2rem;
}

.contact-list span,
.contact-list a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact-list a:hover { color: var(--color-accent); }

/* Contact form */
.contatti-form-wrap {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.form-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.form-group { margin-bottom: var(--space-md); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

label span { color: var(--color-accent); }

input, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

input::placeholder, textarea::placeholder { color: var(--color-text-light); }

input:focus, textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(139, 104, 64, 0.12);
}

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

.form-success {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: #f0f7f0;
  color: #2d6a2d;
  border: 1px solid #c3e0c3;
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  margin-top: var(--space-md);
  font-size: 0.9rem;
  font-weight: 500;
}

[data-theme="dark"] .form-success {
  background-color: #1a2e1a;
  color: #7ec87e;
  border-color: #2d4a2d;
}

.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background-color: #1a1510; /* Colore scuro coerente con la palette dark del sito */
  border-top: 1px solid var(--color-border);
  padding: var(--space-2xl) 0 var(--space-lg);
  color: #ffffff;
}

[data-theme="dark"] .site-footer {
  background-color: #0d0a08; /* Ancora più scuro in modalità dark se necessario */
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-md);
  max-width: 340px;
  line-height: 1.7;
}

.footer-nav h4,
.footer-contact h4 {
  margin-bottom: var(--space-md);
  color: #ffffff;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}
.footer-nav a:hover { color: var(--color-accent-light); }

.footer-contact address p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.footer-contact a:hover { color: var(--color-accent-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.back-to-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.back-to-top svg { width: 16px; height: 16px; }
.back-to-top:hover { color: var(--color-accent); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .chi-siamo-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .chi-siamo-image { order: -1; }
  .chi-siamo-text { padding-left: 0; }
  .image-caption { right: var(--space-sm); }

  .perche-noi-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .visual-stack { order: -1; padding-bottom: var(--space-lg); padding-right: var(--space-lg); }

  .contatti-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 5rem;
    --space-2xl: 3.5rem;
  }

  .main-nav { display: none; }
  .hamburger { display: flex; }

  .hero-content { padding-top: 100px; }
  .hero-heading { font-size: clamp(2.4rem, 8vw, 3.5rem); }

  .servizi-grid { grid-template-columns: 1fr; }

  .galleria-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }

  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }

  .galleria-grid { grid-template-columns: 1fr; }

  .contatti-form-wrap { padding: var(--space-lg); }
}

/* ── Accessibility ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Fade-in on scroll ──────────────────────────────────────── */
.fade-in {
  opacity: 1;
  transform: none;
  transition: none; /* Rimosso effetto comparsa graduale */
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.fade-in-delay-1 { transition-delay: 0s; }
.fade-in-delay-2 { transition-delay: 0s; }
.fade-in-delay-3 { transition-delay: 0s; }
.fade-in-delay-4 { transition-delay: 0s; }

/* ── WhatsApp Button ────────────────────────────────────────── */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease-in-out;
  border: none;
  padding: 0;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

.whatsapp-button img {
  width: 70px;
  height: 70px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .whatsapp-button {
    bottom: 15px;
    right: 15px;
  }
  .whatsapp-button img {
    width: 60px;
    height: 60px;
  }
}


/* ── Privacy Policy Modal ───────────────────────────────────── */
.privacy-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.privacy-modal.open {
  display: flex;
}

.privacy-modal-content {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

.privacy-modal-body {
  overflow-y: auto;
  padding: var(--space-xl);
  flex-grow: 1;
}

[data-theme="dark"] .privacy-modal-content {
  background-color: #ffffff;
  color: #2a2218;
}

.privacy-modal-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: #ffffff;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: #2a2218;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
  padding: 0;
  z-index: 10;
  border-radius: 50%;
}

.privacy-modal-close:hover {
  color: var(--color-accent);
}

.privacy-modal h2 {
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
  color: #2a2218;
  font-family: var(--font-serif);
}

.privacy-modal h3 {
  font-size: 1.2rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: #2a2218;
  font-family: var(--font-serif);
}

.privacy-modal p {
  margin-bottom: var(--space-sm);
  color: #2a2218;
  line-height: 1.8;
  font-size: 0.95rem;
}

.privacy-modal ul {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
  color: #2a2218;
}

.privacy-modal li {
  margin-bottom: 0.5rem;
  color: #2a2218;
}

.privacy-modal strong {
  color: #2a2218;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--color-accent-light);
}

@media (max-width: 768px) {
  .privacy-modal-content {
    padding: var(--space-lg);
    max-height: 95vh;
  }

  .privacy-modal-close {
    top: var(--space-sm);
    right: var(--space-sm);
    font-size: 1.5rem;
  }

  .privacy-modal h2 {
    font-size: 1.4rem;
  }

  .privacy-modal h3 {
    font-size: 1rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}

/* ── Privacy Checkbox & Validation ─────────────────────────── */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
}

.form-checkbox input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--color-accent);
}

.form-checkbox label {
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 0;
  cursor: pointer;
  color: var(--color-text-muted);
}

.form-checkbox label a {
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 500;
}

.form-checkbox label a:hover {
  color: var(--color-accent-dark);
}

.error-message {
  color: #c0392b;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.25rem;
  display: block;
}

[data-theme="dark"] .error-message {
  color: #e74c3c;
}

/* Responsive adjustment for checkbox text */
@media (max-width: 480px) {
  .form-checkbox label {
    font-size: 0.8rem;
  }
}

/* ── Recensioni ─────────────────────────────────────────────── */
.recensioni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.recensione-card {
  background-color: var(--color-surface);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.recensione-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.recensione-stars {
  color: #f1c40f; /* Gold/Yellow */
  font-size: 1.2rem;
  display: flex;
  gap: 2px;
}

.recensione-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
  font-style: italic;
  flex-grow: 1;
}

.recensione-author {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
}

.recensione-author strong {
  font-size: 1rem;
  color: var(--color-text);
}

.recensione-author span {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[data-theme="dark"] .recensione-card {
  background-color: var(--color-surface-2);
}

@media (max-width: 768px) {
  .recensioni-grid {
    grid-template-columns: 1fr;
  }
}
