/* ===========================
   VARIABILI & RESET
=========================== */
:root {
  --bg-primary: #0a0f1e;
  --bg-secondary: #0d1526;
  --bg-card: #111827;
  --bg-card-hover: #162035;
  --navy: #1a2744;
  --blue: #4ab8e8;
  --blue-dark: #2e8fc4;
  --orange: #f47c3c;
  --white: #ffffff;
  --gray: #8a9bb5;
  --gray-light: #c5d0e0;
  --border: rgba(74, 184, 232, 0.15);
  --border-hover: rgba(74, 184, 232, 0.5);
  --glow: 0 0 20px rgba(74, 184, 232, 0.3);
  --glow-strong: 0 0 40px rgba(74, 184, 232, 0.5);
  --font-main: 'Inter', sans-serif;
  --font-title: 'Rajdhani', sans-serif;
  --transition: 0.3s ease;
  --radius: 12px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--white);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

section {
  padding: 100px 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===========================
   TIPOGRAFIA
=========================== */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
h4 { font-size: 1.1rem; }

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--gray-light);
  font-size: 1.1rem;
  max-width: 600px;
}

.highlight {
  color: var(--blue);
}

.highlight-orange {
  color: var(--orange);
}

/* ===========================
   BOTTONI
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(74, 184, 232, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74, 184, 232, 0.55);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--border-hover);
}

.btn-secondary:hover {
  background: rgba(74, 184, 232, 0.1);
  border-color: var(--blue);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.btn-orange {
  background: linear-gradient(135deg, var(--orange), #d4622a);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(244, 124, 60, 0.35);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(244, 124, 60, 0.55);
}

/* ===========================
   DIVIDER
=========================== */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  border-radius: 2px;
  margin: 20px 0 40px;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 10px 0;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.nav-logo {
  height: 110px;
  width: auto;
  transition: height 0.4s ease;
}

.navbar.scrolled .nav-logo {
  height: 80px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--blue);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

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

.nav-cta {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===========================
   HERO
=========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(26, 39, 68, 0.8) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(74, 184, 232, 0.06) 0%, transparent 50%);
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 184, 232, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 184, 232, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  animation: gridPulse 8s ease-in-out infinite;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-svg {
  width: 100%;
  max-width: 500px;
  animation: floatY 7s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(74,184,232,0.12));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 184, 232, 0.1);
  border: 1px solid rgba(74, 184, 232, 0.25);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 28px;
}

.hero-badge span {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

.hero h1 {
  margin-bottom: 24px;
  color: var(--white);
}

.hero h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--gray-light);
  margin-bottom: 44px;
  line-height: 1.8;
  max-width: 620px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  text-align: left;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-number span {
  color: var(--blue);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray);
  letter-spacing: 1px;
  margin-top: 4px;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 1;
  animation: bounce 2.5s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--blue), transparent);
}

/* ===========================
   CHI SIAMO
=========================== */
.chi-siamo {
  background: var(--bg-secondary);
}

.chi-siamo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.chi-siamo-text p {
  color: var(--gray-light);
  margin-bottom: 20px;
  line-height: 1.9;
}

.chi-siamo-counters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.counter-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
}

.counter-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}

.counter-number {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.counter-label {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/* ===========================
   STORIA (TIMELINE)
=========================== */
.storia {
  position: relative;
}

.storia-title-wrap {
  text-align: center;
  margin-bottom: 70px;
}

.storia-title-wrap .section-subtitle {
  margin: 0 auto;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), rgba(74, 184, 232, 0.1));
  transform: translateX(-50%);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.timeline.line-drawn::before {
  clip-path: inset(0 0 0% 0);
}

.timeline-dot {
  overflow: visible;
  position: absolute;
}
.timeline-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(74, 184, 232, 0.6);
  animation: dotRing 2.5s ease-out infinite;
}

@keyframes dotRing {
  0%   { width: 16px; height: 16px; opacity: 0.8; }
  100% { width: 44px; height: 44px; opacity: 0; }
}

