/* ==========================================================================
   CASETTE E CASOTTI FERRARA - DESIGN SYSTEM & STYLESHEET
   Brand: Casette e Casotti Ferrara by Ama Srl
   Aesthetics: Premium Italian Outdoor Craftsmanship, Clean Modern Garden Living
   ========================================================================== */

:root {
  /* Color Palette */
  --primary-forest: #1a382c;
  --primary-forest-light: #244d3d;
  --primary-forest-dark: #12261e;
  --accent-wood: #c97a3b;
  --accent-wood-hover: #b46b32;
  --accent-wood-light: #fef5ee;
  --accent-gold: #d4a373;
  --whatsapp-green: #25d366;
  --whatsapp-green-dark: #1da851;
  --italy-green: #009246;
  --italy-red: #ce2b37;

  /* Neutral Tones */
  --bg-page: #f9fbf9;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f3;
  --bg-dark: #14241e;
  --border-color: #e2e8e4;
  --border-light: #edf2ee;
  
  /* Text Tones */
  --text-main: #233129;
  --text-muted: #5a6e63;
  --text-light: #82958a;
  --text-white: #ffffff;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(20, 36, 30, 0.05);
  --shadow-md: 0 8px 24px rgba(20, 36, 30, 0.08);
  --shadow-lg: 0 16px 40px rgba(20, 36, 30, 0.12);
  --shadow-xl: 0 24px 60px rgba(20, 36, 30, 0.16);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
  position: relative;
}

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

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

/* Section Header Styling */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 56px auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-wood-light);
  color: var(--accent-wood);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  border: 1px solid rgba(201, 122, 59, 0.2);
}

.section-badge.badge-white {
  background-color: rgba(255, 255, 255, 0.12);
  color: #f7d5b8;
  border-color: rgba(255, 255, 255, 0.2);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--primary-forest);
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

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

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-dark .section-desc {
  color: #b9cfc3;
}

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-wood) 0%, #b36327 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(201, 122, 59, 0.35);
  background: linear-gradient(135deg, #d88949 0%, var(--accent-wood) 100%);
}

.btn-forest {
  background: var(--primary-forest);
  color: #ffffff;
}

.btn-forest:hover {
  background: var(--primary-forest-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(26, 56, 44, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary-forest);
  border: 2px solid var(--primary-forest);
}

.btn-outline:hover {
  background: var(--primary-forest);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* ==========================================================================
   TOP BAR & HEADER NAVIGATION
   ========================================================================== */
.top-bar {
  background-color: var(--primary-forest-dark);
  color: #c4d7cc;
  font-size: 0.825rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  fill: var(--accent-gold);
}

.top-bar a:hover {
  color: #ffffff;
}

.made-in-italy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.flag-strip {
  display: inline-flex;
  width: 15px;
  height: 10px;
  border-radius: 1px;
  overflow: hidden;
}

.flag-g { width: 5px; height: 10px; background: var(--italy-green); }
.flag-w { width: 5px; height: 10px; background: #ffffff; }
.flag-r { width: 5px; height: 10px; background: var(--italy-red); }

/* Main Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-normal);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-brand img {
  height: 52px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-wood);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-wood);
}

.nav-link:hover::after {
  width: 100%;
}

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

.nav-phone-quick {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary-forest);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  font-size: 0.9rem;
}

.nav-phone-quick:hover {
  background: #e5ede8;
}

.mobile-toggle {
  display: none;
  background: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
  fill: var(--primary-forest);
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(180deg, #f0f5f2 0%, #ffffff 100%);
  padding: 70px 0 90px 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 122, 59, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.hero-subtitle-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 2px;
  color: var(--accent-wood);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  font-weight: 800;
  color: var(--primary-forest);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--accent-wood);
  position: relative;
  display: inline-block;
}

.hero-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--primary-forest);
}

.hero-feature-item svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-wood);
  flex-shrink: 0;
}

.hero-media {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 6px solid #ffffff;
  background: #ffffff;
}

.hero-main-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.hero-image-wrapper:hover .hero-main-img {
  transform: scale(1.03);
}

.hero-badge-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(26, 56, 44, 0.9);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
}

.hero-floating-card {
  position: absolute;
  bottom: -25px;
  right: -20px;
  background: #ffffff;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border-light);
  animation: floatCard 4s ease-in-out infinite;
}

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

.floating-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-wood-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--accent-wood);
}

.floating-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-forest);
  margin-bottom: 2px;
}

.floating-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   2. SECTION: UNO SPAZIO IN PIÙ PER TENERE TUTTO IN ORDINE
   ========================================================================== */
.order-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.order-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.order-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 122, 59, 0.3);
}

.order-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.order-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.order-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(26, 56, 44, 0.85);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.order-card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.order-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-forest);
  margin-bottom: 10px;
}

.order-card-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.order-card-items {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border-light);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.item-chip {
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 0.785rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.order-banner-quote {
  background: linear-gradient(135deg, #eef4f0 0%, #e1ebe5 100%);
  border-radius: var(--radius-lg);
  padding: 36px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-left: 5px solid var(--primary-forest);
}

.order-quote-text h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-forest);
  margin-bottom: 6px;
}

