/* Incolla qui tutto il CSS che avevi nel tag <style> dell'ultima versione */
/* Aggiunta per i messaggi di errore PHP: */

/* ─── RESET & BASE ─── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --blue:        #1A1AE8;
      --blue-dark:   #1010B8;
      --blue-light:  #E8E8FF;
      --blue-mid:    #4444FF;
      --orange:      #F26522;
      --orange-dark: #D4521A;
      --orange-light:#FFF0E8;
      --white:       #FFFFFF;
      --off-white:   #F7F8FF;
      --grey-light:  #EBEBF5;
      --grey:        #6B6B8A;
      --dark:        #0D0D2B;
      --font-head:   'Cormorant Garamond', Georgia, serif;
      --font-body:   'Inter', 'Segoe UI', sans-serif;
      --transition:  0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      --shadow-sm:   0 2px 12px rgba(26,26,232,0.08);
      --shadow-md:   0 8px 32px rgba(26,26,232,0.13);
      --shadow-lg:   0 20px 60px rgba(26,26,232,0.18);
    }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--font-body);
      background: var(--white);
      color: var(--dark);
      overflow-x: hidden;
    }
    html[dir="rtl"] body { direction: rtl; }
    img { display: block; max-width: 100%; }
    a   { text-decoration: none; color: inherit; }
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    ::-webkit-scrollbar { width: 5px; }
    ::-webkit-scrollbar-track { background: var(--grey-light); }
    ::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

    /* ══════════════════════════════════════════
       HEADER
    ══════════════════════════════════════════ */
    header {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 1000;
      height: 80px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 3rem;
      background: var(--white);
      border-bottom: 2px solid var(--blue);
      transition: box-shadow var(--transition);
    }
    header.scrolled {
      box-shadow: var(--shadow-md);
    }

    .logo img {
      max-height: 60px;
      width: auto;
    }

    .header-desktop-tools {
      display: flex;
      align-items: center;
      gap: 1rem;
    }
    nav { display: flex; gap: 2.2rem; align-items: center; }
    nav a {
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--dark);
      position: relative;
      padding-bottom: 3px;
      transition: color var(--transition);
    }
    nav a::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0;
      width: 0; height: 2px;
      background: var(--blue);
      transition: width var(--transition);
    }
    nav a:hover { color: var(--blue); }
    nav a:hover::after { width: 100%; }

    .nav-cta {
      padding: 0.55rem 1.4rem;
      background: var(--blue);
      color: var(--white) !important;
      font-size: 0.75rem !important;
      font-weight: 600 !important;
      letter-spacing: 0.14em;
      border-radius: 2px;
      transition: background var(--transition), transform var(--transition) !important;
    }
    .nav-cta::after { display: none !important; }
    .nav-cta:hover {
      background: var(--blue-dark) !important;
      color: var(--white) !important;
      transform: translateY(-1px);
    }

    .locale-switcher select,
    .mobile-nav-locale select {
      border: 1px solid var(--grey-light);
      background: var(--off-white);
      color: var(--dark);
      font-family: var(--font-body);
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      padding: 0.6rem 0.75rem;
      min-width: 150px;
    }
    .mobile-nav-locale {
      padding-bottom: 1rem;
      margin-bottom: 0.5rem;
      border-bottom: 1px solid var(--grey-light);
    }
    .mobile-nav-locale select {
      width: 100%;
      min-width: 0;
    }

    /* Hamburger */
    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 6px;
      background: none;
      border: none;
    }
    .hamburger span {
      display: block;
      width: 26px; height: 2px;
      background: var(--blue);
      transition: var(--transition);
    }
    .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .mobile-nav {
      display: none;
      position: fixed;
      top: 80px; left: 0; right: 0;
      background: var(--white);
      padding: 1.5rem 2rem;
      flex-direction: column;
      gap: 0;
      border-top: 1px solid var(--grey-light);
      box-shadow: var(--shadow-md);
      z-index: 999;
    }
    .mobile-nav.open { display: flex; }
    .mobile-nav a {
      font-size: 0.95rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--dark);
      padding: 1rem 0;
      border-bottom: 1px solid var(--grey-light);
      transition: color var(--transition);
    }
    .mobile-nav a:hover { color: var(--blue); }
    .mobile-nav a:last-child { border-bottom: none; }

    /* ══════════════════════════════════════════
       HERO
    ══════════════════════════════════════════ */
    #hero {
      position: relative;
      height: 100vh;
      min-height: 620px;
      margin-top: 80px;
      display: flex;
      align-items: center;
      overflow: hidden;
    }
    .hero-bg {
      position: absolute;
      inset: 0;
      background:
        url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1800&q=80')
        center/cover no-repeat;
    }
    /* Blue overlay left side, fading right */
    .hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        100deg,
        rgba(26,26,232,0.88) 0%,
        rgba(26,26,232,0.72) 40%,
        rgba(26,26,232,0.25) 70%,
        rgba(26,26,232,0.0)  100%
      );
    }
    .hero-content {
      position: relative;
      z-index: 2;
      padding: 0 3rem 0 calc(3rem + 0px);
      max-width: 680px;
    }
    .hero-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 0.7rem;
      font-size: 0.68rem;
      font-weight: 600;
      letter-spacing: 0.32em;
      text-transform: uppercase;
      color: var(--blue);
      margin-bottom: 1.4rem;
      opacity: 0;
      animation: fadeUp 0.9s 0.3s forwards;
    }
    .hero-eyebrow-line {
      display: block;
      width: 32px; height: 2px;
      background: var(--blue);
    }
    .hero-title {
      font-family: var(--font-head);
      font-size: clamp(2.8rem, 6vw, 5.5rem);
      font-weight: 300;
      line-height: 1.08;
      color: var(--white);
      margin-bottom: 1.5rem;
      opacity: 0;
      animation: fadeUp 0.9s 0.5s forwards;
    }
    .hero-title strong {
      font-weight: 700;
      color: var(--white);
    }
    .hero-title em {
      font-style: italic;
      color: var(--blue);
    }
    .hero-desc {
      font-size: 1rem;
      font-weight: 300;
      line-height: 1.85;
      color: rgba(255,255,255,0.82);
      margin-bottom: 2.5rem;
      opacity: 0;
      animation: fadeUp 0.9s 0.7s forwards;
    }
    .hero-actions {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      opacity: 0;
      animation: fadeUp 0.9s 0.9s forwards;
    }
    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 0.7rem;
      padding: 0.95rem 2rem;
      background: var(--blue);
      color: var(--white);
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      border: 2px solid var(--blue);
      border-radius: 2px;
      transition: background var(--transition), border-color var(--transition), transform var(--transition);
    }
    .btn-primary:hover {
      background: var(--blue-dark);
      border-color: var(--blue-dark);
      transform: translateY(-2px);
    }
    .btn-secondary {
      display: inline-flex;
      align-items: center;
      gap: 0.7rem;
      padding: 0.95rem 2rem;
      background: transparent;
      color: var(--white);
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      border: 2px solid rgba(255,255,255,0.6);
      border-radius: 2px;
      transition: border-color var(--transition), background var(--transition);
    }
    .btn-secondary:hover {
      border-color: var(--white);
      background: rgba(255,255,255,0.1);
    }
    .btn-primary svg,
    .btn-secondary svg { width: 15px; height: 15px; }

    /* Hero scroll indicator */
    .hero-scroll {
      position: absolute;
      bottom: 2.5rem; right: 3rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.58rem;
      letter-spacing: 0.28em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.5);
      opacity: 0;
      animation: fadeUp 0.9s 1.2s forwards;
    }
    .hero-scroll-line {
      width: 1px; height: 48px;
      background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
      animation: scrollPulse 2s ease-in-out infinite;
    }
    @keyframes scrollPulse {
      0%,100% { opacity:0.4; transform:scaleY(1); }
      50%      { opacity:1;   transform:scaleY(1.1); }
    }
    @keyframes fadeUp {
      from { opacity:0; transform:translateY(28px); }
      to   { opacity:1; transform:translateY(0); }
    }

    /* ══════════════════════════════════════════
       SECTION UTILS
    ══════════════════════════════════════════ */
    .section-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 0.7rem;
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.32em;
      text-transform: uppercase;
      color: var(--blue);
      margin-bottom: 1rem;
    }
    .section-eyebrow-line {
      display: block;
      width: 28px; height: 2px;
      background: var(--blue);
      flex-shrink: 0;
    }
    .section-title {
      font-family: var(--font-head);
      font-size: clamp(2rem, 4.5vw, 3.4rem);
      font-weight: 400;
      line-height: 1.15;
      color: var(--dark);
    }
    .section-title em {
      font-style: italic;
      color: var(--blue);
    }
    .section-title--white { color: var(--white); }
    .section-title--white em { color: var(--orange); }

    /* ══════════════════════════════════════════
       PRODUCT GRID (2 columns clickable)
    ══════════════════════════════════════════ */
    #prodotti {
      display: grid;
      grid-template-columns: 1fr 1fr;
      height: 100vh;
      min-height: 540px;
    }
    .product-card {
      position: relative;
      overflow: hidden;
      cursor: pointer;
      display: flex;
      align-items: flex-end;
    }
    .product-card-bg {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .product-card:hover .product-card-bg { transform: scale(1.07); }

    .product-card--stone .product-card-bg {
      background-image:
        url('../img/naturalstonehome.jpg');
    }
    .product-card--cement .product-card-bg {
      background-image:
        url('../img/concretehome.jpg');
    }

    /* Blue gradient overlay on each card */
    .product-card-overlay {
      position: absolute;
      inset: 0;
      transition: opacity var(--transition);
    }
    .product-card:hover .product-card-overlay {
	  background: linear-gradient(
    to top,
      rgba(26, 26, 232, 0.88) 0%,
	  rgba(26, 26, 232, 0.4)  20%,
      rgba(26, 26, 232, 0.05) 50%
		);
	}

    /* White vertical divider */
    .product-card:first-child::after {
      content: '';
      position: absolute;
      top: 10%; bottom: 10%;
      right: 0;
      width: 2px;
      background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5), transparent);
      z-index: 3;
    }

    .product-card-content {
      position: relative;
      z-index: 2;
      padding: 3rem;
      width: 100%;
    }
    .product-card-tag {
      display: inline-block;
      font-size: 0.6rem;
      font-weight: 700;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--white);
      background: var(--orange);
      padding: 0.3rem 0.8rem;
      margin-bottom: 1rem;
    }
    .product-card-title {
      font-family: var(--font-head);
      font-size: clamp(1.8rem, 3vw, 2.8rem);
      font-weight: 400;
      color: var(--white);
      line-height: 1.15;
      margin-bottom: 0.8rem;
    }
    .product-card-desc {
      font-size: 0.87rem;
      line-height: 1.75;
      color: rgba(255,255,255,0.8);
      max-width: 340px;
      margin-bottom: 1.8rem;
    }
    .product-card-link {
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--white);
      border-bottom: 2px solid rgba(255,255,255,0.4);
      padding-bottom: 3px;
      transition: gap var(--transition), border-color var(--transition);
    }
    .product-card:hover .product-card-link {
      gap: 1rem;
      border-color: var(--white);
    }
    .product-card-link svg { width: 14px; }

    /* ══════════════════════════════════════════
       PRODUCT DETAIL SECTIONS
    ══════════════════════════════════════════ */
    .product-section {
      padding: 8rem 0;
      scroll-margin-top: 80px;
    }
    .product-section--white { background: var(--white); }
    .product-section--grey  { background: var(--off-white); }

    .product-section-inner {
      max-width: 1140px;
      margin: 0 auto;
      padding: 0 2.5rem;
    }
    .product-section-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      align-items: center;
    }
    .product-section-grid.reverse { direction: rtl; }
    .product-section-grid.reverse > * { direction: ltr; }

    .product-section-img {
      position: relative;
      overflow: hidden;
      aspect-ratio: 4/3;
      border-radius: 2px;
      box-shadow: var(--shadow-lg);
    }
    .product-section-img img {
      width: 100%; height: 100%;
      object-fit: cover;
      transition: transform 0.8s ease;
    }
    .product-section-img:hover img { transform: scale(1.04); }
    /* Orange corner accent */
    .product-section-img::before {
      content: '';
      position: absolute;
      top: -3px; left: -3px;
      width: 60px; height: 60px;
      border-top: 4px solid var(--orange);
      border-left: 4px solid var(--orange);
      z-index: 2;
      pointer-events: none;
    }
    .product-section-img::after {
      content: '';
      position: absolute;
      bottom: -3px; right: -3px;
      width: 60px; height: 60px;
      border-bottom: 4px solid var(--blue);
      border-right: 4px solid var(--blue);
      z-index: 2;
      pointer-events: none;
    }

    .product-section-text .section-eyebrow { margin-bottom: 0.8rem; }
    .product-section-text .section-title   { margin-bottom: 1.5rem; }
    .product-section-text p {
      font-size: 0.95rem;
      line-height: 1.9;
      color: var(--grey);
      margin-bottom: 1rem;
    }
    .product-features {
      list-style: none;
      margin-top: 1.8rem;
      border-top: 1px solid var(--grey-light);
    }
    .product-features li {
      padding: 0.7rem 0;
      border-bottom: 1px solid var(--grey-light);
      font-size: 0.87rem;
      color: var(--dark);
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 0.9rem;
    }
    .product-features li::before {
      content: '';
      display: block;
      width: 8px; height: 8px;
      background: var(--blue);
      border-radius: 50%;
      flex-shrink: 0;
    }

    /* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
#about {
  padding: 8rem 0;
  scroll-margin-top: 80px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
#about::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 60px solid rgba(26,26,232,0.05);
  pointer-events: none;
}
#about::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 40px solid rgba(242,101,34,0.08);
  pointer-events: none;
}
.about-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2.5rem;
  position: relative;
  z-index: 1;
}
.about-header {
  text-align: center;
  margin-bottom: 5rem;
}
.about-header .section-eyebrow { justify-content: center; }
.about-header .section-title   { color: var(--dark); }
.about-header .section-title em { color: var(--blue); }
.about-header p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--grey);
  max-width: 640px;
  margin: 1.5rem auto 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}
.about-text p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--grey);
  margin-bottom: 1.3rem;
}
.about-text strong { color: var(--dark); }

.about-lead {
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--grey);
  margin-top: 1.5rem;
}
.about-lead em {
  color: var(--blue);
  font-style: italic;
}

.about-text em {
  color: var(--blue);
  font-style: italic;
}


/* Stats */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-content: start;
}
.stat-card {
  padding: 2rem 1.8rem;
  background: var(--off-white);
  border: 1px solid var(--grey-light);
  border-left: 4px solid var(--blue);
  border-radius: 2px;
  transition: background var(--transition), transform var(--transition);
}
.stat-card:hover {
  background: var(--blue-light);
  transform: translateY(-3px);
}
.stat-number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-number span { color: var(--blue); }
.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

