/* ═══════════════════════════════════════════════════════════════
   VILCAN — Design System
   Concept 2: Mani Esperte — Warm Italian Craftsmanship
   Mobile-first · WCAG 2.2 AA · CSS Custom Properties
═══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  /* Colors — Dark Mode VILCAN */
  --c-bg:          #0A0A0A;   /* Near-black main background */
  --c-bg-warm:     #111111;   /* Slightly elevated dark sections */
  --c-bg-card:     #1C1C1C;   /* Card surfaces */
  --c-surface:     #141414;   /* Elevated blocks (trust strip, form, footer) */
  --c-primary:     #FFFFFF;   /* White — testo e fill pulsanti */
  --c-primary-700: #E0E0E0;   /* Hover — bianco caldo */
  --c-accent:      #C8A870;   /* Oro champagne — elegante, raffinato */
  --c-accent-100:  rgba(200, 168, 112, 0.12);
  --c-text:        #FFFFFF;   /* Testo bianco */
  --c-text-muted:  rgba(255, 255, 255, 0.55);
  --c-text-light:  rgba(255, 255, 255, 0.30);
  --c-border:      rgba(255, 255, 255, 0.08);
  --c-border-focus:#FFFFFF;
  --c-star:        #C8A870;
  --c-green:       #22C55E;
  --c-white:       #FFFFFF;
  --c-whatsapp:    #25D366;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Font Scale (mobile-first) */
  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-lg:    1.125rem;   /* 18px */
  --text-xl:    1.25rem;    /* 20px */
  --text-2xl:   1.5rem;     /* 24px */
  --text-3xl:   1.875rem;   /* 30px */
  --text-4xl:   2.25rem;    /* 36px */
  --text-5xl:   3rem;       /* 48px */
  --text-6xl:   3.75rem;    /* 60px */
  --text-7xl:   4.5rem;     /* 72px */
  --text-8xl:   6rem;       /* 96px */

  /* Spacing Scale (8px base grid) */
  --s-1:   0.25rem;   /* 4px */
  --s-2:   0.5rem;    /* 8px */
  --s-3:   0.75rem;   /* 12px */
  --s-4:   1rem;      /* 16px */
  --s-5:   1.25rem;   /* 20px */
  --s-6:   1.5rem;    /* 24px */
  --s-8:   2rem;      /* 32px */
  --s-10:  2.5rem;    /* 40px */
  --s-12:  3rem;      /* 48px */
  --s-16:  4rem;      /* 64px */
  --s-20:  5rem;      /* 80px */
  --s-24:  6rem;      /* 96px */
  --s-32:  8rem;      /* 128px */

  /* Border Radius */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* Shadows — deep black for dark mode */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 32px 80px rgba(0, 0, 0, 0.65);

  /* Transitions */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:  0.15s;
  --t-base:  0.25s;
  --t-slow:  0.4s;

  /* Layout */
  --max-w:       1280px;
  --max-w-text:  680px;
  --navbar-h:    72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-h);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* fix iOS horizontal scroll */
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--c-text);
  background-color: var(--c-bg);
  overflow-x: hidden;
  max-width: 100%;
}

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

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

ul, ol { list-style: none; }

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

em { font-style: italic; }

/* ─── Accessibility ─── */
.skip-link {
  position: fixed;
  top: var(--s-4);
  left: var(--s-4);
  z-index: 9999;
  padding: var(--s-3) var(--s-6);
  background: #FFFFFF;
  color: #0A0A0A;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: var(--text-sm);
  transform: translateY(calc(-100% - 20px));
  transition: transform var(--t-base) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ─── Layout Utilities ─── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

@media (min-width: 640px) {
  .container { padding-inline: var(--s-8); }
}

@media (min-width: 1280px) {
  .container { padding-inline: var(--s-12); }
}

.section {
  padding-block: var(--s-20);
}

@media (min-width: 1024px) {
  .section { padding-block: var(--s-32); }
}

.bg-warm { background-color: var(--c-bg-warm); }

.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: inline; } }

/* ─── Reveal Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out);
}

.reveal.revealed {
  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; }

/* ─── Typography ─── */
.section-header {
  text-align: center;
  max-width: var(--max-w-text);
  margin-inline: auto;
  margin-bottom: var(--s-12);
}

@media (min-width: 1024px) {
  .section-header { margin-bottom: var(--s-16); }
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--s-4);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-accent);
  border-radius: var(--r-full);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-primary);
  margin-bottom: var(--s-5);
}

@media (min-width: 768px) {
  .section-title { font-size: var(--text-4xl); }
}

@media (min-width: 1024px) {
  .section-title { font-size: var(--text-5xl); }
}

.section-title em {
  color: var(--c-accent);
  font-style: italic;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--c-text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-inline: auto;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition:
    background-color var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    color var(--t-base) var(--ease),
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-base) var(--ease);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.btn:active { transform: scale(0.97); }

/* Primary — Navy */
.btn-primary {
  background-color: #FFFFFF;
  color: #0A0A0A;
  border: 2px solid #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--c-primary-700);
  border-color: var(--c-primary-700);
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.25);
  transform: translateY(-1px);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
}

/* Ghost */
.btn-ghost {
  background-color: transparent;
  color: var(--c-primary);
  border: 2px solid var(--c-border);
}

.btn-ghost:hover {
  border-color: var(--c-primary);
  background-color: var(--c-accent-100);
}

/* Sizes */
.btn-sm {
  font-size: var(--text-sm);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-sm);
}

