@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700&display=swap');

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: white;
    color: #111;
}

header {
    background: white;
    border-bottom: 1px solid #ddd;
}

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

.logo {
    height: 50px;
    margin: 10px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: #d00;
    font-weight: bold;
}

.hero {
    padding: 100px 20px;
    text-align: center;
    background-color: #f7f7f7;
}

main.container {
    padding: 40px 20px;
}

.insta-embed {
    width: 100%;
    height: 500px;
    border: none;
}

.language-selector {
    text-align: right;
    margin-top: 10px;
    font-size: 0.9rem;
}

.language-selector a {
    text-decoration: none;
    color: #111;
    margin-left: 10px;
    font-weight: bold;
}

.language-selector a:hover {
    text-decoration: underline;
}


.hero {
    position: relative;
    background-color: #fff;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

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


.cofounders {
    margin-top: 60px;
}

.cofounders h2 {
    text-align: center;
    margin-bottom: 30px;
}

.cofounder-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.cofounder {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 20px;
    flex: 1 1 45%;
    min-width: 280px;
}

.cofounder h3 {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .cofounder-cards {
        flex-direction: column;
    }
}


/* Immagini cofondatori */
.cofounder-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* Effetto sfondo fisso a tutta pagina */
.hero {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.1;
    z-index: 0;
}

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

h1, h2, h3, h4, h5, nav, .logo {
    font-family: 'Orbitron', sans-serif;
}
/* Menu background color */
nav {
    background-color: #ffffff;
}

/* Pagina con sfondo grigio 10% */
body {
    background-color: #ffffff;
}

/* --- Parallax Tiles Section (added by assistant) --- */
.tiles-section {
  padding: 48px 0;
}
.tiles-section > h2 {
  text-align: center;
  margin: 0 0 24px;
  letter-spacing: 0.5px;
}
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  width: 92%;
  margin: 0 auto;
}
.tile-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.tile {
  position: relative;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  transform: translateZ(0);
  will-change: background-position;
}
/* Parallax effect for larger screens */
@media (min-width: 768px) {
  .tile {
    background-attachment: fixed;
  }
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
}
.tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  z-index: 1;
}
.tile-overlay h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.tile-overlay p {
  margin: 0;
  font-size: 0.95rem;
  color: #f3f3f3;
  opacity: 0.95;
}
.tile-link:focus-visible .tile,
.tile-link:hover .tile {
  outline: 2px solid rgba(255,255,255,0.8);
  outline-offset: -2px;
  filter: brightness(1.05);
}
/* --- End Parallax Tiles Section --- */


/* --- Mobile Menu --- */
.menu-toggle {
  display: none;
}
.menu-icon {
  display: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 4px;
  margin-left: auto;
}
.menu-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

header .container {
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  max-height: 56px;
}

/* Desktop nav */
nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
}
nav ul li a {
  text-decoration: none;
  padding: 10px 12px;
  display: block;
  color: inherit;
}

/* Collapse to hamburger on small screens */
@media (max-width: 900px) {
  .menu-icon { display: inline-flex; }
  nav { width: 100%; }
  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #eee;
    margin-top: 8px;
    background: white;
  }
  nav ul li a { padding: 14px 12px; }
  /* Checkbox hack */
  .menu-toggle:checked ~ nav ul { display: flex; }
  /* Prevent header from wrapping awkwardly */
  header .container { flex-wrap: wrap; }
}

/* Make links easier to tap */
@media (max-width: 480px) {
  nav ul li a { padding: 16px 14px; }
  .logo { max-height: 48px; }
}

/* Added layout for team grid */
.team-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 24px;
align-items: stretch;
}

.team-grid .card {
background: #fff;
border-radius: 16px;
box-shadow: 0 6px 18px rgba(0,0,0,0.08);
padding: 16px;
display: flex;
flex-direction: column;
}

.team-grid .card img {
width: 100%;
height: auto;
border-radius: 12px;
display: block;
object-fit: cover;
}



@media (max-width: 992px) {

}
