/* =========================================
   SOGNI DI RIPOSO - Main Stylesheet
   ========================================= */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #C2785C;
  --color-secondary: #3B4A3C;
  --color-accent: #D4A84B;
  --color-bg-light: #FAF6F0;
  --color-bg-dark: #2C2826;
  --color-text-primary: #2C2826;
  --color-text-secondary: #6B5E55;
  --color-text-on-dark: #FAF6F0;
  --color-border: #E0D5C7;
  --color-error: #B94A3E;
  --color-white: #FFFFFF;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-accent: 'Caveat', cursive;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --radius-full: 50px;

  --shadow-card: 0 8px 32px rgba(44, 40, 38, 0.06);
  --shadow-card-hover: 0 12px 32px rgba(44, 40, 38, 0.08);
  --shadow-form: 0 8px 32px rgba(44, 40, 38, 0.08);

  --max-width: 1280px;
  --section-pad: 100px;
  --section-pad-mobile: 60px;

  --transition-base: all 0.3s ease;
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-light);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Skip to content --- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  padding: 8px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-size: 0.875rem;
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* --- Paper Grain Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('/assets/images/textures/paper-grain.png');
  background-repeat: repeat;
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-text-primary);
}

.h-hero { font-size: 4.5rem; font-weight: 900; }
h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.25rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 700; }

p { margin-bottom: 12px; }
h2, h3, h4 { margin-bottom: 20px; }

.text-accent { font-family: var(--font-accent); }
.text-primary-color { color: var(--color-primary); }
.text-accent-color { color: var(--color-accent); }
.text-secondary-color { color: var(--color-text-secondary); }
.text-on-dark { color: var(--color-text-on-dark); }
.italic { font-style: italic; }

.section-tag {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: var(--color-accent);
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

/* =========================================
   LAYOUT UTILITIES
   ========================================= */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: var(--section-pad) 0;
}