.btn-lg {
  font-size: var(--text-base);
  padding: var(--s-4) var(--s-8);
  min-height: 52px;
}

.btn-full, .w-full { width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--navbar-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease),
    background var(--t-base) var(--ease);
}

.navbar.scrolled {
  border-color: var(--c-border);
  box-shadow: var(--shadow-sm);
  background: rgba(250, 250, 247, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Su mobile la navbar ha sempre un bg dark leggibile */
@media (max-width: 1023px) {
  .navbar {
    background: rgba(10, 10, 10, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
}

/* Navbar trasparente sopra l'hero dark — elementi bianchi */
.navbar:not(.scrolled) .logo-name { color: var(--c-white); }
.navbar:not(.scrolled) .logo-tagline { color: rgba(255,255,255,0.55); }
.navbar:not(.scrolled) .logo-mark {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
}
.navbar:not(.scrolled) .nav-link { color: rgba(255,255,255,0.78); }
.navbar:not(.scrolled) .nav-link:hover { color: var(--c-white); background: rgba(255,255,255,0.08); }
.navbar:not(.scrolled) .nav-phone { color: rgba(255,255,255,0.85); }
.navbar:not(.scrolled) .nav-phone:hover { color: var(--c-accent); }
.navbar:not(.scrolled) .hamburger-line { background: var(--c-white); }
.navbar:not(.scrolled) .btn-primary {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-white);
}
.navbar:not(.scrolled) .btn-primary:hover {
  background: #A88848;
  border-color: #A88848;
}

.navbar-container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--s-6);
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--t-fast) var(--ease);
}

.navbar-logo:hover { opacity: 0.8; }

.navbar-logo-img {
  height: 50px;
  width: 50px;
  object-fit: contain;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  display: block;
  /* Nascosto in cima (logo hero è protagonista), appare allo scroll */
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}

.navbar.scrolled .navbar-logo-img {
  opacity: 1;
  transform: scale(1);
}

/* Mobile: logo navbar sempre visibile (nell'hero non c'è) */
@media (max-width: 1023px) {
  .navbar-logo-img {
    opacity: 1;
    transform: scale(1);
  }
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--c-primary);
  color: var(--c-white);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  flex-shrink: 0;
}

.logo-mark--light {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  letter-spacing: 0.04em;
  color: var(--c-primary);
  line-height: 1;
}

.logo-tagline {
  font-size: var(--text-xs);
  color: var(--c-text-muted);
  line-height: 1;
}

/* Nav Links (hidden on mobile) */
.nav-links {
  display: none;
  align-items: center;
  gap: var(--s-1);
  margin-left: auto;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-text-muted);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--c-primary);
  background: var(--c-accent-100);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-left: auto;
}

@media (min-width: 1024px) {
  .nav-actions { margin-left: 0; }
}

.nav-phone {
  display: none;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-primary);
  transition: color var(--t-fast) var(--ease);
}

.nav-phone:hover { color: var(--c-accent); }

@media (min-width: 1024px) {
  .nav-phone { display: flex; }
}

/* hamburger on mobile — hide CTA text too */
@media (max-width: 1023px) {
  .nav-actions .btn-primary { display: none; }
}

/* Hamburger Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: var(--s-2);
  border-radius: var(--r-sm);
  transition: background var(--t-fast) var(--ease);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.nav-toggle:hover { background: var(--c-accent-100); }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-primary);
  border-radius: var(--r-full);
  transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
  transform-origin: center;
}

.nav-toggle.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--navbar-h);
  left: 0;
  right: 0;
  height: calc(100vh - var(--navbar-h));
  background: var(--c-bg);
  z-index: 150;
  padding: var(--s-8) var(--s-6);
  padding-bottom: calc(var(--s-8) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease-out);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .mobile-menu { display: none; }
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.mobile-nav-link {
  font-size: var(--text-2xl);
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--c-primary);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--c-border);
  transition: color var(--t-fast) var(--ease), padding-left var(--t-base) var(--ease-spring);
}

.mobile-nav-link:hover {
  color: var(--c-accent);
  padding-left: var(--s-4);
}

.mobile-menu-cta {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

/* ═══════════════════════════════════════════════════════════════
   HERO — Full-screen cinematografico
═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--navbar-h) + var(--s-16));
  padding-bottom: var(--s-20);
  background: #0A0A0A;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.94) 0%,
    rgba(26, 26, 46, 0.82) 55%,
    rgba(26, 26, 46, 0.65) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-10);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-16);
  }
}

/* Hero Content — testo prima anche su mobile */
.hero-content { order: 1; }

/* Foto di Flo — sotto il testo su mobile, a destra su desktop */
.hero-image-wrap {
  order: 2;
  position: relative;
}

/* Logo hero — segno bianco su fondo scuro (il quadrato nero si mimetizza) */
.hero-logo {
  width: auto;
  height: 88px;
  margin-bottom: var(--s-5);
  border-radius: var(--r-md);
  /* fonde il bordo nero del jpg col fondo dell'hero */
  mix-blend-mode: screen;
}

@media (min-width: 1024px) {
  .hero-logo { height: 104px; }
}

/* Mobile: niente logo nell'hero, sta fisso nella navbar */
@media (max-width: 1023px) {
  .hero-logo { display: none; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.10);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: var(--s-6);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 400;
  line-height: 1.05;
  color: var(--c-white);
  margin-bottom: var(--s-6);
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (min-width: 768px) {
  .hero-title { font-size: var(--text-6xl); }
}

@media (min-width: 1024px) {
  .hero-title { font-size: var(--text-7xl); }
}

@media (min-width: 1280px) {
  .hero-title { font-size: var(--text-8xl); }
}

.hero-title em {
  color: var(--c-accent);
  font-style: italic;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  margin-bottom: var(--s-8);
  max-width: 520px;
}

@media (min-width: 1024px) {
  .hero-subtitle { font-size: var(--text-xl); }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-8);
}

