/* -- HOME-SPECIFIC -- */

/* Hero */
.hero {
  padding-top: var(--nav-h);
  min-height: auto;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero__pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(176,24,40,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176,24,40,.08) 1px, transparent 1px);
  background-size: 72px 72px;
}
.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 60% 40%, rgba(176,24,40,.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(255,255,255,.03) 0%, transparent 60%);
}
.hero__ecg {
  position: absolute;
  bottom: 20%;
  left: 0; right: 0;
  height: 60px;
  opacity: .08;
  overflow: hidden;
}
.hero__ecg svg { width: 100%; height: 100%; }

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(176,24,40,.8);
  background: rgba(176,24,40,.12);
  border: 1px solid rgba(176,24,40,.2);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
}
.hero__tag-dot {
  width: 6px; height: 6px;
  background: var(--red-light);
  border-radius: 50%;
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: .3; }
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 700;
  line-height: 1.06;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}
.hero__title em {
  font-style: italic;
  color: rgba(255,255,255,.55);
}
.hero__lead {
  font-size: 16px;
  color: rgba(255,255,255,.5);
  line-height: 1.75;
  margin-bottom: 44px;
  max-width: 460px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__cta .btn--primary { background: var(--red); }
.hero__cta .btn--outline {
  color: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.2);
}
.hero__cta .btn--outline:hover {
  color: white;
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.05);
}

/* Stats panel */
.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.stat {
  background: rgba(255,255,255,.03);
  padding: 32px 28px;
  border: 1px solid rgba(255,255,255,.05);
  transition: background var(--transition);
}
.stat:hover { background: rgba(176,24,40,.1); }
.stat__num {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 6px;
}
.stat__label {
  font-size: 12px;
  color: rgba(255,255,255,.38);
  letter-spacing: .8px;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.4;
}

/* Mission band */
.mission {
  background: var(--red);
  padding: 0;
}
.mission__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  divide: var(--red-light);
}
.mission__item {
  padding: 52px 40px;
  border-right: 1px solid rgba(255,255,255,.15);
  position: relative;
}
.mission__item:last-child { border-right: none; }
.mission__item-num {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: rgba(255,255,255,.15);
  line-height: 1;
  margin-bottom: 16px;
}
.mission__item h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: white;
  margin-bottom: 10px;
  font-weight: 600;
}
.mission__item p {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.65;
}

/* Obiettivi */
.objectives__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.obj-card {
  background: var(--white);
  padding: 40px 36px;
  transition: background var(--transition);
  position: relative;
}
.obj-card:hover { background: var(--surface); }
.obj-card__num {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: block;
}
.obj-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.2;
}
.obj-card p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.7;
}
.obj-card__bar {
  height: 2px;
  background: var(--rule);
  margin-top: 28px;
  position: relative;
  overflow: hidden;
}
.obj-card__bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: var(--red);
  transition: width .6s ease;
}
.obj-card:hover .obj-card__bar::after { width: 100% !important; }

/* News sezione */
.news__grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 32px;
  margin-top: 56px;
}
.news__featured {
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.news__featured:hover { box-shadow: var(--shadow-md); }
.news__featured-head {
  padding: 52px 40px 40px;
  background: var(--ink);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.news__featured-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(176,24,40,.25), transparent);
}
.news__featured-head .label { position: relative; color: rgba(176,24,40,.8); }
.news__featured-head h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  position: relative;
}
.news__featured-body { padding: 32px 40px; flex: 1; }
.news__featured-body p { font-size: 14px; line-height: 1.7; color: var(--ink-muted); }
.news__featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}
.news__date { font-size: 12px; color: var(--ink-muted); font-weight: 500; }

.news__list { display: flex; flex-direction: column; gap: 2px; }
.news__item {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 24px 28px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.news__item:hover { background: var(--surface); border-color: var(--red); }
.news__item .label { margin-bottom: 0; }
.news__item h4 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.news__item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.news__item-meta span { font-size: 12px; color: var(--ink-muted); }

/* -- RESPONSIVE HOME -- */
@media (max-width: 1024px) {
  .hero__content { gap: 48px; padding: 64px 0; }
  .objectives__grid { grid-template-columns: 1fr; }
  .news__grid { grid-template-columns: 1fr; }
  .mission__inner { grid-template-columns: 1fr; }
  .mission__item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); }
  .mission__item:last-child { border-bottom: none; }
}
@media (max-width: 768px) {
  .hero__content { grid-template-columns: 1fr; gap: 48px; padding: 56px 0; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .news__featured-head { padding: 36px 28px 28px; }
  .news__featured-body { padding: 24px 28px; }
}
