/* =============================================================
   PA Product srl — Sito Vetrina
   Foglio di stile principale
   ============================================================= */

/* -----------------------------
   1. Variabili / Palette brand (DARK THEME)
----------------------------- */
:root {
  /* Brand colors */
  --c-cyan:        #65e6ff;
  --c-green:       #43ff4a;
  --c-green-2:     #41d14b;
  --c-white:       #ffffff;

  /* Dark palette — varie tonalità di scuro per sezioni alternate */
  --c-bg:          #0a2026;            /* sfondo base */
  --c-bg-alt:      #102d36;            /* sezione alternata (tono 2) */
  --c-bg-tone-3:   #0d2731;            /* tono 3, intermedio */
  --c-bg-tone-4:   #143a45;            /* tono 4, più chiaro/petrolio */
  --c-bg-soft:     #1a3e48;            /* hover, controlli */
  --c-bg-deeper:   #050f12;            /* footer, elementi profondi */
  --c-bg-card:     rgba(255, 255, 255, 0.04);
  --c-bg-card-hover: rgba(255, 255, 255, 0.075);
  --c-surface:     #14313a;            /* card solid quando serve opaco */

  /* Compat colors (riferimenti rimasti dal vecchio sistema) */
  --c-dark:        #0a2026;
  --c-night:       #0a2026;
  --c-petrol:      #143a45;

  /* Text colors (su scuro) */
  --c-heading:     #ffffff;
  --c-text:        #e8eef2;
  --c-text-soft:   #b8c4cd;
  --c-muted:       #7c8a92;

  /* Borders su scuro */
  --c-border:      rgba(255, 255, 255, 0.09);
  --c-border-strong: rgba(255, 255, 255, 0.16);

  /* Gradients */
  --grad-brand:    linear-gradient(135deg, #65e6ff 0%, #43ff4a 100%);
  --grad-dark:     linear-gradient(135deg, #0a2026 0%, #143a45 100%);
  --grad-darker:   linear-gradient(135deg, #050f12 0%, #0a2026 100%);
  --grad-cta:      linear-gradient(135deg, #65e6ff 0%, #41d14b 100%);

  /* Typography */
  --font-head: "Montserrat", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Open Sans", system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  /* Shadows (più profonde su dark) */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 22px 56px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(101, 230, 255, 0.18);

  /* Transitions */
  --t: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -----------------------------
   2. Reset & base
----------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* compensate sticky header */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(101, 230, 255, 0.05), transparent 35%),
    radial-gradient(ellipse at 100% 100%, rgba(67, 255, 74, 0.04), transparent 40%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color var(--t); }
a:hover { color: var(--c-green-2); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--c-heading);
  margin: 0 0 var(--space-sm);
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 var(--space-sm); color: var(--c-text-soft); }

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

button { font: inherit; cursor: pointer; border: 0; background: transparent; }

/* -----------------------------
   3. Helpers
----------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section {
  padding: var(--space-2xl) 0;
  position: relative;
  background: var(--c-bg);
}
/* Alternanza automatica per varietà tonale tra sezioni "section" senza modifiche HTML */
main > .section:nth-of-type(odd):not(.section-alt):not(.section-dark) {
  background: var(--c-bg);
}
main > .section:nth-of-type(even):not(.section-alt):not(.section-dark) {
  background: var(--c-bg-tone-3);
}
.section-alt {
  background: var(--c-bg-alt);
  background-image:
    radial-gradient(circle at 95% 0%, rgba(101, 230, 255, 0.1), transparent 40%),
    radial-gradient(circle at 0% 90%, rgba(67, 255, 74, 0.08), transparent 40%);
}
.section-dark {
  background: linear-gradient(135deg, #143a45 0%, #0a2026 100%);
  color: var(--c-text);
  position: relative;
  overflow: hidden;
}
.section-dark h2 { color: var(--c-white); }
.section-dark p { color: var(--c-text-soft); }

.section-head {
  margin-bottom: var(--space-xl);
  max-width: 760px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { font-size: 1.1rem; color: var(--c-text-soft); }

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-green-2);
  margin-bottom: 0.9rem;
}
.kicker-light { color: var(--c-cyan); }

/* Decorative pattern + accent overlays per movimento */
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='70' viewBox='0 0 80 70'><polygon points='40,2 76,22 76,58 40,78 4,58 4,22' fill='none' stroke='%2365e6ff' stroke-opacity='0.05'/></svg>");
  background-size: 80px 70px;
  pointer-events: none;
  opacity: 0.7;
  z-index: 0;
}
.section::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
main > .section:nth-of-type(odd)::after {
  background: radial-gradient(circle, rgba(101, 230, 255, 0.08), transparent 70%);
  top: -100px;
  right: -150px;
}
main > .section:nth-of-type(even)::after {
  background: radial-gradient(circle, rgba(67, 255, 74, 0.08), transparent 70%);
  bottom: -150px;
  left: -100px;
}
.section > .container { position: relative; z-index: 1; }

/* -----------------------------
   4. Buttons
----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap;
  text-decoration: none;
}
.btn-lg { padding: 1rem 1.8rem; font-size: 1rem; }

.btn-primary {
  background: var(--grad-cta);
  color: var(--c-night);
  box-shadow: 0 8px 22px rgba(67, 209, 75, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(67, 209, 75, 0.36);
  color: var(--c-night);
}

.btn-ghost {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-cyan);
  border-color: var(--c-cyan);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--c-night);
  color: var(--c-white);
}
.btn-dark:hover {
  background: var(--c-dark);
  color: var(--c-white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--c-white);
}
.btn-whatsapp:hover {
  background: #1ebe5a;
  color: var(--c-white);
  transform: translateY(-2px);
}

/* -----------------------------
   5. Header / Navbar
----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 32, 38, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow var(--t), border-color var(--t), background var(--t);
}
.site-header.scrolled {
  background: rgba(5, 15, 18, 0.92);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
  min-height: 76px;
}

.logo img { height: 44px; width: auto; max-height: 100%; display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.main-nav ul {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.main-nav a {
  display: inline-block;
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-text);

  border-radius: 999px;
  transition: background var(--t), color var(--t);
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.06); color: var(--c-cyan); }
.nav-cta { padding: 0.7rem 1.3rem !important; }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* -----------------------------
   6. Hero
----------------------------- */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  background: var(--c-bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% -10%, rgba(101, 230, 255, 0.22), transparent 55%),
    radial-gradient(ellipse at 0% 110%, rgba(67, 255, 74, 0.18), transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(101, 230, 255, 0.04), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'><polygon points='30,2 56,17 56,46 30,61 4,46 4,17' fill='none' stroke='%2365e6ff' stroke-opacity='0.1' stroke-width='1'/></svg>");
  background-size: 60px 52px;
  opacity: 0.8;
}
.hero-bg::after {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  top: -100px; right: -100px;
  background: radial-gradient(circle, rgba(67, 255, 74, 0.18), transparent 70%);
  filter: blur(40px);
  animation: orbDrift 16s ease-in-out infinite;
}
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 40px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 { margin-bottom: 1.2rem; }
.hero-sub {
  font-size: 1.15rem;
  max-width: 580px;
  color: var(--c-text-soft);
  margin-bottom: 2rem;
}

.badge-mepa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(101, 230, 255, 0.1);
  border: 1px solid rgba(101, 230, 255, 0.25);
  color: var(--c-white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.badge-mepa svg { color: var(--c-green); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-trust li {
  font-size: 0.95rem;
  color: var(--c-text-soft);
}
.hero-trust strong { color: var(--c-white); }

/* Hero visual — illustration */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-illustration {
  width: 100%;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0 22px 50px rgba(15, 58, 69, 0.18));
  animation: floatY 5s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* -----------------------------
   7. Two-column "Chi siamo"
----------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.prose p { font-size: 1.05rem; }
.prose-highlight {
  padding: 1.2rem 1.4rem;
  background: rgba(101, 230, 255, 0.06);
  border-left: 4px solid;
  border-image: var(--grad-brand) 1;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--c-text);
  font-size: 1rem;
}
.prose-highlight strong { color: var(--c-white); }

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.value-card {
  padding: 1.5rem;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t), background var(--t);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--c-bg-card-hover);
  border-color: rgba(101, 230, 255, 0.3);
}
.value-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad-cta);
  color: var(--c-night);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.9rem;
}
.value-icon svg { width: 22px; height: 22px; }
.value-card h3 { font-size: 1rem; margin-bottom: 0.3rem; color: var(--c-white); }
.value-card p { font-size: 0.92rem; margin: 0; }