/* CTA primario — terracotta su sfondo scuro */
.hero-cta .btn-primary {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-white);
}

.hero-cta .btn-primary:hover {
  background: #A88848;
  border-color: #A88848;
  box-shadow: 0 8px 24px rgba(200, 168, 112, 0.35);
}

/* Ghost su sfondo scuro */
.hero-cta .btn-ghost {
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

.hero-cta .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.80);
  background: rgba(255, 255, 255, 0.10);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
}

/* Mobile: solo 3 garanzie per compattare l'hero e dare spazio alla foto */
@media (max-width: 1023px) {
  .hero-trust .trust-item:nth-child(n+4) { display: none; }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
}

.trust-item svg {
  color: var(--c-accent);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   PERCHÉ NOI — Features
═══════════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  transition:
    transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200, 168, 112, 0.2);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--c-accent-100);
  color: var(--c-accent);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-5);
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

.feature-card:hover .feature-icon {
  background: var(--c-accent);
  color: var(--c-white);
}

.feature-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--c-primary);
  margin-bottom: var(--s-3);
  line-height: 1.3;
}

.feature-text {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   SERVIZI
═══════════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  position: relative;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  transition:
    transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-primary);
}

.service-card--soon {
  opacity: 0.75;
}

.service-card--soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--c-border);
  opacity: 0.75;
}

.service-soon-badge {
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  background: var(--c-bg-warm);
  color: var(--c-text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-full);
  border: 1px solid var(--c-border);
}

/* Scala elevatrice — card in evidenza */
.service-card--featured {
  border-color: rgba(200, 168, 112, 0.3);
  background: linear-gradient(135deg, #FFFFFF 0%, var(--c-accent-100) 100%);
}

.service-card--featured:hover {
  border-color: var(--c-accent);
  box-shadow: 0 16px 48px rgba(200, 168, 112, 0.15);
}

.service-featured-badge {
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  background: var(--c-accent);
  color: var(--c-white);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-full);
}


.service-icon {
  width: 56px;
  height: 56px;
  background: var(--c-bg-warm);
  color: var(--c-primary);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-5);
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

.service-card:not(.service-card--soon):hover .service-icon {
  background: var(--c-primary);
  color: var(--c-white);
}

.service-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--c-primary);
  margin-bottom: var(--s-3);
  line-height: 1.2;
}

.service-text {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--s-6);
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-primary);
  transition: gap var(--t-fast) var(--ease-spring), color var(--t-fast) var(--ease);
  margin-top: auto;
}

.service-cta:hover {
  color: var(--c-accent);
  gap: var(--s-3);
}

.service-cta--disabled {
  color: var(--c-text-light);
  cursor: default;
}

/* ─── Values strip — sotto la griglia servizi ─── */
.values-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4) var(--s-6);
  margin-top: var(--s-12);
  padding-top: var(--s-10);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .values-strip { grid-template-columns: repeat(4, 1fr); }
}

.value-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
}

.value-item svg { color: var(--c-accent); flex-shrink: 0; }

/* ─── Section CTA centrata ─── */
.section-cta {
  text-align: center;
  margin-top: var(--s-10);
}

/* ═══════════════════════════════════════════════════════════════
   COME LAVORIAMO — Steps
═══════════════════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-1);
  margin-bottom: var(--s-12);
  position: relative;
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-6);
  }
}

.step {
  display: flex;
  gap: var(--s-5);
  padding: var(--s-8);
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  align-items: flex-start;
  transition:
    transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}

@media (min-width: 1024px) {
  .step {
    flex-direction: column;
    gap: var(--s-5);
  }
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 400;
  color: var(--c-border);
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--t-base) var(--ease);
}

.step:hover .step-number { color: var(--c-accent); }

.step-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--c-primary);
  margin-bottom: var(--s-3);
  line-height: 1.3;
}

.step-text {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.7;
}

.steps-cta {
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   GALLERIA — Grid uniforme
═══════════════════════════════════════════════════════════════ */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 260px;
  gap: var(--s-2);
  margin-bottom: var(--s-12);
}

@media (min-width: 640px) {
  .gallery-masonry {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: var(--s-3);
  }
}

@media (min-width: 1024px) {
  .gallery-masonry {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 260px;
    gap: var(--s-4);
  }
}

.gallery-masonry figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--c-bg-card);
  position: relative;
}

.gallery-masonry figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s var(--ease-out);
  display: block;
}

.gallery-masonry figure:hover img { transform: scale(1.07); }

/* Span modifiers */
.gal-tall  { grid-row: span 2; }
.gal-wide  { grid-column: span 2; }

@media (max-width: 639px) {
  .gal-tall  { grid-row: span 1; }
  .gal-wide  { grid-column: span 1; }
}

.gallery-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-5);
}

.gallery-cta-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--c-text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   REEL
═══════════════════════════════════════════════════════════════ */
.reels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}

@media (min-width: 768px) {
  .reels-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-5);
  }
}

.reel-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  /* fallback per browser senza aspect-ratio */
  padding-top: calc(16 / 9 * 100%);
  height: 0;
}

@supports (aspect-ratio: 9 / 16) {
  .reel-card {
    aspect-ratio: 9 / 16;
    padding-top: unset;
    height: unset;
  }
}