.section-sm {
  padding: 60px 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

.mx-auto { margin-left: auto; margin-right: auto; }

.max-w-prose { max-width: 760px; }
.max-w-narrow { max-width: 720px; }

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

.col-5 { grid-column: span 5; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-8 { grid-column: span 8; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.flex-gap-sm { gap: 12px; }
.flex-gap-md { gap: 24px; }
.flex-gap-lg { gap: 48px; }
.align-center { align-items: center; }

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

/* =========================================
   BUTTONS
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: var(--transition-base);
  border: none;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
}
.btn-primary:hover {
  background: var(--color-accent);
  color: var(--color-bg-dark);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-secondary:hover {
  background: rgba(194, 120, 92, 0.1);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-secondary-light {
  background: transparent;
  border: 2px solid var(--color-text-on-dark);
  color: var(--color-text-on-dark);
}
.btn-secondary-light:hover {
  background: rgba(250, 246, 240, 0.15);
}

.btn-primary-inverted {
  background: var(--color-text-on-dark);
  color: var(--color-primary);
}
.btn-primary-inverted:hover {
  background: var(--color-bg-light);
  color: var(--color-bg-dark);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--color-secondary);
  padding: 14px 0;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}
.btn-ghost::after {
  content: ' →';
  font-family: var(--font-accent);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
  display: inline-block;
}
.btn-ghost:hover {
  color: var(--color-primary);
}
.btn-ghost:hover::after {
  transform: translateX(6px);
}

.btn-full { width: 100%; }

/* =========================================
   HEADER
   ========================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(250, 246, 240, 0.88);
  border-bottom: 1px solid rgba(224, 213, 199, 0.4);
  transition: var(--transition-base);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo span {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--color-text-primary);
  line-height: 1;
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-primary);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

.nav-link.active {
  color: var(--color-primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1100;
  position: relative;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
  transform-origin: center;
}

.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--color-bg-light);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 32px 60px;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.open {
  right: 0;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-primary);
}

.mobile-menu-blob {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0.15;
  pointer-events: none;
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
  background: var(--color-bg-dark);
  padding: 80px 0 40px;
  color: var(--color-text-on-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--color-accent);
  display: block;
  margin-bottom: 16px;
}

.footer-brand-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(250, 246, 240, 0.75);
  margin-bottom: 24px;
}

.footer-moon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  opacity: 0.6;
}

.footer-heading {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: var(--color-accent);
  margin-bottom: 20px;
  display: block;
}

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

.footer-nav-link {
  font-size: 0.9rem;
  color: var(--color-text-on-dark);
  opacity: 0.8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav-link:hover {
  color: var(--color-primary);
  opacity: 1;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(250, 246, 240, 0.8);
  line-height: 1.5;
}

.footer-contact-icon {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(250, 246, 240, 0.12);
  padding-top: 32px;
  text-align: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* =========================================
   HERO SECTIONS
   ========================================= */

.hero-main {
  min-height: 100vh;
  padding-top: 80px;
  display: flex;
  align-items: center;
  background: var(--color-bg-light);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  padding-top: 60px;
  padding-bottom: 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-headline {
  font-size: 4rem;
  font-weight: 900;
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--color-text-primary);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-blob {
  position: absolute;
  width: 90%;
  height: 90%;
  top: 5%;
  left: 5%;
  z-index: 0;
  animation: blobDrift 8s ease-in-out infinite;
}

.hero-bed-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 580px;
}

/* Page Hero Variants */
.page-hero {
  padding-top: 80px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: var(--color-bg-light);
  position: relative;
  overflow: hidden;
}

.page-hero-40 {
  min-height: 40vh;
}

.page-hero-50 {
  min-height: 50vh;
}

.page-hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 60px 32px;
}

.page-hero-text-box {
  background: rgba(250, 246, 240, 0.92);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: inline-block;
  max-width: 760px;
}

.page-hero-sub {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Split Hero (Su Misura) */
.hero-split {
  min-height: 60vh;
  padding-top: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-split-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

/* =========================================
   WAVY DIVIDERS
   ========================================= */

.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* =========================================
   SECTION: INTRO
   ========================================= */

.section-intro {
  text-align: center;
  padding: var(--section-pad) 0;
  position: relative;
}

.intro-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

.intro-divider-top,
.intro-divider-bottom {
  display: block;
  margin: 0 auto 32px;
}

.intro-icons {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.intro-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.intro-icon-item svg {
  color: var(--color-accent);
  width: 48px;
  height: 48px;
}

.intro-icon-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
}

/* =========================================
   SECTION: CATEGORIES (INDEX)
   ========================================= */

.section-categories {
  background: rgba(59, 74, 60, 0.04);
  padding: var(--section-pad) 0;
}

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

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

.category-card {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.category-illustration {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.category-illustration svg {
  width: 100%;
  max-height: 150px;
  transition: all 0.4s ease;
}

.category-card:hover .category-illustration svg {
  filter: drop-shadow(0 4px 12px rgba(194, 120, 92, 0.2));
}

.category-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.category-card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  flex: 1;
  margin-bottom: 0;
}

/* =========================================
   SECTION: WHY US (ZIG ZAG)
   ========================================= */

.section-why {
  padding: var(--section-pad) 0;
}

.zigzag-block {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.zigzag-block:last-child {
  margin-bottom: 0;
}

.zigzag-block.reverse {
  grid-template-columns: 7fr 5fr;
}

.zigzag-block.reverse .zigzag-illustration {
  order: 2;
}

.zigzag-block.reverse .zigzag-content {
  order: 1;
}

.zigzag-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.zigzag-illustration svg {
  width: 100%;
  max-width: 480px;
}

.zigzag-content h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.zigzag-content p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

/* =========================================
   SECTION: TESTIMONIALS
   ========================================= */

.section-testimonials {
  background: var(--color-bg-dark);
  padding: var(--section-pad) 0;
  position: relative;
}

.section-testimonials .section-header h2 {
  color: var(--color-text-on-dark);
}

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

.testimonial-card {
  border: 1px solid rgba(250, 246, 240, 0.1);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(250, 246, 240, 0.03);
  transition: border-color 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(212, 168, 75, 0.3);
}

.testimonial-quote-mark {
  font-family: var(--font-accent);
  font-size: 3rem;
  color: var(--color-accent);
  line-height: 1;
  display: block;
}

.testimonial-text {
  font-size: 1rem;
  font-style: italic;
  color: rgba(250, 246, 240, 0.85);
  line-height: 1.75;
  flex: 1;
}

.testimonial-divider {
  border: none;
  height: 1px;
  background: rgba(250, 246, 240, 0.15);
  margin: 0;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-name {
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-text-on-dark);
}

.testimonial-location {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* =========================================
   SECTION: CTA FORM (HOMEPAGE)
   ========================================= */

.section-cta {
  padding: var(--section-pad) 0;
}

.cta-split {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 60px;
  align-items: start;
}

.cta-left h2 {
  margin-bottom: 16px;
}

.cta-left p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 36px;
}

.cta-info-blocks {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.cta-info-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* =========================================
   FORMS
   ========================================= */

.form-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-form);
}

.form-card-lg {
  padding: 48px;
}

.form-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 28px;
  color: var(--color-text-primary);
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-border);
  border-radius: 0;
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-primary);
  transition: border-color 0.3s ease;
  outline: none;
}

.form-control:focus {
  border-bottom-color: var(--color-primary);
}

.form-control::placeholder {
  color: rgba(107, 94, 85, 0.5);
}

select.form-control {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B5E55' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 24px;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

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

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

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

.form-checkbox label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  line-height: 1.5;
}

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

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-top: 12px;
}

.form-honeypot {
  display: none !important;
  visibility: hidden;
  position: absolute;
  left: -9999px;
}

.form-checkboxes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.form-checkbox-item input {
  accent-color: var(--color-primary);
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success.visible {
  display: block;
}

.form-success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

/* =========================================
   SHOWROOM BANNER
   ========================================= */

.section-showroom {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--color-bg-light);
}

.showroom-bg {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showroom-content {
  position: relative;
  z-index: 2;
}

.showroom-content h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.showroom-content p {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* =========================================
   CHI SIAMO PAGE
   ========================================= */

.story-section {
  padding: var(--section-pad) 0;
  position: relative;
}

.story-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

.story-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}

.story-deco {
  position: absolute;
  opacity: 0.12;
}

.story-deco-hammer { top: 60px; right: -60px; width: 80px; }
.story-deco-spool { top: 240px; left: -70px; width: 70px; }
.story-deco-plank { bottom: 160px; right: -55px; width: 90px; }
.story-deco-pencil { bottom: 40px; left: -50px; width: 60px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.value-block {
  padding: 40px 36px;
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease;
}

.value-block:hover {
  transform: translateY(-4px);
}

.value-icon {
  width: 64px;
  height: 64px;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.value-block h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.value-block p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Process Timeline */
.process-timeline {
  padding: var(--section-pad) 0;
}

.timeline-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  margin-top: 48px;
}

.timeline-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='2'%3E%3Cline x1='0' y1='1' x2='20' y2='1' stroke='%23D4A84B' stroke-width='1.5' stroke-dasharray='4 4'/%3E%3C/svg%3E") repeat-x;
  z-index: 0;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.timeline-num {
  font-family: var(--font-accent);
  font-size: 2rem;
  color: var(--color-accent);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg-light);
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  line-height: 1;
}

.timeline-step h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.timeline-step p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* CTA Banner */
.cta-banner {
  background: var(--color-primary);
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--color-text-on-dark);
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(250, 246, 240, 0.85);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* =========================================
   CATALOGO PAGE
   ========================================= */

.filter-bar-wrap {
  position: sticky;
  top: 80px;
  z-index: 100;
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  padding: 8px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-base);
  border: 1.5px solid var(--color-border);
  color: var(--color-text-primary);
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-on-dark);
}

