/* =========================================================
   SNSI 2026 — sezioni: hero, righe/colonne, blocchi della home,
   scheda corso
   ========================================================= */

/* ---------- hero (unica parte scura insieme al footer) ---------- */
.hero { position: relative; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; color: var(--white); background: var(--black); padding: calc(var(--hdr) + 50px) 0 clamp(40px, 7vw, 72px); }
.hero--home { min-height: min(88svh, 820px); }
.hero--page { min-height: min(72svh, 640px); }
.hero__bg, .hero__bg img, .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__bg img, .hero__img { object-fit: cover; object-position: center 40%; animation: zoom 12s ease-out forwards; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .1) 35%, rgba(0, 0, 0, .55) 70%, rgba(0, 0, 0, .82) 100%); }
.hero__stripe { position: absolute; top: 0; inset-inline-end: clamp(16px, 4vw, 48px); width: 3px; height: 40%; background: linear-gradient(var(--yellow), transparent); opacity: .8; }
@keyframes zoom { from { transform: scale(1.05); } to { transform: scale(1); } }
.hero__inner { position: relative; width: 100%; }
.hero__badge { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1rem; font-family: var(--ff-h); font-size: .9rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); }
.hero__badge::before { content: ""; width: 28px; height: 2px; background: var(--yellow); }
.hero__logo { max-height: 72px; width: auto; margin-bottom: 1rem; }
.hero__title { font-family: var(--ff-h); font-weight: 700; text-transform: uppercase; line-height: .92; color: var(--white); font-size: clamp(2.7rem, 8.5vw, 6rem); max-width: 17ch; margin-bottom: 1.6rem; text-wrap: balance; }
.hero--page .hero__title { font-size: clamp(2.6rem, 7.5vw, 5.2rem); }
.hero__accent { display: block; color: var(--yellow); }
.hero__text { max-width: 46ch; color: rgba(255, 255, 255, .85); font-size: 1.1rem; margin: -.6rem 0 1.8rem; }
.hero__text a { color: var(--yellow); }
.hero__text p + p { margin-top: .6em; }
.hero__actions, .hero .btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 0; }
.hero .crumbs { margin-bottom: 1.2rem; }
.tag { display: inline-block; padding: .35rem .7rem; margin-bottom: .9rem; background: var(--blue); color: var(--white); font-family: var(--ff-h); font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
/* hero con immagine del prodotto (es. i brevetti) a destra, su fondo scuro */
.hero--figure { align-items: center; background: radial-gradient(ellipse 60% 70% at 72% 50%, #1d2b3b 0%, #0d1218 55%, var(--black) 100%); }
.hero--figure::after { display: none; }
.hero__grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero__figure { display: block; width: 100%; max-width: 640px; height: auto; justify-self: center; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)); }
.hero--figure .hero__title { font-size: clamp(2.4rem, 6vw, 4.6rem); }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1fr 1.15fr; } }
html:is([lang="ja"], [lang="ko"], [lang^="zh"], [lang="ar"], [lang="fa"]) :is(.hero__title, .tag, .hero__badge) { letter-spacing: var(--track); line-height: 1.2; }
@media (prefers-reduced-motion: reduce) { .hero__bg img, .hero__img { animation: none; } }

/* ---------- sezioni ---------- */
.sec { position: relative; padding: clamp(56px, 8vw, 104px) 0; }
/* scheda corso: il testo "The course" parte vicino alla foto (metà dello spazio normale) */
.hero--course + .sec { padding-top: clamp(28px, 4vw, 52px); }
.sec--light { background: var(--white); }
.sec--tint, .sec--off { background: var(--off); }
.sec--blue { background: var(--blue-soft); }
.sec--light + .sec--light, .sec--tint + .sec--tint { padding-top: 0; }
.sec--dark, .sec--image { background: var(--black); color: rgba(255, 255, 255, .78); }
.sec--dark .prose, .sec--image .prose { color: rgba(255, 255, 255, .78); }
.sec--dark :is(.prose h2, .prose h3, .prose h4, .prose h5, .prose strong, .h2), .sec--image :is(.prose h2, .prose h3, .prose h4, .prose strong) { color: var(--white); }
.sec--dark .prose a { color: var(--yellow); }
.sec--dark .eyebrow { color: rgba(255, 255, 255, .7); }
.sec__banner { margin: 0 0 clamp(28px, 4vw, 48px); background: var(--black); }
.sec__banner img { width: 100%; max-height: 460px; object-fit: cover; }
.sec__inner > .row + .row { margin-top: clamp(28px, 4vw, 48px); }
.sec-head { margin-bottom: clamp(24px, 4vw, 44px); max-width: 780px; }
.sec-head--center { text-align: center; margin-inline: auto; }
.sec-head--center .label { justify-content: center; }
.sec-head .lead { margin-top: 1rem; }
.sec-head--center .lead { margin-inline: auto; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }

