/* =========================================================
   RUNLAB - MAIN CSS
   Versione ripulita, ordinata e commentata
   ========================================================= */

/* =========================================================
   1. Variabili globali
   ========================================================= */
:root{
  --bg-top: #0d1424;
  --bg-bottom: #05070d;
  --bg: #08101c;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --line: rgba(255,255,255,.12);

  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.09);

  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --radius: 18px;

  --brand: #7c5cff;
  --brand2: #36d1dc;
  --accent: #7EB6FF;

  --max-width: 1120px;

  --header-bg: rgba(8,12,24,.35);
  --header-bg-shrink: rgba(8,12,24,.85);
}

/* =========================================================
   2. Reset / Base
   ========================================================= */
*{
  box-sizing: border-box;
}

html,
body{
  min-height: 100%;
  min-height: 100dvh;
}

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 45%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Su mobile Safari, background-attachment:fixed causa spazio bianco
   quando la barra URL si nasconde — lo disabilitiamo */
@media (max-width: 900px){
  body{
    background-attachment: scroll;
    background: var(--bg);
  }
}

#page-wrapper{
  min-height: 100%;
  min-height: 100dvh;
  background: transparent;
}

a{
  color: inherit;
  text-decoration: none;
}

img{
  display: block;
  max-width: 100%;
}

.wrap{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 18px;
}

/* =========================================================
   3. Utility / Card / Testi
   ========================================================= */
.card{
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
}

.soft{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel2), rgba(255,255,255,.03));
}

.muted{
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.6;
}

.pad{
  padding: 18px;
}

.pad h3{
  margin: 0 0 10px;
}

/* =========================================================
   4. Header
   ========================================================= */
#header{
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 18px 0;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.10);
  transition:
    padding .35s ease,
    background .35s ease,
    box-shadow .35s ease,
    backdrop-filter .35s ease;
}

#header.shrink{
  padding: 6px 0;
  background: var(--header-bg-shrink);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}

.topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0;
}

/* Logo */
.logoImg{
  width: 220px;
  height: auto;
  transition: width .35s ease;
}

#header.shrink .logoImg{
  width: 140px;
}

/* =========================================================
   5. Navigazione desktop
   ========================================================= */
nav#nav ul{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav#nav a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .2px;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

nav#nav a:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-color: rgba(255,255,255,.10);
}

nav#nav li.current a{
  background: rgba(255,255,255,.08);
  color: var(--text);
  border-color: rgba(255,255,255,.14);
}

nav#nav img{
  width: 20px;
  height: 20px;
  filter: invert(1) brightness(2);
}

/* =========================================================
   6. Hamburger + menu mobile
   ========================================================= */
.hamb{
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  cursor: pointer;
}

.hamb span{
  display: block;
  width: 18px;
  height: 2px;
  margin: 6px auto;
  border-radius: 2px;
  background: rgba(255,255,255,.84);
}

.mobileMenu{
  display: none;
  padding: 0 0 14px;
}

.mobileMenu.show{
  display: block;
}

.mobileMenu .panel{
  padding: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(11,15,25,.62);
}

.mobileMenu a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 850;
}

.mobileMenu a:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
}

.mobileMenu img{
  width: 20px;
  height: 20px;
  filter: invert(1) brightness(2);
}

/* =========================================================
   7. Sezioni generiche
   ========================================================= */
section{
  padding: 26px 0;
}

.sectionHead{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.sectionHead h2{
  margin: 0;
  font-size: 24px;
  letter-spacing: -.3px;
}

.sectionHead p{
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

/* =========================================================
   8. Hero homepage
   ========================================================= */
.hero{
  padding: 34px 0 10px;
}

.heroBox{
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 18px;
  padding: 22px;
  overflow: hidden;
}

.heroBox::before{
  content: "";
  position: absolute;
  inset: -130px -130px auto auto;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(124,92,255,.26), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
}

.kicker{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.kicker span{
  display: inline-block;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, #6C63FF, #3EC6FF);
}

.heroText h1{
  margin: 0 0 10px;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.02;
  letter-spacing: -.7px;
}

.heroText p{
  margin: 0 0 10px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.6;
}

.heroActions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.heroImage{
  display: grid;
  place-items: center;
  padding: 14px;
}

.triangolo-anim{
  width: min(420px, 100%);
  height: auto;
  transform-origin: center;
  animation: floaty 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.45));
}

@keyframes floaty{
  0%,100%{ transform: translateY(0) rotate(0deg); }
  50%{ transform: translateY(-10px) rotate(1deg); }
}

/* =========================================================
   9. Bottoni
   ========================================================= */
.btn{
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  transition: background .25s ease, filter .25s ease, transform .25s ease;
}

.btn:hover{
  background: rgba(255,255,255,.10);
}

.btn.primary{
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 14px 40px rgba(124,92,255,.28);
}

.btn.primary:hover{
  filter: brightness(1.03);
}

/* =========================================================
   10. Sezione "Chi sono"
   ========================================================= */
.chiSono{
  display: grid;
  grid-template-columns: 0.5fr 1.5fr; /* era .9fr 1.1fr */
  align-items: stretch;
  gap: 16px;
  padding: 22px;
}

.photoBox{
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
}

.photoBox img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.70);
  color: #111;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.chiSonoText h2{
  margin: 0;
}

