/*
  AutoMotoStar — Dark Luxury Atelier Design System
  Architettura CSS moderna, nativa, zero librerie terze, zero dipendenze CDN esterne.
  Conforme WCAG 2.1 AA/AAA, fluid typography clamp(), micro-lighting rim shadows
  e superficie ad elevazione 4-tier.
*/

:root {
  /* Engine Theme & UI Adaptation */
  color-scheme: dark;

  /* Tipografia Nativa (Zero chiamate font esterne) */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Dark Luxury Base Canvas */
  --color-bg: #0f1115;              /* Deep Graphite canvas */
  --color-canvas-subtle: #12151c;   /* Subtle section contrast */

  /* 4-Tier Surface Elevation */
  --color-surface-1: #161a23;       /* Level 1: Static cards, headers, footers, containers */
  --color-surface-2: #1e2430;       /* Level 2: Interactive cards, elevated items, inner boxes */
  --color-surface-3: #252d3d;       /* Level 3: Active pills, modal overlays, tooltips */
  --color-surface-hover: #222938;   /* Interactive hover surface */

  /* Alias semantici per retrocompatibilità */
  --color-surface: var(--color-surface-1);
  --color-dark: #0f1115;
  --color-dark-surface: var(--color-surface-1);
  --color-dark-border: rgba(255, 255, 255, 0.12);

  /* Gerarchia Tipografica ad Alto Contrasto (WCAG AAA / AA) */
  --color-text: #f8fafc;            /* Titanium White (18.06:1 contrasto su #0f1115) */
  --color-text-primary: #f8fafc;    /* Titoli e testo principale */
  --color-text-secondary: #cbd5e1;  /* Platinum Slate (12.73:1 contrasto) */
  --color-text-muted: #94a3b8;      /* Slate Light (7.37:1 contrasto - sostituisce #64748b per WCAG AA) */
  --color-text-subtle: #94a3b8;     /* Etichette e didascalie chiare */
  --color-text-dim: #7e8d9f;        /* Micro-note e date secondarie (5.4:1 contrasto) */

  /* Accenti Metallici di Precisione */
  --color-accent-bronze: #e5ad45;         /* Atelier Bronze / Oro satinato (9.35:1 contrasto) */
  --color-accent-bronze-hover: #f3cf7a;   /* Bronze brillante su hover */
  --color-accent-bronze-tint: rgba(229, 173, 69, 0.12); /* Bagliore badge e pill */
  
  --color-accent-aluminum: #cbd5e1;       /* Satin Aluminum */
  --color-accent-aluminum-bright: #e2e8f0;/* Riflesso alluminio lucidato */
  
  --color-brand-orange: #ff7a30;          /* Preserved Automotive Orange (7.27:1 contrasto) */

  /* Mappatura Primaria Brand: Bronze come accento Luxury, Orange per badge e loghi storici */
  --color-primary: #e5ad45;
  --color-primary-hover: #f3cf7a;
  --color-primary-light: rgba(229, 173, 69, 0.12);

  /* Bordi Architettonici ad Alta Precisione */
  --color-border-subtle: rgba(255, 255, 255, 0.08); /* Separatore filare minimo */
  --color-border: rgba(255, 255, 255, 0.12);        /* Profilo card standard */
  --color-border-darker: rgba(255, 255, 255, 0.2);  /* Bordo rinforzato */
  --color-border-accent: rgba(229, 173, 69, 0.4);   /* Bordo attivo satin bronze */
  --color-border-aluminum: rgba(203, 213, 225, 0.25);/* Profilo alluminio satinato */

  /* Ombre di Elevazione & Profondità Luxury */
  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 16px 36px -6px rgba(0, 0, 0, 0.8);
  --shadow-elevation-1: 0 4px 20px -2px rgba(0, 0, 0, 0.6);
  --shadow-elevation-2: 0 10px 30px -4px rgba(0, 0, 0, 0.75), 0 0 0 1px var(--color-border);
  --shadow-elevation-3: 0 20px 45px -8px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--color-border-accent);

  /* Satin Top-Rim Light (Precision Machined Highlight) */
  --lighting-rim: inset 0 1px 0 0 rgba(255, 255, 255, 0.14);
  --lighting-rim-bronze: inset 0 1px 0 0 rgba(229, 173, 69, 0.4);

  /* Raggi di Curvatura */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Costanti di Layout */
  --container-max: 1200px;
  --header-height: 76px;

  /* Scrollbar Nativa */
  scrollbar-color: rgba(255, 255, 255, 0.2) var(--color-bg);
}

