/* Concept: Moderno / audace — campagna: nero, bianco, blu, rosso tricolore */
:root {
  --m-black: #0a0a0a;
  --m-white: #ffffff;
  --m-accent: var(--brand-italy-red, #ce2b37);
  --m-blue: var(--brand-blue, #0a3a7a);
  --m-gray: #6b6b6b;
  --m-line: #e5e5e5;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--m-black);
  background: var(--m-white);
  line-height: 1.5;
}
a {
  color: var(--m-blue);
  text-decoration: none;
  font-weight: 600;
}
a:hover {
  text-decoration: underline;
}
.m-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.m-header {
  padding: 1rem 1.25rem;
  border-bottom: 4px solid var(--m-black);
}
.m-header-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.m-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}
.m-brand .logo {
  width: 52px;
  height: 52px;
}
.m-brand h1 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}
.m-brand .sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--m-gray);
  margin-top: 0.2rem;
}
.m-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.m-nav a {
  color: var(--m-black);
}
.m-nav a:hover,
.m-nav a[aria-current="page"] {
  color: var(--m-accent);
  text-decoration: none;
  border-bottom: 2px solid var(--m-accent);
}
.m-hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 50vh;
}
@media (max-width: 860px) {
  .m-hero {
    grid-template-columns: 1fr;
  }
}
.m-hero-text {
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  max-width: 36rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.m-hero-text h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}
.m-hero-text p {
  font-size: 1.05rem;
  color: var(--m-gray);
  margin: 0 0 1.75rem;
  max-width: 32ch;
}
.m-cta {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.9rem 1.5rem;
  background: var(--m-black);
  color: var(--m-white) !important;
  text-decoration: none !important;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.m-cta:hover {
  background: var(--m-accent);
}
.m-hero-img {
  background: #ccc;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.m-hero-img .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.m-hero-img.no-img .hero-img {
  display: none;
}
.m-hero-img.no-img {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.85rem;
  padding: 1rem;
  text-align: center;
}
.m-hero-img.no-img::after {
  content: "Inserire assets/melito/hero.jpg per la foto del territorio.";
}
.m-grid {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--m-line);
  border: 1px solid var(--m-line);
}
@media (max-width: 700px) {
  .m-grid {
    grid-template-columns: 1fr;
  }
}
.m-card {
  background: var(--m-white);
  padding: 1.5rem 1.25rem;
}
.m-card h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--m-blue);
  margin: 0 0 0.6rem;
}
.m-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
}
.m-footer {
  padding: 1.25rem;
  text-align: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--m-gray);
  border-top: 1px solid var(--m-line);
}
.m-concepts {
  text-align: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--m-gray);
  padding: 1rem;
}
.m-concepts a {
  color: var(--m-black);
}