/* griglia a 60 colonne per rispettare le proporzioni delle colonne originali */
.row { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
.col { min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.col > .eyebrow + .prose { margin-top: -.3rem; }
.row--media { align-items: center; }
.row--cards { row-gap: 0; }
.row--cards .col { gap: 0; }
.row--nested { margin-top: .5rem; }
.row--stores { display: flex; flex-wrap: wrap; gap: .5rem; }
.row--stores .col { flex-direction: row; flex-wrap: wrap; }
@media (min-width: 700px) {
  .row { grid-template-columns: repeat(60, minmax(0, 1fr)); margin-inline: -16px; align-items: start; }
  .col { grid-column: span 60; padding-inline: 16px; }
  .row--cards { margin-inline: 0; gap: 0; }
  .row--cards .col { padding-inline: 0; }
  .row--cards .col + .col .card { border-inline-start: 0; }
  .row--stores { margin-inline: 0; }
  .col-1-2, .col-1-4, .col-1-3, .col-2-3, .col-1-5, .col-2-5, .col-3-5, .col-1-6, .col-3-4 { grid-column: span 30; }
  .row--3 .col-1-3, .row--3 .col-1-4 { grid-column: span 20; }
  .row--2 .col-1-3 { grid-column: span 22; } .row--2 .col-2-3 { grid-column: span 38; }
  .row--2 .col-1-4 { grid-column: span 20; } .row--2 .col-3-4 { grid-column: span 40; }
}
@media (min-width: 1080px) {
  .col-1-2 { grid-column: span 30; } .col-1-3 { grid-column: span 20; } .col-2-3 { grid-column: span 40; }
  .col-1-4 { grid-column: span 15; } .col-3-4 { grid-column: span 45; } .col-1-5 { grid-column: span 12; }
  .col-2-5 { grid-column: span 24; } .col-3-5 { grid-column: span 36; } .col-1-6 { grid-column: span 10; }
  .row--2 .col-1-3 { grid-column: span 20; } .row--2 .col-2-3 { grid-column: span 40; }
  .row--2 .col-1-4 { grid-column: span 15; } .row--2 .col-3-4 { grid-column: span 45; }
  .row--3 .col-1-4 { grid-column: span 15; }
  .row--media.row--media-left .col:last-child, .row--media.row--media-right .col:first-child { padding-inline: clamp(16px, 3vw, 48px); }
}

/* ---------- home: categorie (tessere bianche) ---------- */
.cats { background: var(--off); border-bottom: 1px solid var(--line); }
.cats__head { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 1.5rem; }
.cats__grid { display: grid; grid-template-columns: 1fr 1fr; max-width: 1600px; margin-inline: auto; }
.cat { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.6rem 1.25rem 1.4rem; background: var(--white); border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.cat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--c, var(--blue)); }
.cat:hover { background: var(--off); }
.cat--pro { --c: var(--yellow); }
.cat--tek { --c: var(--grey); }
.cat--free { --c: var(--blue-light); }
.cat__kicker { font-family: var(--ff-h); font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.cat__name { font-family: var(--ff-h); font-size: 1.5rem; font-weight: 700; line-height: 1; text-transform: uppercase; color: var(--ink); }
.cat__go { margin-top: .6rem; font-family: var(--ff-h); font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.cat--pro .cat__go { color: var(--yellow-d); }
@media (min-width: 900px) { .cats__grid { grid-template-columns: repeat(4, 1fr); } .cat { padding: 2rem 2rem 1.8rem; } .cat__name { font-size: 1.9rem; } }

/* ---------- blocchi foto + testo ---------- */
.split { display: grid; }
.split__img { position: relative; min-height: 62vw; overflow: hidden; background: var(--off); }
.split__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__wm { position: absolute; inset-inline-end: -.04em; bottom: -.18em; font-family: var(--ff-h); font-weight: 700; font-size: clamp(6rem, 18vw, 13rem); line-height: 1; color: rgba(255, 255, 255, .22); pointer-events: none; }
.split__tag { position: absolute; inset-inline-start: 1.25rem; bottom: 1.25rem; padding: .4rem .75rem; font-family: var(--ff-h); font-size: .82rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; background: var(--blue); color: var(--white); }
.split__tag--yellow { background: var(--yellow); color: var(--black); }
.split__text { padding: clamp(40px, 6vw, 80px) var(--pad); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.1rem; }
.split__text .label { margin-bottom: 0; }
.split--off .split__text { background: var(--off); }
@media (min-width: 820px) {
  .split { grid-template-columns: 1fr 1fr; min-height: 620px; }
  .split__img { min-height: 0; }
  .split--rev .split__img { order: 2; }
}

/* ---------- ecosistema (4 riquadri numerati) ---------- */
.eco { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); margin-top: 2rem; }
.eco__card { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.75rem; background: var(--white); border-bottom: 1px solid var(--line); transition: background .3s; }
.eco__card:last-child { border-bottom: 0; }
.eco__card::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; width: 4px; height: 0; background: var(--c, var(--blue)); transition: height .35s var(--ease); }
.eco__card:hover { background: var(--off); }
.eco__card:hover::before { height: 100%; }
.eco__card:nth-child(even) { --c: var(--yellow); }
.eco__top { display: flex; align-items: center; min-height: 128px; margin-bottom: .5rem; }
.eco__icon { width: 128px; height: 128px; border-radius: 28px; }
.eco__icon--wide { width: 100%; height: auto; max-height: 128px; object-fit: contain; object-position: left center; border-radius: 0; }
.eco__title { font-family: var(--ff-h); font-size: 1.4rem; font-weight: 700; text-transform: uppercase; color: var(--ink); line-height: 1.05; }
.eco__text { color: var(--muted); font-size: 1rem; flex: 1; }
.eco__card .get-app { margin-top: .4rem; }
@media (min-width: 1000px) { .eco__card .stores { flex-direction: column; } }
@media (min-width: 700px) { .eco { grid-template-columns: 1fr 1fr; } .eco__card { border-inline-end: 1px solid var(--line); } }
@media (min-width: 1080px) { .eco { grid-template-columns: repeat(4, 1fr); } .eco__card { border-bottom: 0; } .eco__card:last-child { border-inline-end: 0; } }

/* ---------- trova un dive center (azzurro puntinato) ---------- */
.find { position: relative; text-align: center; overflow: hidden; background: var(--blue-soft); }
.find::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(0, 119, 200, .16) 1.2px, transparent 1.2px); background-size: 24px 24px; }
.find__in { position: relative; max-width: 680px; margin: 0 auto; }
.find .label { justify-content: center; }
.find__form { display: flex; margin: 2rem auto 0; max-width: 540px; background: var(--white); border: 2px solid var(--ink); text-align: start; }
.find__form select { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 1rem; min-height: 54px; outline: none; }
.find__form .btn { min-height: 54px; border: 0; }
.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(1.5rem, 6vw, 3.5rem); margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(0, 119, 200, .2); }
.stat__n { font-family: var(--ff-h); font-size: 2.8rem; font-weight: 700; line-height: 1; color: var(--blue); }
.stat__l { font-family: var(--ff-h); font-size: .85rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.find__links { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; margin-top: 1.8rem; }

/* ---------- perché SNSI (elenco numerato) ---------- */
.why { border-top: 1px solid var(--line); margin-top: 2rem; }
.why__item { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.why__n { font-family: var(--ff-h); font-size: 1rem; font-weight: 700; color: var(--yellow-d); letter-spacing: .1em; padding-top: .15rem; }
.why__t { font-family: var(--ff-h); font-size: 1.35rem; font-weight: 700; text-transform: uppercase; color: var(--ink); margin-bottom: .3rem; line-height: 1.1; }
.why__d { color: var(--ink-2); max-width: 70ch; }
.why__d a { color: var(--blue); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) { .why-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; } .why { margin-top: 0; } }

/* ---------- bande colorate (Pay per Use gialla, invito blu) ---------- */
.band { position: relative; overflow: hidden; }
.band::after { content: attr(data-wm); position: absolute; inset-inline-end: -.04em; bottom: -.22em; font-family: var(--ff-h); font-weight: 700; font-size: clamp(6rem, 20vw, 13rem); line-height: 1; pointer-events: none; }
.band__in { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1.4rem; }
.band__in p { max-width: 44ch; }
.band--yellow { background: var(--yellow); }
.band--yellow::after { color: rgba(0, 0, 0, .06); }
.band--yellow .label { color: rgba(0, 0, 0, .6); }
.band--yellow .label::before { background: var(--black); }
.band--yellow p { color: rgba(0, 0, 0, .78); }
.band--blue { background: var(--blue); color: var(--white); }
.band--blue::after { color: rgba(255, 255, 255, .08); }
.band--blue .h2 { color: var(--white); }
.band--blue .label { color: rgba(255, 255, 255, .75); }
.band--blue p { color: rgba(255, 255, 255, .85); }
@media (min-width: 900px) { .band__in { flex-direction: row; align-items: center; justify-content: space-between; gap: 3rem; } .band__in > :first-child { flex: 1 1 55%; } }

/* ---------- galleria community ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 2rem; }
.gallery figure { position: relative; overflow: hidden; aspect-ratio: 1; }
.gallery figure:first-child { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery figure:first-child { aspect-ratio: auto; grid-row: span 2; grid-column: span 1; } }
/* mosaico con più foto (sezione Family): 1 grande, 2 piccole, poi riquadri larghi */
@media (min-width: 900px) {
  .gallery--many { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; }
  .gallery--many figure, .gallery--many figure:first-child { aspect-ratio: auto; }
  .gallery--many figure:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery--many figure:nth-child(4), .gallery--many figure:nth-child(n+7) { grid-column: span 2; }
}
.gallery__logo { width: min(240px, 60vw); height: auto; }
@media (min-width: 900px) { .head-row:has(.gallery__logo) { flex-wrap: nowrap; align-items: center; } .gallery__logo { width: 300px; flex: none; } }

/* ---------- app (MediaHub, MySNSI) ---------- */
.app-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.app { display: flex; flex-direction: column; gap: 1rem; padding: clamp(22px, 3vw, 32px); background: var(--white); }
.app__top { display: flex; align-items: center; gap: 1rem; }
.app__icon { width: 72px; height: 72px; border-radius: 16px; }
.app__title { font-size: 1.6rem; text-transform: uppercase; }
.app__text { color: var(--muted); flex: 1; }
.app .store-row { margin-top: 0; }
@media (min-width: 700px) { .app-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- promo (foto e riquadro nero) ---------- */
.promo-grid { display: grid; gap: 1px; background: var(--line); }
.promo { position: relative; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; min-height: 360px; background: var(--black); color: var(--white); }
.promo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.promo:hover .promo__img { transform: scale(1.04); }
.promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, 0) 100%); }
.promo--dark { background: var(--yellow); color: var(--black); }
.promo--dark::before { display: none; }
.promo__body { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; padding: clamp(22px, 3vw, 36px); }
.promo__title { font-family: var(--ff-h); font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; line-height: .98; text-transform: uppercase; }
.promo .eyebrow { color: rgba(255, 255, 255, .8); }
.promo--dark .eyebrow { color: rgba(0, 0, 0, .6); }
.promo--dark .eyebrow::before { background: var(--black); }
@media (min-width: 700px) { .promo-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- link rapidi ---------- */
.quick-links { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.qlink { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; background: var(--white); transition: background .2s; }
.qlink:hover { background: var(--off); }
.qlink__icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.qlink__label { flex: 1; font-family: var(--ff-h); font-size: 1.15rem; font-weight: 700; line-height: 1.15; text-transform: uppercase; color: var(--ink); }
.qlink__go { color: var(--blue); transition: transform .2s; }
.qlink:hover .qlink__go { transform: translateX(4px); }
@media (min-width: 700px) { .quick-links { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .quick-links { grid-template-columns: repeat(4, 1fr); } .qlink { flex-direction: column; align-items: flex-start; min-height: 170px; } .qlink__go { margin-top: auto; } }

/* =========================================================
   Scheda corso
   ========================================================= */
/* dati chiave del corso (età, prerequisiti, profondità…) in cima a "What's included": riquadri in riga */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 2rem 0 0; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } } /* --cols: riquadri normali (max 4) */
/* numero dispari su telefono: l'ultimo riquadro prende tutta la riga */
@media (max-width: 699px) { .fact:last-child:nth-child(odd) { grid-column: span 2; } }
.fact--wide { grid-column: 1 / -1; }
.fact { padding: 1rem 1.2rem; background: var(--white); border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact__k { font-family: var(--ff-h); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fact__v { margin: .2rem 0 0; font-family: var(--ff-h); font-size: 1.25rem; font-weight: 700; line-height: 1.2; color: var(--ink); }
.fact__v--hi { color: var(--blue); }
/* dati lunghi (prerequisiti con più combinazioni): blocco sotto i riquadri */
.facts__long { margin-top: 2rem; }
.reqs__grid { display: grid; gap: 2rem; }
.req { scroll-margin-top: calc(var(--hdr) + 90px); }
.req__lead { font-size: 1rem; color: var(--muted); margin: .2rem 0 1rem; }
.req__opts { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.req__opt { display: flex; align-items: flex-start; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-inline-start: 4px solid var(--blue); padding: 1rem 1.2rem; }
.req__n { flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; background: var(--blue); color: var(--white); font-family: var(--ff-h); font-weight: 700; }
.req__t { font-size: 1.05rem; line-height: 1.45; color: var(--ink); }
.req__or { font-family: var(--ff-h); font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-inline-start: 1.6rem; }
.req__text { font-size: 1.1rem; line-height: 1.5; color: var(--ink); max-width: 70ch; }
.req__text--hi { color: var(--blue); font-weight: 700; font-family: var(--ff-h); font-size: 1.25rem; }
@media (min-width: 900px) {
  .req__opts { display: flex; gap: 0; align-items: stretch; }
  .req__opt { flex: 1 1 0; }
  .req__or { align-self: center; padding: 0 .9rem; }
  .req__opt { flex-direction: column; gap: .8rem; }
}
.desc { display: grid; gap: 2.5rem; }
.desc .prose { font-size: 1.1rem; }
.unique { margin-top: 1.8rem; padding: 1.2rem 1.4rem; background: var(--yellow-soft); border-inline-start: 4px solid var(--yellow); }
.unique__l { font-family: var(--ff-h); font-size: .82rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow-d); margin-bottom: .3rem; }
.unique strong { color: var(--ink); }
.ccard { align-self: start; padding: 1.75rem; background: var(--off); border: 1px solid var(--line); }
.ccard img { display: block; width: 100%; border-radius: 12px; }
/* tessera dritta come una carta vera: ombra sollevata, un riflesso di luce quando appare, inclinazione 3D col mouse (data-tilt) */
.ccard__card { position: relative; display: block; max-width: 360px; margin: 0 auto 1.2rem; border-radius: 12px; overflow: hidden; box-shadow: 0 28px 44px -24px rgba(0, 0, 0, .55), 0 6px 14px -8px rgba(0, 0, 0, .25); transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s var(--ease), box-shadow .25s; }
.ccard__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%); transform: translateX(-130%); pointer-events: none; }
.ccard.is-in .ccard__card::after { animation: ccard-shine 1.3s .5s var(--ease) both; }
.ccard__pair figure:nth-child(2) .ccard__card::after { animation-delay: .8s; }
.ccard__card.is-tilting { transition: transform .08s linear; box-shadow: 0 34px 50px -24px rgba(0, 0, 0, .6), 0 8px 18px -8px rgba(0, 0, 0, .3); }
@keyframes ccard-shine { to { transform: translateX(130%); } }
@media (prefers-reduced-motion: reduce) { .ccard__card { transform: none; } .ccard.is-in .ccard__card::after { animation: none; } }
.ccard p { font-size: .98rem; color: var(--muted); }
.ccard__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.2rem; }
.ccard__pair figure { margin: 0; text-align: center; }
.ccard__pair .ccard__card { margin-bottom: .6rem; }
.ccard__pair figcaption { font-family: var(--ff-h); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
@media (min-width: 900px) { .desc { grid-template-columns: 1.5fr 1fr; gap: 4rem; } }

.sessions { display: grid; gap: 1px; margin-top: 2rem; background: var(--line); border: 1px solid var(--line); }
.session { display: grid; grid-template-columns: 52px 1fr auto; gap: 1.1rem; align-items: center; padding: 1.4rem; background: var(--white); }
.session__ic { width: 52px; height: 52px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.session__ic .icon { width: 26px; height: 26px; }
.session__ic--y { background: var(--yellow-soft); color: var(--yellow-d); }
.session__name { font-family: var(--ff-h); font-size: 1.25rem; font-weight: 700; line-height: 1.1; text-transform: uppercase; color: var(--ink); }
.session__d { font-size: .98rem; color: var(--muted); }
.session__n { text-align: center; font-family: var(--ff-h); font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--blue); }
.session__nl { text-align: center; font-family: var(--ff-h); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); max-width: 9em; }
@media (min-width: 900px) {
  .sessions { grid-template-columns: 1fr 1fr; }
  .session:last-child:nth-child(odd) { grid-column: 1 / -1; } /* voci dispari: l'ultima prende tutta la riga, niente buco */
}