.timeline-item:nth-child(1) .timeline-dot::after { animation-delay: 0s; }
.timeline-item:nth-child(2) .timeline-dot::after { animation-delay: 0.5s; }
.timeline-item:nth-child(3) .timeline-dot::after { animation-delay: 1s; }
.timeline-item:nth-child(4) .timeline-dot::after { animation-delay: 1.5s; }
.timeline-item:nth-child(5) .timeline-dot::after { animation-delay: 2s; }

.timeline-item {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
  position: relative;
  align-items: flex-start;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 40px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--blue);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(74, 184, 232, 0.3), var(--glow);
  z-index: 1;
}

.timeline-year {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--orange);
  min-width: 60px;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  flex: 1;
  transition: all var(--transition);
}

.timeline-content:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow);
}

.timeline-content h4 {
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===========================
   MISSION / VISION / VALORI
=========================== */
.mvv {
  background: var(--bg-secondary);
}

.mvv-header {
  text-align: center;
  margin-bottom: 70px;
}

.mvv-header .section-subtitle {
  margin: 0 auto;
}

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

.mvv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
}

.mvv-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow);
  transform: translateY(-6px);
}

.mvv-icon {
  width: 52px;
  height: 52px;
  background: rgba(74, 184, 232, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.mvv-card h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: var(--white);
}

.mvv-card p {
  color: var(--gray-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

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

.valore-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}

.valore-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow);
}

.valore-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(244, 124, 60, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--orange);
}

.valore-item h4 {
  color: var(--white);
  margin-bottom: 6px;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
}

.valore-item p {
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ===========================
   SERVIZI
=========================== */
.servizi-header {
  text-align: center;
  margin-bottom: 70px;
}

.servizi-header .section-subtitle {
  margin: 0 auto;
}

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

/* ===========================
   GALLERY SECTION
=========================== */
.gallery-section {
  padding: 90px 0;
  background: var(--bg-secondary);
}

.gallery-header {
  text-align: center;
  margin-bottom: 50px;
}

.gallery-header .section-subtitle {
  margin: 0 auto;
}

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

.gallery-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: default;
  height: 260px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.52) saturate(0.7);
  transition: transform 0.7s ease, filter 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.42) saturate(0.6);
}

.gallery-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  background: linear-gradient(to top, rgba(10,15,30,0.95) 0%, transparent 100%);
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition);
}

.gallery-card:hover .gallery-card-overlay {
  border-color: var(--blue);
}

.gallery-card-overlay .tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 5px;
}

.gallery-card-overlay h4 {
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
}

/* ===========================
   SERVICE CARD IMAGES
=========================== */
.servizio-card-img {
  display: block;
  width: calc(100% + 56px);
  height: 150px;
  object-fit: cover;
  margin: -36px -28px 24px;
  filter: brightness(0.5) saturate(0.72);
  transition: transform 0.7s ease, filter 0.5s ease;
}

.servizio-card:hover .servizio-card-img {
  transform: scale(1.04);
  filter: brightness(0.38) saturate(0.6);
}

.servizio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.servizio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.servizio-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-strong);
  transform: translateY(-8px);
  background: var(--bg-card-hover);
}

.servizio-card:hover::before {
  opacity: 1;
}

.servizio-icon {
  width: 72px;
  height: 72px;
  background: rgba(74, 184, 232, 0.07);
  border: 1px solid rgba(74, 184, 232, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: all var(--transition);
  padding: 14px;
}

.servizio-icon svg {
  width: 100%;
  height: 100%;
}

.servizio-card:hover .servizio-icon {
  background: rgba(74, 184, 232, 0.2);
  box-shadow: 0 0 20px rgba(74, 184, 232, 0.2);
}

.servizio-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--white);
}

.servizio-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.servizio-ideale {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(74, 184, 232, 0.05);
  border: 1px solid rgba(74, 184, 232, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
}

.servizio-ideale-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: 1px;
}

.servizio-ideale-text {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.5;
}

/* ===========================
   PERCHÉ SCEGLIERCI
=========================== */
.perche {
  background: var(--bg-secondary);
}

.perche-header {
  text-align: center;
  margin-bottom: 70px;
}

.perche-header .section-subtitle {
  margin: 0 auto;
}

.perche-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.perche-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: all var(--transition);
}

