:root {
  --bg: #00191d;
  --bg-alt: #00262c;           /* colore logo scuro */
  --primary: #005d67;          /* colore logo principale */
  --primary-soft: rgba(0, 93, 103, 0.18);
  --accent: #87bdc5;           /* accent derivato in tinta */
  --text: #ecf5f5;
  --muted: #8fa3a6;
  --border-subtle: rgba(70, 224, 217, 0.16);
  --radius-xl: 24px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.65);
  --transition: all 0.26s ease;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(circle at top, #0f616c 0, transparent 45%),
    radial-gradient(circle at bottom, #126776 0, #000 80%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Layout utils */
.section {
  padding: 80px min(7vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
}

.section#perche-sceglierci {
    padding: 10px min(8vw, 121px);
    max-width: 1200px;
    margin: 0 auto;
}

.section.alt {
  background:#38797f;
  border-radius: var(--radius-xl);
  margin-top: 40px;
}

.section-heading {
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading h2 {
  font-size: 2.1rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.grid-2 {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.grid-4 {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.centered {
  text-align: center;
  margin-top: 32px;
}

.focalizza {
    padding-bottom: 50px;
}

.focalizza p {
    color:#fff;
}

/* Topbar */
.topbar {
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(70, 224, 217, 0.14);
  backdrop-filter: blur(10px);
  background:
    radial-gradient(circle at top, rgba(0, 38, 44, 0.95), rgba(0, 17, 20, 0.98));
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-link {
  color: var(--accent);
  text-decoration: none;
}

.topbar-cta {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(70, 224, 217, 0.32);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.78rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 15px min(7vw, 100px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  background:#fff;
}

.logo {
  width: 200px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.86rem;
}

.nav a {
  color: var(--bg-alt);
  text-decoration: none;
  padding: 10px 20px;
  position: relative;
  transition: var(--transition);
}

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

.nav a:not(.nav-btn)::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  transition: width 0.22s ease;
}

.nav a:not(.nav-btn):hover::after {
  width: 100%;
}

.nav-btn {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: #38797f;
  color: #fff !important;
  font-weight: 600;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
}


/* Mobile nav: overlay che parte sotto l'header sticky */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-top, 64px);   /* impostata via JS alla height dell'header */
  left: 0;
  right: 0;
  width: 100%;
  max-height: calc(100dvh - var(--nav-top, 64px));
  overflow: auto;

  background: var(--bg-alt);
  border-bottom: 1px solid rgba(70, 224, 217, 0.16);
  padding: 12px min(7vw, 80px) 18px;
  gap: 10px;
  flex-direction: column;

  z-index: 1050;               /* sotto l'header, sopra i contenuti */
}

.nav-mobile.is-open { display: flex; }

/* assicurati che l'header stia sopra */
.header { z-index: 1100; }

/* il bottone non venga coperto */
.nav-toggle { position: relative; z-index: 1150; }

/* Mobile only */
@media (min-width: 901px) {
  .nav-mobile { display: none !important; }
}

.nav-mobile a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-mobile .nav-btn {
  margin-top: 4px;
  display: inline-block;
}

/* Hero */
.hero {
  max-width: 1200px;
  margin: 40px auto 40px;
  padding: 24px min(7vw, 80px) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(320px, 1.2fr);
  gap: 32px;
  align-items: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  background: rgba(0, 25, 29, 0.98);
  border: 1px solid rgba(70, 224, 217, 0.4);
  color: #fff;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(2.2rem, 3.1vw, 3rem);
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 15px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn.primary {
  background: #38797f;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.9);
}

.btn.ghost {
  border: 1px solid rgba(70, 224, 217, 0.4);
  color: var(--accent);
  background: rgba(0, 25, 29, 0.98);
}

.btn.ghost:hover {
  background: var(--primary-soft);
}

.btn.light {
  background: #38797f;
  color: #fff;
}

.btn.full {
  width: 100%;
}

/* Hero bullets & deadline */
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 10px 0 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 14px;
  font-size: 0.8rem;
  color: #fff;
}

.hero-bullets li::before {
  content: "✓";
  margin-right: 6px;
  color: var(--accent);
}

.hero-deadline {
  margin-top: 6px;
  padding: 14px 12px;
  border-radius: 14px;
  font-size: 0.9rem;
  color: #fff;
}

/* Hero form card */
.hero-card {
  
  border-radius: 26px;
  padding: 18px;
  
}

.hero-card h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.hero-card p {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--muted);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.78rem;
}

.lead-form.large {
  font-size: 0.86rem;
}

.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
}

.lead-form input,
.lead-form textarea {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(70, 224, 217, 0.34);
  background: rgba(0, 22, 25, 0.98);
  color: var(--text);
  font-size: 0.8rem;
  outline: none;
  transition: var(--transition);
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(70, 224, 217, 0.25);
}

.checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
}

.checkbox input {
  width: 14px;
  height: 14px;
}

.form-note {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

/* Generic cards */
.card {
  padding: 16px;
  border-radius: 18px;
  background:#fff;
  border: 1px solid rgba(70, 224, 217, 0.18);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.78);
  font-size: 0.86rem;
  color: var(--bg-alt);
  text-align:center;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--bg-alt);
}

.card.outlined {
  background: rgba(0, 22, 25, 0.98);
  border-style: dashed;
}

/* Funds */
.funds-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.fund-pill {
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(70, 224, 217, 0.3);
  font-size: 0.9rem;
  color: var(--accent);
  background: rgba(0, 25, 29, 0.98);
}

/* Skills */
.skills-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  font-size: 0.86rem;
  color: #fff;
}