/* -----------------------------
   8. Card grids (servizi, perché)
----------------------------- */
.card-grid {
  display: grid;
  gap: 1.5rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.service-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t), background var(--t);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: var(--c-bg-card-hover);
  border-color: rgba(101, 230, 255, 0.25);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(101, 230, 255, 0.22), rgba(67, 255, 74, 0.18));
  color: var(--c-cyan);
  box-shadow: 0 0 24px rgba(101, 230, 255, 0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.service-icon svg { width: 26px; height: 26px; }

.why-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t), background var(--t);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--c-bg-card-hover);
  border-color: rgba(67, 255, 74, 0.3);
}
.why-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
  line-height: 1;
}

/* -----------------------------
   9. Categorie prodotti
----------------------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.cat-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.2rem;
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t), background var(--t);
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--c-bg-card-hover);
  border-color: rgba(67, 255, 74, 0.4);
}
.cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(101, 230, 255, 0.08);
  border: 1px solid rgba(101, 230, 255, 0.15);
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
}
.cat-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--c-white);
}
.cat-card p {
  font-size: 0.82rem;
  color: var(--c-muted);
  margin: 0;
}
.cat-card-cta {
  background: var(--grad-cta);
  color: var(--c-night);
  border-color: transparent;
}
.cat-card-cta h4 { color: var(--c-night); }
.cat-card-cta p { color: rgba(11, 40, 48, 0.85); }
.cat-card-cta .cat-icon {
  background: rgba(11, 40, 48, 0.18);
  color: var(--c-night);
  border: none;
}
.cat-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--c-night);
  border-bottom: 2px solid var(--c-night);
}

/* -----------------------------
   10. Sezione MePA (dark)
----------------------------- */
#mepa {
  position: relative;
}
#mepa::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'><polygon points='30,2 56,17 56,46 30,61 4,46 4,17' fill='none' stroke='%2365e6ff' stroke-opacity='0.06' stroke-width='1'/></svg>");
  background-size: 60px 52px;
  pointer-events: none;
  opacity: 1;
}

