/* ============================================
   BASE.CSS — Reset, variabili, tipografia
   MediaStreaming.it
   ============================================ */

/* -- VARIABILI -- */
:root {
  --navy:    #162240;
  --blue:    #2253a0;
  --mid:     #3d72cc;
  --light:   #6fa3e8;
  --pale:    #d6e4f7;

  --bg:      #f0f4fb;
  --white:   #ffffff;
  --surface: #e8edf8;

  --text:    #111827;
  --muted:   #5a6a8a;

  --border:  #d0daea;

  --section-pad: 110px 60px;
  --container:   1140px;

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-pill: 100px;

  --shadow-sm: 0 2px 12px rgba(22,34,64,.07);
  --shadow-md: 0 8px 36px rgba(22,34,64,.10);
  --shadow-lg: 0 12px 48px rgba(22,34,64,.14);

  --transition: .25s ease;
}

/* -- RESET -- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ?? FIX GLOBALE ANTI-OVERFLOW */
* {
  max-width: 100%;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;

  /* ?? FIX */
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol { list-style: none; }

/* -- TIPOGRAFIA -- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--navy);
}

h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.75rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { line-height: 1.78; }

/* ?? FIX TESTI */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* -- UTILITIES -- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 60px;

  /* ?? FIX */
  width: 100%;
}

.section-pad {
  padding: var(--section-pad);
}

.text-center { text-align: center; }
.text-muted   { color: var(--muted); }
.text-navy    { color: var(--navy); }
.text-blue    { color: var(--blue); }
.text-light   { color: var(--light); }
.text-white   { color: #fff; }

.bg-white   { background: var(--white); }
.bg-bg      { background: var(--bg); }
.bg-navy    { background: var(--navy); }
.bg-blue    { background: var(--blue); }

/* -- EYEBROW -- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--blue);
  border-radius: 2px;
  flex-shrink: 0;
}

/* -- ANIMAZIONI -- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

/* -- RESPONSIVE -- */
@media (max-width: 1024px) {
  :root { --section-pad: 90px 36px; }
  .container { padding: 0 36px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 72px 20px; }

  .container {
    padding: 0 16px;
    width: 100%;
  }
}
body.menu-open {
  overflow: hidden;
}