/* Reset essenziale & Box Model */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Immagini e media responsivi */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  object-fit: cover;
  aspect-ratio: auto;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  color: var(--color-text);
}

main {
  flex: 1;
}

/* Accessibilità: Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  background: var(--color-accent-bronze);
  color: #0f1115;
  padding: 10px 18px;
  font-weight: 700;
  z-index: 10000;
  border-radius: var(--radius-sm);
  transition: top 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}
.skip-link:focus {
  top: 12px;
}

/* Accessibilità: Focus Ring High-Contrast */
:focus-visible {
  outline: 3px solid var(--color-accent-bronze);
  outline-offset: 3px;
}

@media (forced-colors: active) {
  :focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 3px;
  }
}

/* Tipografia Fluida & Headings */
h1, h2, h3, h4 {
  color: var(--color-text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1, h2, h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--color-accent-bronze);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
a:hover {
  color: var(--color-accent-bronze-hover);
}

ul, ol {
  list-style: none;
}

/* Contenitore Responsive */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3vw, 24px);
  padding-right: clamp(16px, 3vw, 24px);
}

/* Header & Navigazione Dark Atelier */
.site-header {
  background-color: rgba(15, 17, 21, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 900;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-primary);
  text-decoration: none;
}
.brand-link:hover {
  color: var(--color-text-primary);
}

.brand-icon {
  color: var(--color-brand-orange);
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(255, 122, 48, 0.35));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-transform: uppercase;
}
.brand-name .accent {
  color: var(--color-brand-orange);
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--color-text-primary);
  background-color: var(--color-surface-2);
}
.nav-link.active {
  border-bottom: 2px solid var(--color-accent-bronze);
}

/* Pulsanti di Azione Dark Luxury */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease,
              color 0.2s ease;
}

.btn-primary {
  background-color: var(--color-accent-bronze);
  color: #0f1115;
  border-color: var(--color-accent-bronze);
  box-shadow: 0 4px 14px rgba(229, 173, 69, 0.3), var(--lighting-rim);
}
.btn-primary:hover {
  background-color: var(--color-accent-bronze-hover);
  color: #0f1115;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 173, 69, 0.45);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--color-text-primary);
  border-color: var(--color-border-aluminum);
  box-shadow: var(--lighting-rim);
}
.btn-secondary:hover {
  background-color: var(--color-surface-2);
  border-color: var(--color-accent-bronze);
  color: var(--color-accent-bronze-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.btn-call {
  background-color: var(--color-accent-bronze);
  color: #0f1115;
  padding: 8px 16px;
  font-size: 0.88rem;
  box-shadow: 0 2px 10px rgba(229, 173, 69, 0.25);
}
.btn-call:hover {
  background-color: var(--color-accent-bronze-hover);
  color: #0f1115;
  box-shadow: 0 4px 16px rgba(229, 173, 69, 0.4);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #0f1115;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}
.btn-whatsapp:hover {
  background-color: #1ebd59;
  color: #0f1115;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* Badge di Pregio */
.badge {
  display: inline-block;
  background-color: var(--color-accent-bronze-tint);
  color: var(--color-accent-bronze);
  border: 1px solid rgba(229, 173, 69, 0.35);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  box-shadow: var(--lighting-rim-bronze);
}

/* Hero Section con Spotlight Ambientale */
.hero-section {
  background: radial-gradient(ellipse 70% 50% at 50% -20%, rgba(229, 173, 69, 0.09), transparent 70%),
              linear-gradient(180deg, #12151c 0%, #0f1115 100%);
  color: var(--color-text-primary);
  padding: clamp(60px, 8vw, 90px) 0 clamp(45px, 6vw, 70px) 0;
  position: relative;
  border-bottom: 1px solid var(--color-border-subtle);
}

.hero-content {
  max-width: 860px;
}

.hero-title {
  color: var(--color-text-primary);
  font-size: clamp(1.75rem, 5.5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.hero-title .accent {
  color: var(--color-accent-bronze);
  text-shadow: 0 0 35px rgba(229, 173, 69, 0.25);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 75ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}

.hero-actions .btn-secondary {
  color: var(--color-text-primary);
  border-color: var(--color-border-aluminum);
}
.hero-actions .btn-secondary:hover {
  background-color: var(--color-surface-2);
  border-color: var(--color-accent-bronze);
  color: var(--color-accent-bronze-hover);
}

.hero-features-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 28px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
}
.feature-item svg {
  color: var(--color-accent-bronze);
  flex-shrink: 0;
}

/* Hero Split Grid & Showcase Card */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }
}

.hero-visual {
  position: relative;
  width: 100%;
}

.hero-card {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-1);
  border: 1px solid var(--color-border-accent);
  box-shadow: var(--shadow-elevation-3), var(--lighting-rim-bronze);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(229, 173, 69, 0.25);
}

.hero-image-wrap {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #000;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.hero-card:hover .hero-image {
  transform: scale(1.03);
}

.hero-pill-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--color-accent-bronze);
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(229, 173, 69, 0.35);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
}

.hero-caption {
  padding: 16px 20px;
  background: var(--color-surface-1);
  border-top: 1px solid var(--color-border-subtle);
}

.hero-caption-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 0;
}

