:root {
  --bg: #ffffff;
  --bg-dark: #0A043B;
  --bg-section: #f5f7fa;
  --bg-dark-section: #080330;
  --panel: #ffffff;
  --text: #0A043B;
  --text-light: #ffffff;
  --muted: #5a6a7a;
  --muted-light: #8a9ab0;
  --accent: #e63946;
  --accent-hover: #c1121f;
  --accent-2: #0A043B;
  --accent-3: #f4a261;
  --line: #e0e4ea;
  --line-dark: rgba(255, 255, 255, 0.12);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Blocca lo scorrimento orizzontale (iPhone/Safari iOS) */
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1260px, calc(100% - 2rem));
  margin: 0 auto;
}

/* ─── HEADER ─── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
  background: transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
}

.site-header.scrolled .primary-nav a,
.site-header.scrolled .menu-toggle {
  color: var(--text);
}

.site-header.scrolled .header-cta {
  background: var(--accent);
  color: #fff;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s;
}

.brand:hover {
  opacity: 0.85;
}

.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}

.site-header.scrolled .brand-logo {
  filter: none;
}

.footer-logo {
  filter: brightness(0) invert(1) !important;
  height: 38px;
  margin-bottom: 0.75rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.primary-nav a {
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.primary-nav a:hover {
  color: var(--accent);
}

.header-cta {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s;
}

.header-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius);
  font: inherit;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}

/* ─── HERO ─── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrap {
  overflow: hidden;
}

.hero-video-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 60% 50%;
  animation: hero-kenburns 28s ease-in-out infinite alternate;
}

/* Background slideshow: the first photo (WD-40) stays underneath, the other
   brand photos fade in over it one after another (6s each, 36s full cycle). */
.hero-video-wrap .hero-slide {
  opacity: 0;
  will-change: opacity, transform;
  animation: hero-kenburns 28s ease-in-out infinite alternate, hero-slide-fade 36s linear infinite backwards;
}

.hero-video-wrap .hero-slide-2 { object-position: 70% 50%; animation-delay: -6s, 4.8s; }
.hero-video-wrap .hero-slide-3 { object-position: 50% 50%; animation-delay: -12s, 10.8s; }
.hero-video-wrap .hero-slide-4 { object-position: 50% 50%; animation-delay: -18s, 16.8s; }
.hero-video-wrap .hero-slide-5 { object-position: 50% 50%; animation-delay: -24s, 22.8s; }
.hero-video-wrap .hero-slide-6 { object-position: 50% 50%; animation-delay: -30s, 28.8s; }

@keyframes hero-slide-fade {
  0%           { opacity: 0; }
  3.33%, 20%   { opacity: 1; }
  23.33%, 100% { opacity: 0; }
}

@keyframes hero-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.12) translate(-1.5%, -1%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-wrap img { animation: none; }
  .hero-video-wrap .hero-slide { display: none; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 4, 59, 0.88) 0%, rgba(10, 4, 59, 0.72) 50%, rgba(8, 3, 48, 0.65) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1260px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 8rem 0 5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3rem;
  padding: 0.45rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
}

a.hero-badge:hover,
a.hero-badge:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 1.5rem;
  max-width: 20ch;
}

.hero h1 strong {
  color: var(--accent);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 52ch;
  margin: 0 0 2.5rem;
}

.hero-motto {
  font-size: 1.25rem;
  color: var(--accent);
  margin: -0.5rem 0 1rem;
  letter-spacing: 0.03em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem;
  color: #fff;
  margin: 0;
  line-height: 1;
}

.hero-stat p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0.3rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── BUTTONS ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  padding: 0.85rem 1.6rem;
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(230, 57, 70, 0.4);
}

.btn-outline {
  border-color: #fff;
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: #fff;
  color: var(--text);
  transform: translateY(-2px);
}

.btn-outline-dark {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: transparent;
}

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

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--accent-2);
  color: #fff;
}

.btn-secondary:hover {
  background: #080330;
  transform: translateY(-2px);
}

/* ─── SECTIONS ─── */

.section {
  padding: 5.5rem 0;
}

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

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

.section-label {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.8rem;
}

.section-dark .section-label {
  color: var(--accent-3);
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.section-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 58ch;
  margin: 0;
}

