html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #4e6b50, #b7d3a8);
  background-attachment: fixed;
  background-size: cover;
  color: #0A2540;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url(*'assets/pattern.png');
  background-repeat: repeat;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;

}


header {
  text-align: center;
}

.header-flex {
  display: flex;
  align-items: auto;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

header img {
  height: 120px;
  vertical-align: middle;
  margin-top: +0px; /* oppure -15px se serve più risalita */
}

.header-text h1 {
  margin: 0;
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  text-align: center;
}

.header-text em {
  font-style: italic;
  font-size: 1.4rem;
  display: block;
  text-align: center;
  margin-bottom: 2rem;
}

nav {
  background-color: #0A2540;
  padding: 0.5rem;
}

.nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.nav-grid a {
  cursor: pointer;
  color: white;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
}

main {
  flex: 1;
  padding: 2rem;
  max-width: 1000px;
  margin: 2rem auto;
  border: 1px solid rgba(10, 37, 64, 0.2);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.05);
}

h2 {
  color: white;
}

.section {
  margin-bottom: 2rem;
}

.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: stretch;
}

.column {
  flex: 1;
  min-width: 250px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid rgba(10, 37, 64, 0.1);
}

.contact-box {
  background-color: transparent;
  color: #0A2540;
  padding: 1rem 0;
  max-width: 1000px;
  margin: 2rem auto 0 auto;
  text-align: left;
  border-top: 1px solid rgba(10, 37, 64, 0.2);
}

ul {
  padding-left: 1.2rem;
}

footer {
  background-color: #0A2540;
  color: white;
  padding: 1rem;
  text-align: center;
}

.back-button {
  text-align: center;
  margin-top: 2rem;
}

.back-button a {
  background-color: #0A2540;
  color: white;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.back-button a:hover {
  background-color: #1e3a8a;
}

.annuncio-riga {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 6px;
  border: 1px solid rgba(10, 37, 64, 0.2);
}

form {
  margin-top: 2rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid rgba(10, 37, 64, 0.2);
}

label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

input, textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

input[type="submit"] {
  background-color: #0A2540;
  color: white;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-transform: uppercase;
}

header h1 {
  text-align: center;
  font-size: 3rem;         /* più grande del default */
  font-weight: 700
}

.articolo-principale,
.attivita,
.aiuto {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 6px;
  border: 1px solid rgba(10, 37, 64, 0.2);


}

.penguin img {
  max-width: 100px;
  height: auto;
}
.pagina-noi h1,
.pagina-noi h2,
.pagina-noi h3 {
  color: #081c30; /* blu scuro coerente con il sito */
}

.pagina-noi p {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
  color: #0A2540;
}
/* Logo nella home: leggermente più alto */
.pagina-home header img {
  margin-top: -0px;
}

/* Logo nel baratto: allineamento perfetto */
.pagina-baratto .header-flex {
  align-items: flex-end;
}

/* 📱 Mobile fix: ritratto biografico su smartphone */
/* ─────────────────────────────── */
@media (max-width: 600px) {
  .pagina-noi .annuncio-riga {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }

  .pagina-noi .annuncio-riga img {
    width: 100%;
    max-width: 240px;
    height: auto;
    margin-bottom: 1rem;
  }

  .pagina-noi .annuncio-riga h3 {
    font-size: 1.4rem;
    margin-top: 0;
  }

  .pagina-noi .annuncio-riga p {
    font-size: 1rem;
    line-height: 1.5;
  }
}

.video-articolo {
  position: relative;
  z-index: 1;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.1); /* come articolo-principale */
  border: 1px solid rgba(10, 37, 64, 0.2);     /* stesso bordo */
  border-radius: 6px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);      /* ombra più delicata */
}

@media (max-width: 600px) {
  body {
    padding: 0 1rem;
    overflow-x: hidden;
  }

  .header-text h1 {
    font-size: 2.5rem;
  }

  .video-articolo video {
    width: 100%;
    height: auto;
  }

  .articolo-principale,
  .attivita,
  .aiuto,
  .video-articolo {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 6px;
    box-sizing: border-box;
  }

  main {
    padding: 1rem;
    margin: 1rem auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}