.order-quote-text p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   3. SECTION: PARETI IN PVC E COMPONENTI IN LEGNO (MATERIALI)
   ========================================================================== */
.materials-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.materials-visual {
  position: relative;
}

.materials-main-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.materials-badge-list {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  justify-content: space-around;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.mat-mini-item {
  text-align: center;
}

.mat-mini-item strong {
  display: block;
  font-size: 1.1rem;
  color: var(--primary-forest);
  font-weight: 800;
}

.mat-mini-item span {
  font-size: 0.785rem;
  color: var(--text-muted);
}

.materials-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--primary-forest);
  line-height: 1.2;
  margin-bottom: 16px;
}

.materials-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.materials-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mat-card {
  display: flex;
  gap: 18px;
  background: #ffffff;
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.mat-card:hover {
  border-color: var(--accent-wood);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.mat-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mat-icon svg {
  width: 24px;
  height: 24px;
}

.mat-pvc .mat-icon {
  background: #e8f3ed;
}
.mat-pvc .mat-icon svg {
  fill: var(--primary-forest);
}

.mat-wood .mat-icon {
  background: var(--accent-wood-light);
}
.mat-wood .mat-icon svg {
  fill: var(--accent-wood);
}

.mat-air .mat-icon {
  background: #e6f4fa;
}
.mat-air .mat-icon svg {
  fill: #0284c7;
}

.mat-recycle .mat-icon {
  background: #ecfdf5;
}
.mat-recycle .mat-icon svg {
  fill: #059669;
}

.mat-text h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-forest);
  margin-bottom: 6px;
}

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

/* ==========================================================================
   4. SECTION: DIMENSIONI E PERSONALIZZAZIONE
   ========================================================================== */
.consider-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 42px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  margin-bottom: 50px;
}

.consider-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-forest);
  margin-bottom: 24px;
  text-align: center;
}

.consider-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}

.consider-step {
  text-align: left;
  background: var(--bg-subtle);
  padding: 26px;
  border-radius: var(--radius-md);
  border-top: 4px solid var(--accent-wood);
  position: relative;
  transition: transform var(--transition-normal);
}

.consider-step:hover {
  transform: translateY(-4px);
}

.step-num {
  position: absolute;
  top: -16px;
  left: 20px;
  background: var(--accent-wood);
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.consider-step h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-forest);
  margin-bottom: 8px;
  margin-top: 6px;
}

.consider-step p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Dimensions & Color Showcases */
.custom-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

.custom-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.custom-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-forest);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-card h3 svg {
  width: 22px;
  height: 22px;
  fill: var(--accent-wood);
}

.sizes-table-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.size-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.size-name {
  font-weight: 700;
  color: var(--primary-forest);
}

.size-dim {
  font-weight: 600;
  color: var(--accent-wood);
  font-size: 0.875rem;
}

.size-badge {
  font-size: 0.75rem;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-muted);
}

/* Color Swatches */
.colors-palette {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.color-swatch-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
}

.swatch-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.swatch-white { background: #fdfdfd; border: 1px solid #dcdcdc; }
.swatch-beige { background: #e8dcc4; }
.swatch-grey { background: #5c6265; }
.swatch-wood { background: #a26938; }

.swatch-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--primary-forest);
}

.swatch-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PHOTO GALLERY & LIGHTBOX (REAL FOTOS)
   ========================================================================== */
.gallery-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.gallery-filter-btn {
  background: #ffffff;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--primary-forest);
  color: #ffffff;
  border-color: var(--primary-forest);
  box-shadow: var(--shadow-sm);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 240px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: #202020;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal), opacity var(--transition-fast);
}

.gallery-item:hover img {
  transform: scale(1.08);
  opacity: 0.9;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 36, 30, 0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
}

.gallery-overlay-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-overlay-icon svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 16, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  object-fit: contain;
}

.lightbox-caption {
  color: #ffffff;
  text-align: center;
  font-size: 1rem;
  margin-top: 12px;
  font-weight: 600;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.35);
}

.lightbox-close {
  top: 20px;
  right: 25px;
}

.lightbox-prev {
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
}

/* ==========================================================================
   5. SECTION: FORNITURA E MONTAGGIO
   ========================================================================== */
.assembly-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.assembly-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.assembly-step-card {
  display: flex;
  gap: 20px;
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent-wood);
  border: 1px solid var(--border-light);
  border-left-width: 4px;
  border-left-color: var(--accent-wood);
  transition: transform var(--transition-normal);
}

.assembly-step-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.assembly-step-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.assembly-step-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--primary-forest);
}

.assembly-step-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-forest);
  margin-bottom: 6px;
}

.assembly-step-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.assembly-media {
  position: relative;
}

.assembly-media img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.assembly-badge-card {
  position: absolute;
  bottom: -20px;
  left: 25px;
  background: var(--primary-forest);
  color: #ffffff;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  max-width: 320px;
}