.section-dark .section-desc {
  color: var(--muted-light);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-desc {
  margin: 0.5rem auto 0;
}

/* ─── ABOUT ─── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-text .section-desc {
  margin: 1rem 0 1.5rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-section);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.stat-item h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  color: var(--accent);
  margin: 0;
  line-height: 1;
}

.stat-item p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}

/* ─── PRODUCTS ─── */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--panel);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--line);
}

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

.product-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #eef1f5;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.product-card-body {
  padding: 1.25rem;
}

.product-card-body h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.product-card-body p {
  color: var(--muted);
  margin: 0 0 0.8rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.product-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.product-card-features span {
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  background: var(--bg-section);
  border-radius: 2rem;
  color: var(--accent-2);
  font-weight: 600;
}

/* ─── SERVICES ─── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 0.75rem;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.section-dark .service-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.section-dark .service-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.service-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(230, 57, 70, 0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.section-dark .service-icon {
  background: rgba(244, 162, 97, 0.15);
}

.service-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

.service-card p {
  color: var(--muted-light);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ─── PROCESS / TIMELINE ─── */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 32px;
  right: 32px;
  height: 2px;
  background: var(--line);
}

.process-step {
  text-align: center;
  position: relative;
}

.process-number {
  width: 64px;
  height: 64px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 1.2rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.3);
}

.process-step h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.process-step p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* ─── CTA BANNER ─── */

.cta-banner {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
}

.cta-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 4, 59, 0.92), rgba(8, 3, 48, 0.88));
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.cta-banner-content .section-title {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-banner-content p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 50ch;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── GALLERY ─── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 1rem;
}

.gallery-item {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  background: #0a043b;
  box-shadow: 0 10px 30px rgba(10, 4, 59, 0.12);
  isolation: isolate;
}

.gallery-item--big {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item--wide {
  grid-column: span 3;
  grid-row: span 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s;
  filter: saturate(0.9) contrast(1.05);
}

/* Foto da catalogo su fondo bianco: mostrate intere, senza ritaglio */
.gallery-item--product {
  background: #ffffff;
}

.gallery-item--product img {
  object-fit: contain;
  padding: 1rem 1rem 3.5rem;
  filter: none;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 4, 59, 0) 45%, rgba(10, 4, 59, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.5s;
}

.gallery-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
}

.gallery-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: saturate(1.1) contrast(1.08);
}

.gallery-caption {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: #fff;
  transform: translateY(6px);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
}

.gallery-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7);
  animation: gallery-live 1.8s infinite;
}

.gallery-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.gallery-item--big .gallery-title {
  font-size: 1.6rem;
}