.hero-caption-model {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.hero-caption-spec {
  font-size: 0.82rem;
  color: var(--color-accent-bronze);
  font-weight: 500;
}

/* Sezioni Comuni */
.section {
  padding: clamp(64px, 8vw, 96px) 0;
}

.section-header {
  margin-bottom: clamp(36px, 5vw, 54px);
}
.section-header.text-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.subheading {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-accent-bronze);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.4rem, 4vw, 2.35rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--color-text-primary);
}

.section-desc {
  font-size: clamp(1.05rem, 1.2vw, 1.15rem);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Card Chi Siamo (.about-card) */
.about-card {
  background: var(--color-surface-1);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--lighting-rim), var(--shadow-elevation-1);
  border: 1px solid var(--color-border);
}

.about-header {
  margin-bottom: 22px;
}

.lead-text {
  font-size: clamp(1.15rem, 1.5vw, 1.3rem);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.5;
  margin-bottom: 18px;
}

.about-body p {
  color: var(--color-text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.about-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 20px;
  background-color: rgba(229, 173, 69, 0.08);
  border: 1px solid rgba(229, 173, 69, 0.3);
  border-radius: var(--radius-pill);
  color: var(--color-accent-bronze);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--lighting-rim-bronze);
}
.about-location-pill svg {
  color: var(--color-accent-bronze);
  flex-shrink: 0;
}

/* Sezione Servizi & Griglia (.service-card) */
.services-section {
  background-color: var(--color-canvas-subtle);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.service-card {
  background-color: var(--color-surface-1);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  border: 1px solid var(--color-border);
  box-shadow: var(--lighting-rim), var(--shadow-elevation-1);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s ease,
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  background-color: var(--color-surface-2);
  border-color: var(--color-border-accent);
  box-shadow: var(--lighting-rim-bronze), var(--shadow-elevation-2);
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(229, 173, 69, 0.16) 0%, rgba(229, 173, 69, 0.04) 100%);
  border: 1px solid rgba(229, 173, 69, 0.3);
  color: var(--color-accent-bronze);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.service-title {
  font-size: clamp(1.25rem, 1.8vw + 0.4rem, 1.45rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.service-summary {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}

.service-feature-list {
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 18px;
}
.service-feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  margin-bottom: 9px;
  line-height: 1.45;
}
.service-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent-bronze);
  font-weight: 800;
}

/* Punti di Forza (.strength-card) */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}

.strength-card {
  background-color: var(--color-surface-1);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  box-shadow: var(--lighting-rim), var(--shadow-elevation-1);
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.strength-card:hover {
  transform: translateY(-4px);
  background-color: var(--color-surface-2);
  border-color: var(--color-border-aluminum);
  box-shadow: var(--lighting-rim), var(--shadow-elevation-2);
}

.strength-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-accent-bronze);
  opacity: 0.9;
  margin-bottom: 12px;
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 24px rgba(229, 173, 69, 0.2);
}

.strength-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 10px;
}

.strength-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* CTA Banner Dark Atelier */
.cta-banner {
  background: linear-gradient(135deg, var(--color-surface-1) 0%, var(--color-surface-2) 100%);
  color: var(--color-text-primary);
  padding: clamp(48px, 6vw, 68px) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  text-align: center;
}
@media (min-width: 860px) {
  .cta-container {
    flex-direction: row;
    text-align: left;
  }
  .cta-text {
    max-width: 620px;
  }
}

