/* =========================================================
   HOME BASE — PREMIUM EDITORIALE
========================================================= */

.home{
  width:100%;
  position:relative;
}

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

.home::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background:
    radial-gradient(circle at 16% 8%, rgba(37,99,235,.13), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(6,182,212,.12), transparent 28%),
    radial-gradient(circle at 48% 92%, rgba(34,197,94,.055), transparent 34%);
}

/* =========================
   SEZIONI
========================= */

.home-section-block{
  position:relative;
  margin-top:54px;
  padding:26px;
  border-radius:28px;
}

.home-section-block:first-child{
  margin-top:16px;
}

.home-section-block:not(.home-hero-block){
  background:
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.42)),
    radial-gradient(circle at top left, rgba(37,99,235,.09), transparent 34%),
    radial-gradient(circle at bottom right, rgba(6,182,212,.08), transparent 34%);
  border:1px solid rgba(255,255,255,.76);
  box-shadow:
    0 24px 70px rgba(15,23,42,.09),
    inset 0 1px 0 rgba(255,255,255,.82);
  backdrop-filter:blur(16px);
}

.home-section-block::before{
  content:"";
  position:absolute;
  top:-28px;
  left:8%;
  right:8%;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(34,211,238,.42), rgba(37,99,235,.24), transparent);
}

.home-section-block:first-child::before{
  display:none;
}

.home-hero-block{
  padding:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  border:0;
}

.home-section-block__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:20px;
}

.home-section-block__head h2,
.home-news-v6__title,
.group-head h2{
  margin:0;
  color:#0f172a;
  font-size:clamp(24px, 2.3vw, 34px);
  line-height:.96;
  font-weight:950;
  letter-spacing:-.055em;
}

.home-section-block__head h2::after,
.home-news-v6__title::after,
.group-head h2::after{
  content:"";
  display:block;
  width:52px;
  height:4px;
  margin-top:11px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow:0 0 18px rgba(6,182,212,.28);
}

/* =========================
   PLACEHOLDER
========================= */

.home-no-img,
.hero-no-img{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  background:
    linear-gradient(135deg, rgba(15,23,42,.96), rgba(30,41,59,.92)),
    radial-gradient(circle at 20% 20%, rgba(37,99,235,.24), transparent 36%);
  color:rgba(255,255,255,.48);
  font-size:13px;
  font-weight:800;
}

/* =========================
   ULTIMI ARTICOLI
========================= */

.home-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.home-card{
  position:relative;
  display:block;
  min-height:285px;
  border-radius:22px;
  overflow:hidden;
  background:#0b1220;
  isolation:isolate;
  box-shadow:
    0 22px 56px rgba(15,23,42,.14),
    inset 0 1px 0 rgba(255,255,255,.08);
  transition:transform .28s ease, box-shadow .28s ease;
}

.home-card:hover{
  transform:translateY(-5px);
  box-shadow:
    0 32px 76px rgba(15,23,42,.22),
    0 0 34px rgba(6,182,212,.10);
}

.home-card picture,
.home-card img{
  display:block;
  width:100%;
  height:100%;
}

.home-card picture{
  position:absolute;
  inset:0;
  aspect-ratio:auto;
}

.home-card img{
  object-fit:cover;
  transition:transform .55s ease, filter .55s ease;
}

.home-card:hover img{
  transform:scale(1.07);
  filter:saturate(1.10) contrast(1.05);
}

.home-card::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(to top, rgba(2,6,23,.94), rgba(2,6,23,.52), rgba(2,6,23,.10)),
    radial-gradient(circle at 18% 16%, rgba(37,99,235,.24), transparent 38%);
}

.home-card-body{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:2;
  padding:18px;
  color:#fff;
}

.home-card h3{
  margin:0 0 8px;
  max-width:34ch;
  font-size:clamp(17px, 1.7vw, 22px);
  line-height:1.08;
  font-weight:950;
  letter-spacing:-.04em;
  text-shadow:0 10px 28px rgba(0,0,0,.45);
}

.home-card-date{
  display:inline-flex;
  width:max-content;
  padding:5px 9px;
  border-radius:999px;
  color:rgba(255,255,255,.78);
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  font-size:11px;
  font-weight:850;
  backdrop-filter:blur(10px);
}

/* =========================
   NEWS V6
========================= */

.home-news-v6{
  padding:24px;
}

.home-news-v6__grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}

