/* ----------------------------------------------------
   PALETTE E VARIABILI
---------------------------------------------------- */
:root {
  --bg: #f5f7f4;
  --primary: #2f6f4e;
  --accent: #1b4f72;
  --text: #222;
  --card: #ffffff;
  --logo-width: 60px;
  --logo-height: 60px;
}

/* ----------------------------------------------------
   RESET
---------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Nunito", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-top: 90px; /* spazio per header fisso */
}

/* ----------------------------------------------------
   HEADER FISSO + MENU MOBILE
---------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  display: block;
  width: var(--logo-width);
  height: var(--logo-height);
  object-fit: cover;
  border-radius: 4px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: right;
}

/* MENU DESKTOP */
.menu {
  display: flex;
  gap: 1rem;
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.menu a:hover {
  opacity: 0.7;
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* MENU MOBILE */
@media (max-width: 768px) {
  .menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 70%;
    height: calc(100% - 70px);
    background: var(--accent);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
  }

  .menu.open {
    right: 0;
  }

  .menu a {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: block;
  }
}

/* ----------------------------------------------------
   CONTENUTO PRINCIPALE
---------------------------------------------------- */
main {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.section-card {
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
}

.section-card h2 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-card ul {
  margin-left: 1.2rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* ----------------------------------------------------
   BOTTONI
---------------------------------------------------- */
.button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: opacity 0.2s ease;
}

.button:hover {
  opacity: 0.8;
}

/* ----------------------------------------------------
   GALLERIA FOTOGRAFICA
---------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.photo-card {
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.photo-card img {
  width: 100%;
  display: block;
}

.photo-card .info {
  padding: 0.75rem 1rem;
}

.photo-card .info strong {
  color: var(--primary);
}

/* ----------------------------------------------------
   FORM
---------------------------------------------------- */
form label {
  font-weight: 600;
}

input, textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: none;
  background: rgba(0,0,0,0.05);
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 10px #2f6f4e55;
}

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: #555;
}