.catalog-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--color-border);
}

.catalog-section:last-of-type {
  border-bottom: none;
}

.catalog-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.catalog-section-header h2 {
  margin-bottom: 0;
  font-size: 2rem;
}

.catalog-section-intro {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 760px;
  margin-bottom: 40px;
}

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

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

.products-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.product-card {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.product-illustration {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 74, 60, 0.03);
  padding: 24px;
}

.product-illustration svg {
  width: 100%;
  max-height: 160px;
  transition: filter 0.3s ease;
}

.product-card:hover .product-illustration svg {
  filter: drop-shadow(0 4px 16px rgba(194, 120, 92, 0.25));
}

.product-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.product-dims {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  color: var(--color-accent);
}

.product-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  flex: 1;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.product-card .btn {
  margin-top: auto;
  font-size: 0.78rem;
  padding: 10px 20px;
}

/* Su Misura catalog section */
.catalog-su-misura {
  background: var(--color-bg-dark);
  padding: 100px 0;
  text-align: center;
}

.catalog-su-misura h2 {
  color: var(--color-text-on-dark);
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.catalog-su-misura .section-tag {
  display: block;
  margin-bottom: 12px;
}

.catalog-su-misura p {
  color: rgba(250, 246, 240, 0.8);
  max-width: 680px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.custom-features-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto 36px;
  text-align: left;
}

.custom-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(250, 246, 240, 0.8);
}

