/* ==================================================
   GOBBI PANNELLI - CSS UNIFICATO v4.3 Ottime Pratiche
   Struttura: Variabili → Reset → Header → Hero → Layout → Componenti → Form → Footer → Overlay → MEDIA QUERIES
==================================================== */

/* ===========================
   :root & VARIABILI
=========================== */
:root {
  --red: #E30613;
  --red-dark: #C40510;
  --red-light: #FF2D3A;
  --accent: #95040F;
  --white: #FFFFFF;
  --off-white: #FAFAF9;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --black: #0F172A;
  
  --font-title: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --container-max: 1400px;
  --section-padding: clamp(80px, 12vh, 160px);
  --header-height: 80px;
  --scroll-margin: var(--header-height, 80px); /* Unificato per smooth scroll */
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { 
  font-size: 16px; 
  scroll-margin-top: var(--scroll-margin); 
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body { 
  font-family: var(--font-body); color: var(--gray-800); line-height: 1.6; 
  background: var(--white); -webkit-font-smoothing: antialiased; 
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all 0.2s ease; }

.container { width: 90%; max-width: var(--container-max); margin: 0 auto; }
.text-center { text-align: center; }
.d-block { display: block; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

span.accent { color: var(--accent); }
*:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--white); outline-offset: 3px; box-shadow: 0 0 0 4px rgba(149,4,15,0.1); 
}

/* Skip Link */
.skip-link { 
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%); 
  background: var(--accent); color: var(--white); padding: 12px 24px; border-radius: 0 0 8px 8px; 
  z-index: 10000; font-family: var(--font-body); font-weight: 600; font-size: 14px; transition: top 0.3s ease;
}
.skip-link:focus { top: 0; outline: 3px solid var(--black); outline-offset: 2px; }

/* ===========================
   HEADER & NAVIGATION (DESKTOP)
=========================== */
.header {
  display: flex; position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; height: var(--header-height);
  background: linear-gradient(135deg, var(--accent) 40%, var(--black) 60%);
}
.header__left { 
  display: flex; align-items: center; padding: 0 clamp(24px, 3vw, 48px); 
  flex: 0 0 auto; 
}
.header__right { 
  display: flex; align-items: center; justify-content: flex-end; padding: 0 clamp(24px, 3vw, 48px); 
  flex: 1; 
}

/* Language Toggle — Pill-style */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.12); border-radius: 20px;
  padding: 4px 8px; margin-left: clamp(16px, 2vw, 32px); flex-shrink: 0;
}
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 24px; padding: 0 8px;
  background: transparent; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.7); text-decoration: none; transition: all 0.2s ease; border-radius: 14px; letter-spacing: 0.3px;
}
.lang-btn:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.lang-btn--active {
  color: var(--accent) !important; background: rgba(255,255,255,0.95) !important;
  font-weight: 700;
}
.lang-separator { color: rgba(255,255,255,0.4); font-size: 12px; user-select: none; }

.logo {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; background: var(--white); 
  padding: 6px 12px; border-radius: 8px; line-height: 1; letter-spacing: -0.02em;
}
.logo img { height: clamp(32px, 3.5vw, 48px); width: auto; display: block; }

.nav-list { display: flex; align-items: center; gap: clamp(20px, 3.5vw, 40px); list-style: none; }
.nav-link {
  font-family: var(--font-body); font-weight: 500; font-size: clamp(14px, 1.15vw, 16px);
  color: rgba(255,255,255,0.85); padding: 8px 0; display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
  transition: color 0.35s ease;
}
.nav-link:hover { color: var(--white); }

/* Dropdown Desktop */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 16px); left: -24px; min-width: 240px; background: var(--white); 
  border-radius: 8px; box-shadow: 0 12px 48px rgba(0,0,0,0.15); padding: 8px 0; list-style: none; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: all 0.3s ease; z-index: 1001;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }

.dropdown li a {
  display: block; padding: clamp(8px,1vw,12px) clamp(16px,2vw,24px); font-size: clamp(13px,1.1vw,15px);
  color: var(--gray-700); font-weight: 400; text-decoration: none; transition: all 0.2s ease;
}
.dropdown li a:hover { background: rgba(149,4,15,0.06); color: var(--accent); padding-left: clamp(20px,2.5vw,28px); }

