/* =========================================================
   Mediadream – Landing (Privati / Aziende selector)
   Brand #065d8b · accent yellow #f9d100 · Fira Sans
   Matches mediadreamacademy.it + mdacademy.it
   ========================================================= */

:root {
  --blue:        #065d8b;
  --blue-600:    #0a6fa5;
  --teal:        #0e9bc4;
  --blue-dark:   #044863;
  --blue-darker: #05374d;
  --navy:        #0d2f40;
  --navy-2:      #12303f;
  --yellow:      #f9d100;
  --yellow-dark: #e0bd00;
  --ink:         #21313a;
  --muted:       #6b7c85;
  --line:        #e6ebee;
  --bg:          #f4f7f9;
  --bg-2:        #eaeff2;
  --white:       #ffffff;
  --radius:      16px;
  --shadow-sm:   0 8px 24px rgba(9, 47, 66, .08);
  --shadow:      0 24px 60px rgba(9, 47, 66, .18);
  --maxw:        1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Fira Sans', 'Segoe UI', Verdana, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

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

/* Scroll-reveal (only hides when JS is active, so no-JS users still see content) */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 22px rgba(9,47,66,.10); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.site-header .logo img { height: 34px; width: auto; }

.header-right { display: flex; align-items: center; gap: 26px; }
.header-nav { display: flex; gap: 24px; }
.header-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.header-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--yellow);
  transition: width .25s ease;
}
.header-nav a:hover { color: var(--blue); }
.header-nav a:hover::after { width: 100%; }

.header-contact {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--blue);
  font-weight: 700;
  font-size: 15px;
}
.header-contact .phone-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff; font-size: 16px;
  box-shadow: 0 6px 16px rgba(6,93,139,.35);
}
.header-contact small {
  display: block; font-weight: 400; color: var(--muted);
  font-size: 12px; line-height: 1;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 96px 22px 104px;
  overflow: hidden;
  background:
    linear-gradient(118deg, rgba(5,45,63,.94) 0%, rgba(6,93,139,.80) 46%, rgba(14,155,196,.60) 100%),
    url('../img/hero.jpg') center 32% / cover no-repeat;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  width: 460px; height: 460px;
  background: rgba(249,209,0,.16);
  top: -140px; right: -100px;
}
.hero::after {
  width: 420px; height: 420px;
  background: rgba(14,155,196,.30);
  bottom: -160px; left: -120px;
}
.hero-inner { position: relative; z-index: 1; max-width: 940px; margin: 0 auto; }

.hero .kicker {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  padding: 8px 16px; border-radius: 40px;
  font-size: 13px; font-weight: 600; letter-spacing: 1.4px;
  text-transform: uppercase; margin-bottom: 24px;
}
.hero .kicker .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 0 4px rgba(249,209,0,.25);
}
.hero h1 {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 800; line-height: 1.1;
  margin: 0 auto 14px; max-width: 880px; letter-spacing: -.6px;
}
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px;
  height: 12px; background: rgba(249,209,0,.45); z-index: -1; border-radius: 3px;
}
.hero .quote-author { font-style: italic; font-weight: 300; opacity: .92; margin-bottom: 24px; font-size: 16px; }
.hero .lead { font-size: clamp(16px, 2vw, 20px); font-weight: 300; max-width: 640px; margin: 0 auto 30px; }

.hero-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-bottom: 40px;
}
.hero-badges span {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  padding: 10px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 500;
}
.hero-badges i { color: var(--yellow); }

.hero .scroll-hint {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 8px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  opacity: .9;
}
.hero .scroll-hint .chev {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(8px);} }

/* ---------------- Selector ---------------- */
.selector { position: relative; background: var(--bg); padding: 84px 0 92px; }
.selector::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(6,93,139,.06) 1.4px, transparent 1.4px);
  background-size: 26px 26px; pointer-events: none;
}
.selector .container { position: relative; z-index: 1; }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head .eyebrow {
  color: var(--blue); font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; font-size: 13px; margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; margin: 0 0 14px;
  color: var(--ink); letter-spacing: -.5px;
}
.section-head h2 .u {
  border-bottom: 4px solid var(--yellow); padding-bottom: 2px;
}
.section-head p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 17px; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; }