.chiSonoText p{
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15.8px;
  font-weight: 650;
  line-height: 1.7;
}

.ctaActions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* =========================================================
   11. Cards articoli / posts
   ========================================================= */
.postsGrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.post{
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 14px;
  transition: background .25s ease;
}

.post:hover{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}

.post .thumb{
  flex: 0 0 160px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
}

.post .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post .inner{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post h3{
  margin: 0;
  font-size: 16px;
  letter-spacing: -.2px;
}

.post p{
  margin: 0;
  color: var(--muted);
  font-size: 13.8px;
  font-weight: 650;
  line-height: 1.55;
}

/* =========================================================
   12. Page cover interne
   Usa HTML tipo:
   <section class="pageCover" style="--cover: url('images/run_copertina.png');">
   ========================================================= */
.pageCover{
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding: clamp(4rem, 8vw, 7rem) 0;
  background:
    linear-gradient(90deg, rgba(4,10,22,0.45) 0%, rgba(4,10,22,0.25) 45%, rgba(4,10,22,0.10) 100%),
    var(--cover) center center / cover no-repeat;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.pageCover::before{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 28%, rgba(106,88,255,.10), transparent 30%);
  pointer-events: none;
}

.coverInner{
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 18px 0 8px;
}

.pageCover h1{
  margin: 0 0 10px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.02;
  letter-spacing: -.8px;
}

.pageCover p{
  margin: 0;
  max-width: 70ch;
  color: rgba(255,255,255,.78);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.55;
}

/* =========================================================
   13. RUNLAB ARTICLE LAYOUT
   ========================================================= */
.articlePage{
  padding: 2rem 0 3rem;
}

.articleShell{
  max-width: 920px;
  margin: 0 auto;
}

.articleCard{
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17,24,39,.88), rgba(15,23,42,.78));
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  overflow: hidden;
}

.articleInner{
  padding: clamp(1.2rem, 2vw, 2rem);
}

.articleMeta{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .8rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  font-size: .82rem;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.04);
  margin-bottom: 1rem;
}

.articleTitle{
  margin: 0 0 .5rem 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.articleLead{
  margin: 0;
  font-size: 1.02rem;
  color: rgba(255,255,255,.78);
  max-width: 720px;
}

.articleContent{
  color: rgba(255,255,255,.88);
}

.articleContent p{
  line-height: 1.75;
  margin: 0 0 1rem 0;
}

.articleContent h3{
  margin: 2rem 0 .75rem;
  font-size: 1.45rem;
}

.articleContent h4{
  margin: 1.25rem 0 .5rem;
  font-size: 1.08rem;
}

.articleContent ul{
  padding-left: 1.2rem;
  margin: .25rem 0 1rem;
}

.articleContent li{
  margin-bottom: .5rem;
  line-height: 1.6;
}

.articleContent hr{
  border: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 1.8rem 0;
}

.articleContent code{
  display: inline-block;
  padding: .15rem .45rem;
  border-radius: .45rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: #dbeafe;
  font-size: .95em;
}

/* HERO IMAGE */
.articleHero{
  width: 100%;
  max-width: 460px;
  margin: 1.5rem auto 2rem;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02));
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
  text-align: center;
}

.articleHero img{
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  object-fit: contain;
}

/* ARTICLE FIGURES */
.articleContent figure{
  margin: 1.2rem 0;
  text-align: center;
}

.articleContent figure img{
  display: block;
  width: 100%;
  max-width: 680px;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  object-fit: contain;
}

.articleContent figcaption{
  font-size: .92rem;
  color: rgba(255,255,255,.62);
  margin-top: .6rem;
}

/* CALLOUT */
.callout{
  background: rgba(14,165,233,.10);
  border: 1px solid rgba(56,189,248,.22);
  border-left: 4px solid #38bdf8;
  padding: .95rem 1rem;
  border-radius: 14px;
  margin: 1.1rem 0;
}

.callout p{
  margin: 0;
}

/* TABLES */
.articleTableWrap{
  overflow-x: auto;
  margin: 1rem 0;
}

.articleContent table{
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
}

.articleContent th,
.articleContent td{
  padding: .75rem .7rem;
  border: 1px solid rgba(255,255,255,.08);
  text-align: center;
}

.articleContent th{
  background: rgba(255,255,255,.05);
  font-weight: 700;
  color: #fff;
}