/* Dropdown arrow */
.has-dropdown > .nav-link::after {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 4px;
  border-right: 1.5px solid rgba(255,255,255,0.7); border-bottom: 1.5px solid rgba(255,255,255,0.7);
  transform: rotate(45deg); transition: transform 0.3s ease;
}
.has-dropdown:hover > .nav-link::after { transform: rotate(-135deg); }

/* CTA Buttons in Nav */
.nav-cta {
  background: var(--red) !important; color: var(--white) !important; padding: clamp(10px,1vw,14px) clamp(24px,2vw,36px) !important;
  border-radius: 6px !important; font-weight: 700 !important; transition: all 0.3s ease !important;
}
.nav-cta:hover { background: var(--red-dark) !important; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(227,6,19,0.3); }

/* Link testuale nella navbar */
.nav-link--plain {
  background: transparent !important;
  color: #FFFFFF !important;
  padding: 8px 0 !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}
.nav-link--plain:hover {
  color: var(--red) !important;
}

/* Novità link — Enhanced visibility (bold + red + animated underline) */
.nav-link--plain[href="#novita"] {
  font-weight: 700 !important;
  color: var(--red) !important;
  position: relative;
}
.nav-link--plain[href="#novita"]:hover {
  color: var(--red-dark) !important;
}
.nav-link--plain[href="#novita"]::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
}
.nav-link--plain[href="#novita"]:hover::after {
  transform: scaleX(1);
}

/* Hamburger Toggle */
.mobile-toggle { 
  display: none; flex-direction: column; justify-content: center; align-items: center; width: clamp(36px,4vw,48px); 
  height: clamp(36px,4vw,48px); background: transparent; border: none; cursor: pointer; padding: 8px; gap: 5px;
}
.mobile-toggle span { display: block; width: 100%; height: 2.5px; background: var(--white); border-radius: 2px; transition: all 0.3s ease-in-out; transform-origin: center; }
.mobile-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===========================
   HERO SECTION — Glassmorphism
=========================== */
.hero-new {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: calc(var(--header-height) + 16px);
  margin-right: clamp(2vw, 32px, 64px);
  margin-left: clamp(2vw, 32px, 64px);
  margin-bottom: 40px;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(149, 4, 15, 0.22) 0%, transparent 65%), var(--black);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.hero-new::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to top, rgba(149, 4, 15, 0.4) 0%, rgba(149, 4, 15, 0.25) 20%, rgba(149, 4, 15, 0.12) 45%, rgba(149, 4, 15, 0.04) 70%, transparent 85%),
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  text-align: center;
  padding: clamp(40px, 6vh, 80px) clamp(24px, 4vw, 48px);
}

.hero-content--centered > * {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  max-width: 100%;
}

.hero-logo { max-height: 62px; width: auto; margin-bottom: clamp(12px, 2vh, 24px); }

.hero__label { font-family: var(--font-body); font-size: clamp(12px, 1vw, 14px); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: clamp(12px, 2vh, 24px); }
.hero__desc { font-family: var(--font-body); font-size: clamp(14px, 1.1vw, 17px); line-height: 1.75; color: rgba(255,255,255,0.9); margin-bottom: clamp(32px, 4vh, 48px); max-width: 650px; }
.hero__title { font-family: var(--font-title); font-weight: 700; font-size: clamp(36px, 5.5vw, 72px); line-height: 1.1; color: #FFFFFF; margin-bottom: clamp(16px, 2.5vh, 32px); letter-spacing: -0.03em; }
.hero__actions { display: flex; gap: clamp(16px, 2vw, 24px); flex-wrap: wrap; justify-content: center; margin-top: clamp(24px, 3vh, 36px); }

/* ===========================
   BUTTONS & COMPONENTS
=========================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: clamp(14px,1.8vw,18px) clamp(28px,2.5vw,36px); border-radius: 8px; cursor: pointer; font-family: var(--font-body); font-weight: 700; transition: all 0.3s ease; justify-content: center;
}
.btn--red { background: linear-gradient(135deg, var(--red-light) 0%, var(--red) 100%); color: var(--white); border: 2px solid var(--red); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(227,6,19,0.3); }
.btn--outline-red { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn--outline-red:hover { background: var(--red); color: var(--white); }

/* ===========================
   SECTION SPLIT (BASE UNIFICATA)
=========================== */
.section-split { 
  display: flex; 
  margin: 0 clamp(2vw, 3vw, 48px); 
  border-radius: 24px;
  overflow: hidden; 
  box-shadow: 0 8px 32px rgba(0,0,0,0.1); 
  position: relative;
}

.section-split::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(149,4,15,0.06) 0%, transparent 50%, rgba(15,23,42,0.04) 100%);
  z-index: 1; pointer-events: none;
}

