@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --atm-bg: #edf1ec;
  --atm-card: rgba(255, 255, 255, 0.88);
  --atm-card-strong: #ffffff;
  --atm-line: rgba(16, 24, 40, 0.08);
  --atm-text: #132018;
  --atm-muted: #5c6d61;
  --atm-primary: #163f2a;
  --atm-primary-strong: #102f1f;
  --atm-accent: #b8d8bf;
  --atm-success: #1f7a45;
  --atm-warning: #98651b;
  --atm-shadow: 0 18px 46px rgba(18, 32, 24, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--atm-text);
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(184, 216, 191, 0.9) 0%, transparent 60%),
    radial-gradient(820px 400px at 0% 0%, rgba(255, 255, 255, 0.9) 0%, transparent 52%),
    var(--atm-bg);
  font-family: "Space Grotesk", "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(243, 248, 244, 0.92);
  border-bottom: 1px solid rgba(28, 48, 36, 0.1);
}

.site-header-inner {
  width: min(1400px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1f4734;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3c8f5b, #245b3e);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 auto;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2b4b3a;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid rgba(28, 48, 36, 0.1);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  transform: translateY(-1px);
  border-color: rgba(22, 63, 42, 0.16);
  background: rgba(232, 242, 235, 0.92);
}

.site-nav svg {
  width: 14px;
  height: 14px;
}

.aitm-locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.aitm-locale-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 7px 10px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: #355344;
  border: 1px solid rgba(28, 48, 36, 0.1);
  background: rgba(255, 255, 255, 0.78);
}

.aitm-locale-link[aria-current="true"] {
  color: #fff;
  background: linear-gradient(180deg, var(--atm-primary), var(--atm-primary-strong));
  border-color: transparent;
}

.site-layout {
  width: min(1440px, calc(100% - 18px));
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) minmax(120px, 180px);
  grid-template-areas: "left main right";
  gap: 12px;
  align-items: start;
}

.ad-sidebar-left {
  grid-area: left;
}

.portal-shell {
  grid-area: main;
  min-width: 0;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 22px 56px;
}

.portal-module-begreen {
  --atm-primary: #0f5d3f;
  --atm-primary-strong: #0b4831;
}

.portal-module-bepdf {
  --atm-primary: #7d263d;
  --atm-primary-strong: #651f31;
}

.portal-module-betransfer {
  --atm-primary: #1d4f8a;
  --atm-primary-strong: #173f6d;
}

.portal-module-beelectric {
  --atm-primary: #1a4fa0;
  --atm-primary-strong: #163f80;
}

.portal-module-beit {
  --atm-primary: #0f6b63;
  --atm-primary-strong: #0c5550;
}

.portal-module-bridge {
  --atm-primary: #5d3f8d;
  --atm-primary-strong: #4b3271;
}

.portal-module-donazioni {
  --atm-primary: #8b5a14;
  --atm-primary-strong: #6d4710;
}

.ad-sidebar-right {
  grid-area: right;
}

.ad-sidebar {
  position: sticky;
  top: 84px;
  border: 1px dashed rgba(37, 71, 55, 0.18);
  border-radius: 14px;
  min-height: 420px;
  background: rgba(246, 250, 246, 0.55);
  color: rgba(74, 99, 84, 0.45);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-footer {
  margin: 18px auto 22px;
  width: min(1400px, calc(100% - 28px));
  border: 1px solid rgba(24, 47, 35, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #53685a;
  font-size: 0.86rem;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.site-footer-links a,
.legal-row a {
  color: #254737;
  text-decoration: none;
  border-bottom: 1px dashed rgba(37, 71, 55, 0.35);
}

.site-footer-links a:hover,
.legal-row a:hover {
  border-bottom-style: solid;
}

.legal-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  color: #5c6d61;
  font-size: 0.88rem;
}

@keyframes atmFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}

@keyframes atmGlow {
  0%, 100% { opacity: 0.72; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.75rem;
  color: #395042;
  background: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--atm-primary), var(--atm-primary-strong));
  color: #fff;
  box-shadow: 0 12px 24px rgba(16, 47, 31, 0.16);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(16, 24, 40, 0.1);
  color: #22372b;
}

