/* =========================================================
   Startup Site
   - Dark, high-contrast hero with video
   - Modular cards, wave separators, subtle motion
   ========================================================= */

:root{
  --bg-0: #071018;
  --bg-1: #0b1a26;
  --bg-2: #0f2433;

  --card: rgba(255,255,255,0.06);
  --card-2: rgba(255,255,255,0.085);
  --stroke: rgba(255,255,255,0.14);

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --faint: rgba(255,255,255,0.55);

  --accent: #43d5ff;
  --accent-2: #19f2c7;

  --shadow: 0 22px 60px rgba(0,0,0,0.45);
  --radius: 18px;
  --radius-sm: 14px;

  --max: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 70% 10%, rgba(67,213,255,0.16), transparent 60%),
    radial-gradient(900px 600px at 20% 0%, rgba(25,242,199,0.12), transparent 55%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 35%, var(--bg-2));
  overflow-x: hidden;
}

/* Subtle texture / photo (optional) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background: url("assets/img/sea_background.jpeg") no-repeat center/cover;
  opacity: 0.08;
  pointer-events: none;
  z-index: -2;
}
body::after{
  content:"";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,16,24,0.88), rgba(7,16,24,0.55) 25%, rgba(7,16,24,0.88));
  pointer-events: none;
  z-index: -1;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
video{ display: block; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section{
  padding: 84px 0;
  position: relative;
}

.section-surface{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ---------------- Header / Nav ---------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(7,16,24,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  letter-spacing: 0.4px;
}

.brand-logo{
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.35));
}
.brand-logo--footer{ height: 64px; }

@media (max-width: 920px){
  .brand-logo{ height: 40px; }
}

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav{
  display: flex;
  gap: 18px;
  align-items: center;
}
.site-nav a{
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}
.site-nav a:hover{
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.site-nav a.active{
  color: var(--text);
  background: rgba(67,213,255,0.12);
  border: 1px solid rgba(67,213,255,0.20);
}

.nav-cta{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #061017;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 30px rgba(25,242,199,0.15);
  border: 1px solid rgba(255,255,255,0.15);
}
.nav-cta:hover{ filter: brightness(1.03); }

.nav-toggle{
  display: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 750;
}

/* Mobile nav */
@media (max-width: 920px){
  .nav-toggle{ display: inline-flex; }
  .site-nav{
    position: fixed;
    inset: 70px 14px auto 14px;
    background: rgba(7,16,24,0.92);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(10px);
  }
  body.nav-open .site-nav{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .site-nav a{ padding: 12px 12px; }
}

/* ---------------- Hero ---------------- */
.hero{
  position: relative;
  padding: 92px 0 70px;
  overflow: hidden;
}

/* keep the currently-active layout (last one in your original file) */
.hero-grid{
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
}

.section-head{
  margin-bottom: 18px;
}

.kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 13px;
  color: rgba(255,255,255,0.90);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}
.kicker-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(67,213,255,0.16);
}

/* Title styles */
.section-title,
.section-heading{
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  max-width: 28ch;
  text-wrap: balance;
}

/* Keep your larger hero h1 sizing where applicable */
.hero h1{
  margin: 18px 0 14px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-subtitle{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 90ch;
  text-wrap: normal;
}

.hero-grid p{
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 58ch;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.btn{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  transition: transform 0.15s ease, background 0.2s ease, border 0.2s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
}
.btn-primary{
  color: #061017;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: rgba(255,255,255,0.18);
}
.btn-primary:hover{ filter: brightness(1.03); }

.hero-media{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.04);
}
.hero-media video,
.hero-media img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.hero-media::after{
  content:"";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,16,24,0.15), rgba(7,16,24,0.65));
  pointer-events: none;
}

/* ---------------- Components ---------------- */
.card{
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.35);
}
.card:hover{
  border-color: rgba(67,213,255,0.18);
}

.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px){
  .grid-3{ grid-template-columns: 1fr; }
}
.grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 980px){
  .grid-2{ grid-template-columns: 1fr; }
}

.pill-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.pill{
  font-weight: 750;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

/* Icon + title cards */
.feature{
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}
.icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(67,213,255,0.12);
  border: 1px solid rgba(67,213,255,0.18);
  display: grid;
  place-items: center;
}
.icon svg{
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  opacity: 0.95;
}
.feature h3{
  margin: 2px 0 6px;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.feature p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14.5px;
}