.reel-card video {
  position: absolute;
  top: 0; left: 0;
}

.reel-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   RECENSIONI
═══════════════════════════════════════════════════════════════ */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}

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

@media (min-width: 1024px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

.review-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  transition:
    transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.review-stars {
  display: flex;
  gap: 3px;
  color: var(--c-star);
}

.review-text {
  font-size: var(--text-base);
  color: var(--c-text);
  line-height: 1.7;
  flex: 1;
  font-style: normal;
}


.review-author {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-style: normal;
  margin-top: auto;
}

.review-avatar {
  width: 40px;
  height: 40px;
  background: var(--c-primary);
  color: var(--c-white);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.review-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--c-primary);
  line-height: 1.2;
}

.review-source {
  font-size: var(--text-xs);
  color: var(--c-text-muted);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════════════ */
.faq-container {
  max-width: 760px;
}

.faq-container .section-header {
  margin-bottom: var(--s-8);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.faq-item {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.faq-item.open {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  text-align: left;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-primary);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

@media (min-width: 768px) {
  .faq-question { font-size: var(--text-base); }
}

.faq-question:hover { background: rgba(255, 255, 255, 0.04); }

.faq-item.open .faq-question { color: var(--c-accent); }

.faq-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: transform var(--t-base) var(--ease-spring), color var(--t-base) var(--ease);
  color: var(--c-text-muted);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--c-accent);
}

.faq-answer {
  padding: var(--s-2) var(--s-5) var(--s-4);
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.65;
}

.faq-answer p { max-width: 680px; }

.faq-answer strong { color: var(--c-primary); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   PREVENTIVO — Form
═══════════════════════════════════════════════════════════════ */
.preventivo {
  background: var(--c-primary);
}

.preventivo-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-12);
  align-items: start;
}

@media (min-width: 1024px) {
  .preventivo-container {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-16);
    align-items: center;
  }
}

/* Left Content */
.preventivo-content .section-label { color: var(--c-accent); }
.preventivo-content .section-label::before { background: var(--c-accent); }
.preventivo-content .section-title { color: var(--c-white); }
.preventivo-content .section-title em { color: var(--c-accent); }
.preventivo-content .section-subtitle { color: rgba(255, 255, 255, 0.65); }

.preventivo-garanzie {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: var(--s-8);
}

.preventivo-garanzie li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--text-base);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.preventivo-garanzie li svg { color: var(--c-accent); flex-shrink: 0; }

/* Info zona + orari (dai contatti accorpati) */
.preventivo-info {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.preventivo-info-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
}

.preventivo-info-item svg { color: var(--c-accent); flex-shrink: 0; }
.preventivo-info-item strong { color: rgba(255, 255, 255, 0.90); font-weight: 600; }

/* Form */
.preventivo-form-wrap {
  background: var(--c-bg-card);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
  .preventivo-form-wrap { padding: var(--s-10); }
}

/* ─── Preventivo CTA dirette (no form) ─── */
.preventivo-cta-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.preventivo-cta {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--c-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition:
    transform var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}

.preventivo-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow-lg);
}

.preventivo-cta-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-white);
}

.preventivo-cta--whatsapp .preventivo-cta-icon {
  background: rgba(37, 211, 102, 0.14);
  color: var(--c-whatsapp);
}

.preventivo-cta--email .preventivo-cta-icon,
.preventivo-cta--phone .preventivo-cta-icon {
  background: rgba(200, 168, 112, 0.14);
  color: var(--c-accent);
}

.preventivo-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.preventivo-cta-title {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--c-white);
  line-height: 1.2;
}

.preventivo-cta-sub {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.50);
  line-height: 1.3;
}

.preventivo-cta-arrow {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.35);
  transition: transform var(--t-base) var(--ease-spring), color var(--t-base) var(--ease);
}

.preventivo-cta:hover .preventivo-cta-arrow {
  transform: translateX(4px);
  color: var(--c-white);
}

/* Evidenzia WhatsApp come opzione primaria */
.preventivo-cta--whatsapp {
  border-color: rgba(37, 211, 102, 0.30);
  background: linear-gradient(135deg, var(--c-bg-card) 0%, rgba(37, 211, 102, 0.06) 100%);
}

.preventivo-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

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

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-primary);
}

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

.form-input {
  width: 100%;
  padding: var(--s-4);
  font-size: var(--text-base);
  color: var(--c-text);
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  transition:
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder { color: var(--c-text-light); }

.form-input:hover { border-color: var(--c-primary); }

.form-input:focus {
  outline: none;
  border-color: var(--c-primary);
  background: var(--c-white);
  box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.08);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-4) center;
  padding-right: var(--s-10);
  cursor: pointer;
}

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

.form-privacy {
  margin-top: var(--s-1);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.5;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--c-primary);
}

.form-link {
  color: var(--c-primary);
  text-decoration: underline;
  font-weight: 500;
}

.form-link:hover { color: var(--c-accent); }

.form-submit {
  margin-top: var(--s-2);
}

.form-note {
  font-size: var(--text-xs);
  color: var(--c-text-light);
  text-align: center;
}

/* Form Success */
.form-success {
  text-align: center;
  padding: var(--s-8) var(--s-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
}

.form-success svg { color: var(--c-green); }

.form-success h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--c-primary);
}

.form-success p {
  color: var(--c-text-muted);
  font-size: var(--text-base);
}

/* Form Validation */
.form-input.error { border-color: #EF4444; }
.form-input.error:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1); }