.cta-text h2 {
  color: var(--color-text-primary);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 12px;
}
.cta-text p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.cta-actions .btn-secondary {
  color: var(--color-text-primary);
  border-color: var(--color-border-aluminum);
}
.cta-actions .btn-secondary:hover {
  background-color: var(--color-surface-2);
  border-color: var(--color-accent-bronze);
  color: var(--color-accent-bronze-hover);
}

/* Pagine Interne: Page Header */
.page-header {
  background: linear-gradient(180deg, var(--color-surface-1) 0%, var(--color-bg) 100%);
  color: var(--color-text-primary);
  padding: clamp(36px, 5vw, 54px) 0;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a {
  color: var(--color-text-secondary);
}
.breadcrumb a:hover {
  color: var(--color-accent-bronze);
}

.page-title {
  color: var(--color-text-primary);
  font-size: clamp(1.5rem, 4.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.page-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 760px;
  line-height: 1.6;
}

/* Layout Pagina Contatti (.contact-card) */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
@media (min-width: 860px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

.contact-card {
  min-width: 0;
  background-color: var(--color-surface-1);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--color-border);
  box-shadow: var(--lighting-rim), var(--shadow-elevation-1);
}

.card-title {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.card-intro {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 26px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.channel-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  background-color: var(--color-surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.channel-row:hover {
  border-color: var(--color-border-accent);
  background-color: var(--color-surface-hover);
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(229, 173, 69, 0.18) 0%, rgba(229, 173, 69, 0.05) 100%);
  border: 1px solid rgba(229, 173, 69, 0.3);
  color: var(--color-accent-bronze);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.channel-icon.whatsapp-color {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #25d366;
}

.channel-body {
  display: flex;
  flex-direction: column;
}

.channel-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.6px;
}

.channel-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-top: 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.channel-value.channel-highlight {
  color: var(--color-accent-bronze);
}

.channel-hint {
  font-size: 0.82rem;
  color: var(--color-text-dim);
  margin-top: 4px;
}

.location-box {
  background-color: var(--color-surface-2);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--color-border);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
  margin-bottom: 24px;
  color: var(--color-text-secondary);
}

.location-header {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}
.location-header svg {
  color: var(--color-accent-bronze);
  flex-shrink: 0;
  margin-top: 2px;
}
.location-header strong {
  color: var(--color-text-primary);
}

.btn-maps {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-surface-3);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-aluminum);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: var(--lighting-rim);
}
.btn-maps svg {
  flex-shrink: 0;
}
.btn-maps:hover {
  background-color: var(--color-surface-hover);
  border-color: var(--color-accent-bronze);
  color: var(--color-accent-bronze-hover);
}

.hours-box {
  margin-bottom: 24px;
}
.hours-heading {
  font-size: 1.1rem;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}
.hours-table th, .hours-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border-subtle);
  font-size: 0.95rem;
}
.hours-table th {
  text-align: left;
  font-weight: 600;
  color: var(--color-text-secondary);
  width: 45%;
}
.hours-table td {
  color: var(--color-text-muted);
}

.directions-hint h4 {
  font-size: 1rem;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}
.directions-hint p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* Privacy & Condizioni (.legal-card) */
.legal-card {
  background-color: var(--color-surface-1);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--color-border);
  box-shadow: var(--lighting-rim), var(--shadow-elevation-1);
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.notice-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(229, 173, 69, 0.08);
  border: 1px solid rgba(229, 173, 69, 0.3);
  color: var(--color-accent-bronze);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 30px;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: var(--lighting-rim-bronze);
}
.notice-badge svg {
  color: var(--color-accent-bronze);
  flex-shrink: 0;
}

.legal-card h2 {
  font-size: 1.35rem;
  color: var(--color-text-primary);
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-subtle);
}
.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card h3 {
  font-size: 1.1rem;
  color: var(--color-accent-bronze);
  margin-top: 22px;
  margin-bottom: 10px;
}

.legal-card p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 14px;
}
.legal-card strong {
  color: var(--color-text-secondary);
}

.legal-card ul {
  margin-left: 20px;
  margin-bottom: 18px;
  list-style: disc;
}
.legal-card ul li {
  color: var(--color-text-muted);
  margin-bottom: 7px;
  line-height: 1.6;
}

