/* styles.css – versione 2, più colori e contrasto */

/* Palette: blu primario, magenta secondario, giallo accent */
:root {
  --bg-main: #ffffff;
  --bg-alt: #f3f4f6;
  --bg-dark: #020617;
  --primary: #2563eb;       /* blu */
  --primary-dark: #1d4ed8;
  --secondary: #ec4899;     /* magenta */
  --accent: #facc15;        /* giallo */
  --text-main: #0f172a;     /* blu molto scuro (quasi nero) */
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.14);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.2rem 1.25rem;
}

.section-narrow {
  max-width: 840px;
}

/* HEADER / NAV */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(229, 231, 235, 0.88);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text-title {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo-text-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-muted);
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.nav-links a:hover {
  color: var(--text-main);
  opacity: 0.9;
}

.nav-links a.active {
  color: var(--primary);
  border-color: var(--primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid var(--primary);
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding-top: 3.4rem;
  padding-bottom: 3.4rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 0.9rem;
}

.hero-kicker span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.hero-highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn-primary,
.btn-outline {
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    color 0.12s ease, border-color 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 52px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  background: #ffffff;
  border-color: var(--border-soft);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-note span {
  color: var(--text-main);
  font-weight: 500;
}

/* card hero: sfondo chiaro ma con barra colorata */

.hero-card {
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--border-soft);
  padding: 1.4rem 1.4rem 1.6rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.hero-card-inner {
  position: relative;
  margin-top: 0.4rem;
}

.hero-card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hero-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.pill {
  font-size: 0.76rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #f9fafb;
}

/* SECTION HEADERS */

.section-header {
  margin-bottom: 2rem;
}

.section-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* CARDS */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 1.2rem 1.15rem 1.3rem;
  background: #ffffff;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Variante carte con bordo colorato (puoi usare una classe extra se vuoi) */

.card--primary {
  border-color: rgba(37, 99, 235, 0.25);
}

.card--secondary {
  border-color: rgba(236, 72, 153, 0.25);
}

/* LISTE / STEP */

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.7rem;
}

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.step-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.step-text {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* BIO */

.bio-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 1.4rem 1.3rem;
  background: #ffffff;
}

/* CONTATTI */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
}

.contact-box {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 1.4rem 1.3rem;
  background: #ffffff;
}

.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}

.contact-highlight {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-highlight a {
  color: var(--primary-dark);
}

.contact-highlight a:hover {
  text-decoration: underline;
}

.contact-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FORM */

form {
  display: grid;
  gap: 0.7rem;
}

label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  padding: 0.55rem 0.7rem;
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-footnote {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* FOOTER */

footer {
  border-top: 1px solid var(--border-soft);
  background: #f9fafb;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-card {
    margin-top: 0.4rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .section {
    padding: 2.5rem 1.25rem;
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