/* ═══════════════════════════════════════════════════════════════
   CONTATTI
═══════════════════════════════════════════════════════════════ */
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

@media (min-width: 480px) {
  .contatti-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
}

@media (min-width: 1024px) {
  .contatti-grid { grid-template-columns: repeat(4, 1fr); }
}

.contatto-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-8) var(--s-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  transition:
    transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}

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

.contatto-icon {
  width: 56px;
  height: 56px;
  background: var(--c-accent-100);
  color: var(--c-accent);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contatto-icon--whatsapp {
  background: #E8F8EE;
  color: var(--c-whatsapp);
}

.contatto-title {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.contatto-value {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
  text-align: center;
}

.contatto-value:hover { color: var(--c-accent); }

.contatto-note {
  font-size: var(--text-xs);
  color: var(--c-text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--c-primary);
  padding-top: var(--s-20);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-10);
  margin-bottom: var(--s-16);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

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

@media (min-width: 768px) {
  .footer-brand { grid-column: 1 / 2; }
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}

.footer-logo .logo-name { color: var(--c-white); }
.footer-logo .logo-tagline { color: rgba(255,255,255,0.5); }

.footer-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: var(--s-6);
}

.footer-social {
  display: flex;
  gap: var(--s-3);
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.social-link:hover {
  background: var(--c-accent);
  color: var(--c-white);
}

/* Footer Nav */
.footer-nav-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--s-5);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.footer-nav a:hover { color: var(--c-white); }

/* Footer Contact */
.footer-contact {
  display: none;
}

@media (min-width: 1024px) {
  .footer-contact { display: block; }
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding-block: var(--s-2);
  transition: color var(--t-fast) var(--ease);
}

.footer-contact-link:hover { color: var(--c-white); }

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--s-6);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}

.footer-credit {
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.30);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.footer-credit a:hover { color: var(--c-accent); }

.footer-legal {
  display: flex;
  gap: 0.35em;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}

.footer-legal a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.footer-legal a:hover { color: var(--c-accent); }

/* ═══════════════════════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
═══════════════════════════════════════════════════════════════ */
.whatsapp-btn {
  position: fixed;
  bottom: var(--s-6);
  right: var(--s-5);
  z-index: 50;
  width: 58px;
  height: 58px;
  background: var(--c-whatsapp);
  color: var(--c-white);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition:
    transform var(--t-base) var(--ease-spring),
    box-shadow var(--t-base) var(--ease);
  text-decoration: none;
}

/* On mobile, shift up to avoid the sticky bar */
@media (max-width: 767px) {
  .whatsapp-btn { bottom: calc(var(--s-4) + 72px); }
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn:focus-visible {
  outline: 3px solid var(--c-whatsapp);
  outline-offset: 3px;
}

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + var(--s-3));
  top: 50%;
  transform: translateY(-50%);
  background: #1C1C1C;
  color: var(--c-white);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #1C1C1C;
}

.whatsapp-btn:hover .whatsapp-tooltip { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   MOBILE STICKY BAR
═══════════════════════════════════════════════════════════════ */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--c-bg-card);
  border-top: 1px solid var(--c-border);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  box-shadow: 0 -4px 20px rgba(26, 26, 46, 0.1);
  transform: translateY(100%);
  transition: transform var(--t-slow) var(--ease-out);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-bar.visible { transform: translateY(0); }

@media (min-width: 768px) {
  .mobile-bar { display: none; }
}

.mobile-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  padding: var(--s-3) var(--s-4);
  min-height: 64px;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  letter-spacing: 0.02em;
  border-right: 1px solid var(--c-border);
}

.mobile-bar-btn:last-child { border-right: none; }

.mobile-bar-btn--whatsapp { color: var(--c-whatsapp); }

.mobile-bar-btn--primary {
  background: var(--c-primary);
  color: var(--c-white);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SLIDESHOW
═══════════════════════════════════════════════════════════════ */

/* Tutte le slide nascoste per default */
.hero-slideshow .slide {
  display: none;
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Solo quella attiva visibile, con fade-in */
.hero-slideshow .slide--active {
  display: block;
  animation: slideshow-fadein 0.7s ease;
}


@keyframes slideshow-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slideshow .slide--active { animation: none; }
}

/* Dots */
/* Frecce navigazione slideshow */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--c-white);
  cursor: pointer;
  opacity: 0.85;
  transition:
    background-color var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    opacity var(--t-base) var(--ease),
    transform var(--t-base) var(--ease);
}

.slide-arrow--prev { left: var(--s-3); }
.slide-arrow--next { right: var(--s-3); }

.slide-arrow:hover {
  opacity: 1;
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #0A0A0A;
}

.slide-arrow--prev:hover { transform: translateY(-50%) translateX(-2px); }
.slide-arrow--next:hover { transform: translateY(-50%) translateX(2px); }

.slide-arrow:active { transform: translateY(-50%) scale(0.92); }

.slideshow-dots {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  z-index: 30;
  display: flex;
  gap: 7px;
  align-items: center;
}

.slide-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.30);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--t-base) var(--ease), transform var(--t-base) var(--ease-spring);
  flex-shrink: 0;
}

.slide-dot--active {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.4);
}

.slide-dot:hover:not(.slide-dot--active) {
  background: rgba(255, 255, 255, 0.60);
}

/* Badge sopra le slide */
.hero-image-badge { z-index: 30; }

/* ═══════════════════════════════════════════════════════════════
   DARK MODE — Component overrides
   (vengono dopo tutto, quindi vincono la cascata)
═══════════════════════════════════════════════════════════════ */