@keyframes gallery-live {
  0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(230, 57, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

@media (max-width: 940px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  .gallery-item--wide {
    grid-column: span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item img,
  .gallery-caption { transition: none; }
  .gallery-tag::before { animation: none; }
}

/* ─── CONTACT ─── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-block {
  margin-bottom: 2rem;
}

.contact-info-block h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-2);
}

.contact-info-block p,
.contact-info-block a {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.8;
}

.contact-info-block a:hover {
  color: var(--accent);
}

.quick-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.quick-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s;
}

.quick-actions a:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 2rem;
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  margin: 0 0 0.25rem;
}

.contact-form > p {
  color: var(--muted);
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
}

.contact-form > p.form-note {
  font-size: 0.82rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line);
  background: var(--bg-section);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.hidden-field {
  display: none;
}

.form-captcha:not(:empty) {
  margin: 0.25rem 0 0.5rem;
  max-width: 100%;
  overflow: hidden;
}

/* ─── FOOTER ─── */

.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about {
  padding-right: 2rem;
}

.footer-about .brand {
  display: block;
  margin-bottom: 1rem;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.7;
}

.footer-motto {
  color: var(--accent) !important;
  font-size: 0.95rem !important;
  margin-bottom: 0.75rem !important;
  letter-spacing: 0.02em;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.footer-credit {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ─── FOOTER BRANDS ─── */

.footer-brands {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brands h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 1.5rem;
  text-align: center;
}

.footer-brands-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
}

.partner-logo {
  aspect-ratio: 180 / 72;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #ffffff;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  user-select: none;
}

/* Ogni logo è un pulsante: apre la scelta preventivo / catalogo */
.partner-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.partner-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Logo ufficiale a colori, in alta definizione */
.partner-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partner-logo:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Finestra "Cosa ti interessa?" aperta cliccando un marchio */
.brand-dialog {
  width: min(420px, calc(100vw - 2rem));
  padding: 2rem 1.75rem 1.75rem;
  border: 0;
  border-radius: 1rem;
  background: #ffffff;
  color: var(--text, #0a043b);
  text-align: center;
  box-shadow: 0 24px 60px rgba(10, 4, 59, 0.35);
}

.brand-dialog::backdrop {
  background: rgba(10, 4, 59, 0.6);
  backdrop-filter: blur(2px);
}

.brand-dialog-close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: inherit;
  cursor: pointer;
}

.brand-dialog-close:hover,
.brand-dialog-close:focus-visible { background: rgba(10, 4, 59, 0.08); }

.brand-dialog-logo {
  height: 72px;
  margin: 0 auto 1rem;
  max-width: 240px;
}

.brand-dialog-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-dialog h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.brand-dialog-desc {
  margin: 0 0 1.5rem;
  opacity: 0.8;
  line-height: 1.5;
}

.brand-dialog-actions {
  display: grid;
  gap: 0.75rem;
}

.brand-dialog-actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

@media (max-width: 480px) {
  .footer-brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
}

/* ─── ANIMATIONS ─── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── RESPONSIVE ─── */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .process-grid::before {
    display: none;
  }

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

@media (max-width: 940px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-right {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    backdrop-filter: blur(12px);
  }

  .nav-right.open {
    display: flex;
  }

  .nav-right .primary-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .nav-right .primary-nav a {
    color: var(--text);
    font-size: 1rem;
  }

  .nav-right .header-cta {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }

  .site-header .menu-toggle {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
  }

  .site-header.scrolled .menu-toggle {
    color: var(--text);
    border-color: var(--line);
  }

  .hero-content {
    padding: 7rem 0 3rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

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

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

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 210px;
    gap: 0.75rem;
  }

  .gallery-item--big,
  .gallery-item--wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item--big {
    grid-row: span 1;
  }

  .gallery-item--big .gallery-title {
    font-size: 1.2rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }
}

/* ─── Form Messages ─── */
.form-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ─── Language Switch ─── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 0.15rem;
}

.lang-btn {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1;
}

.lang-btn:hover {
  color: rgba(255, 255, 255, 0.8);
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Scrolled header variants */
.site-header.scrolled .lang-switch {
  background: var(--bg-section);
  border-color: var(--line);
}

.site-header.scrolled .lang-btn {
  color: var(--muted);
}

.site-header.scrolled .lang-btn:hover {
  color: var(--text);
}

.site-header.scrolled .lang-btn.active {
  background: var(--accent);
  color: #fff;
}

/* Mobile adjustments */
@media (max-width: 760px) {
  .lang-switch {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--line);
  }

  .lang-btn {
    color: var(--muted);
  }

  .lang-btn:hover {
    color: var(--text);
  }
}

/* ── Search ───────────────────────────────────────────────────────────────── */
#search-trigger {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-light);
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
#search-trigger:hover {
  background: rgba(255,255,255,.12);
}

#search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 4, 59, .7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
#search-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.search-box {
  width: min(660px, calc(100% - 2rem));
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.search-icon-input {
  color: var(--muted);
  flex-shrink: 0;
}
#search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
}
#search-input::placeholder { color: var(--muted-light); }
#search-close {
  all: unset;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  transition: background .15s;
  flex-shrink: 0;
}
#search-close:hover { background: var(--bg-section); }
#search-results {
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.search-result-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: .6rem;
  padding: .75rem 1.1rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .15s;
  cursor: pointer;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover, .search-result-item:focus {
  background: var(--bg-section);
  outline: none;
}
.sr-badge {
  grid-row: 1 / 3;
  align-self: center;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  background: var(--accent);
  padding: .2rem .5rem;
  border-radius: 4px;
  white-space: nowrap;
}
.sr-title {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
}
.sr-desc {
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-item mark {
  background: #fff3cd;
  color: var(--text);
  border-radius: 2px;
  padding: 0 1px;
}
.search-hint {
  text-align: center;
  padding: 1.2rem;
  color: var(--muted);
  font-size: .85rem;
  margin: 0;
}

@media (max-width: 600px) {
  #search-overlay { padding-top: 0; align-items: flex-end; }
  .search-box { border-radius: 14px 14px 0 0; width: 100%; }
  #search-results { max-height: 55vh; }
}

/* ── Back to Top ────────────────────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9000;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(230,57,70,.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s;
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
#back-to-top:hover { background: var(--accent-hover); }

/* ── WhatsApp Button ───────────────────────────────────────────────────────────────── */
#whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9000;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
}
#whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,.6);
}