.skills-col h3 {
  color: var(--text);
  margin-top: 0;
}

/* CTA finale */
.cta-final {
  padding: 0 min(7vw, 80px) 70px;
  margin-top: -10px;
}

.cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 26px 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top, rgba(0, 93, 103, 0.3), transparent),
    var(--bg-alt);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  box-shadow: var(--shadow-soft);
}

.cta-inner h2 {
  margin: 0;
  font-size: 1.5rem;
  text-align:center;
}

.cta-inner p {
  margin: 0;
  color: var(--muted);
}

/* FAQ */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: 16px;
  border: 1px solid rgba(70, 224, 217, 0.22);
  background: rgba(0, 22, 25, 0.98);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  font-size: 1rem;
  color: var(--accent);
  margin-left: 10px;
}

.faq-answer {
  padding: 0 14px 12px;
  font-size: 0.8rem;
  color: var(--muted);
  display: none;
}

/* Contact */
.contact-wrapper {
  max-width: 920px;
  margin: 0 auto;
}

.two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}



/* Responsive */
@media (max-width: 900px) {
  .header {
    padding-inline: 18px;
  }
  .nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero {
    padding-inline: 18px;
    grid-template-columns: 1fr;
  }
  
  .hero-bullets {
    grid-template-columns: 1fr;
  }
  .section,
  .cta-final {
    padding-inline: 18px;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .skills-grid,
  .two-cols {
    grid-template-columns: 1fr;
  }
  .section.alt {
    border-radius: 18px;
  }
  .topbar {
    display:none;
  }
}

@media (max-width: 600px) {
  .topbar-left {
    display: none;
  }
}

/* Layout a due colonne per "Siamo bravi a" */
.skills-two-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}

.skills-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skills-right img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

/* Mobile: una colonna sola */
@media (max-width: 900px) {
  .skills-two-cols {
    grid-template-columns: 1fr;
  }

  .skills-right {
    order: 2;
    margin-bottom: 20px;
  }
}

/* Sezione fondatrice */
.owner-section {
  max-width: 1200px;
  margin: 40px auto 40px;
  padding: 40px;
  border-radius: 32px;
  background: #f5f7f7;
  color: #00262c;
}

.owner-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 32px;
  align-items: center;
}

.owner-photo img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.owner-content h2 {
  margin: 0 0 14px;
  font-size: 1.6rem;
  color: #00262c;
}

.owner-content p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #324b4f;
  text-align: justify;
}

.owner-content ul {
  margin: 0 0 12px 18px;
  padding: 0;
  font-size: 0.9rem;
  color: #324b4f;
}

.owner-content li {
  margin-bottom: 4px;
}

a:-webkit-any-link {
    text-decoration: none;
}

/* Mobile */
@media (max-width: 900px) {
  .owner-section {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .owner-inner {
    grid-template-columns: 1fr;
  }

  .owner-photo {
    max-width: 260px;
    margin: 0 auto 10px;
    order:2;
  }

  .owner-content {
    padding: 20px;
}
}

/* ===== SEZIONE PARALLASSE ===== */
.parallax-section {
  position: relative;
  width: 100%;
  height: 420px; /* altezza regolabile */
  overflow: hidden;
}

.parallax-image {
  background-image: url("img/tablet-graph.jpg"); /* cambia con il nome del file */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  width: 100%;
  height: 100%;
  filter: brightness(0.9);
}

/* Mobile fix per background-attachment */
@media (max-width: 900px) {
  .parallax-image {
    background-attachment: scroll;
  }
}

/* ===== SEZIONE FASI ===== */
.phases-grid .phase {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px;
  background: #fff;
  border: 1px solid rgba(70, 224, 217, 0.2);
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phases-grid .phase:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.phase-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  
}


.phases-grid h3 {
  font-size: 1rem;
  margin: 0;
  color: var(--bg-alt);
  line-height: 1.3;
}

/* Mobile */
@media (max-width: 900px) {
  .phases-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .phases-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FOOTER ===== */
.footer {
  width: 100%;
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
}

/* Parte superiore */
.footer-top {
  padding: 60px min(7vw, 80px);
  border-top: 1px solid rgba(70, 224, 217, 0.15);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-left {
  flex: 1 1 240px;
}

.footer-logo {
  width: 180px;
  height: auto;
  display: block;
  margin-bottom: 8px;
}

.footer-claim {
  margin: 0;
  font-weight: 500;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.footer-right {
  flex: 1 1 260px;
}

.footer-right h4 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--accent);
}

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

.footer-right li {
  margin-bottom: 6px;
  color: var(--muted);
}

.footer-right a {
  color: var(--accent);
  text-decoration: none;
}

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

/* Copyright / bottom */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(70, 224, 217, 0.15);
  padding: 18px 10px;
  font-size: 0.78rem;
  color: var(--muted);
  background: #00191d; /* leggermente più scuro per staccare visivamente */
}

.footer-bottom p {
  margin: 0;
}

/* Mobile */
@media (max-width: 800px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    width: 100%;
        flex: 1 1 50px;
  }

  .footer-logo {
    width: 180px;
    height: auto;
    display: block;
    margin: 8px auto;
}
}