.section-split::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1),
              inset 0 3px 6px rgba(149,4,15,0.12),
              inset 0 -3px 6px rgba(15,23,42,0.08);
  z-index: 3; pointer-events: none;
}

.section-split__content { 
  flex: 1; padding: clamp(36px, 5vw, 72px) clamp(28px, 4vw, 56px); 
  display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2;
}

.section-split__image { 
  flex: 0 0 40%; min-height: clamp(400px, 50vh, 600px); 
  background-size: cover; background-position: center; position: relative;
}

.section-label { font-family: var(--font-body); font-size: clamp(10px, 0.9vw, 12px); font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); margin-bottom: clamp(12px, 1.5vh, 16px); }
.section-title { font-family: var(--font-title); font-size: clamp(32px, 4vw, 48px); font-weight: 700; color: var(--black); margin-bottom: clamp(16px, 2vh, 24px); line-height: 1.2; }
.section-subtitle { font-family: var(--font-body); font-size: clamp(14px, 1.1vw, 18px); color: var(--gray-700); margin-bottom: clamp(24px, 3vh, 36px); line-height: 1.6; }

.section-desc { font-family: var(--font-body); font-size: clamp(15px, 1.1vw, 17px); line-height: 1.7; color: var(--gray-700); margin-bottom: clamp(32px, 4vh, 48px); max-width: 650px; }

/* ===========================
   NOVITA SECTION
=========================== */
.novita-section__title {
  font-family: var(--font-title);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin: 0 0 clamp(16px, 2vh, 24px) 0;
  line-height: 1.2;
  display: block;
}

.novita-section { 
  padding: var(--section-padding) clamp(24px, 3vw, 40px); 
  background: var(--gray-800); 
  margin: clamp(24px, 3vh, 48px) clamp(2vw, 32px, 64px); 
  border-radius: 24px; 
}

.container-fullwidth { 
  max-width: none !important; 
  width: calc(100% - clamp(4vw, 6vw, 96px)); 
  display: grid; 
  gap: clamp(24px, 3vw, 40px); 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  margin: 0 auto; 
}
.novita-card { 
  position: relative; 
  overflow: hidden; 
  border-radius: 8px; 
  min-height: clamp(380px, 42vh, 500px); 
  background-size: cover; 
  background-position: center; 
}
.novita-card::before { 
  content: ''; 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 30%, transparent 60%, transparent 100%); 
  z-index: 1; 
}
.novita-card__content { 
  position: relative; 
  z-index: 2; 
  padding: clamp(32px, 4vw, 48px); 
  display: flex; 
  flex-direction: column; 
  justify-content: flex-end; 
  min-height: 100%; 
  box-sizing: border-box; 
}
.novita-card__title { 
  font-family: var(--font-title); 
  font-weight: 600; 
  font-size: clamp(24px, 3vw, 36px); 
  line-height: 1.2; 
  color: var(--white); 
  margin-bottom: clamp(8px, 1vh, 12px); 
}
.novita-card__desc { 
  font-family: var(--font-body); 
  font-size: clamp(14px, 1.1vw, 17px); 
  line-height: 1.6; 
  color: rgba(255,255,255,0.9); 
  max-width: 500px; 
}

/* ===========================
   PRODOTTI GRID
=========================== */
.prodotti-section { padding: var(--section-padding) 0; }
.prodotti-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 32px; 
  width: calc(100% - clamp(4vw, 6vw, 72px)); 
  margin: clamp(48px, 6vh, 80px) auto 0; 
}
.product-card { 
  position: relative; 
  min-height: clamp(350px, 45vh, 500px); 
  background-size: cover; 
  background-position: center; 
  border-radius: 24px;
  overflow: hidden; 
  text-decoration: none; 
  border-top: 3px solid var(--red);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card::after {
  content: ''; 
  position: absolute; 
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12),
              inset 0 4px 8px rgba(149,4,15,0.15),
              inset 0 -4px 8px rgba(15,23,42,0.1);
  z-index: 2; 
  pointer-events: none;
  transition: box-shadow 0.4s ease;
}