.btn:hover {
  transform: translateY(-1px);
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.lead {
  margin-top: 8px;
  color: var(--atm-muted);
  max-width: 64ch;
  line-height: 1.65;
  font-size: 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
  gap: 16px;
  align-items: stretch;
}

.hero-card {
  border: 1px solid var(--atm-line);
  border-radius: 28px;
  background: var(--atm-card);
  box-shadow: var(--atm-shadow);
  backdrop-filter: blur(12px);
}

.hero-card-main {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.hero-card-main::before,
.hero-card-main::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-card-main::before {
  width: 220px;
  height: 220px;
  right: -60px;
  top: -70px;
  background: radial-gradient(circle, rgba(184, 216, 191, 0.56), rgba(184, 216, 191, 0));
  animation: atmFloat 8s ease-in-out infinite;
}

.hero-card-main::after {
  width: 180px;
  height: 180px;
  right: 120px;
  bottom: -90px;
  background: radial-gradient(circle, rgba(22, 63, 42, 0.12), rgba(22, 63, 42, 0));
  animation: atmGlow 7s ease-in-out infinite;
}

.hero-card-side {
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.eyebrow,
.mini-label {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #476151;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 24, 40, 0.08);
  color: #274233;
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-pill svg {
  width: 16px;
  height: 16px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.metric-chip {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(242, 246, 242, 0.95);
  border: 1px solid rgba(16, 24, 40, 0.06);
  color: var(--atm-muted);
  font-size: 0.92rem;
}

.metric-chip strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--atm-text);
}

.signal-list {
  display: grid;
  gap: 10px;
}

.signal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(16, 24, 40, 0.06);
}

.signal-row:last-child {
  border-bottom: 0;
}

.micro-copy {
  margin: 0;
  color: var(--atm-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.project-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: var(--atm-card-strong);
  border: 1px solid var(--atm-line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--atm-shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -30px -60px auto;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(184, 216, 191, 0.22), rgba(184, 216, 191, 0));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(18, 32, 24, 0.12);
  border-color: rgba(31, 122, 69, 0.14);
}

.card:hover::after {
  opacity: 1;
}

.card-featured {
  background: linear-gradient(180deg, #ffffff, #f7faf7);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 245, 239, 0.96));
  border: 1px solid rgba(16, 24, 40, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.card-icon svg {
  width: 25px;
  height: 25px;
}

.card-copy {
  min-height: 78px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.card-tag {
  color: #607063;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-index {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #728377;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--atm-muted);
  line-height: 1.62;
}

.row {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.status {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-live {
  color: var(--atm-success);
}

.status-soon {
  color: var(--atm-warning);
}

.panel {
  margin-top: 22px;
  background: var(--atm-card-strong);
  border: 1px solid var(--atm-line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--atm-shadow);
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 1.03rem;
}

.panel-copy {
  margin: -2px 0 12px;
  color: var(--atm-muted);
  line-height: 1.58;
}

.panel-nested {
  margin-top: 14px;
  background: #f8fbf8;
  box-shadow: none;
}

.stack {
  display: grid;
  gap: 8px;
}

.inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--atm-text);
  font-family: inherit;
}

.inline input,
.inline select {
  flex: 1;
  min-width: 220px;
}

.out {
  margin-top: 10px;
  white-space: pre-wrap;
  color: #355244;
  line-height: 1.6;
}

.admin-hidden {
  display: none;
}

.admin-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-grid label {
  display: block;
  margin-bottom: 4px;
  color: #536657;
  font-size: 0.82rem;
  font-weight: 700;
}

.wizard {
  margin-top: 10px;
  border: 1px dashed rgba(16, 24, 40, 0.12);
  border-radius: 16px;
  padding: 12px;
  background: #f5f8f5;
  color: #3e5545;
  font-size: 0.9rem;
  line-height: 1.5;
}

.wizard ol {
  margin: 8px 0 0 18px;
  padding: 0;
}

.foot {
  margin-top: 14px;
  color: #607063;
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .site-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "left"
      "right";
  }

  .ad-sidebar {
    position: static;
    min-height: 86px;
  }

  .site-header-inner {
    width: min(1400px, calc(100% - 18px));
  }

  .hero-grid,
  .project-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}
