/* ============================================
   COMET SRL - Premium Website Stylesheet
   WordPress/Elementor/Blocksy Ready
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #144d29;
  --color-primary-dark: #0e3a1e;
  --color-primary-light: #1a6635;
  --color-accent: #a2d863;
  --color-accent-light: #c4e89a;
  --color-accent-dark: #7fbf3a;
  --color-white: #ffffff;
  --color-off-white: #f7faf4;
  --color-light-bg: #eef5e8;
  --color-gray-100: #f5f5f5;
  --color-gray-200: #e8e8e8;
  --color-gray-300: #d1d1d1;
  --color-gray-500: #8a8a8a;
  --color-gray-700: #4a4a4a;
  --color-gray-900: #1a1a1a;
  --color-text: #333333;
  --color-text-light: #6b6b6b;
  --color-overlay-dark: rgba(14, 58, 30, 0.82);
  --color-overlay-medium: rgba(20, 77, 41, 0.65);

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.16);
  --shadow-card: 0 4px 24px rgba(20, 77, 41, 0.08);
  --shadow-card-hover: 0 12px 40px rgba(20, 77, 41, 0.18);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1280px;
  --container-wide: 1440px;
  --section-padding: 100px 0;
  --section-padding-sm: 60px 0;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol { list-style: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-gray-900);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.25rem); }

p { margin-bottom: 1em; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent-dark);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 640px;
  line-height: 1.8;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

.text-white { color: var(--color-white); }
.text-white h1, .text-white h2, .text-white h3,
.text-white h4, .text-white p, .text-white .section-label,
.text-white .section-subtitle { color: var(--color-white); }
.text-white .section-label { color: var(--color-accent-light); }
.text-white .section-label::before { background: var(--color-accent-light); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-primary-dark);
  box-shadow: 0 4px 16px rgba(162, 216, 99, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(162, 216, 99, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon { transform: translateX(4px); }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}


/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  padding: 8px 24px;
  transition: transform var(--transition-medium);
}

.topbar.hidden {
  transform: translateY(-100%);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
}

.topbar-social a:hover {
  color: var(--color-accent-light);
}

.topbar-social a svg {
  width: 14px;
  height: 14px;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition-fast);
}

a.topbar-item:hover {
  color: var(--color-accent-light);
}

.topbar-item svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
  transition: all var(--transition-medium);
}

.site-header.scrolled {
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
  padding: 12px 24px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  position: relative;
	margin-bottom: -55px;
	margin-top: -20px;
	margin-left: -25px;
}

.site-logo img {
  height: 120px;
  width: auto;
  transition: all var(--transition-fast);
  background: var(--color-white);
  border-radius: 0 0 90px 0;
  padding: 15px 15px 15px 35px;
}
.scrolled .site-logo{
	margin-bottom: inherit;
	margin-top: inherit;
}
.scrolled .site-logo img {
  height: 38px;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.main-nav { display: flex; align-items: center; gap: 8px; }

.main-nav a {
  position: relative;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-gray-700);
  border-radius: var(--radius-xl);
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scrolled .main-nav a { color: var(--color-gray-700); }

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

.main-nav a:hover::after,
.main-nav a.active::after { transform: translateX(-50%) scaleX(1); }

.main-nav a:hover { color: var(--color-accent); }
.scrolled .main-nav a:hover { color: var(--color-primary); }

.nav-cta {
  padding: 10px 24px;
  background: var(--color-accent);
  color: var(--color-primary-dark) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-xl);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--color-accent-dark) !important;
  color: var(--color-white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(162, 216, 99, 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-gray-900);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.scrolled .menu-toggle span { background: var(--color-gray-900); }

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-left: 30px;
  padding-right: 30px;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--color-white);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 3;
}

.hero-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  right: 30px;
  z-index: 1;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  display: flex;
  align-items: center;
}

.hero-slide.active { opacity: 1; }

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(14, 58, 30, 0.88) 0%,
    rgba(20, 77, 41, 0.7) 50%,
    rgba(14, 58, 30, 0.6) 100%
  );
  z-index: 1;
}

.hero-slide .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-slide .hero-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.hero-slide.active .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero-slide.active .hero-slide-bg { transform: scale(1); }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 80px;
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(162, 216, 99, 0.15);
  border: 1px solid rgba(162, 216, 99, 0.3);
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: 8px;
  max-width: 560px;
}

/* Hero Slider Dots */
.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 12px;
}