/* ── Pulsanti ── */
.btn-primary {
  background-color: var(--c-white);
  color: #0A0A0A;
  border-color: var(--c-white);
}
.btn-primary:hover {
  background-color: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-white);
  box-shadow: 0 8px 24px rgba(200, 168, 112, 0.30);
  transform: translateY(-1px);
}
.btn-primary:focus-visible {
  outline-color: var(--c-accent);
}

.btn-ghost {
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.28);
  background-color: transparent;
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.70);
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--c-white);
}

/* Hero CTA primario rimane terracotta */
.hero-cta .btn-primary {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-white);
}
.hero-cta .btn-primary:hover {
  background: #A88848;
  border-color: #A88848;
  box-shadow: 0 8px 24px rgba(200, 168, 112, 0.35);
}

/* ── Hero image card (slideshow Flo) ── */
.hero-image-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  aspect-ratio: 9 / 16;       /* verticale reel su mobile — foto in evidenza */
  max-height: 70vh;           /* non domina troppo la viewport */
  margin-inline: auto;
  background: var(--c-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

@media (min-width: 640px) {
  .hero-image-card {
    aspect-ratio: 4 / 5;
    max-height: none;
  }
}

@media (min-width: 1024px) {
  .hero-image-card {
    aspect-ratio: 3 / 4;
    max-height: 680px;
  }
}

.hero-image-badge {
  position: absolute;
  bottom: var(--s-3);
  left: var(--s-3);
  right: var(--s-3);
  display: flex;
  align-items: center;
  gap: var(--s-2);
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r-md);
  padding: var(--s-2) var(--s-3);
  box-shadow: var(--shadow-md);
  z-index: 30;
}

@media (min-width: 640px) {
  .hero-image-badge {
    bottom: var(--s-6);
    left: var(--s-6);
    right: var(--s-6);
    gap: var(--s-4);
    border-radius: var(--r-lg);
    padding: var(--s-4) var(--s-5);
  }
}

.image-badge-icon {
  width: 32px;
  height: 32px;
  background: rgba(200, 168, 112, 0.15);
  color: var(--c-accent);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .image-badge-icon { width: 44px; height: 44px; border-radius: var(--r-md); }
}

.image-badge-title {
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--c-white);
  line-height: 1.2;
}

@media (min-width: 640px) {
  .image-badge-title { font-size: var(--text-sm); }
}

.image-badge-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.50);
  margin-top: 1px;
}

@media (min-width: 640px) {
  .image-badge-sub { font-size: var(--text-xs); margin-top: 2px; }
}

/* ── Logo mark ── */
.logo-mark {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--c-white);
}
.logo-mark--light {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.logo-name { color: var(--c-white); }

/* ── Navbar scrolled — dark bg ── */
.navbar.scrolled {
  background: rgba(10, 10, 10, 0.96);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.60);
}
/* Nav links anche da scrolled rimangono bianchi */
.navbar.scrolled .nav-link { color: rgba(255,255,255,0.72); }
.navbar.scrolled .nav-link:hover { color: var(--c-white); }
.navbar.scrolled .nav-phone { color: rgba(255,255,255,0.80); }
.navbar.scrolled .btn-primary { background: var(--c-white); color: #0A0A0A; border-color: var(--c-white); }
.navbar.scrolled .hamburger-line { background: var(--c-white); }

/* ── Hero overlay ── pure black */
.hero::before {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.72) 55%,
    rgba(0, 0, 0, 0.52) 100%
  );
}


/* ── Feature cards ── */
.feature-card {
  background: var(--c-bg-card);
  border-color: var(--c-border);
}
.feature-card:hover {
  border-color: rgba(200, 168, 112, 0.30);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.50);
}

/* ── Service cards ── */
.service-card {
  background: var(--c-bg-card);
  border-color: var(--c-border);
}
.service-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.50);
}
.service-card--featured {
  background: linear-gradient(135deg, var(--c-bg-card) 0%, rgba(200, 168, 112, 0.08) 100%);
  border-color: rgba(200, 168, 112, 0.25);
}
/* Fix hover icona: --c-primary è bianco → sfondo oro + icona scura */
.service-card:not(.service-card--soon):hover .service-icon {
  background: var(--c-accent);
  color: #0A0A0A;
}

/* ── Feature cards su sfondo dark ── */
.bg-dark .feature-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.09);
}
.bg-dark .feature-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(200, 168, 112, 0.28);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.30);
  transform: translateY(-4px);
}
.bg-dark .feature-title { color: var(--c-white); }
.bg-dark .feature-text  { color: rgba(255, 255, 255, 0.58); }
.bg-dark .feature-icon  {
  background: rgba(200, 168, 112, 0.12);
  color: var(--c-accent);
}
.bg-dark .feature-card:hover .feature-icon {
  background: var(--c-accent);
  color: #0A0A0A;
}

/* Spaziatura features prima del divisore */
.features-grid--merged {
  margin-bottom: var(--s-16);
}

/* Divisore "Il nostro processo" */
.process-divider {
  text-align: center;
  margin-bottom: var(--s-10);
  padding-top: var(--s-8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.process-divider-text {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.50);
  margin-top: var(--s-3);
  max-width: 500px;
  margin-inline: auto;
  line-height: 1.6;
}

/* ── Step cards (Come Lavoriamo) ── */
.come-lavoriamo.bg-dark {
  background: var(--c-bg-warm);
}

/* ── Recensioni ── */
.review-card {
  background: var(--c-bg-card);
  border-color: var(--c-border);
}
.review-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.50);
}
.review-avatar {
  background: rgba(255, 255, 255, 0.10);
  color: var(--c-white);
}
.review-text { color: rgba(255,255,255,0.85); }