.perche-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow);
  transform: translateX(6px);
}

.perche-number {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(74, 184, 232, 0.2);
  line-height: 1;
  text-align: center;
  transition: color var(--transition);
}

.perche-item:hover .perche-number {
  color: rgba(74, 184, 232, 0.5);
}

.perche-content h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 8px;
  font-family: var(--font-title);
  font-weight: 600;
}

.perche-content p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ===========================
   CONTATTI
=========================== */
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contatti-info h2 {
  margin-bottom: 12px;
}

.contatti-info .section-subtitle {
  margin-bottom: 40px;
}

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

.info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(74, 184, 232, 0.1);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.info-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}

.info-value {
  color: var(--gray-light);
  font-size: 0.95rem;
  word-break: break-all;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

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

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  background: rgba(74, 184, 232, 0.05);
  box-shadow: 0 0 0 3px rgba(74, 184, 232, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(138, 155, 181, 0.5);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group select option {
  background: var(--bg-card);
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  justify-content: center;
}

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

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

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

.form-success h3 {
  color: var(--blue);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--gray);
}

/* ===========================
   CTA FINALE
=========================== */
.cta-finale {
  background: linear-gradient(135deg, rgba(26, 39, 68, 0.8), rgba(10, 15, 30, 0.9));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-finale::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 184, 232, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

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

.cta-finale p {
  color: var(--gray-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

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

/* ===========================
   FOOTER
=========================== */
footer {
  background: #070c18;
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}

.footer-brand .nav-logo {
  height: 80px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--gray);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-col p {
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid rgba(74, 184, 232, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--gray);
  font-size: 0.82rem;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--gray);
  font-size: 0.82rem;
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--blue);
}

/* ===========================
   STORIA VISUAL + CHECKERBOARD
=========================== */
.storia {
  position: relative;
}

.storia::before,
.storia::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  background-image: conic-gradient(rgba(74,184,232,0.055) 90deg, transparent 90deg);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}
.storia::before {
  left: 0;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}
.storia::after {
  right: 0;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}
.storia .container {
  position: relative;
  z-index: 1;
}

.storia-visual {
  margin-top: 80px;
  width: 100%;
  overflow: hidden;
  opacity: 0.8;
}

.storia-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ===========================
   PERCHÉ VISUAL
=========================== */
.perche-visual {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  opacity: 0.75;
}

.perche-svg {
  width: min(520px, 100%);
  height: auto;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .servizi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mvv-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mvv-grid .mvv-card:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
  .chi-siamo-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    display: none;
  }
}

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

  section { padding: 70px 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 30, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 999;
  }

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

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

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

  .hero-stats {
    gap: 28px;
  }

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

  .mvv-grid {
    grid-template-columns: 1fr;
  }
  .mvv-grid .mvv-card:last-child {
    grid-column: auto;
    max-width: 100%;
  }

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

  .timeline::before {
    left: 20px;
  }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: column;
    padding: 0 0 0 50px;
  }
  .timeline-dot {
    left: 20px;
    top: 12px;
  }

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

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

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

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

  .perche-item {
    grid-template-columns: 50px 1fr;
    gap: 16px;
  }
}

/* ===========================
   MOBILE SMALL (max 480px)
=========================== */
@media (max-width: 480px) {
  section {
    padding: 50px 0;
  }

  /* Hero */
  .hero {
    padding: 100px 0 60px;
  }
  .hero-badge {
    font-size: 0.75rem;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }
  .stat-number {
    font-size: 1.8rem;
  }

  /* Bottoni */
  .btn {
    padding: 12px 22px;
    font-size: 0.85rem;
  }

  /* CTA finale */
  .cta-finale::before {
    width: 300px;
    height: 300px;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Timeline */
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding: 0 0 0 40px;
  }
  .timeline-dot {
    left: 14px;
  }
  .timeline::before {
    left: 14px;
  }

  /* Perché */
  .perche-item {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }

  /* Form */
  .form-card {
    padding: 28px 20px;
  }
  input, textarea, select {
    font-size: 1rem; /* evita zoom automatico su iOS */
  }

  /* Footer */
  .footer-grid {
    gap: 28px;
  }
}