.hero-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 2px solid rgba(162,216,99,1);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-dot.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.2);
}

/* Hero Navigation Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-white);
}

.hero-arrow:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow svg {
  width: 24px;
  height: 24px;
}

.hero-arrow-prev { left: 44px; }
.hero-arrow-next { right: 44px; }

/* Hero Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   PRODUCTS GRID SECTION
   ============================================ */
.products-section {
  padding: var(--section-padding);
  background: var(--color-white);
}

.products-header {
  text-align: center;
  margin-bottom: 60px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-medium);
  group: product;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.product-card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img { transform: scale(1.08); }

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 58, 30, 0.7), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.product-card:hover .product-card-overlay { opacity: 1; }

.product-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-xl);
}

.product-card-body {
  padding: 28px 24px;
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-gray-900);
}

.product-card-text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: all var(--transition-fast);
}

.product-card-link svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.product-card-link:hover { color: var(--color-accent-dark); }
.product-card-link:hover svg { transform: translateX(4px); }

/* Number badge */
.product-card-number {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* ============================================
   PRODUCTS LIST LAYOUT (Prodotti page)
   ============================================ */
.products-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.product-list-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-medium);
}

.product-list-item:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.product-list-image {
  position: relative;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
}

.product-list-image img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-list-item:hover .product-list-image img {
  transform: scale(1.05);
}

.product-list-body {
  padding: 28px 24px;
  background: var(--color-primary);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-list-body .product-card-title {
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--color-white);
}

.product-list-body .product-card-text {
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}

.product-list-body .btn-outline {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.5);
}

.product-list-body .btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

@media (max-width: 768px) {
  .products-list {
    grid-template-columns: 1fr;
  }

  .product-list-item {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .product-list-image {
    min-height: 220px;
  }

  .product-list-body {
    padding: 24px 20px;
  }
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gray-700);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.pagination-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination-link.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  color: var(--color-gray-700);
  transition: all var(--transition-fast);
}

.pagination-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination-btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   PRODUCT DETAIL / GALLERY
   ============================================ */
.product-detail-section {
  padding: var(--section-padding);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Main Gallery */
.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-gray-100);
  aspect-ratio: 4/3;
}

.gallery-main-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: zoom-in;
}

.gallery-main-slide.active {
  opacity: 1;
}

.gallery-main-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  opacity: 0;
  transition: all var(--transition-fast);
  pointer-events: none;
}

.gallery-zoom-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.gallery-main-slide:hover .gallery-zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Main Gallery Arrows */
.gallery-main-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-gray-900);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all var(--transition-fast);
}

.gallery-main-arrow:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.gallery-main-arrow svg {
  width: 20px;
  height: 20px;
}

.gallery-main-prev { left: 12px; }
.gallery-main-next { right: 12px; }

/* Thumbs Slider */
.gallery-thumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  position: relative;
}

.gallery-thumbs-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.gallery-thumbs-inner {
  display: flex;
  gap: 8px;
  transition: transform var(--transition-medium);
}

.gallery-thumb {
  flex: 0 0 calc((100% - 24px) / 4);
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all var(--transition-fast);
  opacity: 0.6;
}

.gallery-thumb.active {
  border-color: var(--color-primary);
  opacity: 1;
}

.gallery-thumb:hover {
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.gallery-thumbs-arrow {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-200);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  color: var(--color-gray-700);
}