/* ── FAQ ── */
.faq-item {
  background: var(--c-bg-card);
  border-color: var(--c-border);
}
.faq-item.open {
  border-color: rgba(255, 255, 255, 0.25);
}
.faq-question:hover { background: rgba(255, 255, 255, 0.04); }
.faq-answer strong { color: var(--c-white); }

/* ── Preventivo / Form ── */
.preventivo {
  background: var(--c-surface);
}
.preventivo-form-wrap {
  background: var(--c-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.form-label { color: rgba(255, 255, 255, 0.75); }
.form-label span { color: var(--c-accent); }
.form-input {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--c-white);
}
.form-input::placeholder { color: rgba(255, 255, 255, 0.25); }
.form-input:hover { border-color: rgba(255, 255, 255, 0.30); }
.form-input:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--c-white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.40)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-4) center;
}
.form-check { color: rgba(255,255,255,0.55); }
.form-link { color: var(--c-white); }
.form-note { color: rgba(255,255,255,0.28); }

/* ── Contatti ── */
.contatto-card {
  background: var(--c-bg-card);
  border-color: var(--c-border);
}
.contatto-icon--whatsapp {
  background: rgba(37, 211, 102, 0.12);
}

/* ── Mobile menu ── */
.mobile-menu {
  background: #0A0A0A;
}
.mobile-nav-link { border-bottom-color: rgba(255,255,255,0.08); }

/* ── Mobile sticky bar ── */
.mobile-bar {
  background: #0A0A0A;
  border-top-color: rgba(255,255,255,0.08);
}
.mobile-bar-btn { color: rgba(255,255,255,0.55); border-right-color: rgba(255,255,255,0.08); }
/* Icona WhatsApp resta verde (riconoscibile) anche in dark mode */
.mobile-bar-btn--whatsapp { color: var(--c-whatsapp); }
/* Feedback tap scuro coerente col dark (niente sfondo bianco) */
.mobile-bar-btn:active { background: rgba(255,255,255,0.06); }
.mobile-bar-btn--whatsapp:active { background: rgba(37,211,102,0.14); }
.mobile-bar-btn--primary {
  background: var(--c-accent);
  color: var(--c-white);
}
.mobile-bar-btn--primary:active { background: #A88848; }

/* ── Footer ── */
.footer { background: #050505; }


/* ═══════════════════════════════════════════════════════════════
   BRAND STATEMENT — sostituisce marquee
═══════════════════════════════════════════════════════════════ */
.brand-statement {
  background: #0A0A0A;
  padding-block: var(--s-16);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .brand-statement { padding-block: var(--s-20); }
}

.brand-statement-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.90);
  letter-spacing: -0.01em;
  margin: 0;
}

.brand-statement-quote em {
  color: var(--c-accent);
  font-style: italic;
}

.brand-statement-quote cite {
  display: block;
  margin-top: var(--s-6);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-style: normal;
}

/* ═══════════════════════════════════════════════════════════════
   CHI È FLO — Split layout con sfondo chiaro
═══════════════════════════════════════════════════════════════ */
.chi-e-flo {
  background: #F0EBE3;
  overflow: hidden;
  max-width: 100vw;
}

.chi-flo-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .chi-flo-grid {
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
  }
}

/* Foto — full bleed, nessun bordo */
.chi-flo-img-wrap {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

@media (min-width: 1024px) {
  .chi-flo-img-wrap {
    aspect-ratio: unset;
  }
}

.chi-flo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.8s var(--ease-out);
}

/* Mobile: mostra la foto intera al suo rapporto naturale, senza tagli */
@media (max-width: 1023px) {
  .chi-flo-img-wrap {
    aspect-ratio: auto;
  }
  .chi-flo-img-wrap img {
    height: auto;
    object-fit: contain;
  }
}

.chi-flo-img-wrap:hover img {
  transform: scale(1.03);
}

/* Contenuto testuale */
.chi-flo-content {
  padding: var(--s-12) var(--s-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .chi-flo-content { padding: var(--s-16) var(--s-12); }
}

@media (min-width: 1280px) {
  .chi-flo-content {
    padding: var(--s-20) var(--s-16);
    max-width: 600px;
  }
}

.chi-flo-label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--s-5);
}

.chi-flo-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-accent);
  border-radius: var(--r-full);
}

.chi-flo-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  color: #0A0A0A;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-8);
}

.chi-flo-title em {
  color: var(--c-accent);
  font-style: italic;
}

.chi-flo-text {
  font-size: var(--text-base);
  color: rgba(0, 0, 0, 0.62);
  line-height: 1.80;
  margin-bottom: var(--s-4);
}

@media (min-width: 768px) {
  .chi-flo-text { font-size: var(--text-lg); }
}

.chi-flo-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-8);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #0A0A0A;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--c-accent);
  padding-bottom: 3px;
  transition: gap var(--t-base) var(--ease-spring), color var(--t-fast) var(--ease);
}

.chi-flo-cta:hover {
  gap: var(--s-3);
  color: var(--c-accent);
}

/* ═══════════════════════════════════════════════════════════════
   MARQUEE STRIP
═══════════════════════════════════════════════════════════════ */
.marquee-strip {
  background: var(--c-accent);
  padding-block: var(--s-4);
  overflow: hidden;
  display: flex;
  user-select: none;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  white-space: nowrap;
  flex-shrink: 0;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}

