/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f5;
  --color-bg-card: #ffffff;
  --color-bg-card2: #f2f2ef;
  --color-bg-dark: #f4f4f1;
  --color-orange: #F07000;
  --color-orange-hover: #d46200;
  --color-orange-light: rgba(240, 112, 0, 0.08);
  --color-orange-border: rgba(240, 112, 0, 0.25);
  --color-green: #357748;
  --color-green-hover: #2a5e39;
  --color-green-light: rgba(53, 119, 72, 0.08);
  --color-green-border: rgba(53, 119, 72, 0.25);
  --color-accent: #F07000;
  --color-accent-hover: #d46200;
  --color-accent-light: rgba(207, 100, 0, 0.08);
  --color-border-accent: rgba(207, 100, 0, 0.25);
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-border: rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 32px rgba(0,0,0,0.12);
  --shadow-accent: 0 4px 24px rgba(207, 100, 0, 0.2);
  --shadow-green: 0 4px 24px rgba(50, 175, 33, 0.2);
  --transition: 0.3s ease;
  --font-main: 'Inter', sans-serif;
  --font-title: 'Times New Roman', Times, serif;
  --header-h: 74px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  max-width: 100%;
  touch-action: pan-y;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

html::-webkit-scrollbar-horizontal,
body::-webkit-scrollbar-horizontal {
  display: none; /* Chrome/Safari – nascondi solo la barra orizzontale */
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  touch-action: pan-y;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul { list-style: none; }

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

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  width: 100%;
}

.section {
  padding: 100px 0;
  overflow-x: clip;
}

.section-dark {
  background-color: var(--color-bg-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  background: var(--color-orange-light);
  color: var(--color-orange);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--color-orange-border);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.text-accent { color: var(--color-orange); }
.text-green  { color: var(--color-green); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-orange-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-accent {
  background: transparent;
  color: var(--color-green);
  border: 2px solid var(--color-green);
}

.btn-accent:hover {
  background: var(--color-green);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.btn-green {
  background: var(--color-green);
  color: #fff;
  border: 2px solid var(--color-green);
}

.btn-green:hover {
  background: var(--color-green-hover);
  border-color: var(--color-green-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

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

/* ============================================
   HEADER
   ============================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: all var(--transition);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

#header.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
}

.logo strong { color: var(--color-orange); }

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  transition: opacity var(--transition);
}

.logo-img-footer {
  height: 38px;
  opacity: 0.9;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--color-orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}

#nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

#nav ul li a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--transition);
}

#nav ul li a:hover {
  color: var(--color-orange);
  background: var(--color-orange-light);
}

.btn-nav {
  background: var(--color-orange) !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.btn-nav:hover {
  background: var(--color-orange-hover) !important;
  color: #fff !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   HERO
   ============================================ */
#hero {
  display: flex;
  align-items: center;
  position: relative;
  overflow: clip;
  padding-top: calc(var(--header-h) + 20px);
  padding-bottom: 80px;
  background: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: clip;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(207,100,0,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(207,100,0,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.25;
  animation: float 8s ease-in-out infinite;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(207,100,0,0.5), transparent 70%);
  top: -200px;
  right: -100px;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(50,175,33,0.4), transparent 70%);
  bottom: -100px;
  left: 10%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-orange-light);
  border: 1px solid var(--color-orange-border);
  color: var(--color-orange);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  color: var(--color-green);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--color-orange);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 800px;
  margin-bottom: 40px;
  line-height: 1.75;
  text-align: center;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-orange);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 44px;
  background: var(--color-border);
}

.scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  animation: bounce 2s ease infinite;
  transition: all var(--transition);
  z-index: 1;
  background: #fff;
}

.scroll-down:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   BRANDS CAROUSEL
   ============================================ */
.section-brands {
  padding: 40px 0;
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: clip;
}

.brands-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.brands-track-wrapper {
  position: relative;
  overflow: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

.brands-track-wrapper::before,
.brands-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
}

.brands-track-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-dark), transparent);
}

.brands-track-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-dark), transparent);
}

.brands-track {
  display: flex;
  align-items: center;
  animation: scroll-brands 30s linear infinite;
  width: max-content;
}

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

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

.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
  height: 100px;
  border-right: 1px solid var(--color-border);
  min-width: 200px;
  transition: all var(--transition);
}

.brand-logo {
  height: 70px;
  width: auto;
  max-width: 220px;
  opacity: 1;
  filter: none;
  transition: opacity var(--transition);
  display: block;
}

.brand-item:hover .brand-logo {
  opacity: 0.8;
}

.brand-text {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition);
  white-space: nowrap;
}