.mepa-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.mepa-list {
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: 0.7rem;
}
.mepa-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  color: var(--c-text);
}
.mepa-list svg {
  width: 22px;
  height: 22px;
  color: var(--c-green);
  flex-shrink: 0;
}

.mepa-badge {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.mepa-badge-inner {
  position: relative;
  width: 320px; height: 320px;
  background: linear-gradient(135deg, rgba(101, 230, 255, 0.12), rgba(67, 255, 74, 0.08));
  border: 1px solid rgba(101, 230, 255, 0.25);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.badge-tag {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 0.6rem;
}
.badge-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 4rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.badge-sub {
  font-size: 0.92rem;
  color: var(--c-text-soft);
}
.badge-rings {
  position: absolute;
  inset: -40px;
  border-radius: var(--radius-xl);
  border: 1px dashed rgba(101, 230, 255, 0.25);
  pointer-events: none;
}

/* -----------------------------
   11. CTA band
----------------------------- */
.cta-band {
  background: var(--grad-cta);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'><polygon points='30,2 56,17 56,46 30,61 4,46 4,17' fill='none' stroke='%23ffffff' stroke-opacity='0.18' stroke-width='1'/></svg>");
  background-size: 60px 52px;
  opacity: 0.6;
}
.cta-band-inner {
  text-align: center;
  position: relative;
}
.cta-band h2 {
  color: var(--c-night);
  margin-bottom: 0.6rem;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
}
.cta-band p {
  color: rgba(11, 40, 48, 0.85);
  font-size: 1.1rem;
  margin-bottom: 1.6rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* -----------------------------
   12. Contatti & Form
----------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}
.contact-info {
  display: grid;
  gap: 1.2rem;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t);
}
.info-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  background: var(--c-bg-card-hover);
  border-color: rgba(101, 230, 255, 0.25);
}
.info-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(101, 230, 255, 0.22), rgba(67, 255, 74, 0.18));
  color: var(--c-cyan);
  display: flex; align-items: center; justify-content: center;
}
.info-icon svg { width: 22px; height: 22px; }
.info-item h4 { font-size: 0.95rem; margin-bottom: 0.2rem; color: var(--c-white); }
.info-item p { font-size: 0.95rem; margin: 0; color: var(--c-text-soft); }
.info-item a { color: var(--c-text); font-weight: 500; }
.info-item a:hover { color: var(--c-cyan); }

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 380px;
  border: 1px solid var(--c-border);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

/* Form */
.form-card {
  background: var(--c-bg-card);
  border-radius: var(--radius-xl);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-brand);
}
.form-head {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.form-head h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--c-white);
  margin-bottom: 0.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--c-white);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--c-text);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
  width: 100%;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--c-muted); }
.form-field select option { background: var(--c-bg); color: var(--c-text); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-cyan);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(101, 230, 255, 0.18);
}
.form-field textarea { resize: vertical; min-height: 130px; }