.product-card:hover::after {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2),
              inset 0 6px 12px rgba(149,4,15,0.2),
              inset 0 -6px 12px rgba(15,23,42,0.15);
}

.product-card:hover { transform: translateY(-8px); box-shadow: 0 16px 48px rgba(0,0,0,0.2); }
.product-card::before { 
  content: ''; 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 60%, transparent 100%); 
  z-index: 1; 
}
.product-card__content { 
  position: absolute; 
  bottom: 0; 
  left: 0; 
  right: 0; 
  padding: clamp(24px, 3vw, 36px); 
  color: var(--white); 
  z-index: 2; 
}
.product-card__title { 
  font-family: var(--font-title); 
  font-size: clamp(24px, 2.5vw, 32px); 
  font-weight: 700; 
  margin-bottom: 8px; 
}
.product-card__desc { 
  font-size: clamp(13px, 1vw, 15px); 
  color: rgba(255,255,255,0.9); 
  margin-bottom: 16px; 
  line-height: 1.6; 
  max-width: 400px; 
}
.card-link { 
  color: var(--accent); 
  font-weight: 600; 
  font-size: clamp(12px, 1vw, 14px); 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
  transition: gap 0.3s ease; 
}
.product-card:hover .card-link { gap: 10px; }

/* ===========================
   SERVIZI & CPL SECTION
=========================== */
.servizi-section { 
  padding: var(--section-padding) 0; 
  background: var(--gray-100); 
}
.servizi-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: clamp(24px, 2vw, 36px); 
  margin-top: clamp(48px, 6vh, 80px); 
}
.servizio-card { 
  background: var(--white); 
  padding: clamp(28px, 3vw, 36px) clamp(24px, 2vw, 32px); 
  border-radius: 24px;
  border-top: 3px solid var(--red);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; 
  overflow: hidden;
}

.servizio-card::before {
  content: ''; 
  position: absolute; 
  inset: 0; 
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(149,4,15,0.04) 0%, transparent 60%, rgba(15,23,42,0.03) 100%);
}
.servizio-card::after {
  content: ''; 
  position: absolute; 
  inset: 0; 
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04), inset 0 2px 4px rgba(149,4,15,0.06);
  pointer-events: none; 
  z-index: 1;
}
.servizio-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 12px 40px rgba(0,0,0,0.12); 
}


.servizio-card__title { 
  font-family: var(--font-title); 
  font-size: clamp(18px, 1.5vw, 22px); 
  font-weight: 700; 
  color: var(--black); 
  margin-bottom: 10px; 
  line-height: 1.3; 
}
.servizio-card__desc { 
  font-family: var(--font-body); 
  font-size: clamp(12px, 0.9vw, 14px); 
  color: var(--gray-700); 
  line-height: 1.7; 
}


.cpl-section { 
  padding: clamp(60px, 8vh, 100px) 0; 
  background: linear-gradient(135deg, #F5F0EB 0%, #E8DFD2 100%);
}

.cpl-content { 
  display: flex; 
  align-items: center; 
  gap: clamp(40px, 6vw, 80px); 
  margin-top: clamp(48px, 6vh, 80px);
  width: 100%;
  max-width: var(--container-max); 
  margin: 0 auto; 
  padding: 0 clamp(24px, 4vw, 60px);
}

.cpl-text { flex: 1; }
.cpl-image { 
  flex: 0 0 auto; 
  border-radius: 24px;
  overflow: hidden; 
  box-shadow: 0 16px 48px rgba(0,0,0,0.15); 
  max-width: clamp(300px, 30vw, 450px); 
}
.cpl-image img { width: 100%; height: auto; display: block; }

/* ===========================
   STATS SECTION
=========================== */
.stats-section { 
  padding: clamp(80px, 12vh, 160px) 0; 
  background: var(--black); 
  color: var(--white); 
}
.stats-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: clamp(32px, 4vw, 64px); 
  margin-top: clamp(48px, 6vh, 80px); 
  text-align: center; 
}
.stat-number { 
  font-family: var(--font-title); 
  font-size: clamp(36px, 5.5vw, 72px); 
  font-weight: 700; 
  color: var(--accent); 
  margin-bottom: clamp(8px, 1vh, 12px); 
}
.stat-label { 
  font-family: var(--font-body); 
  font-size: clamp(12px, 1vw, 14px); 
  color: rgba(255,255,255,0.7); 
  line-height: 1.6; 
}