.brand-item:hover .brand-text {
  color: var(--color-orange) !important;
}

/* ============================================
   CHI SIAMO / ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  aspect-ratio: 4/5;
  display: block;
  border-radius: var(--radius-lg);
  transition: transform 0.5s ease;
}

.about-img-wrapper:hover .about-photo {
  transform: scale(1.03);
}

.about-shape-1 {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(207,100,0,0.12), transparent 70%);
  top: -40px;
  right: -40px;
  border-radius: 50%;
  pointer-events: none;
}

.about-shape-2 {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(50,175,33,0.12), transparent 70%);
  bottom: -30px;
  left: -30px;
  border-radius: 50%;
  pointer-events: none;
}

.about-card-float {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: #fff;
  border: 1px solid var(--color-orange-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.about-card-float i {
  font-size: 1.6rem;
  color: var(--color-orange);
  flex-shrink: 0;
}

.about-card-float strong {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text);
}

.about-card-float p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}

.about-text .section-tag { margin-bottom: 16px; }

.about-text .section-title {
  margin-bottom: 20px;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 36px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text);
}

.about-feature i {
  color: var(--color-green);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--color-bg-card);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.product-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

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

.product-img-wrap--contain img {
  object-fit: contain;
  background: var(--color-bg-card);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.product-card-body {
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-orange), var(--color-green));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.product-card:hover {
  border-color: var(--color-orange-border);
  transform: translateY(-6px);
  box-shadow: var(--shadow-accent);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-icon {
  width: 52px;
  height: 52px;
  background: var(--color-orange-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
  color: var(--color-orange);
  border: 1px solid var(--color-orange-border);
}

.product-card h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.product-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.product-card ul {
  margin-bottom: 20px;
}

.product-card ul li {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  padding: 3px 0;
  padding-left: 14px;
  position: relative;
}

.product-card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--color-orange);
  font-weight: 700;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-orange);
  margin-top: auto;
  transition: gap var(--transition);
}

.product-link:hover { gap: 10px; color: var(--color-orange); }

/* ============================================
   ERCOLINA SECTION
   ============================================ */
/* ── Ercolina - Pedrazzoli mini-site ── */
.section-ercolina-mini {
  background: #0A1628;
  color: #fff;
  overflow: clip;
}

.ercolina-topbar {
  background: #C8102E;
  padding: 10px 0;
}
.ercolina-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.ercolina-topbar-brand {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
}
.ercolina-topbar-brand sup { font-size: 0.6em; }
.ercolina-topbar-tag {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.05em;
}

.ercolina-mini-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  padding: 80px 0;
}

.ercolina-mini-text,
.ercolina-carousel-col {
  min-width: 0;
  overflow: hidden;
}

/* LEFT */
.ercolina-mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,16,46,0.15);
  border: 1px solid rgba(200,16,46,0.4);
  color: #ff6680;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.ercolina-mini-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}

.ercolina-mini-text p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
  line-height: 1.7;
  font-size: 0.95rem;
}

.ercolina-mini-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 36px;
}

.ercolina-mini-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
}
.ercolina-mini-feature > i {
  font-size: 1.2rem;
  color: #C8102E;
  margin-top: 2px;
  flex-shrink: 0;
}
.ercolina-mini-feature strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 2px;
}
.ercolina-mini-feature p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

.btn-ercolina-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #C8102E;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}
.btn-ercolina-cta:hover {
  background: #a80d25;
  transform: translateY(-2px);
}

/* RIGHT: CAROUSEL */
.ercolina-carousel-col { position: relative; }

.ercolina-carousel-heading {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.ercolina-carousel-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  width: 100%;
}

.ercolina-slides {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}

.ercolina-slide {
  min-width: 100%;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ercolina-slide-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: #e8e8e8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ercolina-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ercolina-slide-img.img-placeholder::after {
  content: 'Immagine in arrivo';
  font-size: 0.85rem;
  color: #999;
}
.ercolina-slide-img.img-placeholder img { display: none; }

.ercolina-slide-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ercolina-slide-tag {
  display: inline-block;
  background: rgba(200,16,46,0.1);
  color: #C8102E;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(200,16,46,0.25);
  align-self: flex-start;
}

.ercolina-slide-body h4 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: #0A1628;
  margin: 0;
}

.ercolina-slide-body p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.ercolina-slide-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #C8102E;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
  transition: gap 0.2s;
}
.ercolina-slide-link:hover { gap: 12px; }

/* Arrow buttons */
.ercolina-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #C8102E;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  z-index: 10;
  opacity: 0.45;
  transition: opacity 0.25s ease, background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.ercolina-carousel-wrap:hover .ercolina-arrow,