.form-check label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--c-text-soft);
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--c-green-2);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.form-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--c-muted);
  text-align: center;
}
.form-feedback {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: none;
}
.form-feedback.success {
  display: block;
  background: rgba(67, 209, 75, 0.15);
  color: #6ce478;
  border: 1px solid rgba(67, 209, 75, 0.35);
}
.form-feedback.error {
  display: block;
  background: rgba(220, 53, 69, 0.15);
  color: #ff8a95;
  border: 1px solid rgba(220, 53, 69, 0.35);
}

/* -----------------------------
   13. Footer
----------------------------- */
.site-footer {
  background: var(--c-bg-deeper);
  color: var(--c-text-soft);
  padding: var(--space-2xl) 0 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-brand);
  opacity: 0.5;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'><polygon points='30,2 56,17 56,46 30,61 4,46 4,17' fill='none' stroke='%2365e6ff' stroke-opacity='0.05' stroke-width='1'/></svg>");
  background-size: 60px 52px;
  opacity: 0.7;
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}
.footer-brand p {
  color: var(--c-text-soft);
  font-size: 0.95rem;
  max-width: 320px;
}
.footer-logo-legacy { /* deprecated */ }
.footer-col h4 {
  color: var(--c-white);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
  font-size: 0.94rem;
  color: var(--c-text-soft);
}
.footer-col a {
  color: var(--c-text);
  transition: color var(--t);
}
.footer-col a:hover { color: var(--c-cyan); }

.footer-bottom {
  margin-top: 3rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--c-muted);
}
.footer-legal a { margin: 0 0.2rem; }

/* -----------------------------
   14. WhatsApp floating
----------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: var(--c-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: transform var(--t), box-shadow var(--t);
  animation: waPulse 2.6s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  color: var(--c-white);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* -----------------------------
   15. Animazioni allo scroll
----------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1; transform: none; }
}



/* -----------------------------
   17. Illustrazioni inline
----------------------------- */
.mepa-illustration {
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.4));
  animation: floatY 6s ease-in-out infinite;
}
.prose-illustration {
  width: 100%;
  height: auto;
  margin-top: 1.6rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Categorie con icone SVG (sostituiscono le emoji) */
.cat-card .cat-icon {
  background: linear-gradient(135deg, rgba(101, 230, 255, 0.18), rgba(67, 255, 74, 0.15));
  color: var(--c-night);
  font-size: 0;
}
.cat-card .cat-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}
.cat-card-cta .cat-icon {
  background: rgba(11, 40, 48, 0.18);
  color: var(--c-night);
  border: none;
}
.cat-card-cta .cat-icon svg {
  color: var(--c-night);
}

/* Override: rimuovi padding eccessivo del cat-icon container */
.cat-card .cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}



/* -----------------------------
   18. Cookie banner
----------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 200;
  background: rgba(10, 32, 38, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.2rem 1.4rem;
  max-width: 880px;
  margin: 0 auto;
  animation: cookieSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner[hidden] { display: none; }
@keyframes cookieSlideIn {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-inner {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1 1 380px;
}
.cookie-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--c-white);
  margin-bottom: 0.25rem;
}
.cookie-text p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--c-text-soft);
  line-height: 1.5;
}
.cookie-text a {
  color: var(--c-cyan);
  text-decoration: underline;
  font-weight: 600;
}
.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.btn-sm {
  padding: 0.55rem 1rem !important;
  font-size: 0.85rem !important;
}

/* -----------------------------
   19. Map placeholder (privacy-first)
----------------------------- */
.contact-map { padding: 0; }

.map-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.map-placeholder-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.map-placeholder-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}
.map-placeholder-content {
  position: relative;
  z-index: 2;
  background: rgba(10, 32, 38, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  text-align: center;
  max-width: 360px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border);
}
.map-placeholder-content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--c-white);
}
.map-placeholder-content p {
  font-size: 0.92rem;
  color: var(--c-text-soft);
  margin-bottom: 1rem;
}
.map-load-btn {
  width: 100%;
  margin-bottom: 0.8rem;
}
.map-privacy-note {
  font-size: 0.78rem !important;
  color: var(--c-muted) !important;
  margin: 0 !important;
  line-height: 1.5;
}
.map-privacy-note a { color: var(--c-green-2); text-decoration: underline; }

/* When map loaded, replace iframe */
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

/* Mobile cookie banner adjustments */
@media (max-width: 700px) {
  .cookie-banner { padding: 1rem; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; }
}