.home-news-v6__card{
  position:relative;
  display:block;
  min-height:210px;
  border-radius:20px;
  overflow:hidden;
  background:#0b1220;
  box-shadow:0 18px 46px rgba(15,23,42,.12);
  isolation:isolate;
  transition:transform .24s ease, box-shadow .24s ease;
}

.home-news-v6__card:hover{
  transform:translateY(-4px);
  box-shadow:0 26px 62px rgba(15,23,42,.18);
}

.home-news-v6__thumb{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  overflow:hidden;
}

.home-news-v6__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .5s ease, filter .5s ease;
}

.home-news-v6__card:hover .home-news-v6__thumb img{
  transform:scale(1.06);
  filter:saturate(1.08) contrast(1.04);
}

.home-news-v6__card::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(to top, rgba(2,6,23,.90), rgba(2,6,23,.40), transparent);
}

.home-news-v6__body{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:2;
  padding:14px;
  color:#fff;
}

.home-news-v6__meta{
  margin-bottom:7px;
  font-size:11px;
  font-weight:850;
  color:rgba(255,255,255,.72);
}

.home-news-v6__card-title{
  margin:0;
  font-size:15px;
  line-height:1.13;
  font-weight:920;
  letter-spacing:-.03em;
}

.home-news-v6__list{
  grid-column:span 4;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
  margin-top:4px;
}

.home-news-v6__list a{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,255,255,.62);
  border:1px solid rgba(255,255,255,.76);
  color:#0f172a;
  font-size:13px;
  font-weight:850;
  box-shadow:0 12px 26px rgba(15,23,42,.06);
}

.home-news-v6__list small{
  color:rgba(15,23,42,.54);
  white-space:nowrap;
}

/* =========================
   GROUP PREMIUM
========================= */

.home-group-premium{
  color:#fff;
  background:
    linear-gradient(135deg, rgba(9,16,31,.96), rgba(21,34,58,.88)),
    radial-gradient(circle at 10% 0%, rgba(37,99,235,.34), transparent 38%),
    radial-gradient(circle at 88% 12%, rgba(6,182,212,.24), transparent 36%);
  border:1px solid rgba(125,211,252,.16);
  box-shadow:
    0 28px 78px rgba(15,23,42,.22),
    inset 0 1px 0 rgba(255,255,255,.10);
}

.group-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:22px;
}

.group-eyebrow{
  margin-bottom:8px;
  color:rgba(219,234,254,.72);
  font-size:11px;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.home-group-premium .group-head h2{
  color:#fff;
}

.home-group-premium .group-head h2::after{
  background:linear-gradient(90deg, #60a5fa, #22d3ee);
}

.group-head-note{
  max-width:280px;
  color:rgba(255,255,255,.62);
  font-size:13px;
  line-height:1.35;
  text-align:right;
}

.group-shell{
  padding:10px;
  border-radius:26px;
  background:rgba(255,255,255,.065);
  border:1px solid rgba(255,255,255,.11);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}

.group-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.65fr) minmax(220px, .9fr);
  gap:14px;
}

.group-main{
  position:relative;
  display:block;
  min-height:360px;
  border-radius:22px;
  overflow:hidden;
  color:#fff;
  isolation:isolate;
  background:#101827;
  box-shadow:0 24px 60px rgba(0,0,0,.30);
}

.group-main-bg{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
}

.group-main-bg img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1.04);
  transition:transform .58s ease, filter .58s ease;
}

.group-main:hover .group-main-bg img{
  transform:scale(1.10);
  filter:saturate(1.08) contrast(1.04);
}

.group-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.45), rgba(0,0,0,.08)),
    radial-gradient(circle at 20% 10%, rgba(37,99,235,.30), transparent 42%);
}

.group-main-content{
  position:absolute;
  left:24px;
  right:24px;
  bottom:24px;
  z-index:2;
}

.group-kicker{
  display:inline-flex;
  width:fit-content;
  margin-bottom:11px;
  padding:5px 10px;
  border-radius:999px;
  font-size:10px;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
  color:#dffbff;
  background:rgba(6,182,212,.20);
  border:1px solid rgba(125,211,252,.26);
  backdrop-filter:blur(12px);
}

.group-main h3{
  max-width:680px;
  margin:0 0 10px;
  color:#fff;
  font-size:clamp(24px, 2.5vw, 38px);
  font-weight:950;
  line-height:1.02;
  letter-spacing:-.055em;
  text-shadow:0 10px 30px rgba(0,0,0,.55);
}

.group-excerpt{
  max-width:620px;
  margin:0 0 15px;
  color:rgba(255,255,255,.78);
  font-size:14px;
  line-height:1.45;
}