.ercolina-arrow:focus-visible { opacity: 1; }
.ercolina-arrow:hover { background: #a80d25; transform: translateY(-50%) scale(1.08); opacity: 1; }
.ercolina-prev { left: 12px; }
.ercolina-next { right: 12px; }

/* Dots */
.ercolina-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.ercolina-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.ercolina-dot.active {
  background: #C8102E;
  transform: scale(1.3);
}

/* ============================================
   WHY SECTION
   ============================================ */
.section-why {
  background: var(--color-bg-dark);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  padding: 32px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-border);
  position: relative;
  transition: all var(--transition);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.why-card:hover {
  border-color: var(--color-orange-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

.why-number {
  font-family: var(--font-title);
  font-size: 4.5rem;
  font-weight: 900;
  color: rgba(207,100,0,0.07);
  position: absolute;
  top: 12px;
  right: 20px;
  line-height: 1;
}

.why-icon {
  font-size: 2rem;
  color: var(--color-orange);
  margin-bottom: 20px;
  display: block;
}

.why-card h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.why-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================
   CONTACT
   ============================================ */
.section-contact {
  position: relative;
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--color-bg-dark);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-info-card h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--color-text);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--color-orange-light);
  border: 1px solid var(--color-orange-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-orange);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.contact-item a,
.contact-item span {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
}

.contact-item a:hover { color: var(--color-orange); }

.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 1rem;
  transition: all var(--transition);
}

.social-btn:hover {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: #fff;
  transform: translateY(-2px);
}

/* Form */
.contact-form-wrapper {
  background: var(--color-bg-dark);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: all var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #c0c0c0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px var(--color-orange-light);
}

.form-group select { cursor: pointer; }

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

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  cursor: pointer;
  accent-color: var(--color-orange);
  flex-shrink: 0;
}

.form-check label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1.5;
}

.form-check label a {
  color: var(--color-orange);
  text-decoration: underline;
}

.form-success {
  margin-top: 16px;
  padding: 16px;
  background: rgba(50, 175, 33, 0.08);
  border: 1px solid rgba(50, 175, 33, 0.3);
  border-radius: var(--radius);
  color: var(--color-green);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: #1a1a1a;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 72px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-links ul li a:hover { color: var(--color-orange); }

.footer-contact p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact p i { color: var(--color-orange); }

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

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

.footer-bottom a:hover { color: var(--color-orange); }

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: all var(--transition);
  animation: pulse-wa 2.5s ease infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
  color: #fff;
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Schermi grandi (1600px+): scala il base font per mantenere proporzioni */
@media (min-width: 1600px) {
  html { font-size: 18px; }

  .about-photo { min-height: 480px; }
  .ercolina-mini-grid { gap: 96px; }
}

@media (min-width: 1920px) {
  html { font-size: 20px; }

}

@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .about-grid,
  .ercolina-mini-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-img-placeholder { aspect-ratio: 16/9; }
  .about-visual { overflow: hidden; }
  .about-card-float {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 16px;
    width: 100%;
    border-radius: var(--radius);
  }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .section { padding: 72px 0; }

  #nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    width: 100%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 24px;
    transform: translateY(-120%);
    transition: transform var(--transition);
    z-index: 999;
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }

  #nav.open { transform: translateY(0); }

  #nav ul {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }

  #nav ul li a {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .hamburger { display: flex; }

  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 16px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  /* Prevent buttons and badges from overflowing the viewport */
  .btn { white-space: normal; max-width: 100%; }
  .hero-badge { white-space: normal; flex-wrap: wrap; justify-content: center; text-align: center; max-width: 100%; }
  .ercolina-badge { white-space: normal; flex-wrap: wrap; }
  .section-tag { white-space: normal; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .section-title { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .contact-form-wrapper { padding: 24px 20px; }
  .contact-info-card { padding: 24px 20px; }
  .products-grid { grid-template-columns: 1fr; }
  .stat-divider { display: none; }
  .hero-stats { gap: 20px 32px; }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade-left"] {
  transform: translateX(-40px);
}
[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-right"] {
  transform: translateX(40px);
}
[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

[data-aos][data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-aos-delay="150"] { transition-delay: 0.15s; }
[data-aos][data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos][data-aos-delay="250"] { transition-delay: 0.25s; }
[data-aos][data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos][data-aos-delay="400"] { transition-delay: 0.4s; }

/* ── Hero entrance ── */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
  animation: hero-in 0.8s ease both;
  animation-delay: 0.1s;
}
.hero-tagline {
  animation: hero-in 0.8s ease both;
  animation-delay: 0.3s;
}
.hero-subtitle {
  animation: hero-in 0.8s ease both;
  animation-delay: 0.5s;
}
.hero-cta {
  animation: hero-in 0.8s ease both;
  animation-delay: 0.65s;
}
.hero-stats {
  animation: hero-in 0.8s ease both;
  animation-delay: 0.8s;
}

/* ── Section title underline ── */
.section-title::after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  background: var(--color-orange);
  border-radius: 2px;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  transition: width 0.7s ease 0.2s;
}
.about-text .section-title::after {
  margin-left: 0;
  margin-right: auto;
}
.section-title.aos-animate::after,
.section-title.title-animated::after {
  width: 60px;
}