/* -----------------------------
   16. Responsive
----------------------------- */
@media (max-width: 1100px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { height: 420px; }
  .hex-1 { width: 240px; height: 280px; }
  .hex-3 { width: 200px; height: 240px; }
}

@media (max-width: 880px) {
  :root { --space-2xl: 4.5rem; --space-xl: 3rem; }

  .hamburger { display: flex; }
  .main-nav {
    position: fixed;
    inset: 80px 0 0 0;
    background: rgba(5, 15, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 1.5rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 1.5rem;
  }
  .main-nav a {
    padding: 0.9rem 1rem;
    color: var(--c-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    font-size: 1rem;
  }
  .nav-cta { margin-top: 0.5rem; align-self: flex-start; }

  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { height: 360px; max-width: 480px; margin: 0 auto; }

  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .mepa-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { min-height: 320px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 580px) {
  body { font-size: 16px; }
  .section { padding: 3.5rem 0; }
  .hero { padding: 2rem 0 3rem; }
  .hero-trust { gap: 0.8rem 1.5rem; font-size: 0.9rem; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }

  .whatsapp-float {
    width: 54px; height: 54px;
    bottom: 1rem; right: 1rem;
  }
  .hero-visual { height: 320px; }
  .hex-1 { width: 200px; height: 240px; }
  .hex-3 { width: 170px; height: 200px; }
  .hex-2 { width: 150px; height: 150px; }
}

/* Fix sticky header offset on small screens */
@media (max-width: 580px) {
  html { scroll-padding-top: 80px; }
}

/* -----------------------------
   20. Pagine legali (Privacy / Cookie)
----------------------------- */
.legal-page {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 var(--space-2xl);
  background: var(--c-bg);
  background-image:
    radial-gradient(circle at 90% 0%, rgba(101, 230, 255, 0.1), transparent 40%),
    radial-gradient(circle at 0% 90%, rgba(67, 255, 74, 0.07), transparent 40%);
}
.legal-head {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}
.legal-head h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.8rem;
}
.legal-head .lead {
  font-size: 1.05rem;
  color: var(--c-text-soft);
}
.legal-meta {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--c-muted);
  font-style: italic;
}

.legal-content {
  max-width: 880px;
  margin: 0 auto;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.legal-content::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-brand);
}

.legal-content section {
  margin-bottom: 2.4rem;
}
.legal-content section:last-of-type {
  margin-bottom: 0;
}
.legal-content h2 {
  font-size: 1.4rem;
  color: var(--c-white);
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}
.legal-content h3 {
  font-size: 1.05rem;
  color: var(--c-white);
  margin: 1.4rem 0 0.6rem;
  font-weight: 700;
}
.legal-content p {
  margin: 0 0 0.9rem;
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--c-text);
}
.legal-content a {
  color: var(--c-cyan);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover { color: var(--c-green); }

.legal-list, .legal-sub-list {
  list-style: disc;
  padding-left: 1.4rem;
  margin: 0.6rem 0 1rem;
}
.legal-sub-list { list-style: circle; margin-top: 0.4rem; }
.legal-list li, .legal-sub-list li {
  margin-bottom: 0.5rem;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--c-text);
}

.legal-box {
  background: rgba(101, 230, 255, 0.06);
  border-left: 4px solid;
  border-image: var(--grad-brand) 1;
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0.6rem 0 1.2rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--c-text);
}
.legal-box strong { color: var(--c-white); }

.legal-note {
  background: rgba(101, 230, 255, 0.07);
  border: 1px solid rgba(101, 230, 255, 0.18);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem !important;
  color: var(--c-text-soft) !important;
  margin: 0.8rem 0 1.2rem !important;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.legal-table th, .legal-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.legal-table th {
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table code {
  background: rgba(101, 230, 255, 0.1);
  color: var(--c-cyan);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.legal-back {
  margin-top: 2rem;
  text-align: center;
  font-weight: 600;
}
.legal-back a {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--c-border);
  text-decoration: none;
  color: var(--c-text);
}
.legal-back a:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--c-cyan); color: var(--c-cyan); }

/* -----------------------------
   21. Logo (proporzionato + currentColor SVG)
----------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--c-white);
  text-decoration: none;
  line-height: 0;
}
.logo img {
  height: 44px;
  width: auto;
  max-height: 100%;
  display: block;
}
.footer-brand { color: var(--c-white); }
.footer-logo {
  height: 64px;
  width: auto;
  max-width: 220px;
  margin-bottom: 1rem;
  display: block;
}
@media (max-width: 580px) {
  .logo img { height: 38px; }
}

/* -----------------------------
   22. Honeypot anti-spam
----------------------------- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
