/* ============================================================
   style-modern.css — Home Test Ammissione
   Layer di rifinitura grafica (Amboss/Lectio-inspired):
   stessa struttura, stessi colori (navy #0e2740/#14365c/#1d5d8c,
   oro #e9a826, cherry #b23b3b), solo tipografia, spaziature,
   hover e micro-animazioni più curate.
   Caricato DOPO style.css: vince per ordine di sorgente.
   ============================================================ */

/* ---------- Reveal-on-scroll generico ---------- */
.mrv-reveal{
  opacity:0;
  transform:translateY(26px);
  transition:opacity .7s ease, transform .8s cubic-bezier(.22,.61,.36,1);
  transition-delay:calc(var(--i,0) * 70ms);
}
.mrv-reveal.mrv-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .mrv-reveal{opacity:1 !important;transform:none !important;transition:none !important}
}
.mrv-count{font-variant-numeric:tabular-nums}

/* ---------- Tipografia globale più sicura di sé ---------- */
#form-header h1.uui-heading-medium-6{
  font-weight:800;
  letter-spacing:-.015em;
  text-wrap:balance;
}
.ta-books-title,.ta-curri h2,.contenttitle,.ctatitle,.uui-heading-medium-35{
  font-weight:800 !important;
  letter-spacing:-.01em;
  text-wrap:balance;
}
.ta-books-sub,.ta-curri .sub,.uui-text-size-large-35{text-wrap:pretty}

/* ---------- Eyebrow/kicker con pallino (coerente con Accademia) ---------- */
.ta-books-eyebrow,.ta-curri-eyebrow,.contentsection .subhead{
  display:inline-flex;
  align-items:center;
  gap:8px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:13px !important;
}
.ta-books-eyebrow::before,.ta-curri-eyebrow::before,.contentsection .subhead::before{
  content:"";
  width:7px;height:7px;border-radius:50%;
  background:#4dd2e1;
  box-shadow:0 0 10px 2px rgba(77,210,225,.55);
  flex:none;
}
.ta-books-head{justify-items:center}
.ta-books-eyebrow{justify-content:center;width:100%}

/* ---------- Hero: video frame più vivo ---------- */
.ta-video-frame{position:relative}
.ta-video-frame::before{
  content:"";
  position:absolute;
  inset:-30px;
  z-index:-1;
  background:radial-gradient(60% 60% at 50% 45%, rgba(29,93,140,.35), transparent 70%);
  filter:blur(6px);
  pointer-events:none;
}
.ta-grad-badge{animation:mrvPulse 2.8s ease-in-out infinite}
@keyframes mrvPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
@media (prefers-reduced-motion:reduce){.ta-grad-badge{animation:none}}

/* ---------- Bottoni: hover più ricco e coerente ---------- */
.button.cherry,.button.primary,.ta-btn-primary,.ta-btn-dark,.ta-btn-ghost{
  transition:transform .18s ease, box-shadow .25s ease, filter .18s ease, background-color .18s ease !important;
}
.button.cherry:hover,.ta-btn-primary:hover{
  transform:translateY(-3px) !important;
  filter:brightness(1.07);
  box-shadow:0 16px 34px -14px rgba(178,59,59,.65);
}
.button.primary:hover{
  transform:translateY(-3px) !important;
  filter:brightness(1.06);
  box-shadow:0 16px 34px -14px rgba(29,93,140,.55);
}
.button.cherry:active,.button.primary:active,.ta-btn-primary:active{transform:translateY(-1px) !important}
a.button:focus-visible,.ta-btn:focus-visible,.ta-tab:focus-visible{
  outline:2px solid #4dd2e1;
  outline-offset:2px;
}

/* ---------- Trust bar / loghi: fade edges + hover colore ---------- */
.logo-carousel{font-size:14px !important;letter-spacing:.05em;text-transform:uppercase;opacity:.92}
.logo-new-item img{
  filter:grayscale(1) opacity(.5);
  transition:filter .3s ease, opacity .3s ease;
}
.logo-track-container:hover .logo-new-item img:hover{
  filter:grayscale(0) opacity(1);
}

/* ---------- Libri: card più "vive" ---------- */
.ta-card-img{transition:transform .5s cubic-bezier(.22,.61,.36,1)}
.ta-card:hover .ta-card-img{transform:scale(1.06)}
.ta-card-cta{transition:transform .22s ease, background-color .22s ease}
.ta-card:hover .ta-card-cta{transform:translateX(3px)}
.ta-tab{transition:transform .18s ease, background-color .2s ease, color .2s ease, border-color .2s ease}
.ta-tab:hover{transform:translateY(-1px)}