/* ── Footer Legal ─────────────────────────────────────────────────────────────────── */
.footer-legal {
  margin-top: .35rem;
  font-size: .78rem;
}
.footer-legal a {
  color: var(--muted-light);
  text-decoration: none;
  transition: color .2s;
}
.footer-legal a:hover { color: #fff; }

/* ── Contact Map ────────────────────────────────────────────────────────────────── */
.contact-map iframe {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: var(--radius);
  margin-top: .75rem;
  display: block;
}
/* ─── Lavora con noi ─── */
.careers-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.5rem;
}

.careers-list li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.5;
}

.careers-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

.contact-form select {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-section);
  color: var(--text);
  font-size: 0.95rem;
}

.contact-form input[type="file"] {
  padding: 0.6rem;
  cursor: pointer;
}

.contact-form .careers-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.5;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.contact-form .careers-consent input {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.contact-form .careers-consent a {
  color: var(--accent);
  text-decoration: underline;
}

/* ─── News ─── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.news-tag {
  background: rgba(230, 57, 70, 0.1);
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
}

.news-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0;
}

.news-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.news-card h3 a:hover {
  color: var(--accent);
}

.news-card p {
  color: var(--muted);
  margin: 0;
  flex: 1;
}

.news-read {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.news-more {
  text-align: center;
  margin-top: 2.5rem;
}

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

/* ─── Header: switch to the compact menu when the 7 nav items no longer fit on one line ─── */
@media (max-width: 1280px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-right {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    backdrop-filter: blur(12px);
  }

  .nav-right.open {
    display: flex;
  }

  .nav-right .primary-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .nav-right .primary-nav a {
    color: var(--text);
    font-size: 1rem;
  }

  .nav-right .header-cta {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }

  .nav-right .lang-switch {
    background: var(--bg-section);
    border-color: var(--line);
  }

  .nav-right .lang-btn {
    color: var(--muted);
  }

  .nav-right .lang-btn.active {
    color: #fff;
  }

  .site-header.scrolled .menu-toggle {
    color: var(--text);
    border-color: var(--line);
  }
}

.careers-form-wrap {
  max-width: 720px;
  margin: 0 auto;
}

/* ─── Header desktop: logo e menu con le stesse misure in italiano e in inglese ───
   Le voci italiane sono più lunghe e prima "schiacciavano" il logo; in inglese
   il logo tornava a grandezza piena. Ora il logo ha una dimensione fissa (quella
   della versione italiana) e non si restringe più in base al testo. */
@media (min-width: 1281px) {
  .brand {
    flex-shrink: 0;
  }

  .brand-logo {
    width: 112px;
    height: auto;
    max-height: 42px;
  }

  .nav-right {
    flex-shrink: 0;
  }

  .header-cta {
    min-width: 213px;
    justify-content: center;
  }
}

/* Margine di sicurezza sugli schermi appena sopra il punto di passaggio al menu compatto */
@media (min-width: 1281px) and (max-width: 1340px) {
  .primary-nav {
    gap: 1.15rem;
  }
}

/* ─── LAVORA CON NOI: pagina dedicata ─── */
.page-hero {
  padding-top: calc(6rem + 3.5rem);
  padding-bottom: 3.5rem;
}

.page-hero .page-hero-header {
  margin-bottom: 0;
}

.page-hero h1.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

/* ─── CONTATTI: la sezione più importante della home ─── */
.section-contact {
  position: relative;
  background:
    radial-gradient(circle at 12% 0%, rgba(230, 57, 70, 0.08), transparent 45%),
    var(--bg-section);
  border-top: 4px solid var(--accent);
}

.section-contact .section-title {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
}

.section-contact .contact-form {
  border-top: 4px solid var(--accent);
  box-shadow: 0 18px 50px rgba(10, 4, 59, 0.14);
}
