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

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #4A6C4A;
  --secondary-color: #7E9C7E;
  --accent-color: #F4A261;
  --light-text: #FAF9F6;
  --dark-text: #2C3E2C;
  --glass-bg: rgba(74, 108, 74, 0.7);
  --glass-border: rgba(250, 249, 246, 0.3);
  --hover-glow: rgba(244, 162, 97, 0.2);
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--light-text);
  background-color: var(--primary-color);
  background-image: url('assets/sfondo.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(44, 62, 44, 0.5); 
    backdrop-filter: blur(3px);
    z-index: -1;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 9998;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  margin-right: 1rem;
}

.navbar-brand {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--light-text);
    border-radius: 1px;
    margin: 4px 0;
    transition: all 0.3s;
}

.navbar-toggle.active .icon-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.navbar-toggle.active .icon-bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .icon-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.navbar-links {
    display: flex;
}

.navbar-links a {
  color: var(--light-text);
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.25rem;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.container {
  padding: 2rem;
  text-align: center;
}

.main-header {
  max-width: 800px;
  margin: 4rem auto;
  animation: fadeIn 1.5s ease-out;
  background: rgba(0,0,0,0.2);
  padding: 2rem;
  border-radius: 15px;
}

.main-header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.main-header p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--light-text);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
    z-index: 10001;
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(44, 62, 44, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 10000;
  }

  .navbar-menu.active {
    transform: translateX(0);
  }
  
  .navbar-links {
    flex-direction: column;
    align-items: center;
  }

  .navbar-links a {
    margin: 1.5rem 0;
    font-size: 1.5rem;
  }

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

  .main-header p {
    font-size: 1rem;
  }
}