.group-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.group-cta{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  color:#e0fbff;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  font-size:12px;
  font-weight:900;
}

.group-side{
  display:grid;
  gap:12px;
}

.group-card{
  display:grid;
  grid-template-columns:96px 1fr;
  min-height:105px;
  background:rgba(255,255,255,.94);
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.30);
  box-shadow:0 12px 28px rgba(0,0,0,.12);
  transition:transform .22s ease, box-shadow .22s ease;
}

.group-card:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(0,0,0,.18);
}

.group-card-img{
  display:block;
  width:100%;
  height:100%;
  min-height:110px;
  overflow:hidden;
}

.group-card-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.group-card-body{
  padding:12px;
}

.group-card h4{
  margin:0 0 8px;
  color:#0f172a;
  font-size:14px;
  line-height:1.18;
  font-weight:880;
}

.group-meta{
  color:rgba(15,23,42,.64);
  font-size:12px;
  font-weight:750;
}

.group-main .group-meta{
  color:rgba(255,255,255,.74);
}

/* =========================
   FEATURE CATEGORY
========================= */

.feature-strip{
  margin:54px 0 10px;
  padding:24px;
  border-radius:28px;
  background:
    linear-gradient(135deg, rgba(15,23,42,.96), rgba(15,23,42,.86)),
    radial-gradient(circle at 15% 20%, rgba(37,99,235,.36), transparent 32%),
    radial-gradient(circle at 82% 28%, rgba(6,182,212,.28), transparent 34%);
  border:1px solid rgba(125,211,252,.18);
  box-shadow:
    0 26px 76px rgba(15,23,42,.22),
    inset 0 1px 0 rgba(255,255,255,.10);
}

.feature-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
  color:#fff;
}

.feature-kicker{
  display:inline-flex;
  align-items:center;
  width:fit-content;
  margin-bottom:8px;
  padding:5px 9px;
  border-radius:999px;
  font-size:10px;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
  background:rgba(6,182,212,.20);
  color:#dffbff;
  border:1px solid rgba(125,211,252,.22);
}

.feature-title{
  margin:0;
  font-size:clamp(23px, 2.2vw, 32px);
  line-height:1;
  letter-spacing:-.04em;
}

.feature-subtitle{
  margin-top:7px;
  font-size:13px;
  color:rgba(255,255,255,.65);
}

.feature-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:9px 13px;
  border-radius:999px;
  font-size:13px;
  font-weight:850;
  color:#dffbff;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.15);
  transition:transform .22s ease, background .22s ease;
}

.feature-link:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.15);
}

.feature-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}

.feature-card{
  position:relative;
  display:block;
  height:180px;
  border-radius:18px;
  overflow:hidden;
  background:#020617;
  isolation:isolate;
  box-shadow:0 16px 40px rgba(0,0,0,.18);
}

.feature-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .5s ease, filter .5s ease;
}

.feature-card:hover img{
  transform:scale(1.07);
  filter:saturate(1.08) contrast(1.04);
}

.feature-card::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(to top, rgba(0,0,0,.90), rgba(0,0,0,.32), transparent);
}

.feature-card-body{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:2;
  padding:13px;
  color:#fff;
}

.feature-card h3{
  margin:0 0 6px;
  font-size:14px;
  line-height:1.14;
  font-weight:900;
}

.feature-card-date{
  font-size:11px;
  opacity:.72;
}

/* =========================
   HERO SUPPORT
========================= */

.highlight-card__media{
  position:relative;
  overflow:hidden;
}

.highlight-card__media picture{
  display:block;
  width:100%;
  height:100%;
}

.highlight-card__media picture img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:900px){
  .home-news-v6__grid,
  .feature-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .home-grid{
    grid-template-columns:1fr;
  }

  .group-head,
  .feature-head,
  .home-section-block__head{
    align-items:flex-start;
    flex-direction:column;
  }

  .group-head-note{
    max-width:none;
    text-align:left;
  }

  .group-grid{
    grid-template-columns:1fr;
  }

  .group-main{
    min-height:300px;
  }
}

@media (max-width:768px){
  .home-section-block{
    margin-top:42px;
    padding:20px;
    border-radius:22px;
  }

  .home-hero-block{
    padding:0;
  }

  .home-news-v6__grid,
  .feature-grid{
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    padding-bottom:6px;
  }

  .home-news-v6__card,
  .feature-card{
    min-width:230px;
    scroll-snap-align:start;
  }

  .home-card{
    min-height:260px;
  }

  .group-shell{
    padding:8px;
    border-radius:22px;
  }

  .group-main{
    min-height:260px;
    border-radius:18px;
  }

  .group-main-content{
    left:16px;
    right:16px;
    bottom:16px;
  }

  .group-bottom{
    align-items:flex-start;
    flex-direction:column;
  }

  .group-card{
    grid-template-columns:86px 1fr;
  }
}