.custom-feature-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* =========================================
   CONTATTI PAGE
   ========================================= */

.contact-split {
  display: grid;
  grid-template-columns: 40fr 60fr;
  gap: 32px;
  align-items: start;
}

.contact-info-card {
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--color-text-on-dark);
  position: relative;
  overflow: hidden;
}

.contact-info-card h2 {
  color: var(--color-text-on-dark);
  font-size: 1.5rem;
  margin-bottom: 32px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.contact-info-item svg {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
  width: 32px;
  height: 32px;
}

.contact-info-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-info-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
  font-weight: 500;
}

.contact-info-value {
  font-size: 0.95rem;
  color: rgba(250, 246, 240, 0.85);
  line-height: 1.6;
}

.contact-info-value a {
  color: rgba(250, 246, 240, 0.85);
}
.contact-info-value a:hover {
  color: var(--color-accent);
}

.contact-map-illustration {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 246, 240, 0.15);
}

.contact-map-illustration svg {
  width: 100%;
  max-width: 300px;
  color: var(--color-accent);
}

.contact-map-note {
  font-size: 0.85rem;
  color: rgba(250, 246, 240, 0.65);
  margin-top: 12px;
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-section {
  padding: var(--section-pad) 0;
  background: var(--color-bg-light);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

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

.faq-caret {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--color-accent);
}

.faq-item.open .faq-caret {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding-bottom: 24px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

/* =========================================
   SU MISURA PAGE
   ========================================= */

.process-vertical {
  padding: var(--section-pad) 0;
}

.process-steps-vertical {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.process-steps-vertical::before {
  content: '';
  position: absolute;
  top: 32px;
  bottom: 32px;
  left: 64px;
  width: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='20'%3E%3Cline x1='1' y1='0' x2='1' y2='20' stroke='%23D4A84B' stroke-width='1.5' stroke-dasharray='4 4'/%3E%3C/svg%3E") repeat-y;
}

.process-step-v {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  position: relative;
}

.process-step-v-num {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  color: var(--color-accent);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg-light);
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-top: 4px;
}

.process-step-v-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.process-step-v-content p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Customization Grid */
.custom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.custom-block {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.custom-block-icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.custom-block h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.custom-block ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.custom-block ul li {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  padding-left: 16px;
  position: relative;
}

.custom-block ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  font-family: var(--font-accent);
  color: var(--color-accent);
  font-size: 0.9rem;
}

/* Gallery Masonry */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  grid-auto-rows: 200px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(59, 74, 60, 0.06);
  cursor: pointer;
  border: 1px solid var(--color-border);
}

.gallery-item:nth-child(3n+1) {
  grid-row: span 2;
}

.gallery-item svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 40, 38, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius-md);
}

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

.gallery-item:hover svg {
  transform: scale(1.05);
}

.gallery-caption {
  color: var(--color-text-on-dark);
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.5;
}