.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
}

.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.50);
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════════
   DARK SECTION UTILITY — sfondo navy con testi chiari
═══════════════════════════════════════════════════════════════ */
.bg-dark {
  background: var(--c-primary);
}

.bg-dark .section-title {
  color: var(--c-white);
}

.bg-dark .section-label {
  color: var(--c-accent);
}

.bg-dark .section-label::before {
  background: var(--c-accent);
}

.bg-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.58);
}

.bg-dark .step {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.10);
}

.bg-dark .step:hover {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-3px);
}

.bg-dark .step-number {
  color: rgba(255, 255, 255, 0.12);
}

.bg-dark .step:hover .step-number {
  color: var(--c-accent);
}

.bg-dark .step-title {
  color: var(--c-white);
}

.bg-dark .step-text {
  color: rgba(255, 255, 255, 0.60);
}

.bg-dark .steps-cta .btn-primary {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-white);
}

.bg-dark .steps-cta .btn-primary:hover {
  background: #A88848;
  border-color: #A88848;
  box-shadow: 0 8px 24px rgba(200, 168, 112, 0.30);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE UX REFINEMENTS (≤767px) — desktop invariato
═══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

  /* Hero: contenuto full-width, wrap naturale del testo */
  .hero-content,
  .hero-image-wrap { min-width: 0; }
  .hero-title,
  .hero-subtitle { max-width: 100%; overflow-wrap: break-word; }
  /* La card slideshow resta contenuta e centrata */
  .hero-image-card { max-width: 340px; margin-inline: auto; }

  /* Ritmo verticale: sezioni più compatte (era 80px → 48px) */
  .section { padding-block: var(--s-12); }
  .section-header { margin-bottom: var(--s-8); }

  /* Footer/contenuto non più coperto dalla sticky bar */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

  /* Servizi: card meno gonfie, CTA con area tap ≥44px */
  .service-card { padding: var(--s-6); }
  .service-cta {
    min-height: 44px;
    padding-block: var(--s-2);
  }

  /* Chi è Florentin: CTA con area tap adeguata */
  .chi-flo-cta {
    min-height: 44px;
    align-items: center;
  }

  /* Contatti: 2 colonne anche su iPhone, padding ridotto */
  .contatti-grid { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .contatto-card { padding: var(--s-6) var(--s-4); }

  /* FAQ: testo domanda leggibile su elemento tappabile */
  .faq-question { font-size: var(--text-base); }
}

/* ═══════════════════════════════════════════════════════════════
   CURSORE CUSTOM — solo desktop con puntatore fine
═══════════════════════════════════════════════════════════════ */
.cursor-dot,
.cursor-ring {
  display: none; /* attivati via JS solo su desktop */
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--c-accent);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(200, 168, 112, 0.55);
  transition:
    width var(--t-base) var(--ease),
    height var(--t-base) var(--ease),
    background-color var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    opacity var(--t-base) var(--ease);
}

/* Hover su elementi interattivi: l'anello si espande */
.cursor-ring.is-hover {
  width: 58px;
  height: 58px;
  background: rgba(200, 168, 112, 0.10);
  border-color: var(--c-accent);
}

/* Click: leggero pulse */
.cursor-ring.is-down {
  width: 26px;
  height: 26px;
  border-color: var(--c-accent);
}

/* Fuori dalla finestra: nascondi */
.cursor-dot.is-out,
.cursor-ring.is-out {
  opacity: 0;
}

/* Attivo solo su dispositivi con mouse preciso */
@media (hover: hover) and (pointer: fine) {
  html.has-cursor,
  html.has-cursor * {
    cursor: none !important;
  }
  html.has-cursor .cursor-dot,
  html.has-cursor .cursor-ring {
    display: block;
  }
}

/* Reduced motion: niente cursore custom */
@media (prefers-reduced-motion: reduce) {
  .cursor-dot,
  .cursor-ring { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   PAGINE LEGALI (privacy / cookie)
═══════════════════════════════════════════════════════════════ */
.legal-page {
  padding-top: calc(var(--navbar-h) + var(--s-16));
  padding-bottom: var(--s-24);
  min-height: 100vh;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-accent);
  margin-bottom: var(--s-8);
  transition: gap var(--t-base) var(--ease-spring);
}
.legal-back:hover { gap: var(--s-3); }

.legal-content {
  max-width: 760px;
  margin-inline: auto;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--c-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-3);
}

.legal-updated {
  font-size: var(--text-sm);
  color: var(--c-text-light);
  margin-bottom: var(--s-10);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--c-white);
  margin-top: var(--s-10);
  margin-bottom: var(--s-4);
}

.legal-content p,
.legal-content li {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
  margin-bottom: var(--s-3);
}

.legal-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: var(--s-4);
}

.legal-content li {
  position: relative;
  padding-left: var(--s-5);
}

.legal-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

.legal-content strong { color: var(--c-white); font-weight: 600; }

.legal-content a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-note {
  margin-top: var(--s-12);
  padding: var(--s-6);
  background: var(--c-bg-card);
  border: 1px solid rgba(200, 168, 112, 0.25);
  border-radius: var(--r-lg);
  font-size: var(--text-sm) !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

/* ═══════════════════════════════════════════════════════════════
   PRINT
═══════════════════════════════════════════════════════════════ */
@media print {
  .navbar, .whatsapp-btn, .mobile-bar, .mobile-menu { display: none !important; }
  .section { padding-block: var(--s-8); }
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