.legal-card a {
  color: var(--color-accent-bronze);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-card a:hover {
  color: var(--color-accent-bronze-hover);
}

.last-updated {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border-subtle);
  font-size: 0.88rem;
  color: var(--color-text-dim);
}

/* Pagine di Errore (.error-box) */
.error-box {
  background-color: var(--color-surface-1);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 56px) clamp(20px, 4vw, 36px);
  max-width: 580px;
  margin: 40px auto;
  border: 1px solid var(--color-border);
  box-shadow: var(--lighting-rim), var(--shadow-elevation-2);
}

.error-code {
  font-size: clamp(4.5rem, 10vw, 6.5rem);
  font-weight: 900;
  color: var(--color-accent-bronze);
  line-height: 1;
  margin-bottom: 18px;
  text-shadow: 0 0 35px rgba(229, 173, 69, 0.25);
}

.error-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.error-desc {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.error-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer Dark Atelier */
.site-footer {
  background-color: var(--color-surface-1);
  color: var(--color-text-muted);
  padding-top: 60px;
  margin-top: auto;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  padding-bottom: 48px;
}

.footer-title {
  color: var(--color-text-primary);
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.footer-privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

.footer-heading {
  color: var(--color-text-primary);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

.footer-contact-list li,
.footer-hours-list li,
.footer-nav-list li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer-contact-list a,
.footer-nav-list a {
  color: var(--color-text-secondary);
}
.footer-contact-list a:hover,
.footer-nav-list a:hover {
  color: var(--color-accent-bronze);
}

.footer-hours-list .day {
  display: block;
  font-weight: 600;
  color: var(--color-text-secondary);
}
.footer-hours-list .hours {
  color: var(--color-text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-subtle);
  padding: 22px 0;
  font-size: 0.82rem;
  color: var(--color-text-dim);
}

.bottom-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}
@media (min-width: 640px) {
  .bottom-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ==========================================================================
   Component A: Progressive Enhancement, Scroll-Reveal & Micro-Hover
   ========================================================================== */

/* Staggered Delay Token Formula */
.reveal {
  --reveal-delay: calc(var(--item-index, 0) * 75ms);
}

/* Only hide elements if JavaScript is active and reduced-motion is not requested */
html.js-enabled .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

html.js-enabled .reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Micro-Hover Elevation & Lighting on Cards */
.showroom-card {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s ease,
              border-color 0.28s ease;
  will-change: transform, box-shadow;
}

.showroom-card:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45), 0 0 1px rgba(229, 173, 69, 0.4);
  border-color: rgba(229, 173, 69, 0.35);
}

/* ==========================================================================
   Component B: Showroom Carousel & Lightbox Modal
   ========================================================================== */

.showroom-section {
  position: relative;
  overflow: hidden;
}

.showroom-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

/* Carousel Step Controls */
.carousel-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-2);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  cursor: pointer;
  box-shadow: var(--lighting-rim);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--color-accent-bronze);
  color: #0f1115;
  border-color: var(--color-accent-bronze);
  transform: scale(1.05);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--color-accent-bronze);
  outline-offset: 3px;
}

/* Native CSS Scroll-Snap Scroller */
.showroom-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(229, 173, 69, 0.3) transparent;
  padding: 8px 4px 28px 4px;
  margin: 0 -4px;
}

.showroom-scroller::-webkit-scrollbar {
  height: 6px;
}

.showroom-scroller::-webkit-scrollbar-track {
  background: transparent;
}

.showroom-scroller::-webkit-scrollbar-thumb {
  background: rgba(229, 173, 69, 0.3);
  border-radius: var(--radius-pill);
}

.showroom-scroller:focus-visible {
  outline: 2px solid var(--color-accent-bronze);
  outline-offset: 4px;
}

/* Carousel Slide Items */
.carousel-slide {
  flex: 0 0 calc(85% - 10px);
  min-width: 280px;
  max-width: 420px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm), var(--lighting-rim);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s ease,
              border-color 0.28s ease;
}

@media (min-width: 640px) {
  .carousel-slide {
    flex: 0 0 calc(50% - 10px);
    scroll-snap-align: start;
  }
}

@media (min-width: 1024px) {
  .carousel-slide {
    flex: 0 0 calc(33.333% - 14px);
  }
}

