html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 100%;
 background: linear-gradient(135deg, #f6f8ff, #e9f1ff, #ffffff); 
  color: #4a4a6a;
}

/* contenitore principale */
.mobile-container {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  border-radius: 0;
  
/*background-image: url("/images/famiglia.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;*/

  display: flex;
  flex-direction: column;
  position: relative;
}

/* overlay chiaro con blur leggero 
.mobile-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  z-index: 1;
}*/

/* barra in alto */
.topnav {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
}

/* menu hamburger */
.topnav #myLinks {
  display: none;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  margin-top: 0.5rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  position: absolute;
  top: 3.6rem;
  right: 1rem;
  width: 220px;
  z-index: 3;
}

.topnav #myLinks a {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.9rem 1rem;
  color: #8b3a3a;
  transition: 0.15s ease;
}

.topnav #myLinks a:hover {
  background: rgba(0,0,0,0.04);
}

/* logo + titolo */
.topnav a:first-child {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #5a2a2a;
}

/* icona hamburger */
.topnav a.icon {
  margin-left: auto;
  color: #5a2a2a;
  transition: 0.2s ease;
}

/* testo centrato */
.center {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  margin: auto 0;
  padding: 2rem 1rem;
  animation: fadeIn 0.6s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* titoli */
h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #5a2a2a;
  margin: 0.3rem 0;
  letter-spacing: -0.3px;
}

h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #6a3333;
  margin-top: 1.2rem;
}

h3 {
  font-size: 1.18rem;
  font-weight: 500;
  color: #6a4a4a;
}

/* link pulsanti moderni */
.menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-size: 1.22rem;
  font-weight: 600;
  border-radius: 14px;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
  color: #5a2a2a;
  gap: 0.5rem;
  transition: 0.22s ease;
}

.menu-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

/* responsive */
@media (max-width: 600px) {
  .menu-link {
    width: 86%;
    font-size: 1.35rem;
    padding: 1rem;
  }
  #myLinks { width: 200px; }
}

footer {
  text-align: center;
  padding: 1rem;
  background: white;
  color: maroon;
  font-size: 1rem;
  margin-top: auto;
}
/*
footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #7a5a5a;
}
*/