.assembly-badge-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--accent-gold);
}

.assembly-badge-card p {
  font-size: 0.85rem;
  color: #c4d7cc;
}

/* ==========================================================================
   6. SECTION: DOMANDE FREQUENTI (FAQ)
   ========================================================================== */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--accent-wood);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-forest);
  gap: 16px;
}

.faq-item.active .faq-question {
  color: var(--accent-wood);
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.faq-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--primary-forest);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  background: var(--accent-wood-light);
  transform: rotate(180deg);
}

.faq-item.active .faq-icon svg {
  fill: var(--accent-wood);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  padding: 0 26px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding-bottom: 24px;
}

/* ==========================================================================
   7. SECTION: MODULO CONTATTI & PREVENTIVO
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: flex-start;
}

.contact-info-card {
  background: linear-gradient(135deg, var(--primary-forest) 0%, #12281e 100%);
  color: #ffffff;
  padding: 44px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 122, 59, 0.25) 0%, transparent 70%);
}

.contact-info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.contact-info-card p {
  color: #c4d7cc;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 32px;
}

.contact-direct-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.direct-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.direct-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.direct-icon.icon-wa {
  background: rgba(37, 211, 102, 0.2);
}
.direct-icon.icon-wa svg {
  fill: var(--whatsapp-green);
}

.direct-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--accent-gold);
}

.direct-detail span {
  display: block;
  font-size: 0.8rem;
  color: #a6c0b1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.direct-detail strong {
  font-size: 1.15rem;
  color: #ffffff;
}

.contact-guarantees {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guarantee-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: #d1e2d7;
}

.guarantee-point svg {
  width: 16px;
  height: 16px;
  fill: var(--whatsapp-green);
  flex-shrink: 0;
}

/* Contact Form Card */
.contact-form-card {
  background: #ffffff;
  padding: 44px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.form-header-badge {
  display: inline-block;
  background: var(--accent-wood-light);
  color: var(--accent-wood);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-form-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-forest);
  margin-bottom: 8px;
}

.contact-form-card > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-forest);
  margin-bottom: 6px;
}

.form-group label .required {
  color: #e53e3e;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-main);
  transition: all var(--transition-fast);
  font-size: 0.95rem;
}

.form-control:focus {
  border-color: var(--accent-wood);
  box-shadow: 0 0 0 3px rgba(201, 122, 59, 0.15);
  background: #ffffff;
}

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

/* Checkbox Privacy */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 24px 0;
}

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

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

.checkbox-group label a {
  color: var(--primary-forest);
  text-decoration: underline;
  font-weight: 600;
}

/* Honeypot field (hidden from humans) */
.hidden-honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
}

/* Form Submit and Feedback Status */
.form-status {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  display: none;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}

.form-status.status-success {
  display: block;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.status-error {
  display: block;
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
  background-color: var(--primary-forest-dark);
  color: #b3c7bc;
  padding: 70px 0 30px 0;
  border-top: 5px solid var(--accent-wood);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand img {
  height: 52px;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 0.925rem;
  line-height: 1.65;
  color: #a0b6aa;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-wood);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.925rem;
  color: #b3c7bc;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.925rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-wood);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item strong {
  color: #ffffff;
}

/* Legal Footer from footer.txt */
.footer-legal-box {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.legal-identity h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.legal-identity p {
  font-size: 0.85rem;
  color: #92aca0;
}

.legal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
  color: #799587;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   FLOATING WHATSAPP & MOBILE ACTIONS
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.floating-whatsapp-tooltip {
  background: #ffffff;
  color: var(--primary-forest);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  white-space: nowrap;
  pointer-events: none;
  animation: pulseTooltip 3s ease-in-out infinite;
}

@keyframes pulseTooltip {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.floating-whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition-fast), background var(--transition-fast);
  position: relative;
}

.floating-whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.floating-whatsapp:hover .floating-whatsapp-btn {
  transform: scale(1.1);
  background: var(--whatsapp-green-dark);
}

.pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--whatsapp-green);
  animation: pulseWave 2s infinite;
  opacity: 0.6;
}

@keyframes pulseWave {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1400;
  padding: 10px 16px;
  border-top: 1px solid var(--border-light);
}

.mobile-sticky-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-media {
    max-width: 650px;
    margin: 0 auto;
  }

  .materials-wrapper,
  .assembly-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .order-grid,
  .consider-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .custom-options-grid {
    grid-template-columns: 1fr;
  }
}

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

  .top-bar {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    box-shadow: var(--shadow-lg);
    display: none;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-phone-quick {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-item {
    height: 180px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 28px 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .hero-floating-card {
    display: none;
  }

  .order-banner-quote {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .mobile-sticky-bar {
    display: block;
  }

  .floating-whatsapp {
    bottom: 80px;
    right: 18px;
  }

  .floating-whatsapp-tooltip {
    display: none;
  }

  body {
    padding-bottom: 70px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero-main-img {
    height: 320px;
  }
}