/* ---------- Piattaforma: feature list + mock più "premium" ---------- */
.ta-feat-ic{transition:transform .3s cubic-bezier(.34,1.56,.64,1), background-color .25s ease, color .25s ease}
.ta-feat:hover .ta-feat-ic{transform:scale(1.1) rotate(-4deg)}
.ta-feat{transition:background-color .25s ease, box-shadow .3s ease, transform .25s ease}
.ta-mock-app{position:relative}
.ta-mock-app::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:20px;
  padding:1px;
  background:linear-gradient(120deg, rgba(29,93,140,.35), transparent 40%, rgba(233,168,38,.25));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  pointer-events:none;
}

/* ---------- Blocchi contenuto (biblioteca/simulazioni/AI): immagini con profondità ---------- */
.contentimg{border-radius:18px;box-shadow:0 28px 60px -30px rgba(11,32,58,.35)}
.contentcontainerfooter .button{transition:transform .18s ease, box-shadow .25s ease, filter .18s ease}

/* ---------- Curriculum: card per materia invece di icona nuda ---------- */
.ta-subj{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  padding:20px 12px;
  border-radius:16px;
  background:#fff;
  border:1px solid #edf1f6;
  box-shadow:0 12px 30px -22px rgba(11,32,58,.25);
  transition:transform .28s cubic-bezier(.22,.61,.36,1), box-shadow .28s ease, border-color .28s ease;
}
.ta-subj:hover{
  transform:translateY(-5px);
  box-shadow:0 20px 40px -20px rgba(11,32,58,.35);
  border-color:#dbe6f2;
}
.ta-subj-ic{transition:transform .3s cubic-bezier(.34,1.56,.64,1)}
.ta-subj:hover .ta-subj-ic{transform:scale(1.08)}
.ta-subj .nm{font-weight:600}