/* Alternating media blocks */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: center;
}
@media (max-width: 980px){
  .split{ grid-template-columns: 1fr; }
}
.media{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
}
.media img,
.media video{
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ---------------- Team / People ---------------- */
.team-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px){
  .team-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .team-grid{ grid-template-columns: 1fr; }
}

.person{
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
}
.person img{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
}
.person h3{ margin: 12px 0 4px; font-size: 15px; }
.person .role{ color: var(--faint); font-weight: 700; font-size: 13px; }
.person p{ margin: 10px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* Person card layout: photo + (name, role) on one row, bio below */
.person-head{
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
}
.person-meta h3{
  margin: 0;
  font-size: 15px;
}
.person-meta .role{
  margin-top: 2px;
  color: var(--faint);
  font-weight: 700;
  font-size: 13px;
}
.person-bio{
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.person-skills{
  margin-top: 10px;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.4;
}
.person-skills strong{
  color: rgba(255,255,255,0.9);
  font-weight: 800;
}

/* 5 members: 3 on first row, 2 centered on second row */
.team-grid--five-centered{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.team-grid--five-centered .person{
  grid-column: span 2;
}
.team-grid--five-centered .team-grid__row2-a{
  grid-column: 2 / span 2;
}
.team-grid--five-centered .team-grid__row2-b{
  grid-column: 4 / span 2;
}
@media (max-width: 1100px){
  .team-grid--five-centered{
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid--five-centered .person,
  .team-grid--five-centered .team-grid__row2-a,
  .team-grid--five-centered .team-grid__row2-b{
    grid-column: auto;
  }
}
@media (max-width: 560px){
  .team-grid--five-centered{
    grid-template-columns: 1fr;
  }
}

/* ---------------- Research logos ---------------- */
.logo-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 980px){
  .logo-grid{ grid-template-columns: 1fr; }
}
.logo-card{
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
}
.logo-note{
  color: var(--faint);
  font-weight: 750;
  font-size: 13px;
  margin-bottom: 12px;
}
.logo-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.logo-tile{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.90);
}
.logo-tile img{
  width: 100%;
  height: auto;
  display: block;
}

/* ---------------- Sponsors ---------------- */
.sponsor-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 16px;
  align-items: center;
  justify-items: center;
}
@media (max-width: 980px){
  .sponsor-grid{
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}
@media (max-width: 560px){
  .sponsor-grid{
    grid-template-columns: 1fr;
  }
}
.sponsor-tile{
  width: 100%;
  max-width: 320px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.92);
  padding: 14px;
  display: grid;
  place-items: center;
}
.sponsor-tile img{
  width: 100%;
  height: 80px;
  object-fit: contain;
  display: block;
}

/* ---------------- Forms ---------------- */
.form{
  display: grid;
  gap: 12px;
  max-width: 560px;
}
.input,
textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  outline: none;
}
textarea{ min-height: 130px; resize: vertical; }
.input::placeholder,
textarea::placeholder{ color: rgba(255,255,255,0.45); }

/* ---------------- Footer ---------------- */
.footer{
  padding: 46px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(7,16,24,0.55);
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}
@media (max-width: 980px){
  .footer-grid{ grid-template-columns: 1fr; }
}
.footer h4{ margin: 0 0 10px; font-size: 14px; color: rgba(255,255,255,0.9); }
.footer a{ color: var(--muted); }
.footer a:hover{ color: var(--text); text-decoration: underline; }
.footer p{ margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.footer-small{
  margin-top: 18px;
  color: rgba(255,255,255,0.55);
  font-size: 12.5px;
}

/* ---------------- Wave divider ---------------- */
.wave{
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 64px;
  background: url("assets/img/wave.svg") no-repeat center bottom / cover;
  opacity: 0.55;
  pointer-events: none;
}

/* ---------------- Reveal on scroll ---------------- */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}



/* Stack cards above video ONLY where requested */
.split--stack{
  grid-template-columns: 1fr;
  align-items: start;
}

.split--stack .media{
  margin-top: 8px; /* oppure 18px se lo vuoi più staccato */
}
