/* RESET BASE MOLTO LEGGERO */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: #000;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  background: radial-gradient(circle at top left, #171c27 0, #05060a 55%);
  color: #f5f5f7;
  line-height: 1.6;
}

/* LAYOUT GENERALE */

.container {
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background: rgba(12, 16, 24, 0.9);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header.left {
  text-align: left;
  margin: 0 0 2rem;
}

.section-header h2 {
  font-size: 2.1rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: #a5afc7;
  font-size: 0.98rem;
}

/* NAVBAR */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(5, 6, 10, 0.95), rgba(5, 6, 10, 0.82));
  border-bottom: 1px solid rgba(84, 115, 255, 0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #f5f5f7;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.nav-logo img {
  height: 70px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  color: #c7cfeb;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-cta {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(84, 115, 255, 0.7);
}

/* NAV MOBILE */

.nav-toggle {
  display: none;
  height: 22px;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 10px;
  position: relative;
  transition: 0.2s ease;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle-label span::before {
  top: -6px;
}

.nav-toggle-label span::after {
  top: 6px;
}

/* HERO */

.hero {
  padding-top: 5rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-copy .accent {
  color: #68d4ff;
}

.hero-sub {
  color: #a5afc7;
  max-width: 34rem;
  font-size: 0.98rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8fa2ff;
  margin-bottom: 0.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.8rem 0 1.2rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags span {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(158, 175, 255, 0.3);
  color: #a5afc7;
}

/* HERO PANEL */

.hero-panel {
  display: grid;
  gap: 1rem;
  max-width: 360px;
  margin-left: auto;
}

.metric-card {
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: radial-gradient(circle at top left, #1f2840, #0a0c13);
  border: 1px solid rgba(130, 162, 255, 0.6);
}

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #b5c0ff;
}

.metric-value {
  font-size: 0.9rem;
  margin-top: 0.1rem;
}

.hero-card {
  padding: 1.4rem 1.3rem;
  border-radius: 1.2rem;
  background: linear-gradient(145deg, #0d1018, #141b2b);
  border: 1px solid rgba(87, 119, 255, 0.4);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.65);
}

.hero-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.hero-card p {
  color: #b7c0dd;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

.hero-list {
  list-style: none;
  font-size: 0.87rem;
  color: #cfd5f3;
}

.hero-list li::before {
  content: '•';
  margin-right: 0.35rem;
  color: #68d4ff;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, #5b8dff, #68d4ff);
  color: #05060a;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.75);
}

.btn.ghost {
  border-color: rgba(158, 175, 255, 0.5);
  color: #e2e6ff;
  background: transparent;
}

.btn.ghost:hover {
  background: rgba(140, 160, 255, 0.12);
}

.btn.full-width {
  width: 100%;
}

/* GRID GENERICHE */

.grid-3 {
  display: grid;
  gap: 1.75rem;
}

.card {
  background: radial-gradient(circle at top, #151a28, #090b11);
  border-radius: 1.2rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(92, 121, 255, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.card.small {
  padding: 1.3rem 1.2rem;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
}

.card p {
  font-size: 0.9rem;
  color: #c5ccee;
}

.card-list {
  list-style: none;
  margin-top: 0.6rem;
  font-size: 0.86rem;
  color: #aeb7de;
}

.card-list li+li {
  margin-top: 0.25rem;
}

.card-list li::before {
  content: '›';
  margin-right: 0.45rem;
  color: #68d4ff;
}

.card .tagline {
  color: #a5afc7;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* TIMELINE */

.timeline {
  display: grid;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #5b8dff, #68d4ff);
  opacity: 0.5;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  position: relative;
  padding-left: 1.8rem;
}

.timeline-step {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, #68d4ff, #5b8dff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 0.15rem;
  box-shadow: 0 0 0 6px rgba(68, 153, 255, 0.2);
}

.timeline-content h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.timeline-content p {
  font-size: 0.9rem;
  color: #bcc5eb;
}

/* ABOUT */

.about-grid {
  display: grid;
  gap: 2rem;
}

.team h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.team ul {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.team li p {
  font-size: 0.85rem;
  color: #b6bfe3;
}

.role {
  display: block;
  font-size: 0.78rem;
  color: #9da9d8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.name {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

/* CONTATTI */

.contact {
  background: radial-gradient(circle at top, #181f35, #05060a);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

.contact-info p {
  font-size: 0.9rem;
  color: #c3cbef;
  margin-bottom: 0.7rem;
}

.contact-info a {
  color: #68d4ff;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  background: rgba(6, 9, 18, 0.85);
  border-radius: 1.2rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(101, 138, 255, 0.6);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.75);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.8rem;
}

.form-field label {
  font-size: 0.8rem;
  color: #aeb7e2;
}

.form-field input,
.form-field textarea {
  border-radius: 0.8rem;
  border: 1px solid rgba(96, 130, 255, 0.6);
  background: rgba(1, 3, 10, 0.75);
  padding: 0.6rem 0.75rem;
  color: #f5f5f7;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #6d7697;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #68d4ff;
  box-shadow: 0 0 0 1px rgba(98, 175, 255, 0.7);
  background: rgba(3, 7, 18, 0.95);
}

.form-note {
  font-size: 0.8rem;
  color: #4ade80;
  margin: 0.2rem 0 0.7rem;
}

/* FOOTER */

.footer {
  border-top: 1px solid rgba(73, 89, 150, 0.7);
  padding: 1.2rem 0 1.4rem;
  background: #05060a;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: #8d97c4;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: #aeb7e2;
  text-decoration: none;
  font-size: 0.8rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

@media (min-width: 720px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    inset: 100% 0 auto 0;
    background: rgba(5, 6, 10, 0.98);
    flex-direction: column;
    padding: 0;
    border-bottom: 1px solid rgba(84, 115, 255, 0.3);
    max-height: 0;
    overflow: hidden;
  }

  .nav-toggle:checked~.nav-links {
    padding: 0.75rem 1.25rem 1rem;
  }

  .nav-toggle-label {
    display: block;
  }

  .nav-toggle:checked~.nav-toggle-label span {
    transform: rotate(45deg);
  }

  .nav-toggle:checked~.nav-toggle-label span::before {
    top: 0;
    transform: rotate(90deg);
  }

  .nav-toggle:checked~.nav-toggle-label span::after {
    top: 0;
    opacity: 0;
  }

  .nav-toggle:checked~.nav-links {
    max-height: 260px;
  }

  .hero {
    padding-top: 4rem;
  }

  .section {
    padding: 4rem 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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