.stat-icon img {
  width: 60%;
  height: 60%;
}

/* ===========================
   CONTATTI SECTION
=========================== */
#contatti { padding: var(--section-padding) 0; }
.contatti-card { 
  display: flex; 
  margin: 0 clamp(2vw, 3vw, 48px); 
  border-radius: 24px;
  overflow: hidden; 
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  position: relative;
}

.contatti-card::after {
  content: ''; 
  position: absolute; 
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1),
              inset 0 3px 6px rgba(149,4,15,0.12),
              inset 0 -3px 6px rgba(15,23,42,0.08);
  z-index: 3; 
  pointer-events: none;
}

.contatti-left-card { 
  flex: 0 0 40%; 
  background: linear-gradient(135deg, var(--accent) 40%, var(--black) 60%); 
  color: var(--white); 
  padding: clamp(36px, 5vw, 72px) clamp(28px, 4vw, 56px); 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
}
.contatti-left-card__title { 
  font-family: var(--font-title); 
  font-size: clamp(24px, 3vw, 36px); 
  font-weight: 700; 
  margin-bottom: clamp(16px, 2vh, 24px); 
  line-height: 1.2; 
}
.contatti-info { 
  list-style: none; 
  margin-top: clamp(24px, 3vh, 36px); 
}
.contatti-info li { 
  display: flex; 
  align-items: center; 
  gap: clamp(12px, 1.5vw, 18px); 
  margin-bottom: clamp(18px, 2.5vh, 24px); 
}

.contatti-info__text { 
  font-family: var(--font-body); 
  font-size: clamp(11px, 0.9vw, 14px); 
  line-height: 1.5; 
  color: rgba(255,255,255,0.8); 
}
.contatti-info__text strong { 
  display: block; 
  color: var(--white); 
  font-weight: 600; 
  margin-bottom: 2px; 
}

.contatti-right { 
  flex: 1; 
  padding: clamp(36px, 5vw, 72px) clamp(28px, 4vw, 56px); 
  background: var(--white); 
}
.contact-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: clamp(16px, 2vw, 24px); 
  margin-top: clamp(32px, 4vh, 48px); 
}

/* ===========================
   FORM STYLES
=========================== */
.form-control { 
  width: 100%; 
  padding: clamp(14px, 1.5vw, 18px) clamp(16px, 2vw, 20px); 
  border: 2px solid var(--gray-200); 
  border-radius: 8px; 
  font-family: var(--font-body); 
  font-size: clamp(13px, 1vw, 15px); 
  color: var(--gray-800); 
  transition: all 0.3s ease; 
  background: var(--white); 
}
.form-control:focus { 
  border-color: var(--accent); 
  box-shadow: 0 0 0 4px rgba(149,4,15,0.1); 
  outline: none; 
}
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { min-height: clamp(140px, 8vh, 180px); resize: vertical; }
.form-control.error { 
  border-color: #dc3545; 
  box-shadow: 0 0 0 4px rgba(220,53,69,0.1); 
}

.checkbox-wrapper { 
  display: flex; 
  align-items: flex-start; 
  gap: clamp(8px, 1vw, 12px); 
  margin-top: clamp(20px, 2.5vh, 24px); 
}
.checkbox-wrapper input[type="checkbox"] { 
  width: clamp(20px, 2vw, 24px); 
  height: clamp(20px, 2vw, 24px); 
  margin-top: 2px; 
  accent-color: var(--accent); 
  flex-shrink: 0; 
}
.checkbox-wrapper label { 
  font-family: var(--font-body); 
  font-size: clamp(12px, 1vw, 14px); 
  color: var(--gray-700); 
  line-height: 1.6; 
  cursor: pointer; 
}