/* =========================================
   LEGAL PAGES
   ========================================= */

.legal-page {
  padding: 40px 0 80px;
  min-height: 100vh;
}

.legal-hero {
  padding: 120px 0 60px;
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
}

.legal-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.legal-hero p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.legal-content {
  max-width: 760px;
  padding: 60px 32px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--color-text-primary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-content ul li {
  list-style: disc;
}

.legal-content ol li {
  list-style: decimal;
}

.legal-data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.legal-data-table td,
.legal-data-table th {
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  vertical-align: top;
  line-height: 1.5;
}

.legal-data-table th {
  background: rgba(59, 74, 60, 0.06);
  font-weight: 600;
  text-align: left;
}

.legal-data-table td:first-child {
  color: var(--color-text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

/* =========================================
   DECORATIVE ELEMENTS
   ========================================= */

.blob-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  animation: blobDrift 7s ease-in-out infinite;
}

.blob-decoration-2 {
  animation-delay: -3.5s;
  animation-duration: 9s;
}

.section-decoration {
  position: relative;
}

.section-decoration > * {
  position: relative;
  z-index: 1;
}

/* Decorative divider lines */
.deco-line {
  display: block;
  width: 80px;
  height: 2px;
  background: var(--color-accent);
  margin: 0 auto 32px;
  border-radius: 2px;
}

.deco-line-left {
  margin-left: 0;
}

/* Animated SVG border */
.draw-border {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.5s ease;
}

.draw-border.drawn {
  stroke-dashoffset: 0;
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.15s; }
.stagger-2 { transition-delay: 0.30s; }
.stagger-3 { transition-delay: 0.45s; }
.stagger-4 { transition-delay: 0.60s; }
.stagger-5 { transition-delay: 0.75s; }

/* =========================================
   FOCUS STYLES (ACCESSIBILITY)
   ========================================= */

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* =========================================
   RESPONSIVE - TABLET (768px - 991px)
   ========================================= */

@media (max-width: 991px) {
  :root {
    --section-pad: 80px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-headline {
    font-size: 3rem;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-illustration {
    display: none;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .zigzag-block,
  .zigzag-block.reverse {
    grid-template-columns: 1fr;
  }

  .zigzag-block.reverse .zigzag-illustration,
  .zigzag-block.reverse .zigzag-content {
    order: unset;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .cta-split {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .timeline-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .timeline-steps::before {
    display: none;
  }

  .timeline-step {
    flex-direction: row;
    text-align: left;
    gap: 20px;
  }

  .timeline-num {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-split {
    grid-template-columns: 1fr;
  }

  .custom-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

/* =========================================
   RESPONSIVE - MOBILE (below 768px)
   ========================================= */

@media (max-width: 767px) {
  :root {
    --section-pad: 60px;
  }

  .site-header {
    height: 64px;
  }

  .site-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-main {
    padding-top: 64px;
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .h-hero { font-size: 2.5rem; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .page-hero-text-box {
    padding: 28px 24px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .products-grid-3,
  .products-grid-2 {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .filter-btn {
    font-size: 0.78rem;
    padding: 6px 16px;
  }

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

  .gallery-masonry {
    grid-template-columns: 1fr;
  }

  .gallery-item:nth-child(3n+1) {
    grid-row: span 1;
  }

  .cta-banner-buttons {
    flex-direction: column;
    align-items: center;
  }

  .contact-info-card {
    padding: 32px 24px;
  }

  .form-card-lg {
    padding: 28px 24px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .container {
    padding: 0 20px;
  }

  .intro-icons {
    gap: 28px;
  }

  .intro-icons .intro-icon-item {
    min-width: 80px;
  }

  .process-steps-vertical::before {
    left: 40px;
  }

  .process-step-v-num {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .section-header {
    padding: 0 20px;
  }

  .legal-content {
    padding: 40px 20px;
  }
}

/* =========================================
   UTILITY: HIDE / SHOW
   ========================================= */

.hidden { display: none !important; }
.visible { display: block !important; }
