/* MG Karate Torino — stylesheet (mobile first) */
@font-face{font-family:"Big Shoulders Display";font-weight:800;font-style:normal;font-display:swap;src:url("../fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2")}
@font-face{font-family:"Big Shoulders Display";font-weight:900;font-style:normal;font-display:swap;src:url("../fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2")}
@font-face{font-family:"Source Sans 3";font-weight:400;font-style:normal;font-display:swap;src:url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Source Sans 3";font-weight:600;font-style:normal;font-display:swap;src:url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:"Source Sans 3";font-weight:700;font-style:normal;font-display:swap;src:url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2")}

:root{
  --blu:#1A2F9E; --blu-notte:#10206E; --blu-cielo:#D9DEF3; --blu-soft:#E7EAF4;
  --oro:#C2A03A; --oro-testo:#7A5E10; --oro-chiaro:#E3CB7C; --oro-bg:#FBF8EE;
  --ink:#121833; --testo:#3A4160; --carta:#F3F4F7; --bordo:#E2E4EC; --bianco:#FFFFFF;
  --verde:#2DA83A; --rosso:#E3342F;
  --display:"Big Shoulders Display","Arial Narrow",sans-serif;
  --body:"Source Sans 3","Segoe UI",system-ui,sans-serif;
  --wrap:1080px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:72px;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;font-family:var(--body);color:var(--ink);background:var(--bianco);font-size:17px;line-height:1.55}