.articleContent td:first-child,
.articleContent th:first-child{
  text-align: left;
}

/* NOTES / FOOTER */
.note{
  font-size: .92rem;
  color: rgba(255,255,255,.66);
}

.articleFooter{
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
}

.backLink{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.25rem;
  text-decoration: none;
  font-weight: 600;
}

/* =========================================================
   14. Footer
   ========================================================= */
footer{
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: var(--muted);
  font-weight: 650;
}

.foot{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brandFoot{
  display: flex;
  align-items: center;
  gap: 10px;
}

.brandSquare{
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 12px 30px rgba(124,92,255,.20);
}

.footLinks{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footLinks a{
  color: rgba(255,255,255,.72);
}

.footLinks a:hover{
  color: var(--text);
}

/* =========================================================
   15. Bottom nav mobile
   ========================================================= */
.app-bottom-nav{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: none;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(11,15,25,.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}

.app-bottom-nav a{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  color: rgba(255,255,255,.70);
  font-size: 11px;
  font-weight: 850;
}

.app-bottom-nav img{
  width: 22px;
  height: 22px;
  opacity: .9;
  filter: invert(1) brightness(2);
}

.app-bottom-nav a.is-active{
  background: rgba(255,255,255,.08);
  color: var(--text);
}

/* =========================================================
   16. VoClassic / layout secondari
   ========================================================= */
.coverActions{
  margin-top: 14px;
}

.contentCard{
  padding: 18px;
}

.contentGrid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: start;
  gap: 14px;
}

.contentText h2{
  margin: 0;
}

.contentText p{
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.7;
}

.contentSide{
  padding: 14px;
}

.sideTitle{
  margin-bottom: 8px;
  font-weight: 900;
}

.sideList{
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.6;
}

.sideBlock .btn{
  width: 100%;
  text-align: center;
}

.grid2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.inlineActions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.featureRow{
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.featureRow.reverse{
  grid-template-columns: 1.1fr .9fr;
}

.featureRow.reverse .featureMedia{
  order: 2;
}

.featureText h2{
  margin: 0;
}

.cleanList{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.7;
}

.roundImg{
  display: block;
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: auto;
  transition: transform .35s ease, filter .35s ease;
}

.roundImg:hover{
  transform: translateY(-6px) scale(1.08);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.35));
}

/* =========================================================
   17. Responsive
   ========================================================= */
@media (max-width: 980px){
  nav#nav{
    display: none;
  }

  .hamb{
    display: inline-block;
  }
}

@media (max-width: 900px){
  body{
    padding-bottom: 86px;
  }

  .topbar{
    gap: 10px;
    padding: 8px 0;
  }

  .logoImg{
    width: 150px;
  }

  #header.shrink .logoImg{
    width: 120px;
  }

  .heroBox,
  .chiSono,
  .contentGrid,
  .grid2,
  .featureRow,
  .featureRow.reverse,
  .postsGrid{
    grid-template-columns: 1fr;
  }

  .featureRow.reverse .featureMedia{
    order: 0;
  }

  .post .thumb{
    flex-basis: 140px;
  }

  .photoBox{
    min-height: 360px;
  }

  .pageCover h1{
    font-size: clamp(30px, 8vw, 44px);
  }

  .pageCover p{
    font-size: 14.5px;
    line-height: 1.5;
  }

  .app-bottom-nav{
    display: flex;
  }
}

@media (max-width: 768px){
  .logoImg{
    width: 160px;
  }

  #header.shrink .logoImg{
    width: 120px;
  }

  .articleInner{
    padding: 1rem;
  }

  .articleTitle{
    font-size: 2rem;
  }

  .articleLead{
    font-size: .96rem;
    line-height: 1.6;
  }

  .articleHero{
    max-width: 320px;
    margin: 1.1rem auto 1.5rem;
    padding: 10px;
    border-radius: 16px;
  }

  .articleHero img{
    border-radius: 10px;
  }

  .articleContent figure img{
    max-width: 100%;
    border-radius: 12px;
  }

  .articleContent p{
    line-height: 1.7;
  }

  .articleContent h3{
    font-size: 1.25rem;
    margin: 1.6rem 0 .65rem;
  }

  .articleContent h4{
    font-size: 1rem;
  }

  .callout{
    padding: .85rem .9rem;
    border-radius: 12px;
  }

  .articleContent table{
    min-width: 620px;
  }
}

@media (max-width: 480px){
  .articlePage{
    padding: 1.25rem 0 2rem;
  }

  .articleCard{
    border-radius: 18px;
  }

  .articleTitle{
    font-size: 1.8rem;
  }

  .articleMeta{
    font-size: .76rem;
    padding: .38rem .7rem;
  }

  .articleHero{
    max-width: 260px;
    margin: 1rem auto 1.25rem;
    padding: 8px;
  }

  .articleContent figure{
    margin: 1rem 0;
  }

  .articleContent th,
  .articleContent td{
    padding: .6rem .55rem;
    font-size: .9rem;
  }
}

