:root {
  --primary: #2D6A18;
  --bg-color: #f0f4f0;
  --text-color: #333333;
}




* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

/* HEADER */
.app-header {
  height: 112px;
  position: relative;
  width: 100%;
  z-index: 1000;
}

.header-top {
  height: 28px;
  background-color: white;
  width: 100%;
}

.header-main {
  height: 64px;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  position: relative;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-title {
  font-size: 20px;
  font-weight: 900;
  color: white;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.menu-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  outline: none;
}

.menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.header-logo {
  position: absolute;
  left: 50%;
  top: 64px;
  transform: translate(-50%, -50%);
  z-index: 100;
}

.header-logo img {
  width: 150px;
  height: auto;
  display: block;
}

/* DRAWER (HAMBURGER MENU) */
.drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background-color: var(--bg-color);
  border-right: 2px solid var(--primary);
  z-index: 2000;
  transition: left 0.3s ease;
  padding: 20px;
  overflow-y: auto;
  box-shadow: 4px 0 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.drawer.open {
  left: 0;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  z-index: 1500;
  display: none;
}

.drawer-overlay.open {
  display: block;
}

.drawer-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 16px;
  margin-top: 10px;
}

.drawer-separator {
  height: 1px;
  background-color: var(--primary);
  margin-bottom: 16px;
  width: 100%;
}

.drawer-sep-light {
  height: 1px;
  background-color: #d1fae5;
  margin: 4px 0;
  width: 100%;
}

.drawer-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  color: #14532d;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  border-radius: 4px;
  transition: background 0.2s;
  text-decoration: none;
}

.drawer-btn i {
  font-size: 20px;
}

.drawer-btn:hover {
  background-color: rgba(45, 106, 24, 0.1);
}

.drawer-version {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  width: 100%;
  margin-top: auto;
  padding-top: 40px;
}

/* PAGE CONTAINER & CARDS */
.page-container {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-header {
  width: 100%;
  padding: 8px 0;
  background-color: var(--primary);
  text-align: center;
}

.card-header-title {
  font-size: 18px;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
}

/* UTILITIES */
.text-center { text-align: center; }
.w-full { width: 100%; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.p-4 { padding: 16px; }
.font-black { font-weight: 900; }
.uppercase { text-transform: uppercase; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }

/* Grid per Monitor Gramole e Separatori */
.dynamic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
  padding: 16px;
}

@media (min-width: 640px) {
  .dynamic-grid { grid-template-columns: repeat(2, 1fr); }
  .header-title { display: block; }
}
@media (min-width: 1024px) {
  .dynamic-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}
@media (max-width: 639px) {
  .header-title { display: none; }
}