img{max-width:100%;display:block}
a{color:var(--blu)} a:hover{color:var(--blu-notte)}
:focus-visible{outline:3px solid var(--oro);outline-offset:3px}
h1,h2,h3{margin:0;font-family:var(--display);text-transform:uppercase;line-height:.95}
p{margin:0}
.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 20px}
.skip{position:absolute;left:-999px;top:8px;background:var(--ink);color:#fff;padding:10px 14px;z-index:100}
.skip:focus{left:8px}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:var(--bianco);border-bottom:1px solid var(--bordo)}
.site-header .wrap{height:64px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--blu)}
.brand img{width:34px;height:44px;object-fit:contain}
.brand span{font-family:var(--display);font-weight:800;font-size:22px;letter-spacing:.5px}
.nav{display:none;gap:22px}
.nav a{text-decoration:none;font-weight:600;color:var(--ink)}
.nav a:hover{color:var(--blu)}
.icon-btn{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:22px;background:#EEF0F8;color:var(--blu);flex-shrink:0}
.text-link{min-height:44px;display:flex;align-items:center;font-size:15px;font-weight:600}

/* Buttons */
.btn{min-height:56px;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 22px;border-radius:6px;font-weight:700;font-size:18px;text-decoration:none;text-align:center;border:0;cursor:pointer;font-family:inherit}
.btn-oro{background:var(--oro);color:#0E1A5C}
.btn-oro:hover{background:#D1AE45;color:#0E1A5C}
.btn-ghost{min-height:52px;border:2px solid #5E71C4;color:#fff;font-weight:600;font-size:17px;background:transparent}
.btn-ghost:hover{border-color:#fff;color:#fff}
.btn-blu{background:var(--blu);color:#fff;min-height:48px;font-size:16px}
.btn-blu:hover{background:var(--blu-notte);color:#fff}
.btn-outline{min-height:52px;border:2px solid var(--blu);color:var(--blu);font-size:17px}

/* Hero */
.hero{position:relative;overflow:hidden;background:var(--blu-notte);color:#fff}
.hero .wrap{position:relative;padding-top:36px;padding-bottom:40px;display:flex;flex-direction:column;gap:22px}
.hero-hex{position:absolute;right:-170px;top:-40px;pointer-events:none}
.tricolore{display:flex;gap:4px;height:6px;width:54px}
.tricolore i{flex:1;background:#fff}
.tricolore i:first-child{background:var(--verde)} .tricolore i:last-child{background:var(--rosso)}
.hero .kicker{font-size:15px;font-weight:600;color:var(--oro-chiaro)}
.hero h1{font-weight:900;font-size:64px;letter-spacing:.5px}
.hero .lead{font-size:18px;color:var(--blu-cielo);max-width:34em}
.hero .ctas{display:flex;flex-direction:column;gap:12px;padding-top:6px}
.hero .facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:8px}
.hero .facts div{padding:12px;border-top:2px solid var(--oro);font-size:15px;line-height:1.35;color:var(--blu-cielo)}
.hero .facts strong{display:block;color:#fff;font-size:16px}

/* Sections */
.section{padding:44px 0}
.section h2{font-weight:900;font-size:40px;color:var(--blu)}
.section-head{display:flex;flex-direction:column;gap:10px;margin-bottom:28px}
.section-head p{color:var(--testo)}
.bg-carta{background:var(--carta)}

/* Corsi */
.courses{display:grid;gap:28px}
.course{display:flex;flex-direction:column;gap:14px;padding-bottom:28px;border-bottom:1px solid var(--bordo)}
.course:last-child{border-bottom:0}
.course-media{position:relative;aspect-ratio:35/24;border-radius:4px;overflow:hidden;background:var(--blu-soft)}
.course-media img,.course-media svg{width:100%;height:100%;object-fit:cover}
.course-media .pos-30{object-position:50% 30%}
.course-media .pos-42{object-position:45% 35%}
.ai-tag{position:absolute;left:8px;top:8px;padding:3px 8px;border-radius:2px;background:var(--ink);color:#fff;font-size:12px;font-weight:600}
.course-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.course h3{font-weight:800;font-size:32px;color:var(--ink);line-height:1}
.course .tag{font-size:14px;font-weight:600;color:var(--oro-testo);white-space:nowrap}
.course p{color:var(--testo)}

/* Team */
.team{display:flex;flex-direction:column;gap:20px}
.person{display:flex;gap:14px;align-items:center}
.mono{width:64px;height:64px;flex-shrink:0;border-radius:32px;background:var(--blu);display:flex;align-items:center;justify-content:center;font-family:var(--display);font-weight:800;font-size:26px;color:#fff}
.person-info{display:flex;flex-direction:column;gap:6px}
.person-info .name{font-size:19px;font-weight:700}
.person-info .role{font-size:15px;color:var(--testo)}
.dan{align-self:flex-start;padding:3px 10px;background:var(--ink);color:#fff;font-size:13px;font-weight:600;border-radius:2px}
.affiliation{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding-top:14px;border-top:1px solid var(--bordo);font-size:15px;color:var(--testo)}
.affiliation b{padding:4px 10px;border:1.5px solid var(--blu);border-radius:2px;color:var(--blu)}

/* CTA band */
.band{background:var(--blu);color:#fff}
.band .wrap{padding-top:40px;padding-bottom:40px;display:flex;flex-direction:column;gap:16px}
.band h2{color:#fff}
.band p{color:var(--blu-cielo)}

/* 5x1000 */
.donate .big-num,.big-num{font-family:var(--display);font-weight:900;font-size:88px;line-height:.85;color:var(--oro)}
.cf-box{display:flex;flex-direction:column;gap:10px;padding:18px;border:2px dashed var(--oro);border-radius:6px;background:var(--oro-bg);margin-top:18px}
.cf-box .label{font-size:14px;font-weight:600;color:var(--oro-testo)}
.cf-box .cf{font-family:var(--display);font-weight:800;font-size:40px;letter-spacing:2px;color:var(--ink);user-select:all}
.donate h2.sub{font-weight:800;font-size:30px;color:var(--ink);margin:18px 0}
.donate p{color:var(--testo)}

/* Dove */
.addr{display:flex;gap:12px;align-items:flex-start;margin:0 0 16px}
.addr svg{flex-shrink:0;margin-top:2px}
.addr span{color:var(--testo)}

/* Contatti */
.contacts{display:grid;gap:14px}
.contact{min-height:60px;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:6px;background:var(--carta);text-decoration:none;color:var(--ink)}
.contact:hover{background:#E9EBF3;color:var(--ink)}
.contact span{display:flex;flex-direction:column}
.contact strong{font-size:16px}
.contact small{font-size:15px;color:var(--testo)}

/* Footer */
.site-footer{background:var(--blu-notte);color:var(--blu-cielo);text-align:center}
.site-footer .wrap{padding-top:36px;padding-bottom:36px;display:flex;flex-direction:column;align-items:center;gap:14px}
.site-footer img{width:72px;height:94px;object-fit:contain}
.site-footer .tricolore{height:4px;width:42px}
.site-footer p{font-size:15px;line-height:1.6}
.site-footer strong{color:#fff}
.site-footer a{color:#fff;font-weight:600;min-height:44px;display:inline-flex;align-items:center}

/* Privacy page */
.legal{padding:32px 0 48px}
.legal .wrap{max-width:760px;display:flex;flex-direction:column;gap:26px;color:var(--testo);font-size:16px;line-height:1.6}
.legal h1{font-weight:900;font-size:42px;color:var(--blu)}
.legal .meta{font-size:14px;margin-top:8px}
.legal h2{font-family:var(--body);text-transform:none;font-size:19px;font-weight:700;color:var(--ink);line-height:1.3;margin-bottom:8px}
.legal section p+p{margin-top:8px}
.legal strong{color:var(--ink)}

/* Tablet / desktop */
@media (min-width:720px){
  .hero h1{font-size:88px}
  .hero .ctas{flex-direction:row}
  .hero .ctas .btn{flex:0 1 auto}
  .hero .facts{max-width:520px}
  .courses{grid-template-columns:repeat(3,minmax(0,1fr))}
  .course{border-bottom:0}
  .contacts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px;align-items:start}
  .band .wrap{flex-direction:row;align-items:center;justify-content:space-between}
  .band .wrap > div{max-width:560px;display:flex;flex-direction:column;gap:12px}
  .cf-box{margin-top:0}
}
@media (min-width:960px){
  .nav{display:flex}
  .hero .wrap{padding-top:72px;padding-bottom:80px}
  .hero h1{font-size:112px;max-width:9em}
  .hero-hex{right:-60px;top:20px;width:560px;height:640px}
}