/* ---------- Bento "Perché Test Ammissione" ---------- */
.ta-bento-grid{display:flex;flex-direction:column;gap:18px;text-align:left;margin-bottom:10px}
.ta-bento-row{display:flex;gap:18px;align-items:stretch}
.ta-bento-card{
  background:#fff;
  border:1px solid #e2e9f2;
  border-radius:20px;
  box-shadow:0 16px 40px -26px rgba(11,32,58,.3);
  position:relative;
  overflow:hidden;
}
.ta-bento-tag{
  font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;
  color:#1d5d8c;margin:0 0 12px;
}
.ta-bento-tag-light{color:#bcd7ec}

/* la sezione bento vive su fondo bianco, non sul gradiente azzurrino della pagina */
.ta-bento-section{background:#fff}
.ta-bento-section::before,.ta-bento-section::after{display:none}

/* feature: piccola card scura con foto */
.ta-bento-feature{
  flex:0 0 34%;
  display:flex;
  flex-direction:column;
  background:#1d5d8c;
  color:#fff;
  border-color:#1d5d8c;
}
.ta-bento-pad{padding:26px 26px 0}
.ta-bento-big{font-size:17px;line-height:1.48;font-weight:700;margin:0;text-wrap:balance}
.ta-bento-img{width:calc(100% - 40px);height:170px;object-fit:cover;border-radius:14px;margin:18px 20px 20px;display:block}

/* testimonianze: card larga bianca con frecce */
.ta-bento-testi{flex:1;padding:32px 34px;display:flex;flex-direction:column}
.ta-bento-testi-quote{font-size:27px;line-height:1.42;color:#14365c;font-weight:800;margin:0 0 20px;flex:1;text-wrap:balance;letter-spacing:-.01em}
.ta-bento-testi-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.ta-bento-testi-who b{display:block;font-size:14.5px;color:#14365c}
.ta-bento-testi-who span{font-size:13px;color:#6b7f9a}
.ta-bento-arrows{display:flex;gap:10px;flex:none}
.ta-bento-arrows button{
  width:38px;height:38px;border-radius:50%;border:1px solid #d7e2ee;background:#fff;
  color:#14365c;display:flex;align-items:center;justify-content:center;cursor:pointer;
  transition:border-color .18s,color .18s,transform .18s;
}
.ta-bento-arrows button:hover{border-color:#1d5d8c;color:#1d5d8c;transform:translateY(-2px)}
.ta-bento-arrows svg{width:17px;height:17px}

/* foto grande con quote overlay */
.ta-bento-photo{flex:1 1 66%;min-height:280px;display:flex}
.ta-bento-photo-img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.ta-bento-photo-overlay{
  position:relative;z-index:1;margin-top:auto;padding:28px 30px;width:100%;
  background:linear-gradient(0deg,rgba(6,16,30,.88) 10%,rgba(6,16,30,.35) 70%,transparent);
}
.ta-bento-bubble{width:26px;height:26px;color:#fff;margin-bottom:14px;opacity:.9}
.ta-bento-photo-overlay p{font-size:19px;line-height:1.5;color:#fff;font-weight:600;margin:0 0 14px;text-wrap:balance}
.ta-bento-quote-who b{display:block;font-size:14px;color:#fff}
.ta-bento-quote-who span{font-size:12.5px;color:#c4d6e8}

/* stat: piccola card scura, tag in alto e numero in basso come nel riferimento */
.ta-bento-stat{flex:0 0 34%;padding:26px 26px;display:flex;flex-direction:column;justify-content:space-between;background:#1d5d8c}
.ta-bento-stat-num{font-size:48px;font-weight:900;color:#fff;line-height:1}
.ta-bento-stat-num span{font-size:22px;font-weight:700;color:#bcd7ec}
.ta-bento-stat-sub{font-size:13.5px;color:#e3ecf5;margin:10px 0 0;font-weight:600;max-width:220px}
.ta-bento-stat-sub-light{color:#e3ecf5}

@media(max-width:900px){
  .ta-bento-row{flex-direction:column}
  .ta-bento-feature,.ta-bento-stat{flex-basis:auto}
  .ta-bento-photo{min-height:320px}
}

/* ---------- Animazioni schede cliniche (iframe scalati) ---------- */
.ta-anim{position:relative;width:100%;aspect-ratio:1140/1000;border-radius:18px;overflow:hidden;background:#eef3f9;box-shadow:0 28px 60px -30px rgba(11,32,58,.35)}
.ta-featstage .ta-anim{border-radius:20px}
/* embed app-section: niente box grigio, il frame è disegnato dentro l'animazione */
.uui-layout51_image-3.ta-anim{background:transparent;box-shadow:none;border-radius:0;overflow:visible}
.ta-anim-if{position:absolute;top:0;left:0;width:1140px;height:1000px;border:0;transform-origin:top left}

/* ---------- App section: badge/rating più curati ---------- */
.uui-section_layout51 .applogos{transition:transform .2s ease, filter .2s ease}
.uui-section_layout51 a[title]:hover .applogos{transform:translateY(-3px);filter:brightness(1.08)}
.ratings_wrapper_bottom{
  display:inline-flex !important;
  align-items:center;
  gap:10px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
}
.uui-layout51_image-3{filter:drop-shadow(0 30px 60px rgba(0,0,0,.35))}

/* ---------- CTA finale: glow morbido dietro il testo ---------- */
.ctasection{position:relative;overflow:hidden}
.ctasection::before{
  content:"";
  position:absolute;
  left:50%;top:50%;
  width:900px;height:420px;
  transform:translate(-50%,-50%);
  background:radial-gradient(closest-side, rgba(29,93,140,.28), transparent 72%);
  pointer-events:none;
}
.ctasection .ctatitlecol{position:relative;z-index:1}

/* ---------- Immagini scorrevoli: hover con profondità ---------- */
.image-card{
  border-radius:14px;
  overflow:hidden;
  transition:transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease;
}
.image-card:hover{
  transform:translateY(-6px) scale(1.015);
  box-shadow:0 24px 50px -26px rgba(11,32,58,.45);
}

/* ---------- Footer: filo superiore con i colori del brand ---------- */
#footer{position:relative}
#footer::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:2px;
  background:linear-gradient(90deg,#1d5d8c,#b23b3b,#e9a826);
  opacity:.55;
}
.footerdropdownlink{transition:color .18s ease, opacity .18s ease}
.footerdropdownlink:hover{opacity:1;color:#fff}


/* ---------- Nav: voce "Funzioni AI" ---------- */
/* mai spezzare su due righe */
.uui-navbar01_menu-dropdown .gradient-text{white-space:nowrap}
/* su schermi stretti dove non c'è spazio, nascondila del tutto */
@media (max-width: 1200px){
  a[href="ai-features.html"].uui-navbar01_menu-dropdown{display:none !important}
}