/* =========================================================
   HOME BASE — TECH MAGAZINE REFINEMENT
========================================================= */

.home-section-block:not(.home-hero-block){
  background:transparent;
  border:0;
  box-shadow:none;
  backdrop-filter:none;
  padding:0;
}

.home-section-block::before{
  left:0;
  right:0;
  opacity:.55;
}

.home-section-block__head h2,
.home-news-v6__title,
.group-head h2,
.feature-title,
.home-card h3,
.home-news-v6__card-title,
.group-main h3,
.group-card h4,
.feature-card h3{
  font-family:var(--font-title, var(--font));
}

.home-news-v6,
.feature-strip{
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
}

.home-news-v6__card,
.home-card,
.feature-card{
  border-radius:26px;
}

.home-news-v6__grid{
  gap:18px;
}

.home-news-v6__card{
  min-height:250px;
}

.home-news-v6__list a{
  background:rgba(255,255,255,.78);
  border-color:rgba(15,23,42,.06);
}

.home-group-premium{
  border-radius:34px;
  padding:30px;
}

.group-shell{
  background:rgba(255,255,255,.045);
}

.group-main{
  min-height:430px;
}

.group-main h3{
  font-size:clamp(32px, 3.4vw, 56px);
  line-height:.92;
  max-width:12ch;
}

.group-card{
  border-radius:22px;
}

.feature-strip{
  margin-top:64px;
}

.feature-card{
  height:220px;
}

@media (max-width:900px){
  .group-main{
    min-height:340px;
  }

  .group-main h3{
    font-size:clamp(28px, 7vw, 42px);
  }
}

/* =========================================================
   HOME SECTION HEAD — CONTRAST FIX
========================================================= */

.home-section-block__head{
  position:relative;
  z-index:2;
  padding:22px 24px;
  margin-bottom:22px;
  border-radius:26px;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.92),
      rgba(255,255,255,.74)
    );
  border:1px solid rgba(15,23,42,.08);
  box-shadow:
    0 18px 44px rgba(15,23,42,.08),
    inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter:blur(14px);
}

.home-section-block__head h2,
.home-news-v6__title,
.group-head h2{
  color:#0f172a !important;
  text-shadow:none !important;
  -webkit-text-fill-color:#0f172a !important;
}

.home-section-block__head h2,
.group-head h2{
  background:none !important;
}

.home-section-block__head > div,
.group-head-note{
  color:rgba(15,23,42,.68) !important;
  text-shadow:none !important;
}

.group-head{
  position:relative;
  z-index:2;
  padding:22px 24px;
  margin-bottom:22px;
  border-radius:26px;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.92),
      rgba(255,255,255,.74)
    );
  border:1px solid rgba(15,23,42,.08);
  box-shadow:
    0 18px 44px rgba(15,23,42,.08),
    inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter:blur(14px);
}

.home-group-premium .group-head h2,
.home-group-premium .group-head h2 *{
  color:#0f172a !important;
  -webkit-text-fill-color:#0f172a !important;
}

.home-group-premium .group-eyebrow{
  color:#2563eb !important;
  background:rgba(37,99,235,.10);
  border:1px solid rgba(37,99,235,.16);
  padding:6px 10px;
  border-radius:999px;
  width:max-content;
}

/* =========================================================
   FEATURED SECTION HEAD — CLEAN FIX
========================================================= */

.feature-head{
  padding:22px 24px;
  margin-bottom:22px;
  border-radius:26px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.74));
  border:1px solid rgba(15,23,42,.08);
  box-shadow:
    0 18px 44px rgba(15,23,42,.08),
    inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter:blur(14px);
}

.feature-kicker{
  color:#2563eb !important;
  background:rgba(37,99,235,.10) !important;
  border:1px solid rgba(37,99,235,.16) !important;
}

.feature-title{
  color:#0f172a !important;
  background:none !important;
  text-shadow:none !important;
  -webkit-text-fill-color:#0f172a !important;
}

.feature-subtitle{
  color:rgba(15,23,42,.68) !important;
  background:none !important;
  text-shadow:none !important;
  -webkit-text-fill-color:rgba(15,23,42,.68) !important;
}