/* ===========================
   FOOTER
=========================== */
.footer { 
  background: linear-gradient(135deg, var(--black) 40%, var(--accent) 60%); 
  padding-top: 1px; 
}
.footer__grid { 
  width: 90%; 
  max-width: var(--container-max); 
  margin: 0 auto; 
  display: grid; 
  gap: clamp(32px, 4vw, 64px); 
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
  padding: clamp(48px, 6vh, 80px) 0; 
  border-bottom: 1px solid rgba(255,255,255,0.1); 
}
.footer__col { display: flex; flex-direction: column; }
.footer__title { 
  font-family: var(--font-title); 
  font-weight: 700; 
  font-size: clamp(16px, 1.3vw, 20px); 
  color: var(--white); 
  margin-bottom: clamp(16px, 2vh, 24px); 
}
.footer__links { 
  list-style: none; 
  display: flex; 
  flex-direction: column; 
  gap: clamp(8px, 1vh, 12px); 
}
.footer__links a { 
  font-family: var(--font-body); 
  font-size: clamp(12px, 0.9vw, 14px); 
  color: #FFFFFF; 
}
.footer__links a { 
  position: relative; 
  padding-bottom: 2px; 
}
.footer__links a::after { 
  content: ''; 
  position: absolute; 
  left: 0; 
  bottom: 0; 
  width: 100%; 
  height: 1px; 
  background: currentColor; 
  transform: scaleX(0); 
  transform-origin: right; 
  transition: transform 0.35s ease; 
}
.footer__links a:hover {  
  color: var(--accent); 
  /* CLS FIX: sostituito padding-left con transform */
  transform: translateX(6px); 
}
.footer__links a[href^="mailto:"]:hover { 
  color: var(--black) !important; 
}
.footer__bottom { 
  width: 90%; 
  max-width: var(--container-max); 
  margin: 0 auto; 
  padding: clamp(16px, 2vh, 24px) 0; 
  border-top: 1px solid rgba(255,255,255,0.1); 
  text-align: center; 
}
.footer__copyright { 
  font-family: var(--font-body); 
  font-size: clamp(12px, 0.9vw, 14px); 
  color: #FFFFFF; 
  line-height: 1.6; 
}