/* ── Button shimmer ── */
.btn-primary {
  overflow: hidden;
  position: relative;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn-primary:hover::after {
  left: 125%;
}

/* ── Why card icon pulse ── */
.why-card:hover .why-icon {
  animation: icon-pop 0.4s ease;
}
@keyframes icon-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ── Stat number glow ── */
.stat-number {
  background: linear-gradient(135deg, var(--color-orange), var(--color-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   ELEMENTI DECORATIVI
   ============================================ */

/* Aggiorna glow hero con colori corretti */
.hero-glow-1 {
  background: radial-gradient(circle, rgba(240,112,0,0.45), transparent 70%);
}
.hero-glow-2 {
  background: radial-gradient(circle, rgba(53,119,72,0.35), transparent 70%);
}

/* Cerchi decorativi generici */
.deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.deco-o { background: var(--color-orange); }
.deco-g { background: var(--color-green); }

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-18px) rotate(4deg); }
  66%       { transform: translateY(10px) rotate(-3deg); }
}
@keyframes float-med {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-22px) scale(1.06); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pulse-deco {
  0%, 100% { opacity: 0.07; transform: scale(1); }
  50%       { opacity: 0.13; transform: scale(1.08); }
}

/* ── Chi Siamo decorators ── */
#chi-siamo { overflow: clip; }

#chi-siamo .deco-1 {
  width: 320px; height: 320px;
  top: -80px; right: -80px;
  opacity: 0.06;
  animation: float-slow 12s ease-in-out infinite;
}
#chi-siamo .deco-2 {
  width: 160px; height: 160px;
  bottom: 40px; left: -40px;
  opacity: 0.07;
  animation: float-med 9s ease-in-out infinite;
  animation-delay: -3s;
}
#chi-siamo .deco-3 {
  width: 60px; height: 60px;
  top: 30%; right: 12%;
  opacity: 0.1;
  border-radius: 12px;
  transform: rotate(20deg);
  animation: spin-slow 18s linear infinite;
}

/* ── Prodotti decorators ── */
#prodotti { overflow: clip; }

#prodotti .deco-1 {
  width: 400px; height: 400px;
  top: -120px; left: -100px;
  opacity: 0.05;
  animation: pulse-deco 10s ease-in-out infinite;
}
#prodotti .deco-2 {
  width: 200px; height: 200px;
  bottom: -60px; right: -60px;
  opacity: 0.06;
  animation: float-med 13s ease-in-out infinite;
  animation-delay: -5s;
}
#prodotti .deco-3 {
  width: 80px; height: 80px;
  top: 20%; right: 5%;
  opacity: 0.08;
  border-radius: 16px;
  animation: spin-slow 22s linear infinite reverse;
}

/* ── Ercolina responsive ── */
@media (max-width: 640px) {
  .ercolina-mini-grid { padding: 48px 0; gap: 36px; }
  .ercolina-topbar-tag { display: none; }
  .ercolina-arrow { width: 34px; height: 34px; font-size: 0.75rem; }
  .ercolina-prev { left: 6px; }
  .ercolina-next { right: 6px; }
}

/* ── Contatti decorators ── */
#contatti { overflow: clip; }

#contatti .deco-1 {
  width: 500px; height: 500px;
  top: -150px; right: -150px;
  opacity: 0.05;
  animation: float-slow 16s ease-in-out infinite;
}
#contatti .deco-2 {
  width: 180px; height: 180px;
  bottom: -50px; left: 10%;
  opacity: 0.07;
  animation: float-med 11s ease-in-out infinite;
  animation-delay: -4s;
}
#contatti .deco-3 {
  width: 70px; height: 70px;
  top: 15%; left: 35%;
  opacity: 0.06;
  border-radius: 14px;
  animation: spin-slow 20s linear infinite;
}

/* Griglia di punti sottile sui prodotti */
#prodotti::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(240,112,0,0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}
#prodotti .container { position: relative; z-index: 1; }


/* ── Titoli in verde ── */
.section-title,
.product-card h3,
.why-card h3,
.contact-info-card h3 {
  color: var(--color-green);
}