/* Values */
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--grey-light);
}
.value-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--off-white);
  border: 1px solid var(--grey-light);
  border-radius: 2px;
  transition: background var(--transition), transform var(--transition);
}
.value-item:hover {
  background: var(--blue-light);
  transform: translateY(-4px);
}
.value-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1.4rem;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-icon svg { width: 24px; fill: var(--white); }
.value-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 0.7rem;
}
.value-text {
  font-size: 0.83rem;
  line-height: 1.75;
  color: var(--grey);
}

    /* ══════════════════════════════════════════
       CONTATTI
    ══════════════════════════════════════════ */
    #contatti {
      padding: 8rem 0;
      scroll-margin-top: 80px;
      background: var(--off-white);
    }
    .contatti-inner {
      max-width: 860px;
      margin: 0 auto;
      padding: 0 2.5rem;
    }
    .contatti-header {
      text-align: center;
      margin-bottom: 3.5rem;
    }
    .contatti-header .section-eyebrow { justify-content: center; }
    .contatti-header .section-title   { margin: 0.5rem 0 1rem; }
    .contatti-header p {
      font-size: 0.97rem;
      color: var(--grey);
      line-height: 1.8;
    }

    /* Tabs */
    .contact-tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
      margin-bottom: 2.5rem;
      border: 2px solid var(--blue);
      border-radius: 2px;
      overflow: hidden;
    }
    .contact-tab {
      padding: 1rem;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      text-align: center;
      cursor: pointer;
      background: var(--white);
      border: none;
      color: var(--blue);
      font-family: var(--font-body);
      transition: background var(--transition), color var(--transition);
    }
    .contact-tab:first-child { border-right: 2px solid var(--blue); }
    .contact-tab.active {
      background: var(--blue);
      color: var(--white);
    }
    .contact-tab:not(.active):hover {
      background: var(--blue-light);
    }

    /* Panels */
    .contact-panel { display: none; }
    .contact-panel.active { display: block; }

    .contact-info-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 1.5rem;
      padding: 1.2rem 1.8rem;
      background: var(--blue);
      border-radius: 2px;
      margin-bottom: 2rem;
    }
    .contact-info-bar-item {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      font-size: 0.82rem;
      color: rgba(255,255,255,0.85);
    }
    .contact-info-bar-item svg { width: 15px; flex-shrink: 0; fill: var(--white); }
    .contact-info-bar-item a {
      color: var(--white);
      font-weight: 500;
      transition: color var(--transition);
    }
    .contact-info-bar-item a:hover { color: var(--orange); }

    /* Form */
    .contact-form {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.2rem;
      background: var(--white);
      padding: 2.5rem;
      border-radius: 2px;
      box-shadow: var(--shadow-sm);
      border-top: 4px solid var(--blue);
    }
    .form-field { display: flex; flex-direction: column; gap: 0.4rem; }
    .form-field.full { grid-column: 1 / -1; }
    .form-field label {
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--blue);
    }
    .form-field input,
    .form-field textarea,
    .form-field select {
      background: var(--off-white);
      border: 1.5px solid var(--grey-light);
      color: var(--dark);
      padding: 0.8rem 1rem;
      font-size: 0.92rem;
      font-family: var(--font-body);
      outline: none;
      border-radius: 2px;
      transition: border-color var(--transition), box-shadow var(--transition);
      appearance: none;
      width: 100%;
    }
    .form-field input::placeholder,
    .form-field textarea::placeholder { color: rgba(107,107,138,0.5); }
    .form-field input:focus,
    .form-field textarea:focus,
    .form-field select:focus {
      border-color: var(--blue);
      box-shadow: 0 0 0 3px rgba(26,26,232,0.1);
      background: var(--white);
    }
    .form-field select { cursor: pointer; }
    .form-field select option { background: var(--white); color: var(--dark); }
    .form-field textarea { resize: vertical; min-height: 130px; }

    .form-submit {
      grid-column: 1 / -1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 1rem;
      padding-top: 0.5rem;
    }
    .form-privacy {
      font-size: 0.74rem;
      color: var(--grey);
      line-height: 1.6;
      max-width: 380px;
    }
    .form-privacy a { color: var(--blue); text-decoration: underline; }

    .btn-submit {
      display: inline-flex;
      align-items: center;
      gap: 0.8rem;
      padding: 0.95rem 2.2rem;
      background: var(--blue);
      color: var(--white);
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      border: none;
      border-radius: 2px;
      cursor: pointer;
      font-family: var(--font-body);
      transition: background var(--transition), transform var(--transition);
    }
    .btn-submit:hover {
      background: var(--blue-dark);
      transform: translateY(-2px);
    }
    .btn-submit svg { width: 14px; }

    /* Success */
    .form-success {
      display: none;
      text-align: center;
      padding: 3.5rem 2rem;
      background: var(--white);
      border-top: 4px solid var(--orange);
      box-shadow: var(--shadow-sm);
      border-radius: 2px;
    }
    .form-success.show { display: block; }
    .form-success-icon {
      width: 64px; height: 64px;
      background: var(--orange);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1.5rem;
    }
    .form-success-icon svg { width: 32px; fill: var(--white); }
    .form-success h3 {
      font-family: var(--font-head);
      font-size: 2rem;
      color: var(--dark);
      margin-bottom: 0.5rem;
    }
    .form-success p { color: var(--grey); font-size: 0.95rem; }

    /* ══════════════════════════════════════════
       FOOTER
    ══════════════════════════════════════════ */
    footer {
      background: var(--dark);
      border-top: 4px solid var(--blue);
    }
    .footer-top {
      max-width: 1140px;
      margin: 0 auto;
      padding: 4rem 2.5rem 3rem;
      display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      gap: 3rem;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    /* Logo footer: invertito in bianco */
    .footer-logo img {
      max-height: 70px;
      width: auto;
      margin-bottom: 1.2rem;
    }
    .footer-brand p {
      font-size: 0.85rem;
      line-height: 1.8;
      color: rgba(255,255,255,0.45);
      max-width: 300px;
    }

    .footer-col-title {
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.28em;
      text-transform: uppercase;
      color: var(--blue);
      margin-bottom: 1.4rem;
    }
    .footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
    .footer-links a {
      font-size: 0.85rem;
      color: rgba(255,255,255,0.45);
      transition: color var(--transition);
    }
    .footer-links a:hover { color: var(--white); }

    .footer-contact-item {
      display: flex;
      align-items: flex-start;
      gap: 0.7rem;
      margin-bottom: 0.85rem;
      font-size: 0.85rem;
      color: rgba(255,255,255,0.45);
      line-height: 1.6;
    }
    .footer-contact-item svg { width: 14px; flex-shrink: 0; fill: var(--blue); margin-top: 3px; }
    .footer-contact-item a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
    .footer-contact-item a:hover { color: var(--white); }

    .footer-bottom {
      max-width: 1140px;
      margin: 0 auto;
      padding: 1.8rem 2.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 1rem;
    }
    .footer-legal {
      font-size: 0.75rem;
      color: rgba(255,255,255,0.28);
      line-height: 1.8;
    }
    .footer-legal-links {
      display: flex;
      gap: 1.5rem;
      flex-wrap: wrap;
    }
    .footer-legal-links a {
      font-size: 0.73rem;
      color: rgba(255,255,255,0.35);
      transition: color var(--transition);
    }
    .footer-legal-links a:hover { color: var(--blue); }
    html[dir="rtl"] .footer-contact-item,
    html[dir="rtl"] .footer-legal,
    html[dir="rtl"] .news-card-body,
    html[dir="rtl"] .contact-info-bar-item {
      text-align: right;
    }

    /* ══════════════════════════════════════════
       SCROLL REVEAL
    ══════════════════════════════════════════ */
    .reveal {
      opacity: 0;
      transform: translateY(36px);
      transition: opacity 0.75s ease, transform 0.75s ease;
    }
    .reveal.visible { opacity: 1; transform: translateY(0); }
     .reveal-delay-1 { transition-delay: 0.12s; }
     .reveal-delay-2 { transition-delay: 0.24s; }
     .reveal-delay-3 { transition-delay: 0.36s; }

/* ══ CAROSELLO PRODOTTO ══ */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow-md);
}
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.carousel-slide {
  min-width: 100%;
}
.carousel-slide img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: var(--blue);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 2;
}
.carousel-btn:hover { background: var(--orange); }
.carousel-btn svg { width: 22px; stroke: white; }
.carousel-btn--prev { left: 1rem; }
.carousel-btn--next { right: 1rem; }
.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.carousel-dot.active {
  background: var(--white);
  transform: scale(1.3);
}
@media (max-width: 768px) {
  .carousel-btn { width: 36px; height: 36px; }
  .carousel-btn svg { width: 16px; }
}

     /* ══════════════════════════════════════════
        RESPONSIVE
     ══════════════════════════════════════════ */
    @media (max-width: 1024px) {
      .about-grid   { grid-template-columns: 1fr; gap: 3rem; }
      .about-stats  { grid-template-columns: repeat(4, 1fr); }
      .footer-top   { grid-template-columns: 1fr 1fr; }
      .footer-brand { grid-column: 1 / -1; }
    }
    @media (max-width: 768px) {
      header { padding: 0 1.5rem; }
      .header-desktop-tools { display: none; }
      nav    { display: none; }
      .hamburger { display: flex; }

      #hero { margin-top: 80px; }
      .hero-content { padding: 0 1.5rem; max-width: 100%; }
      .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
      .hero-scroll { display: none; }

      #prodotti { grid-template-columns: 1fr; height: auto; }
      .product-card { min-height: 55vh; }
      .product-card:first-child::after { display: none; }
      .product-card-content { padding: 2rem 1.5rem; }

      .product-section { padding: 5rem 0; }
      .product-section-inner { padding: 0 1.5rem; }
      .product-section-grid { grid-template-columns: 1fr; gap: 2.5rem; }
      .product-section-grid.reverse { direction: ltr; }

      #about { padding: 5rem 0; }
      .about-inner { padding: 0 1.5rem; }
      .about-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
      .about-stats { grid-template-columns: 1fr 1fr; }
      .about-values { grid-template-columns: 1fr; gap: 1rem; }

      #contatti { padding: 5rem 0; }
      .contatti-inner { padding: 0 1.5rem; }
      .contact-form   { grid-template-columns: 1fr; padding: 1.5rem; }
      .form-field.full { grid-column: 1; }
      .form-submit { flex-direction: column; align-items: stretch; }
      .btn-submit  { justify-content: center; }

      .footer-top    { grid-template-columns: 1fr; padding: 3rem 1.5rem 2rem; gap: 2rem; }
      .footer-bottom { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
      .footer-legal-links { gap: 1rem; }
    }
    @media (max-width: 480px) {
      .hero-actions { flex-direction: column; }
      .btn-primary, .btn-secondary { justify-content: center; }
      .contact-tabs { grid-template-columns: 1fr; }
      .contact-tab:first-child { border-right: none; border-bottom: 2px solid var(--blue); }
      .about-stats { grid-template-columns: 1fr 1fr; }
      .footer-legal-links { flex-direction: column; gap: 0.6rem; }
    }

.form-error {
  background: #fff0f0;
  border: 1.5px solid #e53e3e;
  color: #c53030;
  padding: 0.9rem 1.2rem;
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.nsd-section {
  margin-top: 1px;
  margin-bottom: 0;
  display: grid;
  grid-auto-rows: 50vh;   /* ← ogni riga è sempre 50vh, indipendentemente da quante sono */
  min-height: unset;
  height: auto;           /* ← non più 100vh fisso */
  gap: 0;
}
.nsd-grid {
  max-width: unset;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  height: 100%;                  /* ← QUESTO mancava! */
}
.nsd-row-3 {
  grid-template-columns: repeat(3, 1fr);
}
.nsd-row-2 {
  grid-template-columns: repeat(2, 1fr);
}
.nsd-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
  border-radius: 0;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nsd-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nsd-card:hover .nsd-card-bg { transform: scale(1.07); }
.nsd-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,13,43,0.85) 0%,
    rgba(13,13,43,0.55) 50%,
    rgba(13,13,43,0.3) 100%
  );
  transition: opacity 0.35s ease;
}
.nsd-card:hover .nsd-card-overlay {
  background: linear-gradient(
    to top,
    rgba(26, 26, 232, 0.82) 0%,
    rgba(26, 26, 232, 0.45) 50%,
    rgba(26, 26, 232, 0.15) 100%
  );
}
.nsd-card-title {
  position: relative;
  z-index: 2;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  text-align: center;
  padding: 1rem 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ══ NEWS GRID ══ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2.5rem;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 2px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.news-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.news-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.news-card-cat {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}
.news-card-date {
  font-size: 0.75rem;
  color: var(--grey);
}
.news-card-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.3;
  margin-bottom: 0.7rem;
}
.news-card-summary {
  font-size: 0.87rem;
  line-height: 1.75;
  color: var(--grey);
  flex: 1;
  margin-bottom: 1.2rem;
}
.news-card-link {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}
.news-card-link:hover { gap: 0.8rem; }

@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; padding: 0 1.5rem; }
}

/* ── Pagine legali (privacy, cookie, copyright) ── */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2.5rem;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--grey);
}
.legal-content .legal-updated {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 2rem;
}
.legal-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--dark);
  margin: 2.5rem 0 0.8rem;
}
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { margin: 0 0 1rem 1.3rem; }
.legal-content li { margin-bottom: 0.5rem; }
.legal-content strong { color: var(--dark); }
.legal-content a { color: var(--blue); text-decoration: underline; }
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}
.legal-content th,
.legal-content td {
  text-align: start;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  vertical-align: top;
}
.legal-content th { color: var(--dark); background: var(--off-white); font-weight: 600; }
@media (max-width: 600px) {
  .legal-content { padding: 0 1.5rem; }
  .legal-content table, .legal-content tbody, .legal-content tr, .legal-content td { display: block; }
  .legal-content thead { display: none; }
  .legal-content td { border-bottom: none; padding: 0.3rem 0; }
  .legal-content tr { border-bottom: 1px solid rgba(0,0,0,0.1); padding: 0.8rem 0; }
}