/* ===========================
   OVERLAYS & ANIMATIONS
=========================== */
.fade-in { 
  opacity: 0; 
  transform: translateY(30px); 
  transition: opacity 0.6s ease-out, transform 0.6s ease-out; 
}
.fade-in.visible { 
  opacity: 1; 
  transform: translateY(0); 
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

.policy-overlay { 
  position: fixed; 
  inset: 0; 
  z-index: 9999; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: rgba(0,0,0,0.95); 
  opacity: 0; 
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease-out, visibility 0s 0.4s, pointer-events 0s 0.4s; 
  padding: clamp(16px, 2vw, 32px); 
}
.policy-overlay.open { 
  opacity: 1; 
  visibility: visible; 
  pointer-events: auto;
  transition: opacity 0.4s ease-out, visibility 0s 0s, pointer-events 0s 0s; 
}
.policy-content { 
  background: var(--white); 
  border-radius: 12px; 
  box-shadow: 0 24px 80px rgba(0,0,0,0.3); 
  width: 100%; 
  max-width: 800px; 
  max-height: 85vh; 
  overflow-y: auto; 
  position: relative; 
  transform: scale(0.95) translateY(20px); 
  transition: transform 0.4s ease-out; 
}
.policy-overlay.open .policy-content { 
  transform: scale(1) translateY(0); 
}
.policy-content__close { 
  position: absolute; 
  top: clamp(16px, 2vw, 24px); 
  right: clamp(16px, 2vw, 24px); 
  width: clamp(36px, 3vw, 48px); 
  height: clamp(36px, 3vw, 48px); 
  background: transparent; 
  border: none; 
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: var(--gray-700); 
  font-size: clamp(24px, 3vw, 32px); 
  transition: all 0.3s ease; 
  z-index: 1; 
}
.policy-content__close:hover { 
  background: rgba(0,0,0,0.06); 
  color: var(--accent); 
}
.policy-content__inner { 
  padding: clamp(32px, 4vw, 48px); 
}
.policy-link { 
  color: var(--accent); 
  cursor: pointer; 
  text-decoration: underline; 
}
.footer .policy-link { 
  color: #FFFFFF !important; 
}

.cookie-bar {
  position: fixed; 
  bottom: 0; 
  left: 0; 
  right: 0; 
  z-index: 9999;
  background: var(--white); 
  border-top: 2px solid var(--accent);
  padding: 12px clamp(16px, 3vw, 48px);
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 16px;
  transform: translateY(100%); 
  opacity: 0;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
}
.cookie-bar.show {
  transform: translateY(0); 
  opacity: 1;
}
.cookie-bar p {
  margin: 0; 
  font-family: var(--font-body); 
  font-size: clamp(12px, 0.9vw, 14px); 
  color: var(--gray-700); 
  line-height: 1.6; 
  text-align: center;
}
.cookie-bar a {
  color: var(--accent); 
  font-weight: 600; 
  text-decoration: underline; 
  white-space: nowrap;
}
.cookie-bar a:hover { 
  color: var(--red-dark); 
}

.scroll-top { 
  position: fixed; 
  bottom: clamp(24px, 3vh, 40px); 
  right: clamp(24px, 3vw, 40px); 
  width: clamp(44px, 4vw, 52px); 
  height: clamp(44px, 4vw, 52px); 
  background: var(--red); 
  color: var(--white); 
  border: none; 
  border-radius: 8px; 
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  opacity: 0; 
  visibility: hidden; 
  transform: translateY(20px); 
  transition: all 0.3s ease; 
  z-index: 999; 
  box-shadow: 0 4px 16px rgba(227,6,19,0.3); 
  font-size: clamp(18px, 2vw, 24px); 
}
.scroll-top.is-visible { 
  opacity: 1; 
  visibility: visible; 
  transform: translateY(0); 
}
.scroll-top:hover { 
  background: var(--red-dark); 
  transform: translateY(-2px); 
}

/* ==================================================
   COMPLETAMENTO — classi presenti nel markup HTML
   ma non definite negli stylesheet (audit design system)
================================================== */

/* Utility */
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---- STATS ---- */
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-suffix { font-size: 0.55em; margin-left: 2px; }

/* ---- FORM ---- */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-label { font-family: var(--font-body); font-size: clamp(12px, 0.9vw, 14px); font-weight: 600; color: var(--gray-700); }
.form-col { width: 100%; }
.form-message { margin-top: 16px; font-size: 14px; font-weight: 500; }
.form-check { width: clamp(20px, 2vw, 24px); height: clamp(20px, 2vw, 24px); accent-color: var(--accent); flex-shrink: 0; }
.form-check-label { font-family: var(--font-body); font-size: clamp(12px, 0.9vw, 14px); color: var(--gray-700); line-height: 1.6; cursor: pointer; }

/* ---- CONTATTI ---- */
.contatti-info__icon { font-size: clamp(16px, 1.5vw, 20px); line-height: 1; }

/* ---- SECTION SPLIT (modifieri immagine) ---- */
.section-split--left-image { flex-direction: row; }
.section-split--right-image { flex-direction: row; }

/* ---- SERVIZI ---- */
.servizio-icon { flex: 0 0 auto; }
.service-icon-svg { width: 40px; height: 40px; }

/* ---- NOVITA / GALLERIA ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.5vw, 16px); width: 100%; height: 100%; }
.gallery-item { aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; background-color: #FAFAF9; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

/* ---- MAPPA ---- */
.map-col { width: 100%; }
.map-placeholder { width: 100%; min-height: 320px; background-color: var(--gray-100); border-radius: 16px; }

/* Prefers Reduced Motion (WCAG 2.2 Compliance) */
@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;
  }
  .fade-in { opacity: 1; transform: none; }
  .counter { text-shadow: none; }
}

/* ====================================
   MEDIA QUERIES - TABLET & MOBILE
==================================== */

