:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --bg: #020617;
  --bg-soft: #0b1220;
  --bg-card: #020617;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
  --radius-lg: 1.25rem;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, .4);
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1f2937 0, #020617 55%, #000 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout base */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1;
}

section {
  padding: 3.5rem 0;
}

.section-header {
  margin-bottom: 2rem;
  text-align: center;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .7rem;
  color: var(--primary);
  font-weight: 600;
}

.section-title {
  font-size: 1.8rem;
  margin-top: .6rem;
  font-weight: 700;
}

.section-subtitle {
  font-size: .95rem;
  color: var(--muted);
  max-width: 600px;
  margin: .4rem auto 0;
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15,23,42,.95), rgba(15,23,42,.7));
  border-bottom: 1px solid rgba(31,41,55,.8);
}

.navbar {
  height: 4.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 20%, #fee2e2, #fb923c 30%, #7f1d1d 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9rem;
  box-shadow: 0 0 0 2px rgba(15,23,42,.95);
}

.logo-text-main {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.logo-text-sub {
  font-size: .7rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: .16em;
}

.nav-links {
  display: none;
  gap: 1.3rem;
  font-size: .85rem;
}

.nav-links a {
  color: #e5e7eb;
  opacity: .85;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-cta {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem 1.2rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary), #fb923c);
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(248,113,113,.35);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(248,113,113,.45);
  background: linear-gradient(to right, var(--primary-dark), #f97316);
}

.btn-outline {
  border-color: rgba(148,163,184,.7);
  background: rgba(15,23,42,.9);
  color: #e5e7eb;
}

.btn-outline:hover {
  border-color: rgba(248,113,113,.8);
}

.nav-toggle {
  border: none;
  background: none;
  color: #e5e7eb;
  display: inline-flex;
  padding: .2rem;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(15,23,42,.98);
}

.mobile-menu-inner {
  padding: .75rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .9rem;
}

.mobile-menu a {
  padding: .4rem 0;
}

.mobile-menu-cta {
  margin-top: .75rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

/* Hero */

.hero {
  padding: 3rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.2rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-title span {
  background: linear-gradient(to right, #f97316, #facc15);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: .98rem;
  color: var(--muted);
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-bottom: 1.5rem;
}

.hero-extra {
  font-size: .78rem;
  color: var(--muted);
}

.hero-card {
  background: radial-gradient(circle at top left, rgba(248,113,113,.18), rgba(15,23,42,.96));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,.35);
  padding: 1.3rem;
  box-shadow: var(--shadow-soft);
}

.hero-card-grid {
  display: grid;
  gap: 1rem;
}

.hero-pill {
  display: inline-flex;
  padding: .24rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.7);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-photo {
  border-radius: 1rem;
  overflow: hidden;
  background-image:
    linear-gradient(to bottom, rgba(15,23,42,.3), rgba(15,23,42,.95)),
    url("http://romauno.org/img/p20.jpg?auto=compress&cs=tinysrgb&w=1200");
  background-size: cover;
  background-position: center;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  font-size: .8rem;
}

.hero-photo strong {
  display: block;
}

/* Cards corsi */

.cards-grid {
  display: grid;
  gap: 1.3rem;
}

.card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.2rem 1.3rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .25rem;
}

.card-tagline {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .6rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .8rem;
  font-size: .78rem;
  margin-bottom: .7rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: .22rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.6);
  font-size: .72rem;
  color: var(--muted);
}

.card-body {
  font-size: .85rem;
  color: #e5e7eb;
}

.card-body p + p {
  margin-top: .4rem;
}

/* Liste */

.info-list {
  list-style: none;
  font-size: .9rem;
  color: var(--muted);
}

.info-list li {
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: .35rem;
}

.info-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  position: absolute;
  left: 0;
  top: .55rem;
}

/* Tabelle leggere */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.table th,
.table td {
  padding: .6rem .5rem;
  border-bottom: 1px solid var(--border);
}

.table th {
  text-align: left;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: #020617;
  padding: 2rem 0 2.5rem;
  font-size: .85rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-title {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-size: .78rem;
}

/* Utilità */

.page-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.page-subtitle {
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

/* Responsivo */

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
  }

  .hero-card-grid {
    grid-template-columns: 1.1fr .9fr;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  section {
    padding: 4.5rem 0;
  }
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
:root {
  --romauno-red: #d60000;
}

.btn-primary {
  background: var(--romauno-red);
  border-color: var(--romauno-red);
}

a:hover {
  color: var(--romauno-red);
}