.carousel-slide:hover {
  transform: translateY(-4px) scale(1.008);
  border-color: var(--color-border-accent);
  box-shadow: var(--shadow-md), 0 0 1px rgba(229, 173, 69, 0.4);
}

.carousel-slide:focus-visible {
  outline: 2px solid var(--color-accent-bronze);
  outline-offset: 3px;
}

.slide-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}

.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carousel-slide:hover .slide-media img {
  transform: scale(1.04);
}

.slide-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--color-accent-bronze);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(229, 173, 69, 0.3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.slide-caption-bar {
  padding: 16px 18px;
}

.slide-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.slide-meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* HTML5 <dialog> Lightbox Modal */
dialog#gallery-lightbox,
dialog.lightbox-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  padding: 0;
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-lg);
  background: var(--color-surface-1);
  color: var(--color-text);
  box-shadow: var(--shadow-elevation-3), var(--lighting-rim-bronze);
  overflow: hidden;
  flex-direction: column;
}

dialog#gallery-lightbox[open],
dialog.lightbox-modal[open] {
  display: flex;
}

dialog#gallery-lightbox:not([open]),
dialog.lightbox-modal:not([open]) {
  display: none !important;
}

dialog.lightbox-modal::backdrop {
  background: rgba(15, 17, 21, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 90vh;
  position: relative;
}

.lightbox-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px;
  background: rgba(15, 17, 21, 0.6);
  border-bottom: 1px solid var(--color-border-subtle);
}

.lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-2);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: var(--color-accent-bronze);
  color: #0f1115;
  transform: scale(1.05);
}

.lightbox-close:focus-visible {
  outline: 2px solid var(--color-accent-bronze);
  outline-offset: 3px;
}

.lightbox-viewport {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  min-height: 250px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  display: block;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: var(--radius-pill);
  background: rgba(22, 26, 35, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: var(--shadow-md);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.lightbox-nav:hover {
  background: var(--color-accent-bronze);
  color: #0f1115;
  border-color: var(--color-accent-bronze);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-nav:focus-visible {
  outline: 2px solid var(--color-accent-bronze);
  outline-offset: 3px;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-caption {
  padding: 16px 20px;
  background: var(--color-surface-1);
  border-top: 1px solid var(--color-border);
}

.lightbox-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-accent-bronze);
  margin-bottom: 4px;
}

.lightbox-credit {
  display: none;
}

/* ==========================================================================
   Component C: Interactive Before/After Comparison Slider
   ========================================================================== */

.restoration-section {
  padding: 80px 0;
  background-color: var(--color-canvas-subtle);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.before-after-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevation-2);
  border: 1px solid var(--color-border);
  background-color: var(--color-surface-1);
  --slider-pos: 50%;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}

.before-after-wrapper.is-dragging {
  cursor: grabbing;
}

.before-after-wrapper .image-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.before-after-wrapper .image-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Layer After: Base layer */
.before-after-wrapper .layer-after {
  z-index: 1;
}

/* Layer Before: Hardware-accelerated clip-path */
.before-after-wrapper .layer-before {
  z-index: 2;
  will-change: clip-path;
  clip-path: inset(0 calc(100% - var(--slider-pos, 50%)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--slider-pos, 50%)) 0 0);
}

/* Comparison Badges */
.comparison-badge {
  position: absolute;
  bottom: 20px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  pointer-events: none;
  z-index: 3;
}

.badge-before {
  left: 20px;
  background-color: rgba(15, 17, 21, 0.85);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.badge-after {
  right: 20px;
  background-color: rgba(229, 173, 69, 0.9);
  color: #0f1115;
  border: 1px solid var(--color-accent-bronze);
  box-shadow: 0 4px 14px rgba(229, 173, 69, 0.35);
}

/* Divider Line and Handle */
.slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--slider-pos, 50%);
  width: 3px;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
  background: transparent;
}

.slider-divider .divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background-color: var(--color-accent-bronze);
  box-shadow: 0 0 10px rgba(229, 173, 69, 0.6), 0 0 2px #fff;
}

.slider-divider .divider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface-2);
  border: 2px solid var(--color-accent-bronze);
  color: var(--color-accent-bronze);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8), 0 0 12px rgba(229, 173, 69, 0.4);
  cursor: grab;
  touch-action: none;
  pointer-events: auto;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.before-after-wrapper.is-dragging .divider-handle,
.divider-handle.is-dragging {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--color-surface-3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.9), 0 0 16px rgba(229, 173, 69, 0.6);
}