@media (max-width: 968px) {
  .mobile-toggle { 
    display: flex; 
    position: relative; 
    z-index: 1001; 
  }
  
  .header__right {
    position: fixed; 
    top: var(--header-height); 
    left: 0; 
    width: 100%; 
    height: calc(100vh - var(--header-height));
    background: var(--black); 
    overflow-y: auto; 
    display: block; 
    visibility: hidden; 
    opacity: 0; 
    transition: opacity 0.3s ease, visibility 0s 0.3s; 
    z-index: 998;
  }
  .header__right.menu-open { 
    visibility: visible; 
    opacity: 1; 
    transition: opacity 0.3s ease, visibility 0s 0s; 
  }
  .nav-list { 
    flex-direction: column; 
    gap: 0; 
    padding: 24px 0; 
    list-style: none; 
  }
  .nav-link { 
    display: block; 
    padding: 16px 28px; 
    font-size: 17px; 
    color: rgba(255, 255, 255, 0.85); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
    width: 100%; 
  }
  .nav-link:hover { 
    background: rgba(255, 255, 255, 0.06); 
    color: #fff; 
  }
  .nav-cta { 
    margin-top: 8px; 
    background: var(--red) !important; 
    color: var(--white) !important; 
    border-radius: 6px; 
    text-align: center; 
    padding: 14px 28px !important; 
  }
  .has-dropdown { position: static; }
  .dropdown { 
    position: static; 
    opacity: 1; 
    visibility: visible; 
    transform: none; 
    background: rgba(255, 255, 255, 0.04); 
    border-radius: 8px; 
    margin: 8px 28px; 
    min-width: auto; 
    box-shadow: none; 
    padding: 8px 0; 
    display: none; 
    pointer-events: auto; 
  }
  .has-dropdown.dropdown-open .dropdown { display: block; }
  .has-dropdown > .nav-link::after { 
    float: right; 
    transform: rotate(-45deg); 
    border-color: rgba(255, 255, 255, 0.4); 
  }
  .has-dropdown.dropdown-open > .nav-link::after { 
    transform: rotate(45deg); 
  }
  .header__left, .header__right { padding: 0 16px; }
  .hero-new {
    border-radius: 24px;
    min-height: clamp(350px, 50vh, 550px);
  }
  .hero-content { padding: 40px 20px; }
  .hero__title { font-size: clamp(28px, 6vw, 40px); }
  .section-split { 
    flex-direction: column; 
    margin: 0 12px; 
    border-radius: 24px; 
  }
  .section-split__content { padding: 32px 20px; }
  .section-split__image { 
    min-height: 280px; 
    width: 100%; 
    flex: none; 
  }
  .novita-section { 
    margin: 48px 12px; 
    border-radius: 24px; 
    padding: 32px 16px; 
  }
  .prodotti-grid { 
    grid-template-columns: 1fr; 
    gap: 24px; 
    width: calc(100% - 24px); 
  }
  .servizi-grid { grid-template-columns: 1fr; }
  .cpl-content { 
    flex-direction: column-reverse; 
    gap: 32px; 
  }
  .cpl-image { 
    max-width: 100%; 
    width: 100%; 
  }
  .stats-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 32px; 
  }
  .contatti-card { 
    flex-direction: column; 
    margin: 0 12px; 
    border-radius: 24px; 
  }
  .contatti-left-card { 
    flex: none; 
    width: 100%; 
    padding: 32px 24px; 
  }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { 
    grid-template-columns: 1fr; 
    gap: 32px; 
  }
  .section-title { 
    font-size: clamp(26px, 5vw, 34px); 
  }
}

@media (max-width: 768px) {
  .header { height: var(--header-height); align-items: center; }
  .header__left {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
  }
  .logo img { height: 32px; }
  .lang-toggle { 
    gap: 4px; 
    padding: 3px 6px; 
    margin-left: 12px; 
  }
  .lang-btn { 
    min-width: 24px; 
    height: 20px; 
    padding: 0 6px; 
    font-size: 11px; 
  }
  .lang-separator { font-size: 11px; }
  .mobile-toggle {
    order: -1;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1001;
  }
  .header__right { 
    top: var(--header-height); 
    left: 0; 
    width: 100%; 
    height: calc(100vh - var(--header-height)); 
    position: fixed; 
    background: var(--black); 
    overflow-y: auto; 
    display: block; 
    visibility: hidden; 
    opacity: 0; 
    transition: opacity 0.3s ease, visibility 0s 0.3s; 
    z-index: 998; 
    padding: 0; 
  }
  .header__right.menu-open { 
    visibility: visible; 
    opacity: 1; 
    transition: opacity 0.3s ease, visibility 0s 0s; 
  }
  body.menu-is-open { overflow: hidden; }
  .hero__title { 
    font-size: clamp(32px, 7vw, 48px); 
  }
  .hero__actions { 
    flex-direction: column; 
    width: 100%; 
  }
  .btn { width: 100%; }
  .stats-grid { 
    display: none;
  }
  .prodotti-grid { 
    grid-template-columns: 1fr; 
    gap: 20px; 
    width: calc(100% - 24px); 
  }
  .product-card { min-height: 250px; }
  .container-fullwidth { 
    grid-template-columns: 1fr !important; 
  }
  .novita-card__content { 
    padding-left: 20px; 
    padding-right: 20px; 
  }
  .scroll-top { 
    bottom: 24px; 
    right: 24px; 
    width: 48px; 
    height: 48px; 
  }
}

@media (max-width: 480px) {
  .section-label { font-size: 12px; }
}
.btn--success { background-color: #28a745 !important; border-color: #28a745 !important; }