/* Materiali del corso (manuali e app): su computer tutti i riquadri sulla stessa riga (--cols dal template, max 4),
   uguali fra loro: immagine in alto della stessa forma, testo, e in fondo link o badge allineati */
.res { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 601px) { .res { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .res { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } }
.res__card { container-type: inline-size; display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); }
.res__cover { display: block; width: 100%; padding: 0; box-shadow: 0 14px 26px -16px rgba(0, 0, 0, .5); transition: transform .3s var(--ease); }
.res__cover:hover { transform: translateY(-3px); }
.res__cover img { display: block; width: 100%; height: auto; }
/* icona dell'app su un fondo con la stessa forma delle copertine */
.res__media { display: grid; place-items: center; aspect-ratio: 800 / 563; background: var(--off); }
.res__icon { width: 46%; height: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 14px 26px -16px rgba(0, 0, 0, .5); }
.res__ed { font-family: var(--ff-h); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: .3rem; }
.res__t { font-family: var(--ff-h); font-size: 1.3rem; font-weight: 700; line-height: 1.1; text-transform: uppercase; color: var(--ink); margin-bottom: .35rem; }
.res__d { font-size: .98rem; color: var(--muted); }
.res__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.2rem; margin-top: auto; }
.res__links .link { padding: 0; white-space: nowrap; }
.res__card > .get-app { margin-top: auto; flex-wrap: nowrap; align-items: center; justify-content: space-between; }
.res__card > .get-app .stores { flex-direction: column; gap: 8px; }
/* badge uno sopra l'altro: stessa larghezza (proporzioni originali) */
.res__card .store img { width: 132px; height: auto; }
.res__card .qr img { width: 84px; height: 84px; }
.res__card .qr__cap { max-width: 84px; }
/* riquadro stretto (4 sulla riga): badge e QR uno sotto l'altro, al centro */
@container (max-width: 250px) {
  .res__card > .get-app { flex-direction: column; gap: .9rem; }
  .res__card > .get-app .stores { align-items: center; }
  .res__links { flex-wrap: nowrap; gap: .5rem; }
  .res__links .link { font-size: .8rem; letter-spacing: .1em; }
}
/* telefono come prima: copertina sopra il testo, link vicini a sinistra; icona dell'app a sinistra con i badge uno sotto l'altro */
@media (max-width: 600px) {
  .res__cover { max-width: 360px; }
  .res__links { justify-content: flex-start; }
  .res__card:has(.res__media) { display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; row-gap: .9rem; align-items: start; }
  .res__media { display: contents; }
  .res__icon { grid-row: span 2; width: clamp(84px, 32cqi, 180px); box-shadow: none; }
  .res__card > .get-app { margin-top: 0; justify-content: flex-start; }
  .res__card > .get-app .stores { align-items: flex-start; gap: 12px; }
  .res__card .store img { width: 144px; }
}