@media (max-width: 420px){
  .topbar{
    padding: 8px 0;
  }

  .logoImg{
    width: 135px;
  }

  .post{
    flex-direction: column;
  }

  .post .thumb{
    flex-basis: auto;
    height: 180px;
  }
}

/* KEY TAKEAWAYS */
.articleHighlights{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:24px;
  margin:40px 0;
  padding:0;
}

.highlightCard{
  position:relative;
  padding:28px 24px 24px;
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 10px 30px rgba(0,0,0,0.18);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  overflow:hidden;
  transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.highlightCard::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  border-radius:22px 0 0 22px;
  background:linear-gradient(180deg, var(--brand, #7c5cff), var(--brand2, #36d1dc));
  opacity:.95;
}

.highlightCard:hover{
  transform:translateY(-4px);
  border-color:rgba(124,92,255,0.35);
  box-shadow:0 16px 40px rgba(0,0,0,0.24);
}

.highlightTag{
  display:inline-block;
  margin-bottom:12px;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(255,255,255,0.55);
}

.highlightCard h3{
  margin:0 0 12px;
  font-size:clamp(1.35rem, 2vw, 1.9rem);
  line-height:1.15;
  font-weight:800;
  color:#fff;
}

.highlightCard p{
  margin:0;
  font-size:1rem;
  line-height:1.65;
  color:rgba(255,255,255,0.82);
  max-width:42ch;
}

/* Effetto leggero interno */
.highlightCard::after{
  content:"";
  position:absolute;
  top:-40px;
  right:-40px;
  width:120px;
  height:120px;
  background:radial-gradient(circle, rgba(124,92,255,0.16) 0%, rgba(124,92,255,0) 70%);
  pointer-events:none;
}

/* Tablet */
@media (max-width: 900px){
  .articleHighlights{
    gap:18px;
  }

  .highlightCard{
    padding:24px 20px 22px;
    border-radius:18px;
  }

  .highlightCard::before{
    border-radius:18px 0 0 18px;
  }

  .highlightCard h3{
    font-size:1.45rem;
  }
}

/* Mobile */
@media (max-width: 640px){
  .articleHighlights{
    grid-template-columns:1fr;
    gap:16px;
    margin:28px 0;
  }

  .highlightCard{
    padding:22px 18px 20px;
  }

  .highlightTag{
    margin-bottom:10px;
    font-size:.72rem;
    letter-spacing:.14em;
  }

  .highlightCard h3{
    font-size:1.25rem;
  }

  .highlightCard p{
    font-size:.96rem;
    line-height:1.55;
  }
}

.imgSmall{
  max-width: 520px !important;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 768px){
  .imgSmall{
    max-width: 340px !important;
  }
}

@media (max-width: 480px){
  .imgSmall{
    max-width: 280px !important;
  }
}

.articleCompareGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 1.2rem 0 1.4rem;
}

.compareCard{
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.compareCard h5{
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
}

.compareCard p{
  margin: 0;
  font-size: .98rem;
  line-height: 1.6;
  color: rgba(255,255,255,.8);
}

@media (max-width: 768px){
  .articleCompareGrid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .compareCard{
    padding: 16px 16px 14px;
    border-radius: 16px;
  }

  .compareCard h5{
    font-size: .98rem;
  }

  .compareCard p{
    font-size: .95rem;
    line-height: 1.55;
  }
}

 /* ── Donazioni PayPal ── */
    .donateSection{
      border-top: 1px solid rgba(255,255,255,.08);
      padding-top: 20px;
      margin-top: 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }

    .donateText{
      display: flex;
      flex-direction: column;
      gap: 3px;
    }

    .donateTitle{
      font-size: 13px;
      font-weight: 800;
      color: rgba(255,255,255,.75);
      letter-spacing: .02em;
    }

    .donateSubtitle{
      font-size: 11px;
      color: rgba(255,255,255,.38);
      font-weight: 500;
      line-height: 1.4;
    }

    .donateBtn{
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 16px;
      border-radius: 10px;
      background: #0070ba;
      color: #fff;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .03em;
      text-decoration: none;
      border: none;
      cursor: pointer;
      transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
      white-space: nowrap;
      flex-shrink: 0;
      box-shadow: 0 4px 14px rgba(0,112,186,.30);
    }

    .donateBtn:hover{
      background: #005ea6;
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(0,112,186,.45);
    }

    .donateBtn:active{
      transform: translateY(0);
    }

    .donateBtn svg{
      flex-shrink: 0;
    }

    @media(max-width:480px){
      .donateSection{
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
      }
      .donateBtn{
        width: 100%;
        justify-content: center;
      }
    }