:root {
  --color-bg-main: #0A3A63;
  --color-bg-dark: #082F52;
  --color-bg-light: #E8ECF3;
  --color-text-main: #FFFFFF;
  --color-text-secondary: #8FA3B8;
  --color-accent: #F5A623;

  --font-title: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --container-width: 1100px;
  --radius-card: 16px;
}

/* reset leggero */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* layout base */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--color-bg-main);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 18px;
}

.main-nav a {
  margin-left: 24px;
  font-size: 14px;
  color: var(--color-text-main);
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--color-accent);
}

/* hero */

.hero {
  background: radial-gradient(circle at top left, #0F4C81 0, var(--color-bg-main) 55%, var(--color-bg-dark) 100%);
  padding: 96px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-title);
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 16px;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 16px;
}

.hero-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-bottom: 24px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-image {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* sezioni */

.section {
  position: relative;
  padding: 80px 0;
}

.section-dark {
  background-color: var(--color-bg-dark);
}

.section-light {
  background-color: var(--color-bg-light);
  color: #0B1726;
}

.section h2 {
  font-family: var(--font-title);
  font-size: 28px;
  margin: 0 0 16px;
}

.section p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.section.section-light p {
  color: #233142;
}

.section-intro {
  color: var(--color-text-secondary);
}

/* overlay generico per sezioni con background */

.section-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
}

/* about */

.section-about {
  background-color: var(--color-bg-main);
  background-image: url("img/backgrounds/about-background.png");
  background-size: cover;
  background-position: center;
}

.section-about .section-overlay {
  background: radial-gradient(circle at top left, rgba(10, 58, 99, 0.85), rgba(8, 47, 82, 0.95));
}

.about-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 3fr);
  gap: 32px;
  align-items: center;
  z-index: 1;
}

.about-illustration img {
  max-width: 360px;
}

.about-text p {
  color: var(--color-text-main);
}

/* sezione video con pattern */

.section-videos {
  background-color: var(--color-bg-dark);
  background-image: url("img/backgrounds/videos-background.png");
  background-size: cover;
  background-position: center;
}

.section-videos .section-overlay {
  background: linear-gradient(to bottom, rgba(8, 47, 82, 0.94), rgba(8, 23, 40, 0.98));
}

/* bottoni */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 9999px;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.08s ease;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #1E1E1E;
}

.btn-primary:hover {
  background-color: #e49410;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn-secondary:hover {
  background-color: rgba(245, 166, 35, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* lista video */

.videos-list {
  position: relative;
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  z-index: 1;
}

.video-card {
  background: #0A3A63;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.video-thumb {
  position: relative;
  padding-top: 56.25%;
  background-color: #000;
}

.video-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-content {
  padding: 16px 18px 18px;
}

.video-title {
  font-family: var(--font-title);
  font-size: 18px;
  margin: 0 0 8px;
}

.video-meta {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.video-description {
  font-size: 14px;
  color: var(--color-text-main);
}

/* CTA sotto i video */

.videos-cta {
  margin-top: 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* sezione subscribe */

.subscribe-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* contatti */

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 3fr);
  gap: 32px;
  align-items: center;
}

.contact-icon img {
  max-width: 260px;
}

.contact-info p {
  margin: 4px 0;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.social-links img {
  width: 32px;
  height: 32px;
}

/* footer */

.site-footer {
  background-color: #031728;
  padding: 24px 0 32px;
  font-size: 14px;
}

.footer-inner {
  text-align: center;
  color: var(--color-text-secondary);
}

.footer-links a {
  margin: 0 8px;
  font-size: 13px;
}

/* responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 88px;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 24px;
  }

  .header-inner {
    justify-content: space-between;
  }

  .about-inner,
  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-illustration img,
  .contact-icon img {
    max-width: 260px;
  }
}

@media (max-width: 700px) {
  .main-nav {
    display: none; /* versione semplice: niente menu su mobile, si scrolla a mano */
  }

  .hero h1 {
    font-size: 32px;
  }

  .section {
    padding: 56px 0;
  }

  .subscribe-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}