.gallery-thumbs-arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.gallery-thumbs-arrow svg {
  width: 16px;
  height: 16px;
}

/* Product Info */
.product-info {
  text-align: left;
}

.product-info .section-subtitle {
  text-align: left;
  margin-left: 0;
}

.product-features-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--color-gray-700);
  padding: 10px 16px;
  background: var(--color-off-white);
  border-radius: var(--radius-sm);
}

.product-features-list li svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent-dark);
  flex-shrink: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.5rem;
  color: var(--color-white);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: opacity var(--transition-fast);
}

.lightbox-close:hover { opacity: 0.7; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-prev svg,
.lightbox-next svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 1024px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-detail-section {
    padding: 80px 0;
  }

  .gallery-main {
    aspect-ratio: 16/10;
  }
}

@media (max-width: 768px) {
  .product-detail-section {
    padding: 60px 0;
  }

  .product-detail-grid {
    gap: 32px;
  }

  .gallery-main {
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
  }

  .gallery-main-arrow {
    width: 36px;
    height: 36px;
  }

  .gallery-main-arrow svg {
    width: 16px;
    height: 16px;
  }

  .gallery-main-prev { left: 8px; }
  .gallery-main-next { right: 8px; }

  .gallery-thumb {
    flex: 0 0 calc(25% - 6px);
  }

  .gallery-thumbs-arrow {
    width: 30px;
    height: 30px;
  }

  .gallery-thumbs-arrow svg {
    width: 14px;
    height: 14px;
  }

  .product-info .section-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  .product-features-list li {
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  .product-info .btn-group {
    flex-direction: column;
  }

  .product-info .btn {
    width: 100%;
    justify-content: center;
  }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }

  .lightbox-prev,
  .lightbox-next {
    width: 38px;
    height: 38px;
  }
}


/* ============================================
   PARALLAX SECTION
   ============================================ */
.parallax-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: -30%;
  left: 0;
  right: 0;
  bottom: -30%;
  z-index: 0;
}

.parallax-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parallax-section .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(14, 58, 30, 0.88) 0%,
    rgba(20, 77, 41, 0.7) 50%,
    rgba(14, 58, 30, 0.6) 100%
  );
  z-index: 1;
}

.parallax-content {
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 32px 16px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.stat-divider {
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  margin: 12px auto 0;
  border-radius: 2px;
  opacity: 0.5;
}

/* ============================================
   PROCESS / TIMELINE SECTION
   ============================================ */
.process-section {
  padding: var(--section-padding);
  background: var(--color-off-white);
}

.process-header {
  text-align: center;
  margin-bottom: 80px;
}

.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Connecting line */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 16.66%;
  right: 16.66%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary), var(--color-accent));
  border-radius: 2px;
  z-index: 0;
}

.process-step {
  position: relative;
  text-align: center;
  z-index: 1;
}

.process-step-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: 3px solid var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(162, 216, 99, 0.2);
  transition: all var(--transition-medium);
}

.process-step:hover .process-step-icon {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(20, 77, 41, 0.3);
}

.process-step-icon svg {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

.process-step:hover .process-step-icon svg { color: var(--color-white); }

.process-step-number {
  position: absolute;
  top: -8px;
  right: calc(50% - 60px);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  z-index: 2;
}

.process-step-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--color-gray-900);
}

.process-step-text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.process-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.process-feature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--color-gray-700);
  padding: 6px 16px;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.process-feature svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent-dark);
  flex-shrink: 0;
}

/* ============================================
   ABOUT / AZIENDA SECTION
   ============================================ */
.about-section {
  padding: var(--section-padding);
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-main img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-image-accent {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 6px solid var(--color-white);
  box-shadow: var(--shadow-lg);
}

.about-image-accent img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  top: -20px;
  left: -20px;
  padding: 20px 24px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-experience-badge .number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
}