.choice {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.choice:hover { transform: translateY(-12px); box-shadow: var(--shadow); }
.choice--privati:hover { border-color: rgba(14,155,196,.55); }
.choice--aziende:hover { border-color: rgba(249,209,0,.75); }

.choice-media { position: relative; height: 288px; overflow: hidden; }
.choice-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.choice--privati .choice-media img { object-position: center 30%; }
.choice--aziende .choice-media img { object-position: 62% center; }
.choice:hover .choice-media img { transform: scale(1.08); }

/* bottom-only tint so the photo stays vivid, logo stays legible */
.choice-media::after {
  content: ""; position: absolute; inset: 0;
}
.choice--privati .choice-media::after {
  background: linear-gradient(to top, rgba(5,45,63,.86) 0%, rgba(6,93,139,.20) 46%, rgba(6,93,139,0) 72%);
}
.choice--aziende .choice-media::after {
  background: linear-gradient(to top, rgba(9,32,44,.88) 0%, rgba(13,47,64,.18) 46%, rgba(13,47,64,0) 72%);
}

.choice-media .idx {
  position: absolute; z-index: 2; top: 10px; right: 20px;
  font-size: 92px; font-weight: 800; line-height: 1;
  color: rgba(255,255,255,.14); letter-spacing: -4px;
}
.choice-media .badge {
  position: absolute; z-index: 2; top: 20px; left: 20px;
  background: rgba(255,255,255,.95); font-weight: 700; font-size: 12px;
  letter-spacing: 1.4px; text-transform: uppercase; padding: 8px 15px; border-radius: 40px;
}
.choice--privati .badge { color: var(--blue); }
.choice--aziende .badge { color: var(--navy); }
.choice-media .brand-logo {
  position: absolute; z-index: 2; left: 26px; bottom: 22px;
  height: 30px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}

.choice-icon {
  position: absolute; z-index: 3; left: 28px; top: 288px; transform: translateY(-50%);
  width: 66px; height: 66px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff;
  box-shadow: 0 12px 26px rgba(9,47,66,.28);
  transition: transform .35s ease;
}
.choice--privati .choice-icon { background: linear-gradient(135deg, var(--blue), var(--teal)); }
.choice--aziende .choice-icon { background: linear-gradient(135deg, var(--yellow), var(--yellow-dark)); color: var(--navy); }
.choice:hover .choice-icon { transform: translateY(-50%) scale(1.08) rotate(-4deg); }

.choice-body { padding: 44px 30px 34px; display: flex; flex-direction: column; flex: 1; }
.choice-body h3 { font-size: 26px; font-weight: 800; margin: 0 0 6px; color: var(--ink); letter-spacing: -.3px; }
.choice-body .tagline { font-weight: 700; margin: 0 0 14px; font-size: 15px; }
.choice--privati .tagline { color: var(--blue); }
.choice--aziende .tagline { color: var(--blue-dark); }
.choice-body p.desc { color: var(--muted); margin: 0 0 22px; font-size: 15.5px; }

.tags { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 9px; }
.tags li {
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 40px;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background .2s ease, color .2s ease;
}
.tags li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
}
.choice--privati .tags li { background: #eaf4f9; color: #0a5a80; }
.choice--privati .tags li::before { background: var(--teal); }
.choice--aziende .tags li { background: #fbf4d6; color: #8a6d00; }
.choice--aziende .tags li::before { background: var(--yellow-dark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: auto; padding: 16px 26px; border-radius: 10px;
  font-weight: 700; font-size: 16px; letter-spacing: .3px; color: #fff;
  transition: transform .15s ease, box-shadow .25s ease, background .3s ease;
}
.btn .arrow { transition: transform .25s ease; }
.choice:hover .btn .arrow { transform: translateX(6px); }
.btn--privati { background: linear-gradient(135deg, var(--blue), var(--teal)); box-shadow: 0 12px 26px rgba(6,93,139,.32); }
.choice:hover .btn--privati { box-shadow: 0 16px 34px rgba(6,93,139,.42); }
.btn--aziende { background: linear-gradient(135deg, var(--navy), var(--blue-dark)); box-shadow: 0 12px 26px rgba(13,47,64,.34); }
.choice:hover .btn--aziende { box-shadow: 0 16px 34px rgba(13,47,64,.44); }

/* ---------------- Stats ---------------- */
.trust { background: var(--white); padding: 68px 0; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat { text-align: center; padding: 0 10px; position: relative; }
.stat:not(:last-child)::after {
  content: ""; position: absolute; right: -12px; top: 14px; bottom: 14px;
  width: 1px; background: var(--line);
}
.stat .ico {
  width: 54px; height: 54px; border-radius: 15px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: #eaf4f9; color: var(--blue);
}
.stat .num { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; color: var(--blue); line-height: 1; }
.stat .num::after {
  content: ""; display: block; width: 34px; height: 3px; border-radius: 3px;
  background: var(--yellow); margin: 10px auto 0;
}
.stat .label { color: var(--muted); font-size: 14px; margin-top: 10px; }
.trust .accredit { text-align: center; margin: 40px 0 0; color: var(--muted); font-size: 15.5px; }
.trust .accredit strong { color: var(--ink); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-2); color: #c6d4dc; position: relative; padding: 60px 0 0; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--teal) 55%, var(--yellow));
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; padding-bottom: 44px; }
.site-footer .foot-logo { height: 34px; margin-bottom: 18px; }
.site-footer p { margin: 0 0 10px; font-size: 14.5px; }
.site-footer h4 { color: #fff; font-size: 15px; font-weight: 700; margin: 0 0 18px; text-transform: uppercase; letter-spacing: 1px; }
.footer-contact div { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.footer-contact .fi { color: var(--yellow); min-width: 18px; text-align: center; padding-top: 3px; }
.footer-links a { display: flex; align-items: center; gap: 8px; padding: 7px 0; color: #c6d4dc; font-size: 14.5px; transition: color .2s ease, padding-left .2s ease; }
.footer-links a i { color: var(--yellow); font-size: 12px; }
.footer-links a:hover { color: #fff; padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; text-align: center; font-size: 13px; color: #8ba1ac; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .header-nav { display: none; }
}
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stat:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding: 72px 18px 84px; }
  .header-contact .txt { display: none; }
  .stat::after { display: none !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