/* Native Range Input Accessibility Overlay */
.comparison-range-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
  pointer-events: none;
  touch-action: pan-y;
}

/* Focus Rings for Keyboard Navigation */
.comparison-range-input:focus-visible ~ .slider-divider .divider-handle,
.before-after-wrapper.is-focused .divider-handle,
.before-after-wrapper:has(.comparison-range-input:focus-visible) .divider-handle {
  outline: 3px solid var(--color-accent-bronze);
  outline-offset: 4px;
  box-shadow: 0 0 16px rgba(229, 173, 69, 0.8);
}

.slider-caption {
  margin-top: 16px;
}

.slider-caption-text {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  margin: 0;
  font-weight: 500;
}

/* ==========================================================================
   Component D: Dynamic Service Category Filtering Transitions
   ========================================================================== */

.services-filter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  background: var(--color-surface-2);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--lighting-rim);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn:hover,
.filter-btn[aria-selected="true"],
.filter-btn.active {
  background: var(--color-accent-bronze);
  color: #0f1115;
  border-color: var(--color-accent-bronze);
  box-shadow: 0 4px 14px rgba(229, 173, 69, 0.35);
  font-weight: 700;
}

.service-card.is-filtered-out {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

/* Screen reader utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Responsività Mobile (320px – 640px) */
@media (max-width: 640px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .nav-list {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .btn-call {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .services-grid,
  .strengths-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 380px) {
  .btn-call span {
    display: inline;
    font-size: 0.78rem;
  }
}

/* Coarse Touch Targets (WCAG 2.5.8 >= 44px) */
@media (pointer: coarse) {
  .btn,
  .nav-link,
  .btn-call,
  .btn-maps,
  .filter-btn,
  .filter-tab-btn,
  .carousel-btn,
  .lightbox-close,
  .lightbox-close-btn,
  .lightbox-nav,
  .slider-divider .divider-handle {
    min-block-size: 44px;
    min-inline-size: 44px;
  }
}

/* Case-by-Case Motion Preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal,
  html.js-enabled .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .showroom-scroller {
    scroll-behavior: auto !important;
  }
  .service-card:hover,
  .hero-card:hover,
  .hero-card:hover .hero-image,
  .showroom-card:hover,
  .carousel-slide:hover,
  .carousel-slide:hover .slide-media img,
  .carousel-btn:hover,
  .lightbox-nav:hover,
  .lightbox-close:hover,
  .slider-divider .divider-handle,
  .strength-card:hover,
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-whatsapp:hover {
    transform: none !important;
  }
  .before-after-wrapper .layer-before {
    will-change: auto;
  }
  .service-card.is-filtered-out {
    opacity: 0 !important;
    transform: none !important;
  }
}

/* Supporto Forced Colors Mode */
@media (forced-colors: active) {
  .service-card,
  .hero-card,
  .about-card,
  .strength-card,
  .contact-card,
  .legal-card,
  .credit-item,
  .error-box,
  .channel-row,
  .location-box {
    border: 1px solid CanvasText;
  }
  .btn-primary,
  .btn-secondary,
  .btn-call,
  .btn-maps,
  .filter-btn {
    border: 1px solid ButtonText;
  }
}

/* ==========================================================================
   Responsive 320px Contact & Table, Privacy CC Credits
   ========================================================================== */

/* 1. Hours Table Wrapper & Responsive Behavior */
.hours-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 2. Creative Commons Credits in Privacy Policy (.legal-card) */
.credits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 22px 0;
}

.credit-item {
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
}

.credit-item h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: var(--color-accent-bronze);
}

.credit-item p {
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.notice-subtext {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  margin-top: 18px;
  line-height: 1.5;
}

/* 3. Mobile Viewport Refinements (320px – 480px) */
@media (max-width: 480px) {
  .contact-card {
    padding: 20px 14px;
  }
  .channel-row {
    padding: 12px 14px;
    gap: 12px;
  }
  .channel-icon {
    width: 38px;
    height: 38px;
  }
  .channel-value {
    font-size: 1.05rem;
  }
  .location-box {
    padding: 16px 14px;
  }
  .hours-table th,
  .hours-table td {
    padding: 8px 6px;
    font-size: 0.88rem;
  }
  .hours-table th {
    width: 40%;
  }
}

@media (max-width: 340px) {
  .contact-card {
    padding: 14px 10px;
  }
  .hours-table th,
  .hours-table td {
    padding: 6px 4px;
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   Milestone 4: Mobile Experience Optimization (R1 - R4)
   ========================================================================== */

/* 1. Global Text Wrapping Defense & Zero Horizontal Overflow (R2 & R3) */
p, h1, h2, h3, h4, span, a, li, td, th, address, figcaption, blockquote {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-contact-list a,
.footer-contact-list li,
.channel-value,
.location-header p,
.about-location-pill,
.credit-item p,
.credit-item a,
.legal-card a,
.contact-item a {
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

/* 2. R1: Sticky Mobile Floating Action Bar (<768px) & Safe Area Handling */
.mobile-action-bar,
.mobile-floating-bar {
  display: none;
}

@media (min-width: 768px) {
  .mobile-action-bar,
  .mobile-floating-bar {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  /* Sticky Mobile Floating Action Bar */
  .mobile-action-bar,
  .mobile-floating-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 850;
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.75), var(--lighting-rim);
    padding: 10px 16px;
    padding-bottom: max(12px, calc(10px + env(safe-area-inset-bottom, 0px)));
    gap: 12px;
    align-items: center;
    justify-content: center;
  }

  .mobile-action-btn,
  .mobile-floating-bar .floating-btn {
    flex: 1 1 0%;
    min-width: 44px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
  }

  .mobile-action-call,
  .mobile-floating-bar .floating-call {
    background-color: var(--color-accent-bronze);
    color: #0f1115;
    border: 1px solid var(--color-accent-bronze);
    box-shadow: 0 2px 10px rgba(229, 173, 69, 0.3), var(--lighting-rim);
  }

  .mobile-action-call:hover,
  .mobile-action-call:active,
  .mobile-floating-bar .floating-call:hover,
  .mobile-floating-bar .floating-call:active {
    background-color: var(--color-accent-bronze-hover);
    color: #0f1115;
    transform: translateY(-1px);
  }

  .mobile-action-whatsapp,
  .mobile-floating-bar .floating-whatsapp {
    background-color: #25d366;
    color: #0f1115;
    border: 1px solid #1ebd59;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
  }

  .mobile-action-whatsapp:hover,
  .mobile-action-whatsapp:active,
  .mobile-floating-bar .floating-whatsapp:hover,
  .mobile-floating-bar .floating-whatsapp:active {
    background-color: #1ebd59;
    color: #0f1115;
    transform: translateY(-1px);
  }

  /* Footer & Body Bottom Clearance Padding */
  body {
    padding-bottom: 0;
  }

  .site-footer {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  /* Single Column Layout Enforcements */
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .strengths-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .hero-features-bar {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    flex-direction: column;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .service-card,
  .strength-card,
  .about-card,
  .contact-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 22px 18px;
  }

  .carousel-slide {
    flex: 0 0 100%;
    min-width: 0;
    max-width: 100%;
    scroll-snap-align: center;
  }

  .before-after-wrapper .comparison-badge {
    bottom: 10px;
    font-size: 0.72rem;
    padding: 4px 8px;
    max-width: calc(50% - 14px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .badge-before {
    left: 10px;
  }

  .badge-after {
    right: 10px;
  }

  /* Universal Touch Target Guarantee (WCAG 2.1 SC 2.5.5 >= 44x44px) */
  .btn,
  .nav-link,
  .btn-call,
  .btn-maps,
  .filter-btn,
  .filter-tab-btn,
  .carousel-btn,
  .lightbox-close,
  .lightbox-close-btn,
  .lightbox-nav,
  .slider-divider .divider-handle {
    min-height: 44px;
    min-width: 44px;
  }

  .filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .footer-nav-list li a,
  .footer-contact-list li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 360px) {
  .mobile-action-bar,
  .mobile-floating-bar {
    padding-left: 12px;
    padding-right: 12px;
    gap: 8px;
  }

  .mobile-action-btn,
  .mobile-floating-bar .floating-btn {
    font-size: 0.84rem;
    gap: 6px;
    padding: 10px 8px;
  }

  .mobile-action-btn svg,
  .mobile-floating-bar .floating-btn svg {
    width: 18px;
    height: 18px;
  }

  .service-card,
  .strength-card,
  .about-card,
  .contact-card {
    padding: 18px 14px;
  }
}