.about-experience-badge .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.about-content .section-subtitle { margin-bottom: 28px; text-align: left;}

.about-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-off-white);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-gray-700);
  transition: all var(--transition-fast);
}

.about-feature-item:hover {
  background: var(--color-light-bg);
  transform: translateX(4px);
}

.about-feature-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent-dark);
  flex-shrink: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary), var(--color-primary-light));
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(162, 216, 99, 0.1), transparent 70%);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(162, 216, 99, 0.08), transparent 70%);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.cta-content .btn-group { justify-content: center; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-gray-900);
  color: rgba(255,255,255,0.7);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-top: 20px;
  max-width: 320px;
}

.footer-brand .site-logo { margin-bottom: 4px; }
.footer-brand .site-logo img {
  filter: brightness(10);
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  background: transparent;
	height: 70px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: 24px;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-certifications {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-fast);
}

.footer-cert-badge:hover {
  background: rgba(162, 216, 99, 0.1);
  border-color: rgba(162, 216, 99, 0.3);
}

.footer-cert-badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-legal {
  font-size: 0.72rem;
  line-height: 1.8;
  max-width: 700px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.footer-social a svg { width: 18px; height: 18px; }


/* ============================================
   WOW ANIMATE CUSTOM ANIMATIONS
   ============================================ */
.wow {
  visibility: hidden;
}

.animated {
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

/* Fade In Up */
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 50px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.fadeInUp { animation-name: fadeInUp; }

/* Fade In Down */
@keyframes fadeInDown {
  from { opacity: 0; transform: translate3d(0, -40px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.fadeInDown { animation-name: fadeInDown; }

/* Fade In Left */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translate3d(-60px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.fadeInLeft { animation-name: fadeInLeft; }

/* Fade In Right */
@keyframes fadeInRight {
  from { opacity: 0; transform: translate3d(60px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.fadeInRight { animation-name: fadeInRight; }

/* Zoom In */
@keyframes zoomIn {
  from { opacity: 0; transform: scale3d(0.9, 0.9, 0.9); }
  to { opacity: 1; transform: scale3d(1, 1, 1); }
}
.zoomIn { animation-name: zoomIn; }

/* Scale Up */
@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
.scaleUp { animation-name: scaleUp; }

/* Slide In Up */
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(80px); }
  to { opacity: 1; transform: translateY(0); }
}
.slideInUp { animation-name: slideInUp; }

/* Flip In X */
@keyframes flipInX {
  from { opacity: 0; transform: perspective(400px) rotateX(15deg); }
  to { opacity: 1; transform: perspective(400px) rotateX(0); }
}
.flipInX { animation-name: flipInX; }

/* Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* ============================================
   INTERNAL PAGES - PAGE HEADER
   ============================================ */
.page-header {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
}

.page-header .parallax-bg {
  position: absolute;
  top: -30%;
  left: 0;
  right: 0;
  bottom: -30%;
}

.page-header .parallax-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(14, 58, 30, 0.9) 0%,
    rgba(20, 77, 41, 0.75) 100%
  );
}

.page-header-content {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover { color: var(--color-accent); }

.breadcrumb .separator {
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.3);
}

.breadcrumb .current { color: var(--color-accent-light); }

.page-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--color-white);
  font-weight: 800;
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
}

/* ============================================
   SERVICES SECTION (Servizi page)
   ============================================ */
.services-section {
  padding: var(--section-padding);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.service-card {
  padding: 40px 32px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-medium);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light-bg);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  transition: all var(--transition-fast);
}

.service-card:hover .service-icon {
  background: var(--color-primary);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

.service-card:hover .service-icon svg { color: var(--color-white); }

.service-card h3 { margin-bottom: 14px; }

.service-card p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  padding: var(--section-padding);
  background: var(--color-off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info-card {
  padding: 40px;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(162, 216, 99, 0.15), transparent 70%);
  border-radius: 50%;
}

.contact-info-card h3 {
  color: var(--color-white);
  margin-bottom: 8px;
}

.contact-info-card > p {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  margin-bottom: 32px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(162, 216, 99, 0.15);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.contact-info-item h4 {
  color: var(--color-white);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.contact-info-item p {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  margin-bottom: 0;
}

.contact-form {
  padding: 40px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-text);
  background: var(--color-gray-100);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  background: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(162, 216, 99, 0.15);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}


/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }

  .topbar { display: none; }

  .site-header { top: 0; }

  .hero-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-slider {
    left: 20px;
    right: 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image-accent { display: none; }

  .about-image-main img { height: 360px; }

  .about-features-list {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .process-timeline::before {
    top: 0;
    bottom: 0;
    left: 48px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .process-step {
    text-align: left;
    padding-left: 120px;
  }

  .process-step-icon {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    width: 80px;
    height: 80px;
  }

  .process-step-number {
    top: -6px;
    right: auto;
    left: 56px;
  }

  .process-step-text {
    margin-left: 0;
    margin-right: 0;
  }

  .process-features {
    align-items: flex-start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-header .parallax-bg {
    top: -30%;
    bottom: -30%;
  }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  body { font-size: 15px; }

  .container { padding: 0 16px; }

  /* Mobile Navigation */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: 100px 32px 40px;
    gap: 4px;
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
    transition: right var(--transition-medium);
    overflow-y: auto;
  }

  .main-nav.open { right: 0; }

  .main-nav a {
    color: var(--color-gray-700);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  .main-nav a:hover {
    background: var(--color-off-white);
    color: var(--color-primary);
  }

  .main-nav a::after { display: none; }

  .nav-cta {
    margin-top: 16px;
    text-align: center;
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
    padding: 14px 24px;
  }

  .menu-toggle { display: flex; }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
  }

  .mobile-overlay.active { display: block; }

  /* Hero Mobile */
  .hero-section { min-height: 100svh; }

  .hero-arrow { display: none; }

  .hero-content { padding-top: 100px; }

  .hero-title { font-size: clamp(2rem, 7vw, 2.8rem); }

  .hero-description { font-size: 1rem; }

  .btn-group {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
  }

  .hero-scroll-indicator { display: none; }

  .hero-dots { bottom: 24px; }

  /* Products Mobile */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card-image { height: 200px; }

  /* Stats Mobile */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .stat-number { font-size: 2rem; }

  /* Process Mobile */
  .process-step { padding-left: 100px; }

  .process-step-icon {
    width: 64px;
    height: 64px;
  }

  .process-step-icon svg {
    width: 28px;
    height: 28px;
  }

  .process-timeline::before { left: 32px; }

  /* About Mobile */
  .about-experience-badge {
    position: relative;
    top: auto;
    left: auto;
    display: inline-block;
    margin-bottom: 20px;
  }

  .about-features-list {
    grid-template-columns: 1fr;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal { text-align: center; }

  /* Contact Mobile */
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form,
  .contact-info-card {
    padding: 28px 20px;
  }

  /* Services Mobile */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Page Header Mobile */
  .page-header {
    padding: 140px 0 60px;
  }

  .page-title {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  /* CTA Mobile */
  .cta-section { padding: 60px 0; }

  .footer-certifications {
    flex-direction: column;
  }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE
   ============================================ */
@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }

  .hero-badge { font-size: 0.7rem; padding: 6px 14px; }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-item {
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
  }

  .process-step {
    padding-left: 0;
    padding-top: 80px;
    text-align: center;
  }

  .process-step-icon {
    position: relative;
    margin: 0 auto 20px;
  }

  .process-timeline::before { display: none; }

  .process-step-number {
    top: -6px;
    right: calc(50% - 46px);
    left: auto;
  }

  .process-features { align-items: center; }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.overflow-hidden { overflow: hidden; }

/* Elementor/Blocksy compatibility classes */
.elementor-section { position: relative; }
.elementor-widget-wrap { position: relative; }
.ct-container { max-width: var(--container-max); margin: 0 auto; }

/* Smooth reveal for parallax elements */
[data-parallax] {
  will-change: transform;
}

/* Print styles */
@media print {
  .site-header,
  .hero-dots,
  .hero-scroll-indicator,
  .menu-toggle,
  .btn { display: none; }

  body { color: #000; background: #fff; }

  .parallax-section,
  .hero-section { min-height: auto; padding: 40px 0; }
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  color: #fff;
  z-index: 9999;
  padding: 1rem 1.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.cookie-banner__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-banner__inner p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #ccc;
  flex: 1;
  min-width: 280px;
}
.cookie-banner__inner a {
  color: var(--color-accent);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-banner__btn {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}
.cookie-banner__btn--accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner__btn--accept:hover { background: var(--color-primary-dark); }
.cookie-banner__btn--decline {
  background: transparent;
  color: #ccc;
  border: 1px solid #555;
}
.cookie-banner__btn--decline:hover { border-color: #999; color: #fff; }

/* ── WordPress menu: rimuove il list-marker dai <li> nel nav principale ── */
/* Il mockup usa <nav><a>, WordPress genera <nav><li><a>                    */
.main-nav li { list-style: none; display: contents; }
.main-nav li::marker { content: none; }

/* ── Process step icon: clip SVG overflow (SVG senza width/height espliciti renderizzano a 300x150px) ── */
.process-step-icon { overflow: hidden; }

/* ── CF7 form: layout 2 colonne (form-row) + stile input/textarea ── */
.wpcf7 .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.wpcf7 .wpcf7-form-control-wrap { display: block; width: 100%; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--color-gray-100);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-fast);
  margin-bottom: 16px;
}
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus { border-color: var(--color-primary); background: #fff; }
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 select { cursor: pointer; }
.wpcf7 .wpcf7-acceptance { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.85rem; color: var(--color-text-light); }
.wpcf7 .wpcf7-acceptance input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.wpcf7 input[type="submit"] {
  width: 100%;
  padding: 16px 32px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  cursor: pointer;
  letter-spacing: .03em;
  transition: background var(--transition-fast);
  margin-top: 8px;
}
.wpcf7 input[type="submit"]:hover { background: var(--color-accent-dark); }
@media (max-width: 640px) { .wpcf7 .form-row { grid-template-columns: 1fr; } }

/* CF7: nasconde i <br> che CF7 inserisce tra shortcodes dentro form-row */
.wpcf7 .form-row br { display: none; }
.wpcf7 .form-row .wpcf7-form-control-wrap { margin-bottom: 0; }

/* CF7 avvolge i shortcode in <p> dentro form-row — display:contents lo rende "trasparente" */
/* I <span> diventano figli diretti del grid, creando i 2 colonne */
.wpcf7 .form-row > p { display: contents; }


/* -- Nav: active state per WordPress (sostituisce .active del mockup) -- */
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav a[aria-current="page"] { color: var(--color-gray-700) !important; }
.scrolled .main-nav .current-menu-item > a,
.scrolled .main-nav .current_page_item > a { color: var(--color-gray-700) !important; }
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after,
.main-nav a[aria-current="page"]::after { transform: translateX(-50%) scaleX(1); }

/* ── Credits Clion ───────────────────────────────────────────────────────────── */
.credits_link {
    color: #38B5E6 !important;
    font-weight: 700;
    font-family: sans-serif;
}
.credits_link:hover {
    color: #fff !important;
}
.credits_link::before {
    content: "";
    vertical-align: middle;
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-right: 5px;
    margin-left: 5px;
    background-image: url(https://www.clion.it/favicon-96x96.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    transition: all 450ms ease;
}
.credits_link:hover::before {
    transform: rotateZ(360deg) rotateY(360deg);
}