.videos { display: grid; gap: 12px; margin-top: 2rem; }
@media (min-width: 700px) { .videos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .videos { grid-template-columns: repeat(3, 1fr); } }

.next { display: grid; gap: 1px; margin-top: 2rem; background: var(--line); border: 1px solid var(--line); }
.next__card { display: flex; flex-direction: column; gap: .5rem; padding: 1.6rem; background: var(--white); transition: background .3s; }
.next__card:hover { background: var(--off); }
.next__card img { align-self: flex-start; width: 100%; max-width: 420px; height: auto; object-fit: contain; margin-bottom: .6rem; }
.next__t { font-family: var(--ff-h); font-size: 1.3rem; font-weight: 700; line-height: 1.1; text-transform: uppercase; color: var(--ink); }
.next__d { color: var(--muted); font-size: .98rem; flex: 1; }
.next__fan { position: relative; display: block; width: 100%; max-width: 420px; padding-top: 16%; padding-inline-end: 28%; margin-bottom: .6rem; }
.next__card .next__fan img { display: block; width: 100%; max-width: none; margin: 0; }
.next__card .next__fan .next__back { position: absolute; top: 0; inset-inline-end: 0; width: 72%; transform: rotate(6deg); transform-origin: 0 100%; transition: transform .35s; }
.next__card .next__fan .next__front { position: relative; }
.next__card:hover .next__back { transform: rotate(10deg) translate(4%, -3%); }
.next__tag { align-self: flex-start; font-family: var(--ff-h); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); background: var(--off); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem; }
/* telefono: con 3 o più corsi le card scorrono in orizzontale; si vede un pezzo della successiva e i pallini sotto */
.next__dots { display: none; }
@media (max-width: 699px) {
  .next.next--scroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scroll-padding-inline: var(--pad); border: 0 !important; scrollbar-width: none; }
  .next--scroll::-webkit-scrollbar { display: none; }
  .next--scroll .next__card { flex: 0 0 80%; scroll-snap-align: start; border: 1px solid var(--line) !important; }
  .js .next--scroll .reveal { opacity: 1; transform: none; }
  .next__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 1.1rem; }
  .next__dots button { width: 8px; height: 8px; padding: 0; border-radius: 4px; background: var(--line); transition: width .25s, background .25s; }
  .next__dots button.is-on { width: 22px; background: var(--blue); }
}
@media (min-width: 700px) { .next { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .next { grid-template-columns: repeat(3, 1fr); } }
.next--4 { }
@media (min-width: 1200px) { .next--4 { grid-template-columns: repeat(4, 1fr); } }

/* griglie con bordi sottili: niente riquadri grigi quando l'ultima riga non è piena */
.next, .sessions { gap: 0; background: none; border: 0; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.next__card, .session { border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* titoli dell'hero più contenuti nelle lingue CJK (caratteri pieni, niente maiuscolo condensato) */
html:is([lang="ja"], [lang="ko"], [lang^="zh"]) .hero__title { font-size: clamp(2.1rem, 5.6vw, 4rem); max-width: 14em; }
html:is([lang="ja"], [lang="ko"], [lang^="zh"]) .h2 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); }

/* hero: pulsanti degli store e immagini verticali (es. schermate di un'app) */
.hero__stores { margin-top: 1rem; }
.hero__stores .qr__cap { color: rgba(255, 255, 255, .8); }
.hero__figure { max-height: min(62vh, 560px); width: auto; max-width: 100%; }

/* schermate di un'app */
.screens { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); margin-top: 2rem; }
.screen { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.screen img { width: auto; max-width: 100%; max-height: 520px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .15)); }
.screen__t { display: block; font-family: var(--ff-h); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.screen__d { display: block; color: var(--muted, #5b6470); margin-top: .35rem; max-width: 32ch; }
@media (min-width: 760px) { .screens { grid-template-columns: repeat(3, 1fr); } }

/* recapiti (uffici SNSI) */
.contacts { display: grid; gap: 1px; margin-top: 2rem; background: var(--line, #e3e3e0); border: 1px solid var(--line, #e3e3e0); }
.contact { display: flex; flex-direction: column; gap: .45rem; padding: 1.6rem 1.5rem; background: var(--white); border-top: 3px solid var(--yellow); }
.contact__t { font-family: var(--ff-h); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: .3rem; }
.contact__l { color: var(--blue, #0a6fcf); text-decoration: none; overflow-wrap: anywhere; }
.contact__l:hover { text-decoration: underline; }
@media (min-width: 640px) { .contacts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .contacts { grid-template-columns: repeat(4, 1fr); } }

/* mappa del sito */
.sitemap { columns: 1; column-gap: 3rem; list-style: none; padding: 0; }
.sitemap > li { break-inside: avoid; margin-bottom: 1.1rem; }
.sitemap > li > a { font-family: var(--ff-h); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 1.05rem; }
.sitemap ul { list-style: none; padding: .35rem 0 0; margin: 0; }
.sitemap ul li { padding: .15rem 0; }
.sitemap a { color: var(--ink, #111); text-decoration: none; }
.sitemap a:hover { color: var(--blue); text-decoration: underline; }
@media (min-width: 760px) { .sitemap { columns: 2; } }
@media (min-width: 1100px) { .sitemap { columns: 3; } }

/* Certificati nell'elenco "why" (es. Riconoscimenti: norme ISO) */
.why__item--cert { grid-template-columns: 3rem 1fr auto; align-items: center; }
.why__cert { position: relative; width: 84px; aspect-ratio: 3 / 4; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .08); cursor: zoom-in; transition: transform .2s ease, box-shadow .2s ease; }
.why__cert img, .why__cert picture { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.why__cert:hover, .why__cert:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .16); }
.why__cert-zoom { position: absolute; inset-inline-end: 4px; bottom: 4px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--black); }
@media (max-width: 599px) { .why__cert { width: 64px; } }
.why__logo { margin-top: 1.6rem; max-width: 240px; }
.why__logo img { display: block; width: 100%; height: auto; }
.band__logos { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-top: 2.6rem; }
.band__logo { height: 130px; display: grid; place-items: center; padding: 1rem 1.2rem; background: #fff; border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.band__logo img, .band__logo picture { display: block; max-width: min(100%, 280px); max-height: 86px; width: auto; height: auto; object-fit: contain; }

/* Leggibilità del testo sulle foto: la foto resta luminosa, si scurisce (con un blu mare) solo il lato del testo
  ; una fascia leggera in alto per il menu e un'ombra morbida sulle scritte */
.hero:not(.hero--figure) { --veil: 5, 22, 38; }
.hero:not(.hero--figure)::after { background:
  linear-gradient(90deg, rgba(var(--veil), .7) 0%, rgba(var(--veil), .5) 32%, rgba(var(--veil), .12) 58%, rgba(var(--veil), 0) 72%),
  linear-gradient(180deg, rgba(var(--veil), .35) 0%, rgba(var(--veil), 0) 20%, rgba(var(--veil), 0) 70%, rgba(var(--veil), .3) 100%); }
[dir="rtl"] .hero:not(.hero--figure)::after { background:
  linear-gradient(270deg, rgba(var(--veil), .7) 0%, rgba(var(--veil), .5) 32%, rgba(var(--veil), .12) 58%, rgba(var(--veil), 0) 72%),
  linear-gradient(180deg, rgba(var(--veil), .35) 0%, rgba(var(--veil), 0) 20%, rgba(var(--veil), 0) 70%, rgba(var(--veil), .3) 100%); }
.hero:not(.hero--figure) :is(.hero__title, .hero__text, .hero__badge, .crumbs) { text-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 2px 20px rgba(0, 0, 0, .45); }
.hero:not(.hero--figure) .hero__text { color: #fff; }
/* su telefono il testo occupa tutta la larghezza: velo dal basso su tutta l'immagine */
@media (max-width: 700px) {
  .hero:not(.hero--figure)::after, [dir="rtl"] .hero:not(.hero--figure)::after { background:
    linear-gradient(180deg, rgba(var(--veil), .5) 0%, rgba(var(--veil), .35) 25%, rgba(var(--veil), .55) 50%, rgba(var(--veil), .85) 100%); }
  .hero:not(.hero--figure) :is(.hero__text, .hero__badge, .crumbs) { text-shadow: 0 1px 3px rgba(0, 0, 0, .8), 0 2px 16px rgba(0, 0, 0, .6); }
  .hero { padding-top: calc(var(--hdr) + 20px); }
}

/* sezione Family: testo e firma DiveUpYourLife */
.gallery__text { max-width: 60ch; margin-top: 1rem; color: var(--ink-2); font-size: 1.08rem; }
.gallery__text p + p { margin-top: .7em; }
.slogan { display: block; width: min(320px, 80%); height: auto; margin-top: 1.4rem; }
